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

Scale (or center) watermark with ffmpeg to same resolution as output file

I want to have the watermark scaled to the same resolution as the output file. How do I do this? Alternatively, how do I center the watermark in the middle of the output instead? Here is what I have: ...
1
vote
1answer
98 views

How to fix broken DV file using tools available for Ubuntu/Linux

I have a DV capture which for some reason is broken. By broken I mean that avconv/ffmpeg/avidemux won't open it, although totem and VLC will open it. I suppose there's something corrupt/wrong at the ...
1
vote
1answer
150 views

ffmpeg rotating source video and applying overlay images

I'm having some trouble with this, I've got a source video that has been recorded upside down. I need this video to be rotated and have a couple of transparent PNG files overlayed on top of it. I'm ...
0
votes
0answers
190 views

ffmpeg with minimum bandwidth with watchable video quality

I want ffmpeg and my video stream to use minimum bandwidth with average video quality. As I'm new to the video streaming, I'm not sure what all configurations I should add or change in my ffmpeg ...
0
votes
1answer
157 views

How to convert DV to robust compressed video file for editing later

I have 60Gb of DV footage that I need to store, but 60Gb is WAY too big. I need to transcode it to a lossy format, but I need the resulting video to be robust such that it can be easily edited with a ...
0
votes
2answers
196 views

How to add subtitle and concat video file in a line with ffmpeg?

I have 3 videos : 1387432825.avi, 1387435884.avi, 1387436066.avi and 3 subtitles for videos: part1.ass, part2.ass, part3.ass I try to add subtitle to each videos with commands: ffmpeg -i ...
0
votes
1answer
135 views

Video produced from BMP files only plays in VLC but no other players

Within my folder with bunch of 13MP bmp images named 0001.bmp, 0002.bmp,... I run the following commands from command line. Crop images to 4K ffmpeg -i %4d.bmp -vf "crop=3840:2160:184:240" ...
2
votes
1answer
896 views

FFMPEG: Convert m4a files to mp3 without significant loss of information / quality. Automated bitrate

I have a load of audio files (about 1000) which I want to convert from m4a to mp3 so I can use play them on a CD player which has a USB port. I tried doing something simple like: ffmpeg -i FILE.m4a ...
0
votes
0answers
79 views

Error while extracting 3 images from mp4 video file

I am trying to extract 3 images from mp4 video using ffmpeg.exe The images are generated just fine but I get some warning(yellow) and error (red) text Anyone can help me fix the issue? Thanks ...
0
votes
0answers
128 views

Landscape video from portrait images using ffmpeg

I have a series of pictures taken in portrait mode with a resolution of 480x800. I made video using ffmpeg command ffmpeg -r 1 -y -i image%d.jpeg out.mp4 And I get video in landscape mode with a ...
3
votes
1answer
155 views

What's the proper command syntax to change frame size/aspect ratio using ffmpeg?

I have a video that is 720x480 (3:2) that I would like to change to 720x406 (16:9) to match the other videos I have for a site. I have tried various command combinations, including: ffmpeg -i ...
2
votes
1answer
175 views

Ffmpeg Sync when extracting parts of video

This question can be seen as an extension of this question. I am using the ffmpeg 2.0.1 . The following commands is useful when you want to extract parts of one big video file given time makers. ...
1
vote
2answers
542 views

Ffmpeg Audio Stereo to Mono using only left channel

I use the following command to extract video parts of an '.MTS' record (video). ffmpeg -i 00402.MTS -s 1280x720 -r 25 -ss 0:00:05.38608 -vcodec libxvid -qscale:v 2 -acodec ac3 -ar 48000 -ab 256k -t ...
0
votes
1answer
455 views

Add custom time to video frames using ffmpeg

I am using ffmpeg to encode raw pixels data (bgr32) into a video file. Pixels data is being sent from java application to ffmpeg stdin pipe. I am looking for a way to add a timestamp overlay to each ...
1
vote
1answer
167 views

FFMPEG extracting unreasonable number of I-frames

ffmpeg version git-2014-01-14-abcde ffprobe -show_frames a.mp4 | grep pict_type=I | wc identifies 142 I-frames. ffmpeg -i a.mp4 -filter:v select='eq(pict_type\,I)' I.%03d.png generates thousands of ...
0
votes
0answers
88 views

OS X uploads .mp4 as quicktime? Changes metadata

I'm running into a rather peculiar issue uploading .mp4 from any browser on OS X. I'm using ffmpeg to convert files and .mp4's uploaded from OS X are causing issues. First off, the file I'm uploading ...
0
votes
1answer
165 views

Ffmpeg : Audio/Video mixing but no sound

I'm trying to add an audio file to a video file generated from images with FFmpeg. The command i am using on a Debian distrib is this one ffmpeg -r 1 -i edit%0d.jpg outputName.mp4 -i Test.mp3 ...
0
votes
1answer
628 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 ...
0
votes
0answers
82 views

ffmpeg mysteriously adding start delay

When converting a mp4 to TS, I am observing ffmpeg adding a "start" delay that the input file did not seem to possess. For my input, ffprobe reveals: ffprobe version N-57943-g7b76976 Copyright (c) ...
0
votes
0answers
168 views

Is there an option in ffmpeg to specify a subtitle track that should be shown by default?

I have a video in MP4 format that is predominantly English language, but has a scene in which a character speaks another language. I have an English subtitle track in SRT format for this character's ...
0
votes
1answer
89 views

Use ffmpeg to transcode only wma lossless files and not wma files

I have a list of wma files with wma lossless files as well, and what i want to do is to use ffmpeg to transcode only those which are wma lossless and not the wma files. As we cannot distinguish these ...
1
vote
0answers
317 views

exec ffmpeg not working for nginx-rtmp-module on AWS Ubuntu

I was trying out the nginx-rtmp module from https://github.com/arut/nginx-rtmp-module. While implementing the example for ffmpeg given in the link, my exec ffmpeg is not getting executed. My rtmp ...
0
votes
0answers
181 views

Recording RTSP using FFmpeg without packetloss

I want to record an RTSP stream using ffmpeg. ffmpeg -i "rtsp://link" -acodec copy -vcodec copy output.flv I am able to record. But its always missing packets like [NULL @ 0x2818340] RTP: missed ...
0
votes
0answers
108 views

Using multiple instances of webcam without thirdparty applications in windows

I want to show my webcam out in an swf file. That is in a webpage. At the same time, i need to record the stream using FFmpeg or Vlc. But the problem is the webcam cant be accessed by two applications ...
1
vote
0answers
471 views

Live video transcoding with reduced quality

I need to transcode input rtsp stream into HLS output of the certain quality. The input stream might be of 3 different qualities 2000kbs 30fps 1920x1080 500kbs 30fps 1280x720 192kbs 30fps 320x240 ...
0
votes
1answer
104 views

Video creating using “-vprofile baseline” giving error

I am padding a video using ffmpeg -i input.mp4 -vf "pad=width=640:height=480:x=0:y=120:color=black" output.mp4 The command is working fine. But I want to use "-vprofile baseline" to get a small ...
0
votes
0answers
91 views

ffmepg always get broken video streaming from rtsp protocol

I'm trying to capture rtsp streaming from Ip Camera by the command ffmpeg -t 10 -i rtsp://172.19.1.42/live.sdp -ss 00:00:02.500 -c:v copy download.mp4 However I always get the broken streaming, ...
1
vote
0answers
393 views

FFmpeg audio and video out of sync

I know there's a ton of questions on here about video and audio being out of sync when using ffmpeg, however I couldn't find a single one that solved my problem, so I'm hoping you all can help. I'm ...
0
votes
0answers
143 views

Record Audio From USB device using FFmpeg

I am trying to record an MP3 file from an audio device connected to the USB port using ffmpeg. I am on a Windows 7 machine, and I am trying to do this from a command line: ffmpeg -f alsa -i hw:0 -ac ...
0
votes
2answers
180 views

Concat 2 .mp4 files created with ffmpeg not working correctly

I am trying to concat 2 mp4 files that were both created with ffmpeg however the resulting output file does not contain any audio, can someone please help? Here's my current code: function ...
0
votes
0answers
170 views

How can I repair a damaged H.264 video stream from a security camera?

I have a security camera file in H.264 format. It cannot be converted due to error messages stating the file is damaged. Is there any way to repair this single 12 MB file so it can be converted to a ...
1
vote
0answers
174 views

compressing video with ffmpeg while maintaining high frame rate

Update: I watched the output video on a different machine and it was fine. The issue must've been with the program I was using to watch the video. Nevermind. I'm trying to compress videos taken with ...
0
votes
0answers
435 views

How to stream video from VLC with subtitles overlayed?

I am trying to stream a video with VLC with subtitles overlayed on my local network. The command I am using without success: vlc -vvv myvideo.mkv :sub-file=mysub.srt :file-caching=300 ...
3
votes
1answer
5k views

Convert video with vp9 codec using ffmpeg

I am trying to convert input.mp4 video to output.mkv using vp9 codec. I have install development version of ffmpeg via: brew install ffmpeg --devel. ffmpeg -i input.mp4 -vcodec vp9 output.mkv But I ...
-2
votes
1answer
249 views

How to use equalizer on ffmpeg

I want to change the frequency of my videos. I think I can do this with ffmpeg equalizer but i couldn't find any documents about that. My video's name is video1.mp4 Thank you.
1
vote
1answer
105 views

FFMPEG Track Number not written

How can I write the track number when re-encoding an audio file using ffmpeg? Currently, I have the following command: ffmpeg -i "in.wav" -acodec libmp3lame -aq 0 -id3v2_version 3 -write_id3v1 1 ...
0
votes
1answer
178 views

how to bring the cpu usage down when FFMPEG is making multi-bitrate videos

I am trying to provide a website operating like Youtube. To provide a facility for my users to upload their video on my server with multiple-bitrate through FFMPEG. But when the FFMPEG is making ...
2
votes
2answers
90 views

Extract any audio from container with ffmpeg

Is there a way to use -acodec copy with -vn to: Extract the audio stream from a container, such as mp4 Without knowing the audio codec beforehand And save it to an audio file with the appropriate ...
0
votes
0answers
73 views

ffmpeg: converting jpeg image sequence to movie gets error “not enough frames to estimate rate consider increasing probesize” [closed]

I have an image sequence with a numbering system of: image-00001.jpg. I want to convert this to a movie using ffmpeg. I always get the error in the title no matter what I do. Below is the syntax I'm ...
2
votes
1answer
656 views

Add watermark to ffmpeg MP4 encoding process in Windows?

Want to apologize off the bat as I am by no means familiar with working with ffmpeg and after trying countless times unsuccessfully to accomplish adding a PNG image watermark to my videos I'm hoping ...
1
vote
1answer
55 views

Ideal FPS to use

I have a C# desktop application and I am using ffmpeg as a way to 'zip' up a load of jpegs on the client PC and upload it to my server and unzip it. The number of jpegs to zip at any 1 time varies. ...
0
votes
2answers
105 views

How does ffmpeg determine individual stream bitrates?

For example, I have a video for which ffmpeg shows Duration: 00:46:43.72, start: 0.540000, bitrate: 2593 kb/s Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR ...
2
votes
1answer
69 views

How does one find out the options set by “-target” with ffmpeg?

The ffmpeg documentation says the following about -target: Specify target file type (vcd, svcd, dvd, dv, dv50). type may be prefixed with pal-, ntsc- or film- to use the corresponding standard. ...
0
votes
1answer
117 views

ffmpeg cannot convert gray video to avi

I would transcode a GRAY or YUV400 video file into an AVI (YUV420P). My input file is 1920x1080 Y only, its size is 22809600 => 11 frame. I used the following command line but ffmpeg generate an AVI ...
0
votes
0answers
183 views

Problems with video length when join video file using ffmpeg concat

I have 3 videos: open.avi – 0:46:37.885933 duration middle.avi – 0:02:56.991927 duration fin.avi – 0:02:48.199268 duration I try to concat 3 videos using command: $ ffmpeg -i ...
0
votes
1answer
156 views

What do the numbers and colours represent for -vismv and vis_mb_type in ffmpeg?

After the -vismv command I have seen a number of different values given. I can't find any explanation of what the number does and from changing it – can't see any difference! Also, I am working with ...
1
vote
1answer
84 views

.mov files recovered with TestDisk won't play properly

I accidentally deleted some .MOV files from a FAT32 formatted SD card. Using Testdisk I was able to recover all the files, however, they don't play properly. They'll play for the correct length of ...
0
votes
1answer
1k views

Use ffmpeg copy codec to combine *.ts files into a single mp4

I've got a bunch of ts segments described by a single index.m3u8 file: index.m3u8 segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts segment4_0_av.ts segment5_0_av.ts I know they ...
2
votes
1answer
822 views

How to split videos with FFmpeg and -segment_times option?

I try to split a video with FFmpeg and the -segment_times option like it's shown in this FFmpeg ticket. But it's not working, the error output isn't helpful and the resulting output is a single ...
0
votes
1answer
103 views

Convert from MP4/MP3 to G.723.1

I am new to ffmpeg and using version 2.0.2 in my Linux server. Could anyone please tell me how I can convert from mp4/mp3 files to a G.723.1 file format and G.723.1 to MP4?