FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line ...

learn more… | top users | synonyms

1
vote
1answer
131 views

Concate two video file with fade effect with ffmpeg in linux

is there anyway to concate two video file with fade effect with ffmpeg in linux? something like this: ffmpeg -f concat -i input.txt -c copy "--with:fade:out-in" output.ogg
3
votes
2answers
106 views

ffmpeg Multiple Audio Language and Soft- Subtitle

I'm trying to convert a movie, using ffmpeg, from Movie.mkv to Movie.m4v. The Movie has 2 Languages and 1 subtitle stream. Using ffmpeg -i inputMovie.mkv outputmovie.m4v the result is just one ...
0
votes
1answer
113 views

How to set double fps for tbc option of video

I need to set tbc option for output video. For example, input video has 25 fps with 50 tbc and my encoded video has 25fps with 25 tbc. I used settb and video_track_timescale but these options did not ...
1
vote
3answers
57 views

Fast way to add titles to music videos

I have lots (1000+) music videos ready to be aired but without usual titles (artists, album, publisher). I need fastest way to add (bulk?) titles to all of them. Graphics or simple text will be same ...
1
vote
0answers
60 views

ffmpeg drawtext filter problem with eif option

I want a countdown timer in my video in hours minute second format. I tried "drawtext" filter using eif option but it only provides me with countdown timer in seconds. I want complete H:M:S format. ...
1
vote
2answers
44 views

Do media containers contain multiple audio channels in separate streams?

The title is self-explanatory. If a media container file (like MPG) contains multiple audio channels, such as left or right channels, does it take these audios in separate streams??
1
vote
3answers
68 views

ffmpeg: final video too big

I have one image ~1MB (jpg) and a ~30 mins audio file ~7MB (m4a). What I am trying to get is a final video that lasts like the audio file (30 mins) with the same image displayed. I get that with the ...
3
votes
1answer
303 views

what graphics card features effect NVIDIA NVENC hardware encoding speed?

I have a web project I am working on that requires transcoding of multiple short video clips (6-10 seconds) uploaded by users into a web friendly H.264 format on my linux server. I have been able to ...
0
votes
1answer
544 views

Encoding videos for MPEG-DASH

I read this article on encoding for MPEG-DASH, which has helped me a little and then follow up article. My end goal is to create a batch file that can read in a directory of MP4 files, and then ...
1
vote
1answer
131 views

How to deinterlacing with ffmpeg?

I have the following VOB file: -> ffmpeg -i input.vob output: ffmpeg version N-77455-g4707497 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) ...
1
vote
1answer
70 views

ffmpeg audio to visualisation

I would like to "convert" audio to video visualisation (oscilloscope or waveform) sort of like some media players have. I read this thread on how to do so with ffmpeg: How do I turn audio into video ...
0
votes
1answer
124 views

ffmpeg streaming to rtmp and extracting image periodically

I'm using this command to receive a input stream and transcode it to a different resolution and stream it to ustream. ffmpeg -hide_banner -loglevel info -progress /tmp/ffmpeg.log -i ...
0
votes
0answers
28 views

random errors from ffprobe

I'm trying to create a multicast MPEG stream scanner (with Python if that's of any relevance) that would be able to scan a multicast network range and give me information about the streams available ...
1
vote
0answers
64 views

FFMPEG Tiff images to losseless video (H265) lags, broken output

I have 226 sequenced images (TIFF, 6.2MB each) and i would like loseless save them like video by using H265. Here is command which I used: ffmpeg -f image2 -framerate 25 -i IMG_%03d.tif -vcodec ...
3
votes
1answer
144 views

ffmpeg: pillarbox 4:3 to 16:9

I'm confusing myself over how the video filters work, particularly how they work together, I think. I have two MKVs, pulled from DVD, that are respectively 16:9 and 4:3. What I would like to do is ...
1
vote
0answers
25 views

CRF for 'visually lossless' for libx265 [duplicate]

The ffmpeg wiki page for H.264 states that: Consider 18 (CRF) to be visually lossless or nearly so: it should look the same or nearly the same as the input but it isn't technically lossless. ...
3
votes
1answer
775 views

How to limit file size with ffmpeg?

I want to encode a video, that has a length of 60 seconds, to a target or maximum size of 10 MB. There are two approaches I know of. One is explained in the FFMPEG-Wiki, and the other one I found in ...
1
vote
2answers
155 views

FFMPEG duplicates the first frame when encoding

Using ffprobe shows that both videos have the same framecount, still if I extract the frames as images the compressed one has an extra frame at the beginning (which is just the duplicated first ...
2
votes
1answer
150 views

ffmpeg trying to convert AVI to MP4 but not playing

I'm trying to convert a video file from AVI to MP4 but it doesn't seem to play, my code: exec("ffmpeg -i ".$video." -c:v libx264 -pix_fmt yuv420p -movflags faststart ".$withoutExt.".mp4") Even ...
1
vote
0answers
30 views

Why ffmpeg dcp playback behaving a different ways in mac and ubantu

I have a Mac desktop and a Linux Ubuntu setup. I have installed source code of ffmpeg with x264 and Libopenjpeg support in Linux. On the other hand I have installed homebrew version of ffmpeg with ...
0
votes
1answer
38 views

How can I create a video from an image sequence that is named with a date in the FFmpeg?

I am using FFmpeg I'd like to create an mp4 using an image sequence. But the images are not named sequentially, like 1, 2, 3, 4... Instead they are named with a time stamp in the form yyyy-mm-dd-mm. ...
0
votes
2answers
62 views

Can FFmpeg output time duration since the start of a job?

Is there a way for FFmpeg to output or log time duration since a particular job/process was started? I know that there are more or less complicated ways to display a progress bar which really seems ...
1
vote
1answer
100 views

How to add images at the end of an existing movie?

I'd like to add some images at the end of a mp4 file via ffmpeg: Any help would be greatly appreciated.
0
votes
1answer
48 views

Mac video capture / recording at a resolution larger than, and aspect ratio different to, native display

Goal: I'd like to upscale a recording from a 1680 x 1050 (16:10 aspect ratio), 2010 Macbook Pro screen to 1920 x 1080 (16:9) for 'best-try' upload to a variety of target platforms (FB, YT, Vimeo etc). ...
2
votes
1answer
120 views

Using ffmpeg with avfoundation, capture_cursor and capture_mouse_clicks options are ignored

Situation: cash-strapped ivory tower visionary and ffmpeg newbie manacled to a 2nd hand 2010 Macbook Pro concealing a 'Black Screen of Death' NVIDIA GeForce GT 330M graphics chip. With the help of ...
1
vote
1answer
85 views

Loop and mix audio on video

I want to mix audio on a video. The video already has audio stream in it. I'm adding another one. The new audio I'm adding is shorter than the video. So, I want to loop it as long as the video lasts. ...
0
votes
1answer
48 views

Accurate audio selection

How do I select the audio corresponding to a set of filter-selected videoframes? E.g. at the moment I am sampling 1 in every 100 frames of a video (running at 15fps) using the FFMpeg select filter. ...
3
votes
1answer
1k views

convert horizontal side by side to vertically stacked 3D video

I have seen this and this post explaining how to crop and stack videos using ffmpeg. My question is - is there an easy (preferably one step) way to turn a horizontally stacked video into a vertically ...
1
vote
1answer
109 views

x265: Is it possible to re-compress HEVC video without quality loss?

My situation: Transcoding 1080p bluray videos to HEVC. Audio untouched; My rig is old (pre-2012) and to speed up the process I'm using --preset ultrafast; From x265 documentation, I understand that ...
1
vote
0answers
52 views

FFMpeg encode with original codec

I know about the -c copy switch with ffmpeg, but this does not work with filters as it means "don't re-encode". But what I want is to have my output use the same stream formats as my input. So if I ...
0
votes
2answers
92 views

FFmpeg: What is an acceptable value for the q= parameter?

I'm trying out encoding video with ffmpeg using x264 on a NAS machine with a 2.4 GHz processor. This yields a terminal output that has a high number in the q= parameter: frame= 236 fps=0.2 q=29.0 ...
1
vote
3answers
615 views

Is there a way to pause and resume FFmpeg encoding?

I record a few hours of video footage every day, which I set in queue for encoding with ffmpeg. I use the veryslow preset with x265, so a single hour of video may take up to 20 hours or more to ...
1
vote
1answer
40 views

How can i do series command in ffmpeg

I have to issue a series of commands, all in the form as shown below: ffmpeg -i 1.mp4 -s 640x480 -c:a copy 2.mp4 ffmpeg -i 2.mp4 -s 640x480 -c:a copy 2_2.mp4 ffmpeg -i 3.mp4 -s 640x480 -c:a ...
0
votes
0answers
24 views

MP4 Creation for fast startup

I have transport stream source and recorded this with following ffmpeg command line. ffmpeg -y -fflags +igndts -i udp://127.0.0.1:22500 -map 0 -fflags +igndts -codec copy -bsf:a aac_adtstoasc ...
0
votes
1answer
436 views

FFmpeg/Avconv unable to copy subtitles; Unsupported codec?

I've got an mp4 file with these streams (avconv -i file.mp4 or ffmpeg -i file.mp4): Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, fltp, 125 kb/s (default) Stream #0.1(eng): Audio: ac3, 48000 Hz, ...
0
votes
2answers
99 views

ffmpeg - burning in subtitles with non-square pixels

I've got a 16:9 standard-def movie into which I need to burn some subtitles. I'm using ffmpeg -y -i input.mov -vf ass="./captions.ass" output.mov and in the subtitle.ass file I've tried PlayResX: ...
1
vote
1answer
85 views

FFmpeg cuts video?

I'm trying to add an image to the start of a video. I don't want it to overwrite the video, I asked about it and got this answer: ffmpeg -r 30 -loop 1 -t 3 -i image.jpg -i inputvideo.mxf -f lavfi -t ...
1
vote
1answer
82 views

How do i put the image behind video by using FFmpeg?

I have one video (400x300) and an image (1280x300). pls show me how can i put this image behind the video like that: i've try, but not working T-T
0
votes
2answers
116 views

How does the agate filter in FFmpeg work?

The Audio Gate filter (agate) is a new filter for ffmpeg included since 2015-09-22. I have read the documentation, but since there are no examples included, I'm trying to figure out what settings to ...
4
votes
1answer
104 views

Top and tail GoPro video based on volume

I'm thinking of using ffmpeg to automate a simple video task. I have lots of action videos that go like this, quiet/boring -> loud/exciting -> quiet/boring. Allowing for a few seconds at the start ...
1
vote
1answer
140 views

ffmpeg Cut a media preserving all streams but also all metadata, timecodes and everything else

Today I wanted to obtain a ts file cut preserving everything, so I tried with this command: ffmpeg -i "original.ts" -map 0 -c copy -t 00:30:0.0 -threads 1 "cutted.ts" The resulting file have ...
1
vote
1answer
58 views

ffmpeg encode in all-i mode h264 and h265 streams

Which params I can use to obtain a transcode all-i based? No B and P frames? I know that this is not efficient for compression purposes but this is not my case now. I guess i have to fiddle a bit ...
0
votes
0answers
79 views

ffmpeg based JAVE video conversion taking a long time

I am using ffmpeg to convert videos to mp4 format in my application I have used JAVE and Xuggler for the same. My issue is that, video conversions are taking way too much of time. For example, a 50MB ...
1
vote
0answers
209 views

best way to publish low latency video on ffmpeg

I am trying to publish a stream of live video that need to get to the client side in under 3 sec in latency. I am using vMix to capture a 720p/50 stream from a camera, that by virtual camera letting ...
1
vote
0answers
215 views

Fade in and Fade out drawtext and drawbox ffmpeg

I am using FFmpeg on andriod and the following is the configuration : ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) ...
0
votes
1answer
91 views

ffmpeg: How to convert quicktime (iPhone) video to mp4 format?

I need to convert quicktime (.mov) video file recorded by iphone, into mp4 format using ffmpeg in php. I tried several commands but it did not work for me. I tried following command that converted ...
2
votes
2answers
135 views

How is possible for YouTube and Vimeo transcode so fast?

For the bit I read YouTube and Vimeo rely on servers powered by some modified libs i guess like libavcodec and tools like ffmpeg in a serious custom build. Let's assume a transcode to h264 but the ...
0
votes
1answer
26 views

ffmpeg audio video separate files 1 command

I'm trying to get ffmpeg to output separate audio and video files in 1 command. Here are the 2 commands I have: ffmpeg -ss 04:53 -i ./07.mkv -t 3 -c:v libx264 -crf 18 -filter:v "setpts=PTS-STARTPTS, ...
2
votes
1answer
144 views

ffv1 realtime capture throws out a lot of frame dropped messages!

Can you help me to figure out what's going on here? I'm trying to capture in realtime my screen and save it losslessy via ffv1 codec. CPU usage while recording is not so much, as comparison h264 ...
1
vote
1answer
173 views

FFmpeg script to clean up and compress iPhone video recordings from university lectures

I video record my university lectures using an iPhone 6 and then export them to OS X. The files can often become up to 4 GB/hour in size. I'm looking to create or use a pre-existing solution that can ...