Questions tagged [ffmpeg]

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

Script for conversion audio files to mp3 recursively in another folder with same names of sub folders

I have this script for conversion of video files to another folder with same hierarchy. This works fine. #!/bin/bash SAVEIFS=$IFS IFS=$'\n' find . \( -name '*.mkv' -o -name '*.mpg' -o -name '*.3gp' -...
1
vote
0answers
12 views

ffmpeg GPU use cuvid with hwdownload will never finished, Appeared only recently

ffmpeg: ffmpeg version N-97331-g10a68cc Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --prefix=/usr/local/...
0
votes
1answer
34 views

Redirect two webcam to a virtual camera using ffmpeg

I've used sudo modprobe v4l2loopback to create a virtual camera #2. And I used ffmpeg -i /dev/video0 -s 1280x720 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2 to redirect ...
0
votes
0answers
25 views

ffmpeg sources out of sync

When I run this ffmpeg command, it should record two identical audio channels from my microphone to output.mkv ffmpeg -f pulse -i default -f pulse -i default -map 0 -map 1 output.mkv Instead the ...
0
votes
0answers
26 views

cannot install ffmpeg - all solutions do not work

I am using ubuntu 16.04. I am unable to install ffmpeg. 1) Aptitude does not work. 2) Restricted and Universe repositories have been enabled. 3) dpkg --get-selections | grep hold outputs nothing. ...
0
votes
0answers
52 views

cannot install ffmpeg - Unable to correct problems, you have held broken packages [duplicate]

I want to install ffmpeg but get the message below. How can I fix this ? (base) h@cheemc52:~/opencv/build$ sudo apt-get install ffmpeg Reading package lists... Done Building dependency tree Reading ...
2
votes
0answers
50 views

How to capture infrared stream from webcam using ffmpeg?

I'm able to capture from my webcam using ffmpeg, but it's real color. But my webcam is advertised as having IR capability. How do I access this? When I run ffmpeg -f v4l2 -list_formats all -i /dev/...
0
votes
0answers
19 views

Creating a script that encodes an audio file and JPG together in an MKV in each subdirectory

I am working on a youtube-dl script that downloads the audio files and thumbnails of a batch list and places it in directory like this: downloads/[channel_name]/[video_id]/.audiofile downloads/[...
1
vote
1answer
47 views

How ubuntu works around licensing to deliver ubuntu-restricted-extras?

I thought philosophy of linux was "open source, maintained, non-encumbered by patents, not full of security issues, meet generic open source best practices" How is package under ubuntu-restricted-...
0
votes
1answer
34 views

Software not allowed to access folders

I'm trying to tell audacity where my ffmpeg is seeing as it doesn't seem to want to do it iself but when I go to access the folder, /usr, it says permission denied. The same was true for something I ...
1
vote
1answer
381 views

Nvidia cuda Ubuntu 20.04

I have installed cuda and cuda-toolkit-10.2 from Nvidia Cuda Toolkit repository on my Ubuntu 20.04 machine to make a custom build of FFmpeg to using NVIDIA hardware acceleration so when I try to ...
1
vote
1answer
18 views

What's the ffmpeg command to extract PPM files from an existing video?

What's the ffmpeg command to extract PPM (or Portable Pix Map) files from an existing video? Like the reverse of this Convert a sequence of ppm images to avi video
1
vote
0answers
221 views

FFmpeg In Ubuntu 20.04 with Nvidia Gpu Acceleration

I recently tried to integrate NVENC to FFmpeg but the documentation has all messed me up. Is cuda toolkit needed for compiling ffmpeg with NVENC support? If yes cuda toolkit is available only of ...
2
votes
1answer
219 views

Failed to open /dev/video0: No such file or directory

I have been trying to setup my DSLR to be a webcam with the following command: gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -threads 0 -f v4l2 /dev/video0 this however results in ...
0
votes
0answers
111 views

FFmpeg - Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory

I have a Nikon D7000 which is supported by gphoto2 and can successfully take a photo. However I cannot get this camera to work as a webcam as I thought I would be able to. Please see below: hutber@...
0
votes
0answers
12 views

None of my installed apps can capture my whole screen

When I try to stream on discord or OBS, I select the option to capture my entire screen. The only thing it shows is the cursor on a black screen. I have ffmpeg installed and I'm running Ubuntu 19.10. ...
0
votes
0answers
22 views

Wrong Webcam Driver

I have two Logitech C920 PRO HD webcams connected to my system via USB. However, one of these cameras displays the wrong name in the lsusb command output: Bus 003 Device 003: ID 046d:0892 Logitech, ...
0
votes
1answer
56 views

How do i transcode video files with ffmpeg by piping the in and output over ssh or by sftp

I have a server with the video files i want to transcode to x265 and have ssh/sftp acces to it. But i am not root on my transcoding machine, therefore couldn't install sshfs, so i decided to pipe the ...
2
votes
0answers
78 views

How to concat mp4 files with ffmpeg without having artefacts

To concat two mp4 or ts files (I've both formats) ffmpeg offers some calls that I've tried. Both "concat protocol" (for h264 TS files) and "Concat demuxer" (for h264 PS files) produce artifacts that ...
1
vote
0answers
47 views

Virtual webcam with video4linux2 not available in some videochat services [duplicate]

I am trying to use my Canon 7D as a webcam on Kubuntu 19.10. I managed to connect the camera using gphoto2 and pipe the video stream to a video device with this following command: gphoto2 --stdout --...
0
votes
0answers
29 views

Very slow decode times with hevc with ffmpeg 4.1.4 on Ubuntu

I'm getting ridiculously slow decode times for iPhone hevc .MOV files. In VLC or ffplay, the video displays one frame every 10 seconds. Simply transcoding to h264 I get about 1.8 fps. I recall being ...
1
vote
1answer
190 views

18.04 ffmpeg: Play mp4 on fake webcam, “Conversion Failed!”

Trying to create a new fake webcam device (/dev/video2) and play a video on it so I can use it as a virtual webcam. Steps I took: sudo apt-get install v4l2loopback-dkms sudo modprobe v4l2loopback ...
1
vote
1answer
252 views

Problem setting dslr up as webcam

I am trying to set up my nikon d7000 dslr as a video device for Ubuntu 18.04, as shown in this article. When I try to start the video stream/device with gphoto2 --capture-movie --stdout | ffmpeg -...
3
votes
2answers
95 views

What's the simplest way to join two JPEG videos?

There are lot of options for ffmpeg and other software, I tried "concat" method with ffmpeg and tried mkvmerge, they didn't work well for JPEG video (MJPG). I would use any tool that will keep quality,...
0
votes
1answer
86 views

Ubuntu 18.04, am trying to update ffmpeg from 3.x to 4.x, but keeps saying “ffmpeg is already the newest version (7:4.2.2-1build1~18.04.sav0)”

Ubuntu 18.04, and am trying to upgrade FFmpeg to 4.x using the instructions here. However it keeps saying Reading package lists... Done Building dependency tree Reading state information... ...
1
vote
0answers
617 views

How to use hardware encoding in ffmpeg (h264_omx) on Raspberry Pi 4 running Ubuntu

I'm nearly finished migrating my RPi4 4GB to Ubuntu 19.10 with Gnome - it is running better than I thought it would. I've got one remaining hurdle for the moment: using the h264_omx hardware encoder ...
3
votes
0answers
149 views

Outputing video and audio from file to virtual webcam and microphone

I'm currently trying to get a simple way to share a video with audio using Zoom (but not using the screen sharing). The only way to really do it is to have the video sent to a virtual webcam and the ...
1
vote
0answers
22 views

Is it possible to install only parts of the ffmpeg headers?

I am trying to use the ffmpeg headers in a dockerized ubuntu environment. If I install all of the ffmpeg header files there it will use up to 900 mbs in image size. This seems not good for my usecase, ...
1
vote
1answer
142 views

How to identify on command line VR videos? .. And batch delete them

Sometimes I accidentaly download VR (Virtual reality) videos. I can't view VR videos on my Linux box (even on macOS its not working). How to identify VR videos (mediainfo or similar tool) and delete ...
2
votes
1answer
684 views

Ffmpeg: can TS video be converted directly to MP4 video without re-coding?

I see here (How to convert .ts file into a mainstream format losslessly?) that MKV is recommended for that purpose (ffmpeg -i input -map 0 -c copy output.mkv), but not MP4, which is said to involve re-...
0
votes
1answer
157 views

how to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

First post, so be kind please :) So a quick bit of history. I am using tvheadend, and the inbuilt transcoder murders my CPU, and provides average quality output (it's powered by ffmpeg), if I pipe ...
0
votes
0answers
25 views

Desktop entry to convert audio/video files (naming question)

My question: I'd like to create a desktop entry in (kde dolphins servicemenu) to convert audio/video files. I have tried it with the follwing: [Desktop Entry] Actions=Convertwav2Mp3 Icon=audio-x-...
0
votes
0answers
90 views

ffmpeg command produces black image as output

enter image description here 0 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 13555.753906, bitrate: 147456 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), ...
0
votes
0answers
37 views

Convert flac to lossless wma?

I have a bunch of flac files I have to convert to lossless .wma because a game I have requires I use it. I was looking at avconv, and tried avconv -i song.flac output.wma, however I believe this made ...
0
votes
0answers
95 views

Remove Metadata from Moviefiles with bash script

I have a movie library and wanted to remove all metadata saved in any movie file. Is there a bash batch script, that removes them automatically, so that I don't have to check for every existing file? ...
0
votes
0answers
500 views

GLIBC_2.27 not found when launching applications through Nautilus

I have VSCode installed and never experienced this issue before, but now after I installed some web camera utilities and video conversion I seemed unable to launch VSCode from Nautilus. What works: ...
0
votes
0answers
123 views

ffmpeg png + mp3 = mp4, howto make all image in a folder + random mp3 file to mp4 video with name file mp4 is name of png file?

i have a folder with 10 file png and 5 file mp3, i want use ffmpeg convert png+mp3=mp4, random 5 file mp3 for 10 file png, name of file mp4 finish is name of file png. how to do it, please help!
2
votes
1answer
67 views

Same command for all files on folder and output on the same file

I am new on linux and I want to make a loop on file to do the same command on all files in a folder, the command include the file name: ffmpeg -i REC_2019_08_31_11_52_30_F.MP4 ...
0
votes
0answers
85 views

how can I apply echo cancelation to audiofiles on ubuntu 19.10?

it is possible to apply echo cancellation to microphones while they are recording, e.g. like this How can I apply the same filter to audio files that already exist? If there was a ffmpeg filter for ...
0
votes
0answers
150 views

HIKVISION DS-2CD202WF-I(W) RTSP STREAM LAG

I have a HIKVISION DS-2CD202WF-I(W) camera. The stream through the HIKVISION webpage - accessed using the camera IP address - in Internet Explorer and the ONVIF Device Manager(ODM) in Windows 10 works ...
2
votes
1answer
386 views

ffmpeg command working from command line but not in bash script

I am converting wav files to mp3 files using ffmpeg. The conversion works when I run it from the command line but it doesn't work when it is run from a bash script. The error I get is a ffmpeg error ...
2
votes
1answer
202 views

Packet is too small ffmpeg converting wav to mp3

I continue to get this error when trying to convert a wav file to mp3 using ffmpeg. This is the command i'm running ffmpeg -i 11_22_40AM.wav -acodec mp3 11_22_40AM.mp3 And this is the error [...
2
votes
0answers
271 views

How to reliably watch local 4k video at > 2x speed?

I'm using VLC ("VideoLAN") on Linux to play 4k video I have recorded. I'm trying to quickly review long segments so I want to play the video faster, at least 5x. But when I exceed 2.9x the video ...
2
votes
1answer
1k views

AV1 video from 9gag convert

Players can't play it, FFmpeg can't convert it VLC: Codec not supported: VLC could not decode the format "av01" (AOMedia's AV1 Video) Video: video/x-gst-fourcc-av01 decoder is requiered to play ...
1
vote
0answers
812 views

Turned my DSLR into a webcam but Chrome does not recognize it

I followed this other post and managed to turn my DSLR into a webcam successfully. To test it, I can see the live video in applications like guvcview and my DSLR is recognized as Dummy video device (...
4
votes
3answers
2k views

How to convert .m4a audio files to .mp3 use command line?

How to convert .m4a audio files to .mp3 command line? (with no deterioration in quality, if possible). Ubuntu 16.04LTS media info: General Complete name : show.m4a Format ...
3
votes
1answer
537 views

FFmpeg Script to recursively convert DTS audio to AC3

I have videos with dts audio I can convert to ac3 separately, but I need to batch convert a bunch, but can't figure out how. This is my working ffmpeg for separate files: for f in *.mkv; do ...
0
votes
0answers
29 views

Have to reinstall NVidia drivers after reboot

I have a video encoding server with Ubuntu 18.04. It runs all sorts of ffmpeg commands. It's GeForce GTX 1050. Everytime I reboot the server I get CUDA errors (No CUDA driver found). The only way to ...
1
vote
1answer
904 views

Install from ppa:jonathonf/ffmpeg4 403 Forbidden [IP: 91.189.95.83 80]

I am (linux beginner) trying to install Opencv on Ubuntu bionic 18.04, following this git shell scripts to install different version of OpenCV instructions. But I'm getting a 403 Forbidden [IP: 91....
0
votes
0answers
44 views

Screencast Ec2 instance including sound

I need to screencast at scale, I can create AWS EC2 instances and get mostly there except for sound. The issue is that the Ubuntu image for EC2 comes void of a sound card or a virtual one as far as I ...

1
2 3 4 5
13