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

3
votes
1answer
2k 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
2answers
30 views

Create a video file from an audio file and add visualizations from audio

My initial thought was to upload audio files to YouTube along with video that is inspired from the audio. The particular visualization can be in different form such as spectrum, spectogram, or other ...
0
votes
1answer
36 views

Batch converting MP3 and still image PNG to MP4 videos

What do I type in the Windows cmd for this to work? I found a code that should work on Linux but I'm on Windows. The Linux code is: for mp3 in "*.mp3"; do ffmpeg -f image2 -loop 1 -i picture.png ...
1
vote
0answers
11 views

How to set profile compatibility of an fMP4 using ffmpeg?

I'm using ffmpeg to generate a fragmented mp4 stream that will be consumed by an HTML5 player. I think I have a correctly formatted mp4 stream of data with an empty moov at the start and a series of ...
2
votes
2answers
901 views

How to download a mms stream with G2M4 video?

I have found that Gotomeeting recorded webinars are streamed as MMS streams. It is well known that MMS streams can be downloaded/saved. For instance VLC has a corresponding option in the Open Network ...
1
vote
0answers
29 views

Get webrtc-like latency with ffmpeg?

I've been using this between Chrome and my phone: http://www.webrtc.org/demo And the latency is really good - less than 1 second. I've been trying to replicate that on my computer with no success. ...
0
votes
1answer
331 views

How to replace an audio stream in a video file with multiple audio streams?

I want to replace the second audio stream (0:2) in a video file that has two audio streams and give it a label if possible. How would I go about this? All the ffmpeg commands I found won't let me keep ...
21
votes
1answer
21k views

How can I normalize audio using ffmpeg?

I want the loudest peak sound in a movie clip to be as loud as the codec allows, then have every other sound amplified accordingly. What's a practical example in order to accomplish this using ...
2
votes
0answers
69 views

Pipe issue with ffmpeg

I have been using the following ffmpeg command successfully to extract the first frame of an mp4 file: ./ffmpeg -i video.mp4 -vframes 1 -y frame.bmp However, when I try to use the below pipe ...
0
votes
1answer
12 views

How to install YASM 1.2.0 and compile FFMPEG library on mac?

I am trying with FFMpeg for this i need to compile FFMPEG library.To compile FFMPEG Library i need to install YASM 1.2.0.But i don't know any command ? Thanks in advance?
3
votes
1answer
4k views

ffmpeg: Could not find codec parameters for stream 0 (Video: h264) unspecified size

I try to convert a video from .raw to .mp4. For this reason I did download, build and install both x264 and ffmpeg. However, command: ffmpeg -f h264 -i output.raw -vcodec copy output.mp4 fails with ...
0
votes
1answer
442 views

ffmpeg concat output not playing in windows media player

I have a series of short (<3sec) mp4 videos (some with audio, some with no audio) that play fine in all clients. 15 fps, AAC audio. When I use ffmpeg concat, the resulting file plays fine in vlc, ...
2
votes
1answer
43 views

FFmpeg - Cut video into segments, transcode them individually, then concatenate & output to .ts

This is a follow-up question to audio error when concatenating clips using ffmpeg What I'd like to achieve is the following: Cut an input video into chunks Transcode each chunk (video and audio) ...
2
votes
0answers
112 views

FFMPEG encoding settings for 1080/60fps/h264 - framedrops

I want to use latest ffmpeg to encode set of JPG frames to 1920x1080 60fps h.264 movie. I'm looking for set of parameters that will allow smooth playback of encoded video on fairly strong PC machines ...
0
votes
2answers
37 views

Getting value from file using Windows Batch scripting

Using Windows Batch scripting, I want to get the max_volume value (-2.9 in the following example) from a ffmpeg output written to a log file: [Parsed_volumedetect_0 @ 0000000005428b20] n_samples: ...
1
vote
0answers
18 views

Embed album art image to FLAC file with ffmpeg

i am trying to embed Album Art to a FLAC file with ffmpeg. It seems that it cannot embed Album Art to a FLAC File and the file that is generated has zero length. I know that you can put the image in ...
1
vote
1answer
2k views

Streaming to HLS server with ffmpeg and nginx-rtmp-module

I am trying to stream my desktop screen to a HLS server (nginx RTMP module), but I don't know how to go about this. I have tried ffmpeg -f x11grab -i :0.0 -f hls http://192.168.1.68/tmp/hls but ...
1
vote
0answers
24 views

FFMpeg generated m3u8 segmented videos long delay before playback starts

I am using ffmpeg to generate a segmented list of files in order to stream them to an iOS app. The list of files is generated fine but when it comes time to play them, the video needs to be downloaded ...
0
votes
1answer
18 views

ffmpeg: How does ffmpeg decide which frames to pick when fps value is specified?

I am using ffmpeg to extract 3 frames per second using this command ffmpeg -i input.flv -f image2 -vf fps=fps=3 out%d.png I am wondering if I set the fps value, then how does ffmpeg select 3 ...
0
votes
1answer
32 views

Cut video after certain time?

So I have found out how to cut a video at a specific time frame by using the following command ffmpeg -i input.wmv -ss 00:00:30.0 -c copy -t 00:00:10.0 output.wmv ffmpeg -i input.wmv -ss 30 -c copy ...
0
votes
0answers
16 views

Add credits to the end of the video

Is it possible to use ffmpeg to make credit titles at the end of the video ? I have a very long string of authors separated by comma as input. Managed to create 1 frame and append all the string to ...
1
vote
0answers
17 views

How to encode XviD using ffmpeg for Home Theater/DVD Player?

I wanted to convert a file so I can play it my DVD player which only works with divx/xvid. I tried : ffmpeg.exe -y -i "in.mp4" -t 480.00 -vf scale=720:301,pad=720:576:0:137 -map 0:v:0 -map 0:1 -b:v ...
0
votes
0answers
9 views

sample_full_transcode , Video is not converted properly using Hardware acceleration

On going through sample_full_transcode provide @ https://software.intel.com/sites/default/files/MediaSamples_Windows_5.0.491.98719.msi I observed trancoding video is good with Software acceleration, ...
0
votes
0answers
13 views

How to add filters to ffmpeg, mp

I tried to use ffmpeg filter 'mp' but it reports there is no such filter. what I tried: 'ffmpeg -i input.avi -vf mp=ep2=xxx output.avi' And I build ffmpeg from this link: ...
0
votes
2answers
37 views

Can ffmpeg detect the actual bitrate of an audio file?

Can ffmpeg tell me if an audio file has been upscaled or not? I see in this article, they used a spectrum analyzer to check for the real bitrate of an audio file. Can ffmpeg determine the real bitrate ...
3
votes
1answer
45 views

How do I extract the timestamps associated with frames ffmpeg extracts from a video with the -r option?

ffmpeg -i myvid.mp4 -r 25 -t 100 image-%d.jpeg Is the command I'm using to extract frames and it's working just like I expected. However I'd also like to look at the timestamps of the frames. ...
14
votes
4answers
15k 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?
-1
votes
0answers
38 views

How to improve speed of ffmpeg? [closed]

can somebody please tell me how to improve the ffmpeg when running it from the command line (Windows) ? Should i use a switch for multiple threads, different than the default one or do something else ...
0
votes
0answers
26 views

audio error when concatenating clips using ffmpeg [duplicate]

I'm trying to do the following: cut an input video into segments and convert these segments in the same step concatenate the transcoded segments back together in an output file The steps that I'm ...
18
votes
8answers
32k views

How to convert video to images?

How can I convert a video file to a sequence of images, for example one frame every N seconds. Can mplayer or ffmpeg do this? I have used MPlayer to grab screenshots manually but I would like to ...
0
votes
0answers
35 views

How to make ffmpeg segment filename have the time created

I'm using ffmpeg to segment a video stream and I would like ffmpeg to name the segment files with a created date/timestamp. Is this possible? Let's say I have segments of 30sec video each: 0000.flv, ...
0
votes
3answers
34 views

ffmpeg get video resolution

I am trying to get resolution of the video with the following command: ffmpeg -i filename.mp4 Thereafter I get a long output, but I need just width and height for my bash script, How should fine ...
0
votes
1answer
41 views

Concat two audio files via ffmpeg filter_complex

If I try to concat two mp4 video files via -filter_complex using command: ffmpeg -i a.mp4 -i b.mp4 -filter_complex \ "[0:1] [0:0] [1:1] [1:0] concat=n=2:v=1:a=1 [v] [a]" \ -map [v] -map [a] -y ...
2
votes
0answers
36 views

IE will not seek audio/webm file

I'm trying to create a WebM audio only that will playback and seek in all browsers using the HTML5 tag and mime type audio/webm. I've found workarounds to get this to work in all browsers, but they ...
3
votes
2answers
671 views

How to extract a Vorbis stream from a WAVE file?

I would like to move the Vorbis stream into an ogg container but ffmpeg does not seem to recognize the stream. Even though MPlayer gives this output upon playback: Opening audio decoder: [acm] ...
3
votes
4answers
11k views

How to specify audio and video bitrate

I have a mov file with the following media information: Stream 0 Type: Video Codec: H264-MPEG-4 AVC (part 10)avc1 Language: English Resolution: 1280x720 Frame rate: 24 Stream 1 Type: Audio Codec: ...
0
votes
0answers
18 views

FFmpeg HLS muxer .ts file name format

Is it possible to have .ts files named by date/time (any format) instead of sequence number when using the HLS muxer? If so, how can it be done? ffmpeg -i - -hls-some-option-here test_stream.m3u8 ...
1
vote
5answers
35 views

How to convert from .avi container to .mp4

I have an .avi file containing the following streams: Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 608x256 [PAR 1:1 DAR 19:8], 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 48000 ...
0
votes
1answer
18 views

Map overlay audio with FFMpeg?

Me and my friend each took a video of us playing online with each other, and now I want to make a single video comparing them side by side. I’ve done this before, but I’ve never needed to deal with ...
0
votes
1answer
46 views

how to map and mute channels in stereo stream? [ffmpeg]

from ffmpeg man page, I should be able to use -map_channel to split/mute channels however, unless the stream contain 2 channels literately, the map does not work. 01.mp3: Stream #0:0: Audio: mp3, ...
0
votes
0answers
44 views

Ffmpeg not copying location metadata

I'm converting vidoes and even though I"m using -map_metadata 0 ffmpeg -i input.mp4 -map_metadata 0 output.mp4 The above code defaults to libx264/libvo_aacenc. The location metadata is not copied, ...
0
votes
1answer
28 views

Extract frames from HTTP streamed video without downloading entire file

I want to extract a frame from a specific location in a video file. The file is located on a remote server and I don't want to download the entire thing. How can I extract a frame from an http stream ...
0
votes
0answers
12 views

VLC and MPC-HC struggle to play m2ts with srt subtitle. Any other ways to use m2ts with srt?

So, I've got a m2ts file with the following parameters: Format : BDAV at 34.2 Mbps Length : 12.0 GiB for 50mn 8s 10ms Video #0 : AVC Aspect : 1920 x 1080 ...
2
votes
0answers
2k views

live stream with ffmpeg and IP camera

I'm reading a live stream from a DKSEG IP camera, but the results are not good at all ... Here is the command line used for this : ./ffmpeg -i ...
0
votes
2answers
1k views

Re-stream/Mirror HTTP Live Stream

I need to re-stream/mirror some HLS’s (HTTP Live Stream) using a Linux server. From input http://anystream.com/channel1.m3u8 To output http://127.0.0.1/abc.m3u8 I found several media servers ...
1
vote
1answer
3k views

How can I use FFmpeg to record a live stream to multiple files simulataneously?

I have FFMPEG reading a live stream and writing to an MP4 file. I would like to modify the FFMPEG command to write to 3 MP4 files simultaneously. This means that instead of generating one file, FFMPEG ...
0
votes
0answers
54 views

Is it possible to record live streams with ffmpeg in an audio file with embedded timestamps?

I would like to record the daily programme of an IceCast radio channel (maybe a 24 hour stream), and then select my favourite programmes by embedded timestamps - if possible - according to the daily ...
1
vote
0answers
545 views

Split video into equal file size parts with ffmpeg [duplicate]

i am trying to split a video file into equal file size parts with ffmpeg. At first i get the file size of the original and divide it with the desired number of parts to get the file part's file size. ...
0
votes
0answers
127 views

Keep album art with ffmpeg while cutting a mp3 file

i try to cut a mp3 file but also keep its album art with ffmpeg. I found out that if the cut begins from 00:00:00 it does keep the album art, if not it does not keep it. I get an error message : ...
1
vote
2answers
49 views

How to name the output frames based on their presentation timestamp?

I am using ffmpeg to extract frames from videos. Using the generic command ffmpeg -i input.avi out%d.png I am getting all the frames but I want the names of the frames to indicate their ...