Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated.

learn more… | top users | synonyms

0
votes
1answer
8 views

Smart Trim an h.264 .MP4 Video file in ffmpeg

I would like to take live-captured h.264 video as an input and trim it to start in a fade up from black and end with a fade to black with as little encoding as possible. These fade in/out points may ...
0
votes
1answer
3k 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 ...
0
votes
0answers
10 views

How can I get byte-accurate ffmpeg segments?

Is there any way to use ffmpeg to accurately break audio files into smaller files of a specific file size, or pull a specific number of samples from a file? I'm working with a speech-to-text API that ...
0
votes
1answer
19 views

ffmpeg: select (-map) audio track by codec id

How can I use ffmpeg -map switch to select the audio track by its codec? Say there is a video.mkv with one video stream (0) and three audio tracks (1, 2, 3). The audio tracks have different codecs, ...
0
votes
2answers
17 views

Transcode HLS m3u8 to MP4 and include text track

Is it possible with FFMPEG to convert a m3u8 to a MP4 and keep the captions (text) track? When looking at the Apple stream, ...
0
votes
0answers
13 views

Batch ffmpeg to convert all audio to have AAC and AC3

I currently use the following command to convert files to MP4 with AC3: ffmpeg.exe -fix_sub_duration -i `"$oldfile`" -vcodec libx264 -map 0:0 -vb 1095k -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 1536k ...
0
votes
0answers
15 views

Application that automatically removes identical frames from a GIF [on hold]

I've been banging my head against the wall all day with no luck. I have a GIF animation that runs about 4mb. There are 900~ frames in the animation, each cycling through at about .04 seconds. 90% of ...
0
votes
0answers
30 views

Normalize varying audio levels in a single video

I have a script to process/encode videos. Some of the videos have varying audio levels (like 2 videos were merged and one had loud audio and other quiet audio). I want to normalize the audio in a way ...
2
votes
0answers
809 views

FFMPEG create zoompan shaky or jittery

I want to create 5 second mp4 video from 1 image. When I use below code the video is smooth. Default direction is zoom in to top left. ffmpeg -loop 1 -i prop1.jpeg -vf ...
0
votes
0answers
166 views

Trying to connect windows named pipes to ffmpeg input pipes

I have the following input options in my ffmpeg command line: -i \\\\.\\pipe\\videopipe -i \\\\.\\pipe\\audiopipe The full command is this one: ffmpeg -r 24 -pix_fmt rgba -s 1280x720 -f rawvideo ...
0
votes
0answers
23 views

FFmpeg crashes for large “-filter_complex_script” inputs

We're experiencing an issue where ffmpeg seg faults for very large "-filter_complex_script" input files (roughly 3MB). The input file consists of a very large number of drawbox filters. The same ...
1
vote
1answer
162 views

Proper DVD rip for serving via UPnP

I am a happy user of minidlna (version 1.0.24) on an old Mac Mini G4. It does work quite well in my environment. Since minidlna does not allow transcoding, I would like to rip a set of DVDs (mostly ...
0
votes
1answer
15 views

How to merge images and a music into a 30FPS video?

I have around 9000 images, which are named: X0.png, X1.png, ..., X9000.png The music is 5minutes long. And I would like to generate a 30FPS video. I know, there is a command-line tool, called ...
1
vote
1answer
5k views

How to stream MPEG video using RTP using VLC command line

I'm attempting to convert the following vlc command line which is streaming an MPEG video over UDP ( no RTP ): cvlc -vvv /vlc/attract.mpg :norm=ntsc :v4l2-width=320 :v4l2-height=240 ...
0
votes
1answer
19 views

Detect color bars ffmpeg

Is there a way to use ffmpeg (or even a linux command) to detect if the video being processed has actual content or just color bars? This is my scenario: I have a system that uses BMD to perform RTMP ...
0
votes
1answer
17 views

-ss and -itsoffset negative doesn' work FFMPEG

This is my command line: ffmpeg -r 30 -framerate 30 -f gdigrab -draw_mouse 0 -i title="Output" -f dshow -i audio="CABLE Output (VB-Audio Virtual Cable)" -ss 1 -vcodec h264 -preset superfast -pix_fmt ...
0
votes
0answers
22 views

ffmpeg - Concatenating multiple mp4 files

I am using an external script (http://trac.ffmpeg.org/wiki/Concatenate#extscript) to concatenate multiple mp4 files. This script lets you do a command like this: "./mmcat input1 input2 input3 ... ...
1
vote
0answers
29 views

Streaming audio and video to VLC with ffmpeg and ffserver

I'm trying to set up a webcam with a raspberry pi 2 that I can view from VLC media player on another computer. I followed the tutorial here to get video only working, but his other tutorial that ...
0
votes
0answers
25 views

FFmpeg script to convert all WebM files in a folder to Gif, and then delete the WebM files

I'm using FFmpeg with DirectoryMonitor, a folder watching program. When a webm is added to the folder i want to execute a script to convert all webm files in that folder to gif, and then delete those ...
44
votes
6answers
59k views

Cut part from video file from start position to end position with FFmpeg

I have a video file of 30 minutes, but I want to extract a video from 00:09:23 to 00:25:33. I can define the startposition with -ss, but I couldn't find one for the end position. Any help please?
0
votes
1answer
60 views

Standby/Offline stream image with ffmpeg/nginx RTMP

Is there a way to script NGINX RTMP to show a Offline/Standby video or static image when there is no incoming streams to rebroadcast? The idea is that when there is no incoming RTMP streams (ffmpeg, ...
0
votes
0answers
16 views

FFmpeg - Trimmed video length doesn't match the specified duration in the code

ffmpeg -ss 00:24:50.0 -i "input.mp4" -vframes 600 -map 0:0 -map 0:1 -vcodec libx264 -preset veryslow -crf 51 -c:a:0 copy "output.mp4" Alright, I just testing out some crf values and I found out that ...
0
votes
1answer
15 views

How do I transcode the audio to aac in this ffmpeg command

I usually use this command to convert my mkv to mp4 while hardcoding the subtitles (for playing on my tv) ffmpeg -i old_video.mkv -vf subtitles=old_video.mkv -acodec copy new_video.mp4 There is one ...
1
vote
1answer
2k views

Create video with 5 images with fadeIn/out effect in ffmpeg

With 5 images I have to create a video of 60 seconds in ffmpeg, each image has to display for 15 seconds. after 15 seconds, first image has to fade out and 2nd image has to fade in, after that 2nd ...
0
votes
0answers
9 views

FFAStrans walkthrough to transcode webm to gif

I would like to use the watch folder features to detect when a webm file is downloaded, and convert it to gif. I'm a bit lost with the UI though. Thanks for reading and help mucho grande appreciated.
0
votes
0answers
11 views

ffmpeg on Intel Edison cannot find pkg-config

I've had a surprisingly difficult time finding documentation for what I'm seeing. I'm cross-compiling ffmpeg for the Intel Edison using the poky linux sdk. I've set up an upper level makefile to do ...
0
votes
1answer
128 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 ...
4
votes
1answer
1k views

FFmpeg - Apply blur over face

I'm trying to blur a portion of a video using FFmpeg (specifically to blur a face). I have been trying to use a combination of timeline editing and the various bluring filters, but I cannot find a ...
0
votes
0answers
28 views

Need to blur an entire image except for certain boxes [duplicate]

I'm currently working on a project where I'll need to blur out boxes on a series of images, then put them back together to form a new video. I'm aware of the boxblur filter for ffmpeg, which is what ...
85
votes
6answers
55k views

How do I convert a video to GIF using ffmpeg, with reasonable quality?

I'm converting .flv movie to .gif file with ffmpeg. ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif It works great, but output gif file has a very ...
5
votes
1answer
6k views

FFmpeg (MacPorts) - libfaac missing, need new audio encoder

I am so confused. I am trying a quite simple FFMpeg command to transcode a movie file to a x264/AAC mp4 file via the command line (for Vimeo upload). (Mountain Lion/Macports) ffmpeg -i INPUT.AVI ...
0
votes
2answers
4k 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 ...
2
votes
1answer
5k views

ffserver configuration to handle a large webm stream

I'm setting up an ffserver for CCTV streams with 16 cameras - all the individual channels are streaming well with a config like: <Feed 0.ffm> File /tmp/0.ffm FileMaxSize 5M ACL allow 10.1.2.2 ...
3
votes
0answers
31 views

FFMPEG / x264: Single pass: how do you raise start time bitrates?

When using single-pass mode with a VBV size specified, libx264 will initially "sandbag" the bitrate, presumably due to lack of evidence (or perhaps even a bug). (This is an ironic followup to this ...
0
votes
1answer
5k views

convert RTMP streaming to HLS Streaming using FFMPEG

i am doing rtmp streaming to HLS streaming using FFMPEG , the following code is used to convert my desired option ffmpeg -v verbose -i rtmp://xxxx.com:1935/live/live1 -vcodec libx264 -acodec aac -ac ...
0
votes
1answer
32 views

Extract Y-channel of every I-frame from MPEG4 movie as loslessly as possible

I'm working on a video tracking experiment and got stuck with videos that are quite badly compressed with the MPEG4 DivX 5x/6x codec. I'm fairly new to image formats, codecs and compression, but I ...
0
votes
2answers
49 views

H.264 multi-pass encoding with FFmpeg

I would like to encode a video in H.264 with multi-pass. I tried : ffmpeg -y -ss 00:00:12.0 -i "c:\vid\example.mkv" -vframes 420 -vcodec libx264 -preset veryslow -refs 8 -b:v 1200k -an -pass 1 -f ...
1
vote
2answers
4k views

FFMPEG “Past duration 0.xxxxxx too large”

I'm recording an HLS streaming and I would like to save in a FLV Container. My ffmpeg's cmd is: /.../recorder/class/ffmpeg-2.6.1-32bit-static/./ffmpeg -i http://server/url/playlist.m3u8 -b:a 128K ...
3
votes
2answers
51 views

How to recover 1.4GB video file that can't be read (Canon) [duplicate]

I was shooting video with a Canon EOS 7D, and it was telling me the battery (I thought) was getting hot, so I opened the battery cover and it promptly shut off. It was a battery pack, and the ...
0
votes
1answer
25 views

FFMpeg image sequence to video using VP9 encoder

I'm trying to transcode mp4 to webm format in a lossless way. I tried two ways to do that. For that purpose, I extracted mp4 video to image sequences (png). Then, I converted image sequence(without ...
0
votes
1answer
19 views

Use ffmpeg to add audio in the middle of the video

I have a 9s no-audio mp4 video and a 5s mp3 audio. And now I want to add the mp3 in the middle in the video. I totally have no idea how I can do that. I tried ffmpeg -i input.mp4 -i input.mp3 -f ...
50
votes
10answers
66k views

ffmpeg: create a video from images

Is it possible to use ffmpeg create a video from a set of sequences, where the number does not start from zero? For example, I have some images [test_100.jpg, test_101.jpg, test_102.jpg, ..., ...
0
votes
1answer
15 views

Wrap ffmpeg for extracting audio from video in a python function

I'd like to wrap ffmpeg in a python function for extracting audio from video. I can successfully extract audio from mp4 videos on the command line. ffmpeg -i sourcevideo.mp4 -vn -acodec copy ...
4
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
0answers
14 views

How can I tell VLC that a source video stream has non-continuous frame rate?

I'm streaming my Android device screen to my PC on which VLC should display it. The android device pushes screens as they are generated. So the framerate that VLC gets is dynamic. Sometimes there's ...
5
votes
1answer
2k views

Cut last 30 seconds off ends of videos using ffmpeg in a batch file in Windows

This is what I have so far: for i in *.mp4; do ffprobe -show_format -i "%i" // get duration, then need to somehow subtract 30 seconds, and marry these two commands ffmpeg -ss 0 -i "$i" -t ...
0
votes
1answer
27 views

ffmpeg extract lossless image from video

I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg The images are extracted successfully, but jpg files ...
1
vote
1answer
31 views

What is the correct command line to convert a MKV 10b to MKV 8b with identical quality?

I want to convert a MKV 10b to MKV 8b, with identical quality of sound and video. I uses the following command line: ffmpeg -i -c my_file.mkv: libx264 v -profile -crf 18 -PRESET medium high -level ...
0
votes
0answers
20 views

Script in for ffmpeg import-export macro that changes text lines

Was pointed here from video network for the question. I was thinking setting up list of files from folder in excel, all with .mp4. Around 4000 lines in total. Column A - original file name Column ...
1
vote
1answer
39 views

Size of GIF way too high?

I'm trying to extract a GIF from a MP4 video file. Now i have two modi with which i do this: 1) the regular one: ffmpeg -t 7.7 -ss 00:22:53 -i video.mp4 -i palette.png -s 320x174 -filter_complex ...