Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.

learn more… | top users | synonyms

0
votes
0answers
2 views

Merging four videos with different resolution in a Grid with ffmpeg

I want to marge four videos in to one as show below. I have achieve the correct output given all the videos have the same resolution. But I get an undesirable result with different resolution. See ...
0
votes
3answers
950 views

Converting my DVD files to a single, smaller file with good quality

I want to start digitizing my DVD collection, and I have used AnyDVD and CloneDVD to rip my DVD's contents to my disk. At the moment all the films look like this on my hard drive: All I know at ...
3
votes
1answer
36 views

Concatenating multiple 24-bit 96 kHz wav audio files using ffmpeg, shntool, and sox

I am trying to concatenate 15 wav audio files, recorded as 24-bit, 96kHz, linear PCM. I have run experiments with ffmpeg, shntool, and sox, with differing results. The files were created by a Zoom ...
1
vote
2answers
2k views

Is it possible to autocrop black borders of a video with ffmpeg?

I think it has a "blackness" video filter, which can determine if a picture sequence is black. Maybe it also has a filter to determine crop values automatically to remove black borders form edges of a ...
0
votes
1answer
25 views

Setting the profile level for libx265 using ffmpeg

I'm trying to set the profile level of libx265 to mainstillpicture using ffmpeg. But I can't seem to do so. I'm basically trying to encode every frame as intra frame (only spatial encoding) with no ...
1
vote
2answers
25 views

Why does ffmpeg never end when invoking color in a filter_complex?

I am trying to add a simple color overlay to an existing video, following one of the examples at http://www.ffmpeg.org/ffmpeg-filters.html#Examples-55 (see the example Add a transparent color layer on ...
0
votes
2answers
21 views

How do I convert multiple mp3 files to mp4 with ffmpeg?

The following command takes the mp3, attaches an image to it, and converts it to an mp4: ffmpeg -i input.mp3 -loop 1 -i image.png -c:a copy -c:v libx264 -shortest output.mp4 I need to do this for ...
0
votes
2answers
47 views

ffmpeg: significant lag and poor audio sync when combining audio and video

I am trying to combining audio and video for streaming from a Raspberry Pi. The audio leads the video by a few seconds, whether I stream the output or write it to a file. Command line: raspivid -o - ...
1
vote
1answer
17 views

Cut video freezes for first 8 seconds

I tried cutting my video using ffmpeg with this command: ffmpeg -i source.mkv -ss 01:02:37.754 -map_chapters -1 -c:v copy -c:a copy -t 00:04:52.292 output.mkv The only problem is the final video ...
0
votes
1answer
25 views

Joining 2 videos using ffmpeg

My command is: ffmpeg -y -i 2.mp4 -i 2.mp4 -filter_complex '[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]' -map '[v]' -map '[a]' output.mp4 the result is: ffmpeg version N-50911-g9efcfbe ...
0
votes
3answers
24 views

Rotate a video with ffmpeg is slow

I am using ffmpeg for rotating a video 90 degree so input this code ffmpeg -i in.mp4 -vf "transcode=1" out.mp4 This is so slow like re-encoding. I added -c copy to make it fast but I have had an ...
5
votes
1answer
969 views

How to generate a sine wave with ffmpeg?

I would like to generate an audio file with a sine (sinusoid) wave with FFmpeg. I know there is a sine filter but that's as far as it goes. I tried: fmpeg -filter "sine=48:1:5" -c:a pcms16le test ...
0
votes
1answer
19 views

ffmpeg recompile video and voice

I am using Ubuntu vivid on my laptop and I want to recompile audio and voice with delayed audio. Movie was late comparing to audio. I demuxed voice.aac and video.h264 from orginal video. I know that ...
1
vote
1answer
23 views

How can I scale an overlay within an ffmpeg filtercomplex?

I would like to apply a PNG overlay (watermark) to an arbitrary video file using ffmpeg. I would like the video to stay its original size (which I don't know ahead of time), and the PNG to be scaled ...
0
votes
1answer
94 views

ffmpeg filter_complex concat does not include audio

I've managed to put together an ffmpeg filter complex which: Scales an FBI warning (fbi.mp4) to the size ($w:$h) of a training video (train.mp4). Pads the FBI warning so it's centered. Concats the ...
0
votes
0answers
29 views

Have PhotoRec and Testdisk recover “.ts” file

I am using testdisk for a long time. But previously I never had .ts but now I have. So I deleted a .ts file which is not important file. After that I tried to recover any other file via testdisk ...
0
votes
1answer
48 views

FFmpeg editing video on the fly

I am trying to make loop video on Android tablet which has ubuntu 15.04 installed in chroot. There are ffmpeg and all Linux tools are available. The problem that I have very limited space and ffmpeg ...
3
votes
3answers
11k views

ffmpeg to capture stills from H.264 stream

I'm trying to capture still images from an H.264 wireless IP camera using ffmpeg. I found a similar question here: How can I extract a good quality JPEG image from an H264 video file with ffmpeg? ...
0
votes
1answer
73 views

Specifying parameters to create videos for ffmpeg's concat demuxer (to avoid a large re-encode)

ffmpeg can be used to concatenate files together: If you have media files with exactly the same codec and codec parameters you can concatenate them [...] (emphasis mine) My intention1 is to ...
19
votes
1answer
27k views

How to resize a video to make it smaller with FFmpeg

Is it possible to resize my videos to make them smaller with FFmpeg? I have an original video dimensions of 1024x576, now I want to resize the video to 720x480 to meet the requirement. How can I do ...
0
votes
1answer
28 views

ffmpeg live stream show image

Is there a way in ffmpeg to show a looped video or image if an incoming udp:// stream is not active? Pretty much like having a player show a wait for braodcast to start image/video until the live ...
3
votes
1answer
46 views

FFMPEG mkv to mp4 conversion loses subtitles

Currently trying to convert my mkv library to mp4 (Iphone 6 plus) I've managed to get to mkv to mp4 conversion correctly, but I'm missing the subtitles part (SRT) Here's my code: dir/b/s *.mkv ...
0
votes
1answer
2k views

Media Player Classic Home Cinema stops on MKV

Media Player Classic Home Cinema stops on MKV. It goes to "stop" mode after file open. Unable to run playing. No error messages generated. MPC-HC version: 1.6.7.7114 (9eb64ec) 64 bit Compiler ...
1
vote
1answer
38 views

FFmpeg quality setting for subtitle

This is a general question, but is such thing exist? I burned .ass full-styled subtitle to a .mp4 video, the quality of burned subtitle is reduced in the output video, ex: the border of the text is ...
0
votes
2answers
38 views

Getting the smallest video with same quality, how to with FFMPEG?

I know its a "lame" question, but: lets say, I have a wmv, avi, etc BIG file. I want to convert it to .MP4, with the possible smallest file size, and of course with the same quality with audio/video. ...
1
vote
1answer
55 views

H.264 decoding error log from RTSP stream

I am getting the following H264 error log. This log comes while decoding an RTSP video stream with help of FFMPEG. The picture displayed is blurred after 5/6 seconds. The picture would recover it from ...
0
votes
1answer
23 views

Php ffmpeg exec

with code $a = exec('"ffmpeg" -y -i "test.mp4" -ab 128k -s 640x480 -vcodec mpeg4 -acodec:a copy "output.mp4" 2>&1 ', $output, $error); Input file was 82.21mb output file was 13.74mb ...
1
vote
1answer
40 views

ffmpeg : split a video using silencedetect?

I need to know if ffmpeg is able to split video in several parts using silencedetect? I saw silencedetect used on mp3s to remove silences, but never on a video like blackdetect is.
0
votes
2answers
49 views

FFmpeg - Concenating audio files with spacing

edit3: please look image: http://i.stack.imgur.com/XdZ9G.png Each audio clip has same codec/sample_rate, but has different duration and each space is also different. There is always space between ...
1
vote
1answer
59 views

How to efficiently and automatedly join video clips using short transitions?

I am looking to join a set of video clips (with audio) using some short transitions (ideally crossfade) in a straightforward, automated and efficient way. IE: ClipA ---> ClipB --> ClipC ...
1
vote
0answers
18 views

FFmpeg - adding offset to an audio channel without reencoding

I have a stereo audio in opus format. How do i add offset to only left channel? Is there a way to do this without adding silence(reencoding) to left channel? input: [right ...
0
votes
0answers
24 views

streaming to rtmp using avconv or ffmpeg

I have an IP webcam HiSilicon Hi3516C that I can successfully access from a raspberry pi. I can get still images by using a command like this: avconv -i "rtsp://192.168.1.10:554" myfile.jpg now ...
19
votes
6answers
38k views

How to merge audio and video file in ffmpeg

I want to merge an audio file (.wav or .au format) with a video file (.mp4 format). Please suggest me how to achieve this. I want to merge these file to new .mp4 video file. An ffmpeg command would ...
1
vote
2answers
48 views

ffmpeg wants to overwrite existing images

I want to make a timelapse movie with ffmpeg. For now I use mencoder with following command: mencoder mf://*.jpg -mf fps=12 -nosound -noskip -ovc copy -o Zeitraffer$begin.avi I'm trying to make a ...
0
votes
0answers
30 views

FLV .h264 video timestamp from mkv

I write my own converter from MKV (h264 video, linear 16 bit little endian PCM audio) -> FLV (with samke codecs for audio and video). I have some trouble with video timestamp. From MKV format ...
0
votes
1answer
19 views

Efficient re-encoding of MPEG-2 cartoon animation

I have some cartoon animation stored in MPEG-2 video that I would like to convert to MPEG-4/h264. The MPEG-2 video compression is rather bad, with both "small" JPEG artefacts around details in the ...
23
votes
5answers
23k views

How to flip a video 180° (vertical/upside down) with FFmpeg?

I have a video that was recorded upside down. Is it possible to correct this with FFmpeg?
0
votes
0answers
30 views

FFmpeg: Is there a method for displaying multiple live video sources in real time without lag/latency?

I'm playing around with a script that would take three live video inputs -- one instance of X11grab and two webcams -- and output them to separate XV windows: One output for each camera at 1280x720, ...
3
votes
1answer
3k views

How do I merge a folder of PNG images to a mp4 movie using avconv?

I have a folder containing many time stamped PNG images which I'd like to merge to a short movie. The contents of that directory looks like this: └── images ├── img_20130421_115547.png ├── ...
0
votes
1answer
68 views

FFMPEG auto installer with latest version

I found this software which compiles FFMPEG with the older version. Is there something like it with the latest version of FFMPEG. Or how how can i update the FFMPEG after this auto install.
1
vote
1answer
60 views

FFmpeg eq filter complex: Contrast

I am playing with the eq filter in FFmpeg: https://ffmpeg.org/ffmpeg-filters.html#eq Using a command like: ffmpeg -y -loop 1 -i input.jpg -filter_complex "[0:v]eq=1:0:1:1:1:1:1:1[outv]" -map [outv] ...
2
votes
1answer
88 views

Concatenate videos with/without audio stream

I have multiple videos in folder, but when first of all hasn't audio stream, audio disappear in concatenated video. Concatenated video is correct if first video has audio stream. How can I concatenate ...
0
votes
2answers
3k views

HTML5 video player stutters even after video is loaded

I am using jwplayer to display videos on my websites but cannot manage to make them running smoothly. They stutter, especially in full screen, although I wait for the video to fully load. I tried ...
0
votes
1answer
2k views

ffmpeg fastest way to convert videos avi to mp4

I have server which has: 8x3,4 (sandy bridge cpu) 10gb ram i tried different combinations to convert vvideos i mean avi to mp4 but it takes so long: - ~20mins=~200mb maybe there is some ffmpeg ...
0
votes
1answer
41 views

Embed AMF metadata into MP4 with ffmpeg

Is it possible to manually embed timed text metadata into MP4 files? I have a TTML / SRT file with the metadata. I just need to embed the text data without doing anything to the video/audio tracks. ...
0
votes
2answers
59 views

How to set output of FFmpeg to output of a video card instead of a file? Is this possible?

I have an UltraStudio-SDI video card and I can capture with this command : ffmpeg -f dshow -video_size 720x576 -framerate 60 -i video="Decklink Video Capture":audio="Decklink Audio Capture" -r 30 ...
0
votes
2answers
102 views

FFmpeg: Applying effects to a video

I'm trying to apply some effects to a video by adjusting colour, contrast, brightness, etc. Here are some of the effects I was trying. And following is the command I used to apply the "Kelvin" effect. ...
0
votes
1answer
18 views

ffmpeg stops streaming if one input stops

I am trying to create a mpeg-ts stream where video is a screengrab from Xvfb and audio is from internet radio (mp3 or aac stream). It works reasonably well, but if there is a problem with the internet ...
10
votes
4answers
16k views

How to strip audio streams from an MKV file?

I've been trying to remove unneeded audio streams from an MKV (Matroska) file. The reason why I want to do this is to avoid having to manually select the wanted stream in Windows Media Player. The ...
0
votes
0answers
151 views

Prevent ffmpg from concealing errors during conversion

I'm experimenting with using Audacity to create glitch videos (datamosh and databend are synonyms). So, I create an AVI, pull it into Audacity as raw data, manipulate the stream, and the save it back ...