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
14 views

Corrupt MP4 file: ffmpeg codec, global header, and dvvideo errors. Can it be repaired?

So, I have a number of corrupt MP4 files (some corrupt AVI files, too, but I believe that's a different problem). They seem to have gone corrupt when I had an external hard drive that they were on ...
0
votes
1answer
7 views

Audio-only ffserver feed / adding dummy video to audio-stream

I'm trying to stream audio to ffserver, but when I start the ffmpeg client it says: Missing video stream which is required by this ffm Is there a way to either: Configure ffserver to allow ...
0
votes
0answers
7 views

Collect Streaming Statistics

I'm using ffmpeg to stream a video and would like to retrieve the video's statistics using ffplay. For example, when I type: "ffplay test.sdp", I can see this line: 8.07 A-V: 0.000 s:0.0 aq= 0KB ...
1
vote
1answer
28 views
+50

How to consider bitrate, -maxrate and -bufsize of a video for web

I am using ffmpeg to encode my videos to upload them on the web. I saw this post about using ffmpeg, but didn't quite get as to how to consider the values. Suppose I have a video of size 70 MB with a ...
-5
votes
1answer
26 views

Why flac file converted from mp4 weighs 4x than mp4 file?

I did converted mp4 file to flac with ffmpeg -i x.mp4 x.flac x.mp4 weighs 11M and x.flac weighs 43M
0
votes
0answers
14 views

Drop every multiple of four frames with ffmpeg?

I'm making a timelapse with ffmpeg, and had two problems : frames are not properly ordered, because there was half a second between shots and when sorted, milliseconds didn't count in, this gives a ...
3
votes
2answers
995 views

Downmix from 5.1 Surround to two channel stereo using avconv

I have a .wmv with the audio codec of wmapro, which my target video player chokes on. I am generally in the process to "standardise" my collection to x264/aac (as this works fine on all my devices), ...
1
vote
2answers
1k 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 ...
0
votes
1answer
390 views

live encoding/streaming with ffmpeg

I'm using ffmpeg to encode large avi (or other) files to mp4, which are then saved to disk, then streamed in the browser using apache mod_h264. The problem with this is that we have to wait until ...
4
votes
2answers
2k views

ffmpeg: How to create cropped thumbnails?

For creating a video thumbnail with ffmpeg I'm using this command: ffmpeg -itsoffset -4 -i video.mp4 -vframes 1 thumb.jpg This gives me a thumbnail with the same size of the video (which has an ...
1
vote
1answer
3k views

ffmpeg drawtext and watermark only creates watermark but no text

If I try to add a text and a watermark at the same time, only the watermark shows. ffmpeg -i i.mp4 -vcodec libx264 -f mp4 -vf drawtext="fontfile=/[...]/share/fonts/freefont-ttf/FreeSans.ttf ...
1
vote
1answer
34 views

Noisy ffmpeg video slideshow from images with looseless sound

I would play wav audio and show lyric text on TV screen from dvd/bd player. I create png file from lyric.txt and make video ffmpeg -loop 1 -i lyric.png -i audio.wav -vcodec libxvid -acodec copy -y ...
8
votes
6answers
13k views

How to get video duration in seconds?

How can I get video duration in seconds? What I've tried: ffmpeg -i file.flv 2>&1 | grep "Duration" Duration: 00:39:43.08, start: 0.040000, bitrate: 386 kb/s mediainfo file.flv | grep ...
0
votes
0answers
13 views

how can I apply a filter to ffmpeg command that outputs to a stream

I can apply a filter to my .mov file with: ffmpeg -i in.mov -vf "vflip" out.mov I can serve up my movie to ffserver with: ffmpeg -i in.mov -f ffm http://127.0.0.1:8090/feed1.ffm But I cant ...
0
votes
1answer
452 views

ffserver-2.2 - streaming an ASF video as OGG output with ffserver on Debian 7.5

I'm trying to stream an IP webcam ASF live stream to a ffserver to output an OGG format. The server starts successfully but the ffserver commands used to feed the ffserver fails with a segment fault. ...
1
vote
2answers
87 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
18 views

FFmpeg's trim command not honoring start value? Video playing from beginning through to trims' end value

I've got a rather weird problem. I can't seem to get ffmpeg's trim command to actually honor the start time and drop the frames before it. For instance, given the command: ffmpeg.exe -i myvid.mp4 ...
1
vote
1answer
20 views

why is mpeg4 encoder faster than libx264 using ffmpeg

I have been padding mp4 videos so they can become of the size 1920x1080 instead of 1920x800. I used initially used mpeg4 encoder using ffmpeg, the encoding was quick but the size of the file was more ...
0
votes
0answers
12 views

Unable to enable libvpx library in ffmpeg from command line

This is my first question I have asked on superuser, so please be patient with my ignorance if it should surface. I have spent hours and hours trying to figure this one out and would greatly ...
3
votes
1answer
454 views

ffmpeg: change alpha channel of a showwaves filter

I've been trying to figure this issue out for a few hours and I can't seem to find any solution. I'm creating a video from an .mp3 and some images with the following command fmpeg.exe -y -i ...
0
votes
0answers
20 views

Capturing TS video stream gives Invalid timestamps and Invalid DTS error messages

I'm capturing a video stream using ffmpeg -i "http://streaming_url.com/playlist.m3u8" -acodec copy -vcodec copy -absf aac_adtstoasc "out_put_file.mp4". The m3u8-file links a list of .ts-files. ffmpeg ...
0
votes
0answers
5 views

Can ffmpeg output all changes to a metadata tag?

I'm trying to use ffmpeg to record an audio stream off of the internet. Periodically, the value of a metadata tag changes in this stream. However, ffmpeg only outputs the value once, and after that ...
0
votes
0answers
28 views

WebCam live stream

I am trying to stream live webcam feed from Ubuntu machine, to a Unity application on pc (they are on the same wifi). For that to work, I need to define in Unity direct URL to video, and it has to be ...
1
vote
1answer
26 views

ffmpeg - infinite loop when adding watermark

Arguments: ffmpeg -i in.mp4 -loop 1 -i banner.png -c:a copy -filter_complex "[1:v]fade=in:st=0:d=0.5,fade=out:st=30:d=0.5[watermark]; [0:v][watermark]overlay=(main_w-overlay_w)/2:main_h-overlay_h" ...
0
votes
1answer
254 views

How to keep/force aspect ratio using ffmpeg

I would like to remove pt-br audio and convert english DTS to AC3 and I'm using this command: ffmpeg -i input.mkv -c:v copy -c:s copy -c:a ac3 -ac 2 -map 0:0 -map 0:2 -map 0:3 -aspect 16:9 test.mkv ...
0
votes
0answers
18 views

Issues with audio when converting video with ffmpeg

It's an uncommon issue, it occurs when an input video file is low quality, exactly input audio stream. I use aac native with 64k bitrate in conversion command. Do i need to use other audio codec or ...
1
vote
0answers
24 views

Can ffmpeg be paused while recording, and then resume?

I want to record an FM radio station that provides an internet stream. I've worked out the command to record this, and I'm happy with the results. However, once in awhile I will start the command and ...
4
votes
1answer
1k views

What does the “cutoff” option do in FFmpeg?

I am encoding some FLAC files into AAC and I came across the -cutoff option. I do not see this option in the documentation, however I did find it in the help $ ffmpeg -v warning -h full | grep ...
2
votes
0answers
5 views

Error when adding silent channels to ProRes file in FFMpeg

I'm trying to follow this guide to build a usable 5.1 audio for a piece of hardware with specific needs. When I run the command: ffmpeg -ar 48000 -acodec pcm_s24le -f s24le -ac 5 -i /dev/zero -i ...
0
votes
4answers
1k views

ffmpeg concat doesn't work with absolute path

I need to use concat with absolute path, but it doesn't seem to work. In the doc it says it should work. Anyone have an idea how to make it work? ffmpeg Doc It doesn't work because it seem to ...
1
vote
1answer
114 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 ...
4
votes
1answer
3k views

create video from jpg images using ffmpeg

I want to make short timelapse video using ffmpeg under ubuntu 12.04 LTS. I have a folder containing all images with names DSC_0000.jpg DSC_0001.jpg and so on. I found this question ffmpeg: create a ...
0
votes
2answers
85 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
1k views

How should I encode a fully working H.264 video for Flash player?

I did some homework: It seems that I should use a command like ffmpeg -i input.mp4 -vcodec libx264 -g 1 -r 25 output.mp4 but this did not work: the output.mp4 can not jump to other seekpoints ...
0
votes
1answer
30 views

How to use ffmpeg ffpreset files

My ffmpeg comes with some ffpreset files: $ ls /usr/share/ffmpeg libvpx-1080p.ffpreset libvpx-360p.ffpreset libvpx-720p50_60.ffpreset libvpx-1080p50_60.ffpreset libvpx-720p.ffpreset I'm ...
49
votes
3answers
76k views

How can I convert MP4 video to MP3 audio with FFmpeg?

I need to extract an MP3 audio track from an MP4 video with ffmpeg. I can do this for .flv -> mp3, but I don't know the command line parameters for mp4->mp3. For example, flv -> mp3: ffmpeg -i ...
0
votes
2answers
57 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 ...
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
3answers
2k views

How to convert mjpg file type to flv using ffmpeg?

I can convert avi, wmv and other video files easilly, but not this format. I`ve looked for some info how to convert mjpg files with ffmpeg and found nothing. As this format is widely used in web ...
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 ...
-1
votes
0answers
13 views

Splitting large audio file with many different timed outputs (ffmpeg)

I downloaded a full album off of youtube and have all the time codes, but how do I tell ffmpeg to create files based on that info?
0
votes
0answers
22 views

Missing Filters in ffmpeg on Windows 7

I am a Windows 7 user. I downloaded what I thought was the most current 32-bit version for my OS. I tried the following command to generate my palette file. ffmpeg -i myinputfile.mp4 -vf ...
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 ...
1
vote
0answers
10 views

How to create blank audio file in FFMPEG?

I am creating a project associated with using Sony ILCE-6000 with its remotely controlled functions. I have found such method of controlling camera with command line: ...
0
votes
0answers
40 views

mkv to mp4 automatic conversion

I have two scenarios here that I'd like to overcome: 1- I have a folder that's full of folders that are full of mkv and mp4 files. I want to use Handbrake, VLC or any other appropriate program to ...
0
votes
1answer
3k 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
42 views

Increase mean volume of a video/audio file

I have a video file which most of its sound is too quiet. I analysed it with FFmpeg (ffmpeg -af volumedetect) and it gave me the following stats: n_samples: 1240911872 mean_volume: -31.9 dB ...
1
vote
2answers
221 views

The following filters could not choose their formats: Parsed_amerge_5 Consider inserting the (a)format filter near their input or output in FFmpeg

I mixed in volume levelling in my amerge command. ffmpeg -i adele.mp3 -i ruby.mp4 -filter_complex \ "[0:a]aformat=sample_fmts=s16:channel_layouts=stereo,volume=0.390625[a1]; ...
0
votes
2answers
38 views

Having trouble understanding ffmpeg -map command

I'm trying to copy video/audio from an mkv container to mp4. When I run ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 I'm given no video with polish audio. There's only one video stream, stream ...
0
votes
1answer
34 views

FFMPEG Split video into random durations within range

I want to split a video into parts, but not equal parts. I want each clip to be between 15 and 50 seconds. But I want each clip length to be random (within that 15 to 50 second range). How would I ...