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

2
votes
1answer
367 views

ffmpeg does not apply watermark on first generated frame (wm is applied on all other frames)

I am generating a bunch of jpgs from a movie, and want the watermark to be applied to all the jpgs. This works fine for all frames, but the first one, and I cannot figure out why. This is the command ...
4
votes
0answers
297 views

Why is the resulting file unplayable when I use FFMPEG to convert a MP4 video to ASF?

I want to convert an .mp4 file to an .asf file, but I need to keep the size of the file below 150 mb (the server I need to upload the file to can only take files under 150 mb). Basically I want to ...
0
votes
1answer
797 views

Installing Ffmpeg for Windows Server 2012

I want to convert a number of .wmv files to .mp3 format in a batch, so I need ffmpeg for that but I can't install ffmpeg on Windows Server 2012. I have done all the steps described on this link ...
1
vote
1answer
187 views

How do I extract parts of a video with a specific aspect ratio with ffmpeg or mencoder?

I've got some recordings from TV. The movies are all in 4:3 but the advertisement is in 16:9. My input format is a mpeg 2 transport stream. I would like to convert my movies to mp4 with h264 video and ...
7
votes
2answers
3k 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 ...
2
votes
2answers
7k views

Converting a youtube video to mp3 using ffmpeg WITHOUT youtube-dl?

Is it possible to convert a youtube video to mp3 using ffmpeg but without youtube-dl to first put in on the server? All the examples I've seen involve youtube-dl first to extract the physical video ...
0
votes
1answer
219 views

Automatic width calculation for video resizing in FFMPEG

Right now I'm using this to try and scale a 720p video down to 480p, the problem is the automatic width is selecting an odd number. I am currently using -vf "scale=trunc(oh*a*2)/2:480 and it still ...
4
votes
2answers
2k views

How can I speed up a video without pitch distortion in Linux?

What I'd like to achieve is getting the same effect as I get with (assuming 1.7x speed up) : mplayer -af scaletempo -speed 1.7 myvideo.mp4 This command gives me exactly what I want, but I need to ...
1
vote
2answers
10k views

Double deinterlace with full motion - ffmpeg + yadif 50i-50p 60i-60p

I'm trying to figure out how to use yadif / yadif-2x with ffmpeg to convert 50i source material into 50p output that preserves the motion of all fifty fields per second. Right now, I am using the ...
0
votes
0answers
900 views

How to keep sound of file mp4 when mix it with audio files mp3 [FFMPEG]

In Android after I run the FFMPEG command has been mixed mp4 & mp3 files but mp4 audio file after the mix has been lost. How can I keep the mp4 audio. My command (run ok but background music ...
0
votes
2answers
499 views

Concatinating mp4 files to a single mp4 file

I have some mp4 video files with me and i need to concatenate them one by one and make a single MP4 video file. I came to know about FFMPEG through which we can concat files. I tried doing ffmpeg ...
0
votes
1answer
210 views

FFMPEG mp4 instead of flv

really struggling with ffmpeg at the moment, after a few days of messing about with it i have managed to get it to almost do what i want! I have an audio track and a series of images that are to be ...
10
votes
2answers
10k views

Extracting wav from mp4 while preserving the highest possible quality

I went through the documentation and I can extract a wav file from an mp4 file with the command: ffmpeg -i my_video.mp4 output_audio.wav However, how can I control the quality of the wav file? ...
3
votes
2answers
5k views

Compiling x264 with mp4 support

I need x264 for my project. I have one at /opt/local/bin/x264, but when I execute the following command: x264 --qpfile cuepoints.qp --output output.mp4 input.mp4 it says: x264 [error]: not ...
1
vote
1answer
651 views

Extracting subclip from a .webm file with ffmpeg

I am trying to extract a subclip from a webm file and write to an mp4 fil. I have the following command line: ffmpeg -ss 560 -i input.webm -ss 20 -t 46 -acodec copy -vcodec copy output.mp4 but I ...
2
votes
1answer
304 views

How to load a movie from network share in FFMPEG's filters?

I'm trying to overlay a video on top of another using ffmpeg filters but I have problem with escaping of the file path when it is on a network share. ffmpeg -i "\\my_nas\path\to\source.mov" -vf ...
0
votes
1answer
2k views

ffmpeg .mkv to .mkv with audio .aac compression

I am trying to use ffmpeg on a .mkv video to change soundtrack quality. I would like to lower the bitrate of the audio part (to 16 kbps) without any modification of the video. Nevertheless when I use ...
1
vote
2answers
570 views

Extracting one frame per minute with ffmpeg, and skip a few seconds

I'd like to extract one frame per minute from a video, starting from a specified offset. For example, say the offset is 00:01 (mm:ss), then I'd like to extract 00:01, 01:01, 02:01, and so on. The ...
0
votes
2answers
641 views

Extracting frames with ffmpeg and including subtitles

I am attempting to extract a single frame from a video, with subtitles, using ffmpeg. I built ffmpeg myself: sircmpwn@picard ~/sources/bakabt-staging/hennkeo/groups $ ffmpeg ffmpeg version ...
1
vote
1answer
314 views

Modify ffmpeg batch file to replace extension instead of appending new one

I'm trying to convert a bunch of .flv's in a folder to .mp3's with FFMPEG in Windows XP. This batch file works fine for me. for %%A IN (*.flv) DO ffmpeg -i "%%A" -ar 44100 -ab 128000 -ac 2 ...
4
votes
1answer
2k views

Wrong audio duration with ffmpeg

I tried to convert a m4a file to mp3 with ffmpeg, with the following simplest command: ffmpeg -i in.m4a out.mp3 After conversion, the duration seems weird. The original m4a was 4:06. But for the ...
1
vote
1answer
4k 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
420 views

How do I get ffmpeg to generate useful (and not empty) thumbnails from AVI files?

I'm using Cumulus Clips to upload some videos from work to other work people. When I use the following thumbnail command with a WMV file, all is good. /usr/bin/ffmpeg -i ...
1
vote
0answers
134 views

Using jpegtran with ffmpeg via piping?

I use ffmpeg to generate a ton of jpeg images. However, these jpegs aren't optimized by ffmpeg. On average, the images losslessly compress another 10-20% when I run them through jpegtran. I don't ...
9
votes
2answers
21k views

Concat two mp4 files with ffmpeg without losing quality

i have now a problem with concatenating of 2 videos using ffmpeg. So, i am encoding the source mp4 files to ts with ffmpeg -i output1.mp4 -scodec copy -vbsf h264_mp4toannexb i0.ts but the file ...
1
vote
1answer
97 views

How do I determine if ffmpeg can handle file?

I have an application that splits video with ffmpeg. In order to avoid errors, I would like to know if file selected by user is video or not. Is there any ffmpeg command that would inform me whether ...
0
votes
0answers
345 views

How to use ffmpeg to concat mpeg4-aac mp4s?

I know that you can concat h264-aac mp4s using the following command: ffmpeg -i INPUT.mp4 -codec copy -bsf:v h264_mp4toannexb OUTPUT.ts (as per ...
0
votes
0answers
535 views

Converting image format to jpeg using ffmpeg

Before I ask I want to say that I know about ImageMagick and the other image processing tools but I explicitly need to use ffmpeg. So, can someone tell me if there's a way to use ffmpeg to convert an ...
4
votes
1answer
1k views

Splitting video in multiple episodes with ffmpeg

I need to cut one video into multiple pieces with ffmpeg. When I cut just one episode ffmpeg -i 001.mp4 -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:00:25.500 -strict -2 out1.mp4 or ffmpeg -i ...
1
vote
0answers
94 views

Preserve text readability while encoding game screencasts

I have a bunch of (almost lossless) 3d game screencasts which now occupy considerable amount of my hdd space. I would like to reduce their size. Overall image quality isn't of great concern, except ...
1
vote
2answers
1k views

FFmpeg: image intro

I would like to add an image intro to a video for about 5 seconds but the time could be variable. I made a 5 seconds during intro.mkv with the following command: ffmpeg -loop 1 -f image2 -i png.png ...
4
votes
1answer
6k views

FFMPEG converting media type aswell as relocating MOOV atom

I have found this line online ffmpeg -i input.mp4 -c:a copy -c:v copy -movflags faststart output.mp4 Which takes an input, and copies the audio, video and sets the MOOV atom to the beginning in an ...
3
votes
1answer
2k views

FFmpeg watermark

ffmpeg –i test.mkv -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.mkv I'm trying to simply add a watermark to a video to start testing with ffmpeg. But it ...
0
votes
1answer
728 views

How to output to both mp4 and mpegts

Using h264 and aac, I've been trying to generate an mp4 and mpegts output in one command using the new tee muxer. Either it complains about a lack of the aac_adtstoasc bsf, or if global_header is set ...
13
votes
2answers
10k views

FFMPEG - Non-monotonous DTS

When I use FFMPEG to convert a video from MP4 to M3U8, using the following command, ffmpeg -i op.mp4 -b:v 128k -flags -global_header -map 0:0 -map 0:1 -f segment -segment_time 4 -segment_list_size 0 ...
0
votes
1answer
960 views

Encoding video using Vp8 encoding scheme

Hi I want to encode raw(yuv) video to m4v using ffmpeg command in Vp8 encoding scheme, i try to use this command: ./ffmpeg -s 1280x720 -i raw.yuv -vcodec libvpx 1.m4v but the error was : Input ...
0
votes
2answers
559 views

How to batch insert same clip scene at the beginning of multiple videos?

Well, it has been a few days researching on a suitable auto or semi-automatic way of mass merging files this way. Basically, what I want to achieve is inserting the same clip, before a bunch of other ...
0
votes
1answer
1k views

Specify MPEG-4 as encoding parameter in FFmpeg

I want to ask about mpeg4 codec parameters. I use it to encode video in Evalvid environment as follows: ./ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 30 -i raw.yuv -vcodec mpeg4 vid.m4v The video will ...
2
votes
1answer
2k views

How can I use FFmpeg to add a ticker/varying text to live video?

I am able to add text to a video on my hard disk, before I braodcast it...by using the command. ffmpeg -y -i IMG_0696.MOV -acodec libmp3lame -vcodec msmpeg4 \ -b:a 192k -b:v 1000k -ar 44100 \ -vf ...
4
votes
2answers
5k views

FFMPEG extract intra-frames I,P,B frames

Is there a way to extract the intra-frames and preserve them as-is from FFMPEG or similar program? I know you can extract frames to a sequence of JPEG images using -f image2. But those are full images ...
-3
votes
1answer
1k views

How to using ffmpeg to insert logo to the live video stream [closed]

I have one question: How to using ffmpeg to insert logo to one udp streaming of live video?
0
votes
2answers
6k views

Getting error: Unknown encoder 'libvo_aacenc'

I am new to ffmpeg, just trying to build an SDP file for streaming. I'm facing an error when I run the command ffmpeg -re -i "sample.mp4" -f rtp rtp://127.0.0.1:10000 -flags +global_header -c:a ...
1
vote
1answer
159 views

Optimum parameters for audio slicing using FFMpeg

I am planning to use Perl to extract audio from media files through FFMpeg. Now as far as I know, FFMpeg needs lot of parameters like bit-rate, etc which it used to extract the audio. So for one ...
2
votes
2answers
833 views

ffmpeg thumbnails with exact size main aspect ratio

Hi need to get one thumbnail with resolution 560x420. I'm using this command: ffmpeg -i "file.mp4" -vf "scale=560:-1,pad=max(iw\,ih):420:(ow-iw)/2:(oh-ih)/2" \ -frames:v 1 best.png This command ...
6
votes
1answer
2k views

ffmpeg: isolate one audio channel

How can I use ffmpeg to isolate one channel from an audio file? I have a stereo audio file, and I need the output to be the contents of the right channel in a mono audio file. While I'm sure it's ...
1
vote
2answers
2k views

ffmpeg with 720p video and y4m file

I was simulating a lot of videos in cif format, also all videos came with yuv format file. I used the expression below and it works well: ffmpeg -s cif -r 30 -i video.yuv -vcodec mpeg4 -g 12 -bf 2 ...
3
votes
1answer
895 views

Producing stable video from slow images with FFmpeg

I'm struggling to achieve stable ffmpeg outputs that work across players and platforms for a video produced from a series of images that need to roll at about 1 fps. ffmpeg -f image2 -r 1 -i %02d.png ...
1
vote
0answers
63 views

Video output options of the CLI players?

Just thought I'd jot this down while I have the problem: On a computer that apparently has a problem with having X11 use graphics acceleration, I experience (understandably) problems playing video ...
0
votes
2answers
604 views

Can ffmpeg streaming jump to certain position?

I am working with ffmpeg. I can get a thumbnail from rtsp via command like below: ffmpeg -itsoffset -4 -f rtsp -rtsp_transport tcp -i rtsp://fostv.com:554/test/smarttv_sample.ts.pac -vframes 1 -s ...
2
votes
1answer
3k views

Pipe VLC output to ffplay?

I have a (broken) PC, where VLC plays videos on only the left half the screen, which seems related to OpenGL/drivers (see here). On the other hand, ffplay doesn't have the half-window problem, but can ...