Questions tagged [ffmpeg]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
59 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
0 answers
931 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 ...
3 votes
2 answers
851 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
1 answer
3k 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... ...
5 votes
0 answers
2k 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 ...
3 votes
1 answer
4k views

How to bulk extract bitrate data from videos and output them in a text file?

I have several videos in a folder; ~/Downloads/movie1.mkv ~/Downloads/movie2.mkv ~/Downloads/movie3.mkv I would like to extract the bitrate for each file, and output the data into a single text file,...
1 vote
1 answer
326 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
0 answers
256 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, ...
2 votes
1 answer
6k views

Split a large video file into small clips 15 seconds each

How do I split a large mp4 file using ffmpeg, into smaller clips, which are 15 seconds each?
5 votes
1 answer
5k 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 ...
7 votes
3 answers
15k views

How to install old version of ffmpeg?

I'm having trouble with the current release of ffmpeg, it transcodes .mp3 to .wavs in a format that is unsupported by my client. How can install this version? ffmpeg version 0.7.3-4:0.7.3-0ubuntu0....
0 votes
0 answers
1k 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? ...
2 votes
0 answers
3k 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: ...
22 votes
3 answers
45k views

Stop the recording after some period of time

I have a device that recording the video using the webcam with ffmpeg. It is working great, when the recording is started I am getting the USR1 signal. And after stoping the recording we receive the ...
5 votes
2 answers
39k views

How to install avconv with libfdk_aac on Ubuntu 14.04?

How to install or compile avconv with libfdk_aac on Ubuntu 14.04 ? I am also ok with comparable aac codecs e.g. http://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC Currently I am trying ...
0 votes
0 answers
632 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
1 answer
954 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 ...
1 vote
0 answers
722 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 ...
3 votes
1 answer
4k 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
1 answer
1k 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
0 answers
721 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 ...
5 votes
0 answers
2k 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 (...
1 vote
1 answer
2k views

Gerbera to transcode *.avi videos to h264 mkv?

I bought a Samsung SmartTV which do not support DIVX/XVID codec, so any of the old *.avi files I have work. While I can always convert them, I have other devices in my DLNA network which supports ...
3 votes
1 answer
2k 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 ...
23 votes
3 answers
77k views

Download everything from a YouTube video using youtube-dl

I want to download everything (subtitles, cards, tags, annotations, thumbnails, etc. (and obviously the video w/ audio)) from a YouTube video (for example, this one). I'm using youtube-dl and, with ...
1 vote
1 answer
9k views

At least one output file must be specified ffmpeg

ffmpeg -i oceans.mov -an -c:v libx264 -r 24 -preset fast \ -profile:v baseline -g 64 -keyint_min 64 -b:v:0 230k -maxrate 250k -s:v:0 304x128 \ -x264opts pic-struct:no-scenecut -movflags ...
1 vote
2 answers
1k views

Writing a find command with ffmpeg to process videos

I want to write a command or script to find all my .mkv videos larger than 3Gb, then run ffmpeg to make them smaller (720p) and change the extension to mp4. I have it working except the file ends up ...
2 votes
1 answer
2k 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....
2 votes
1 answer
2k views

How to add subtitles a complete folder using ffmpeg in linux

I need to batch subtitles with ffmpeg , the srt file has got the same name of the video file associated, for example : file1.mkv with file1.srt, ... file8.mp4 with file8.srt how can I perform a batch ...
10 votes
5 answers
119k views

How to convert a video from mp4/flv to mpeg/mpg

I download videos in mp4 or flv format but I need to convert them to mpeg 1/2/3 so that I can watch them on my special gadget. I think I need a program. any suggestion thanks
2 votes
0 answers
2k views

v4l2 How to trigger automatic exposure adjusting?

I have automatic exposure set, but it reacts very slowly and sometimes not at all (but with cheese it works fine). I'm taking timelapse pictures with following command: ffmpeg -f video4linux2 -s ...
9 votes
3 answers
13k views

How to do screencasting (desktop recording) with high quality audio and video?

I have googled around and found all the usual solutions. None of them work for me. First of all, I want to make high quality recordings. Second, I use JACK audio (PulseAudio is completely uninstalled.)...
0 votes
0 answers
180 views

Streaming a video using FFMPEG

I am using a 1080p video and 720p video using FFMPEG but the clarity of the video which is streamed is not matched with resolution of the video.so how should i give the parameters like frame per sec, ...
0 votes
0 answers
2k views

Fast method for hardcoding subtitles to MP4/MKV

Until now I have tried 4-5 methods to hardcoding subtitles to mp4/mkv videos. ffmpeg - too slow mkvmerge - not sure thats hardcoding, because on TV subtitles are missing mkvtoolnix - program is ...
5 votes
1 answer
3k views

take picture with ffmpeg but wait for focus

I'm trying to take a picture from the terminal using ffmpeg with command: ffmpeg -f video4linux2 -s 4208x3120 -i /dev/video1 -qscale:v 2 -frames 1 -ss 00:00:20 out.png However it seems to ignore the ...
1 vote
1 answer
300 views

WinFF: How to produce 'free' ogv files under Xenial?

FFmpeg produces great ogv files under Xenial: Free codecs: How to use FFmpeg to convert my mp4s to ogv under Xenial? But I would like to use the gui WinFF to produce these files, and WinFF has no ...
4 votes
1 answer
25k views

How can l use ffmpeg to extract frames with a certain fps and scaling

I would like to extract frames at fps=25 and the frames are rescaled to 320x240. What I have tried: ffmpeg -i video.avi -vf scale="320x240" fps=25 frames/c01_%04d.jpeg It returns fps=25: Invalid ...
8 votes
1 answer
19k views

What is the easiest way to add watermark to a video?

It can be image watermark or text watermark. I would prefer text watermark though. I am unable to find a good solution to the above problem. Kindly help me. Video format will be mostly a MP4 H.264 ...
21 votes
1 answer
41k views

How can I use the ffmpeg command to reverse video?

I am trying to use FFmpeg library in Android to reverse video. I can dump images from videos, but how can I reverse all images and make a new video? I am using a library from here in my gradle. ...
0 votes
0 answers
67 views

A specific file is repeatedly hanging Ubuntu 18 during transfer

The file is an .MTS format video stream file. And I'm trying to transfer it between 2 connected external drives. (one an internal in an enclosure) The problem first became apparent when I noticed ...
3 votes
1 answer
475 views

How to cut up a video into uniform parts using a command line tool

I want to use a command line tool to cut up a video according to a specific interval, say 1 second. If I have a 60 second video, I expect it to be split up into 60 uniform parts. My only other ...
1 vote
0 answers
709 views

HTML5 embedded videos not working after upgrade to 19.04

I am not really sure what is going on. I am doing some web development, and when I embed any videos or go to a "browser supported video type tester" site this is all I get. I didnt have this issue ...
2 votes
1 answer
14k views

convert all the png files in a folder to video

I have ~450 frames named 1...450. However, there are some missing frames for example frame 10, 30, and so on do not exists. I want to create an AVI video in the same order as 1...450.png. How should ...
3 votes
1 answer
2k views

ffmpeg build works different on ubuntu 18.04.2 and macOS

I tested a ffmpeg command to generate thumbnail ffmpeg -y -ss 0 -to 10 -i acb.mp4 -qscale:v 2 -frames:v 1 abc.jpeg on macOS and it worked fine , whereas it gave error for the same command on ubuntu 18....
38 votes
3 answers
65k views

Batch convert H.265 mkv to H.264 with ffmpeg to make files compatible for re-encoding

I have H.265 encoded files that are so resource intensive they don't play well and my conversion software (mencoder) doesn't (currently) support the H.265 format. Can I convert them to H.264 in a ...
3 votes
1 answer
3k views

Fix audio delay of -0,5 seconds in movie

I can edit my movie in some video editor and perfectly match audio with video, but in that case I would have to re-encode the entire video which would be time consuming. Code like: ffmpeg -i my_movie....
1 vote
2 answers
7k views

Find process id by command used by the process and kill it

So sometimes ffmpeg hangs and i need to look into system monitor and the command used by it to find the specific process and kill it. Is there an easier way / bash script to just say ./scipt blabla ...
2 votes
1 answer
321 views

Use bash and ffmpeg in 18.04 to concatenate multiple 3GP files to one 3GP file, matching by date YYYYMMDD in filename

I have these example files in an Ubuntu 18.04 system: VID_20190407_160033.3gp VID_20190407_161444.3gp VID_20190407_161609.3gp VID_20190415_183315.3gp VID_20190415_183411.3gp ...
2 votes
1 answer
4k views

SNAP package FFMPEG can't access any file (access denied). How can i fix that?

I've installed FFMPEG SNAP package (from Snapcrafters). But it can't see/access any file in my home directory. It always returns "filexyz.mp4: Permission denied" error . Doesn't not matter when I ...
1 vote
1 answer
205 views

ffmpeg spacial cropping troubleshooting

Updates: Successful: relocated -strict -2 ffmpeg -i Dwell-2019-09-19_13.23.14.mp4 -filter:v "crop=1366:556:1:212" -strict -2 Dwell_out.mp4 Unsuccesful: '-strict -2' did not make a difference. ...

1
6 7
8
9 10
18