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

0
votes
1answer
19 views

Adding many sounds to a video file at specific frames

I have a video of a TAS I've created that unfortunately does not contain sound. I would like to add sound to the video before releasing it, but I obviously don't want to have to go through and place ...
1
vote
0answers
13 views

Real time ffmpeg / x264 encoder behavior when input resolution suddenly changes

I want to take a live HD-SDI signal being captured by a capture card and encode it in real time to X.264. What happens when the input resolution suddenly changes? eg, from HD SDI 1080/50i to HD SDI ...
1
vote
1answer
37 views

Is ffmpeg the solution to automate video building from multiple files

Need some help automating video & audio stitching and could use some help/direction. Let's say I have the following assets: Video 1 Video 2 Video 3 Music 1 And I want to build a few variations ...
1
vote
1answer
61 views

ffmpeg drawtext text parameter expressions

I am trying to write text on a video in such a way that the text "writes itself" - letter by letter. To do this I was able to do something like this: -vf ...
2
votes
0answers
25 views

ffmpeg h264 crashes IE intermittently

First for moderators, this is relevant because I have incorporated ffmpeg in a program to render videos needed for a web-app. My problem is that the videos I render randomly crash IE 11. Other ...
0
votes
0answers
4 views

FFmpeg on android with libX264 and libfreetype [migrated]

I previously had a ffmpeg build with just the x264 library and now I have re-complied ffmpeg with x264 and libfreetype. I used the guardian project and used the following script #!/bin/bash . ...
0
votes
1answer
18 views

Loss of quality while adding subtitle via FFmpeg

After solving on problem I cam coming to a next one. After adding subtitles, discussed here, with the command: ffmpeg -i grdedFinal.mov -vf subtitles=portSbs.srt gradedFinalwithSubs.mov the quality ...
0
votes
0answers
10 views

Is it possible to remove “ghosted” frames from video using ffmpeg? (or other cross-platform CLI tools)

I have some videos which were butchered by evil processing, resulting in spurious extra frames which are simply neighbor frames blended together (plus some random difference from compression ...
1
vote
1answer
37 views

Unable to hardcode subtitles in FFmpeg on Mac to mov

I would like to hardcode subtitles using FFmpeg, I'm trying to do this using the following command: ffmpeg -i grdedFinal.mov -vf subtitles=portSbs.srt gradedFinalwithSubs.mov which returns the ...
0
votes
1answer
30 views

Are “mp2v” and “mpgv” valid MPEG-2 codec tags in an MOV?

This question is related to What is the correct MPEG-2 FourCC? and to an open discussion currently on the ffmpeg-user mailing list: I am wondering if I should file a bug report about the MOV ...
0
votes
1answer
30 views

Add transparent background to ffmpeg with text over it

How to correctly add expression to transparent background like on this question ffmpeg drawtext filter - create transparent background with text for my case (where there are 3 lines in bottom right ...
0
votes
1answer
50 views

Output format and quality to be same as input

Have many videos different videos of different format and quality in which i need to add small amount of text. What command should i use to get same file format/quality for output as it was for input ...
0
votes
1answer
32 views

Scroll text left to right and back

I am using this line which works fine for showing text in 3 lines starting at 0.3sec, ending at 0.6 sec. in bottom left corner. I would like to add scroll in and scroll out effect in ffmpeg. Both in ...
1
vote
1answer
32 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
2
votes
2answers
48 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
29 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
47 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 ...
0
votes
0answers
22 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
31 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
37 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 ...
0
votes
0answers
55 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
80 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
51 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
42 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
41 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
15 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 ...
0
votes
0answers
31 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
42 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
23 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. ...
2
votes
1answer
178 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
1answer
60 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
45 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
17 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
19 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
41 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
61 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
33 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
59 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
49 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
22 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. ...
2
votes
1answer
386 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
72 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
29 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
43 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
2answers
203 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
32 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
20 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
188 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
65 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: ...
0
votes
1answer
57 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 ...