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
1answer
10 views

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

ffmpeg -i input.mp3 -loop 1 -i image.png -c:a copy -c:v libx264 -shortest output.mp4 This takes the mp3 and attaches an image to it, and converts it to an mp4. I need to do this for all the mp3s in ...
0
votes
1answer
20 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
1answer
14 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 ...
2
votes
0answers
17 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 ...
0
votes
3answers
20 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 ...
0
votes
1answer
17 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
22 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
0answers
25 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 ...
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
36 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 ...
3
votes
1answer
42 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
21 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 ...
0
votes
1answer
67 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 ...
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
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 ...
1
vote
1answer
58 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 ...
0
votes
0answers
19 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 ...
1
vote
1answer
50 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
0answers
29 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 ...
0
votes
1answer
66 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.
0
votes
2answers
56 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
0answers
29 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, ...
2
votes
1answer
86 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
1answer
21 views

FFMPEG no audio in final output

I have the following FFMPEG command working. ffmpeg -y -i slide.mp4 -f lavfi -i "color=c=black:s=1920x1080:r=25:d=1" -filter_complex "[0:v] setpts=PTS-STARTPTS [main]; \ [1:v] ...
0
votes
2answers
41 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
57 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] ...
0
votes
1answer
26 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 ...
1
vote
1answer
26 views

FFmpeg performs every second task

Why does ffmpeg perform every second task that it is ordered to? for i in *.MTS; do echo ffmpeg -i \"$i\" -c:a copy -c:v copy \"$i\" | sed 's/MTS/mp4/2' done | sh For example. if I have 9 MTS ...
0
votes
1answer
47 views

Scale video then apply image frame using ffmpeg

I have an image frame 1920x1080 and a video with the same resolution. I want to resize video by 80% of its resolution and center it, and then overlay it with image frame. So the final video result is ...
0
votes
2answers
98 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
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
1answer
36 views

ffmpeg for Mac “no such file or directory” (when file exists)

I'm using OSX 10.10.1 and I'm trying to concatenate .mp4 files with the ffmpeg demuxer. Below is what I enter and the error I get. Please help! I'm not a programmer but I had the demuxer working on my ...
1
vote
3answers
115 views

ffmpeg command not found but its installed on server

I was trying to update ffmpeg, after searching a lot on this topic i decided to uninstall the old one and install new version of ffmpeg i-e; ffmpeg 2.6.3 i installed new version using this link but i ...
0
votes
0answers
26 views

FFmpeg - Unrecognized option 'map [outv]' [migrated]

I am merging some video files with FFmpeg and having an issue with my custom build. I'm using the following Java code for wrapping the ffmpeg command: List<String> cmds = new ...
0
votes
1answer
17 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 ...
0
votes
0answers
20 views

convert ogv to webm using ffmpeg and point ffmpeg to new installed version

I was facing problem in converting files from one format to another, so I put the question on stackoverflow, some people suggested me to recompile ffmpeg my ffmpeg version was 0.10.0 so they suggest ...
1
vote
1answer
24 views

ffmpeg upgrade or reinstalling on CentOS

I am trying to upgrade ffmpeg installed on my linux server following this link: https://trac.ffmpeg.org/wiki/CompilationGuide/Centos It's not working. Sometimes it gives error "Host is not ...
2
votes
0answers
22 views

Crop video with FFMPEG based on data from tracking algorithm

I have tracked a moving object in a video file using OpenTLD. This generated a file with the coordinates of the object's bounding box for each frame. Now I would like to use ffmpeg to crop the video ...
0
votes
0answers
26 views

ffmpeg + libx264: use preset

I'm trying to encode raw movie using ffmpeg with libx264. I use the following command: ffmpeg -y -f rawvideo -s '3840x2160' -r 23.98 -i <my source> -pass 1 -x264-params ...
0
votes
0answers
30 views

Add a transparent black overlay using ffmpeg

I have a background.mp4 video file that I'm using as the motion background on my website. However, the video is too bright and my site's text isn't easily readable. How can I overlay a translucent ...
2
votes
1answer
17 views

Does ffmpeg support setting the description tag on a per-stream basis?

I'm attempting to set a description tag for each of two audio streams within an mp4 file. I'm using a command line similar to this (I've simplified): ffmpeg -i old_movie.mp4 -map 0:0 -c:v copy -map ...
1
vote
0answers
23 views

avconv huge output file size

I am trying to rotate some mp4 videos (shot with an Android smartphone) 90 degrees clockwise. I have been using variations of the following command: avconv -i 20150604_192846.mp4 -c:v libx264 -preset ...
1
vote
1answer
18 views

Merging two audio streams from within a Transport Stream in ffmpeg

I have an M2TS file which consists of the following: Stream #0:0[0xc9]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, ...
0
votes
1answer
38 views

ffmpeg no cutting accurately

I have a Python script that shows the chapters of an M4V video and gives the user the option to extract this chapters. The problem is that ffmpeg is not cutting accurately. It cuts a little before ...
0
votes
1answer
38 views

ffmpeg how to convert stereo to mono using audio pan filter

From the documentation, it looks like this should work: ffmpeg -i input.mp4 -af "pan=1c|c0=.5*c0+.5*c1" output.mp4 The output is a video with no sound. When I do ffprobe, it says theres a audio ...
1
vote
1answer
54 views

Why are h264/ac3/mkv videos showing up as “motion jpeg” with ffmpeg?

I use xmedia recode, which uses ffmpeg, to convert these videos using "copy" video and "convert" ac3 -> aac, with an mp4 container. For most videos this works fine, and is really fast. However some ...
1
vote
0answers
30 views

Splitting audio out with ffmpeg, recombining with video, inserts black frames at beginning

I am using ffmpeg to split out the audio from a video file, converting it to a wav, and then recombining it with the video. When I do this, the new video has black frames at the very beginning. Here ...