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

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
19 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
40 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
57 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
31 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 ...
0
votes
1answer
37 views

Clipped video using ffmpeg is shorter than expected

I'm trying to get a clip of length 6 secs from a MP4 video (size: 1.44 GB, length: 02:23:38). But video stream stops after 1 sec, while audio stream keeps playing normally until 6 secs. I'm using ...
1
vote
2answers
28 views

ffmpeg - Skip process if output alreasy exists

I'm running a batch script to convert video file in Python but it can happen that the output file already exists, so is there an option to avoid ffmpeg asking me what to do if output already exists? I ...
2
votes
1answer
34 views

ffmpeg stream copy frame accuracy

I know this might not be possible, but I'd at least appreciate understanding what's going on. I have a video with forced keyframes every 2 seconds. Ideally, I was hoping I'd be able to get ...
0
votes
1answer
14 views

ffmpeg syntax Label not found error

I am trying to normalize the audio of a video file (mp4), but ffmpeg is throwing an error.. The command: ffmpeg -i input.mp4 -af "[0:a]compand=.3|.3:1|1:-90/-60|-60/-40|-40/-30|-20/ ...
1
vote
1answer
49 views

Unable to use unicode in outputfile name for FFMPEG transcode

I am using FFMPEG in a C# windows service to convert videos. Conversion is working fin. But when I specify the outputfile name containing unicode, transcoding fails. Is it a known issue, or is there ...
0
votes
1answer
76 views

How to cut unwanted video parts and join the rest ones into one video using FFmpeg?

I have read about cutting and splicing using concat but this is not enough for me. I would like to cut marked video parts and join into single video file without re-encoding. Is it possible to cut ...
0
votes
1answer
17 views

ffmpeg - define exact time distance for images

I have a movie that is 3 minutes long and 29 image/sec. I want to split it into images by 1/second. I use this command: ffmpeg.exe -i FILE0014.MOV -r 2 -f image2 -vcodec mjpeg -qscale 2 "%%05d.jpg" ...
0
votes
1answer
48 views

Convert video to mpg format using FFMPEG

I am using FFMPEG to convert video files to mpg format. Conversion works fine for audio content, but the output has no video content. This is the parameters I am using: ffmpeg.exe -i "" -y -s ...
0
votes
1answer
28 views

Repair missing keyframes in downloaded video stream

I downloaded a video using ffmpeg with the following characteristics: Input #0, mpegts, from 'video.ts': Duration: 00:27:59.76, start: 1.400000, bitrate: 714 kb/s Program 1 Metadata: ...
1
vote
1answer
35 views

static background and video overlay

I have a jpg: bg.jpg (300x600) and a video: video.mp4 (280x580) I want to overlay video.mp4 over bg.jpg, so that video position is 10,10 and the output video is video.mp4 minutes long. Is this ...
0
votes
1answer
44 views

Find video duration after applying slow motion

I'm trying to have apply slow motion effect to a series of videos. And further those videos will be scaled, padded and cross-faded. Following is the command I'm using to apply slow motion. ffmpeg -i ...
0
votes
0answers
76 views

maybe incorrect parameters such as bit_rate, rate, width or height

Can someone help me figure out why FFMPEG keeps failing? I am running the command in PHP using exec. The exit code is 1. command: ffmpeg -i uploads/5566963704760/IMG_1806.MOV -vf ...
0
votes
1answer
31 views

Merge audio and video using ffmpeg and retain both video and audio voice

I want to merge audio and video using ffmpeg. I use following command but it erases my audio from video. I want overlap of audio from both video and audio. ffmpeg-0 -i output312.mp4 -i abc.mp3 -c:v ...
1
vote
1answer
35 views

Join 2 mp3 files with one having lower volume than other

I have 2 mp3 files (a.mp3 and b.mp3) and I want to overlap them using ffmpeg. How to overlap them in such a way that a.mp3's volume is low and b.mp3 volume is high so that it appears that a.mp3 is ...
1
vote
1answer
42 views

ffmpeg Images to videos

Is there a way to input multiple images in ffmpeg when the images are not sequential? Something like -i image1.jpg otherimage.jpg newimage.jpg? I know how to use -i img-%3d.jpg, but this doesn't ...
0
votes
0answers
36 views

Why does delaying audio in avi makes no sense?

I have an avi video which seem to have an audio delay of about 5.5 seconds. Therefore I used avconv to correct for this delay: avconv -i myfile.avi -itsoffset 5.5 -i myfile.avi -map 0:1 -map 1:0 ...
0
votes
0answers
64 views

How to fix a .mov file in hex editor from Photo Booth crash on OS X?

I was recording a ~4GB video using Photo Booth on OS X. The program terminated for some reason (unsure of whether it was computer sleep or something else). I have a corrupted file of about 4GB in ...
1
vote
1answer
62 views

Upscaling video with different filter on each side

I need scale up video from one DOS game using FFmpeg. But with Nearest-neighbor interpolation on left side and xBR filter on the other one. Input (320x200) Output (1280x800) Here is a command, ...
0
votes
0answers
22 views

ffmpeg, how to add new audio (mixing) in video [duplicate]

I want to add an audio file in video. The resultant video contain both the audios, first contain by video it self and second from audio file. Basically mix both the audios. Final video have two ...
0
votes
1answer
48 views

Muxing Audio Over Video Using Ffmpeg

So i have been through lots of tests and i still cannot seem to get audio to mux over video using ffmpeg and cannot figure where i am going wrong so would really appreciate some help. I have this ...
0
votes
1answer
30 views

ffmpeg - images from video at different sections and incrementally numbered

I am using ffmpeg to extract still images from a video. From a given time, for a given duration using the -ss and -t parameters. ffmpeg -ss 00:10:01 -t 2 -i /Volumes/OO_8/VideoSource.mkv -qscale:v 2 ...
1
vote
0answers
27 views

How to use ffmpeg frei0r filter with mixer2 plugins

I'm using frei0r-20121203-git-f4bac51-filters-win64.7z and zeranoe ffmpeg, then set PATH. twolay0r plugin is fine, but value plugin is error. set FREI0R_PATH=frei0r-20121203-git-f4bac51-filters-win64 ...
0
votes
1answer
21 views

ffmpeg “-bug” parameter explanation

I found "-bug" parameter for ffmpeg in one of encoding scripts, and have no idea what it is. ffmpeg man page says that it's action for not autodetected encoder bugs, but I can't find any information ...
0
votes
0answers
73 views

how to maintain the pixel clarity using ffmpeg to resize .gif to .gif format [duplicate]

I want to reduce the resolution of the .gif file but I need the clarity to be maintained with the same .gif format. Here is the ffmpeg image resize command which I used. ffmpeg -i input.gif -y -s ...
0
votes
0answers
33 views

Pipe remote jpg webcam image to ffmpeg as video

I have a cheap ip webcam. All it provides is a single http url to a static jpg file. Such as http:///image.jpg. Repeatedly requesting the same url will provide subsequent frames from the ip camera. ...
0
votes
1answer
63 views

Force ffmpeg to use 100% of CPU

I'm using ffmpeg to extract frames from video, but the process is so slow. Looking at CPU usage I see that ffmpeg use only 50% of my CPU. I've tried also to add -threads 4, but it seems it doesn't ...
0
votes
0answers
17 views

How can I batch convert all of my video files to AAC audio without converting the video?

I've used XMedia Recode to do this and it works great. I set video to "copy", audio to "convert", and it takes 2 minutes for a 2GB file. There's two problems with it for batch work though. It doesn't ...
1
vote
1answer
46 views

ffmpeg mapping help, encode 1 6ch audio into multi-tracks

I have 2 input files: cover.jpg audio.dts (6 channel) My target file will be a mp4 with 1 video and 3 audio: audio 1 is 2 channel aac audio 2 is 6 channel ac3 audio 3 is 6 channel dts Here is ...
3
votes
1answer
80 views

FFMPEG filter to boxblur and greyscale a video using alpha mask

Can someone show me how to enhance the example found here: FFmpeg - Apply blur over face To do the following: Use an input alpha mask PNG instead of a declared rectangular region both blur and ...
0
votes
0answers
74 views

Getting an mp4 to play on iOS Safari with ffmpeg

I have a script that cuts and splices some video from youtube with ffmpeg to make an mpeg thumbnail. The final result is an mp4 that runs fine with the HTML <video> tag on Mac OSX Safari, ...
1
vote
2answers
49 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 ...
1
vote
1answer
183 views

FFmpeg - PNG / JPG - Invalid data found when processing input

I am trying to add a watermark to a video with FFmpeg. I have a custom build of FFmpeg that I am creating with a view to keep the binary size down. I seem to have excluded the ability for FFmpeg to ...
0
votes
0answers
78 views

FFMPEG conversion error “unable to find a suitable output format for 'pipe:' pipe::”

ffmpeg -i input.wmv -ab 128k -ac 2 -ar 44100 -b:v 900k -r 29.97 -s 640x480 output.wmv Hi, I am trying simple ffmpeg transcoding and I am getting an error in my code above. The error I am getting is ...
1
vote
0answers
774 views

container format requires global headers

Using this file: youtube-dl --youtube-skip-dash-manifest --format m4a --output alpha.m4a 19GFDljxrY0 If I run this FFmpeg command: ffmpeg -i alpha.m4a -c copy bravo.m4a I get this message: ...
0
votes
1answer
45 views

Skip parts of video while converting it to images with ffmpeg

I use this command on ffmpeg to convert a video into images: ffmpeg -i video.mp4 -q:v 1 -r 1 -f image2 frame-03d%.jpg What I want to do is to skip the first x seconds and the last y seconds of the ...
1
vote
1answer
81 views

Problems with joining videos in FFmpeg with a cross-fade effect (buffer queue overflow, frames dropped)

I can successfully join a couple of videos into one (using this method) with a nice cross-fade effect in between, but the output video contains no audio. I'm using the -filter_complex command. I've ...
1
vote
1answer
64 views

ffmpeg mp4 audio trim

My mp4 is h264+aac I want to use ffmpeg.exe to add a background music to it , this musci is shorter than the mp4,thus the music should loop I have tried ffmpeg -i test.mp4 -i background.m4a ...
1
vote
1answer
57 views

How to merge two 4 channel audio into a single 2 channel output

I'm trying to merge these two WAVs (L.wav and R.wav) into a single, dual-channel stereo OGG. This is what I'm trying: ffmpeg -i L.wav -i R.wav -c:a libvorbis -q:a 5 \ -filter_complex ...
0
votes
1answer
54 views

FFmpeg – Keep original video orientation

I'm converting 3gp video to mp4 format and that is working. But I have one issue: original video orientation is not kept. I know about rotate, flip and other commands, but I'm converting video ...
0
votes
0answers
74 views

FFmpeg - Transcode video and keep original EXIF metadata in the transcoded file?

I am trying to transcode a video from a .mov (recorded with the iPhone) and add the original metadata (EXIF) to transcoded file, how can I achieve that? The original video contains EXIF metadata, etc. ...
0
votes
0answers
88 views

MP4 file ignores subtitle settings in VLC

When playing an MKV movie (h264/aac) with a separate .SRT file, VLC lets me control the looks of subtitles perfectly from the menu. However, after losslessly converting the MKV/SRT to MP4 with ...
-2
votes
1answer
86 views

Analyzing h264 100GB video stream

I have a big file, an h264 stream video of a CCTV. I analyze this file with ffprobe and the result is this: [h264 @ 0000000002d24480] no frame! [h264 @ 0000000002d24480] non-existing PPS 0 referenced ...
1
vote
1answer
45 views

Segmenting video to X seconds parts with ffmpeg

I have one video with duration of one minute and 35 seconds. I am able to split it into multiple 30 second segments (I am fully aware of other ways to split a video but chose this for a particular ...
0
votes
1answer
101 views

ffmpeg changes audio bitrate when transcoding from MKV to FLV

I have one file - sample.mkv ========================================================= File: sample.mkv Width: 854 pixels Height: 480 pixels Aspect ...