FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line ...

learn more… | top users | synonyms

8
votes
0answers
1k views

Copying h.264 video from TS into MP4 changes frame rate and time

I have large MPEG-TS file that I am converting to MP4 using the below command. If I seek to the same time in the video in both the MP4 and the TS file, the MP4 will be a few frames behind the TS ...
7
votes
0answers
372 views

Is it possible in FFMPEG to change scale over time?

Ok, so using the overlay filter, one can change the x/y location of a video over time by using the "t" variable. For example, overlay=x='if(gte(t,2), -w+(t-2)*20, NAN)':y=0 can be used to start ...
6
votes
0answers
195 views

Converting GIMP curves files to Photoshop (.acv) for ffmpeg

I've seen a number of scripts for converting Photoshop .asv .acv files to a GIMP friendly format. Does anyone know if such a tool exists to do the opposite, i.e. converting a GIMP curve file to .asv ...
5
votes
0answers
137 views

Trying to sync audio in mpeg2 video whose video freezes first 8 seconds in playback

So I have a handful of old mpeg2 (.mpg) files with the following profiles as provided by ffmpeg (the timecodes on each are different): Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / ...
3
votes
0answers
195 views

Using ffmpeg to cut videos with more precision than key frames allow

I'm trying to cut a video (a debate on TV) with ffmpeg without re-encoding, and I need to cut between 2 sentences a guy pronounce. I think the precise moment is between two keyframes, because whatever ...
3
votes
0answers
177 views

Using h264 in loseless mode brings small unexpected results

I got curious on ffmpeg screen capture capabilities and started messing around with a simple realtime capture test in h264. ffmpeg -f dshow -i video="screen-capture-recorder" -video_size 1920x1080 ...
3
votes
0answers
332 views

Getting FFMPEG to stream video+audio through RTMP

Can someone help me with this : The video streams fine but I can't hear any audio. I just hear random click sounds.Please help : ffmpeg -f video4linux2 -channel 1 -i /dev/video0 -f alsa -i ...
3
votes
0answers
548 views

Merge two transparent webm videos with ffpeg

I'm trying to merge two transparent webm videos together while keeping their transparency using ffmpeg Main video: https://s3.amazonaws.com/medlike/logo.webm Overlay video: ...
2
votes
0answers
25 views

ffmpeg h264 crashes IE intermittently

First for moderators, this is relevant because I have incorporated ffmpeg in a program to render videos needed for a web-app. My problem is that the videos I render randomly crash IE 11. Other ...
2
votes
0answers
55 views

Unexpected filtering result with multiple outputs

Video capture device cycling through 4 cameras every 4 seconds. Want to split the video into four streams to reduce the amount of key frames, save internet traffic and soothe the motion detector. ...
2
votes
0answers
471 views

Fast encoding with ffmpeg

I know about presets but faster presets lose the video quality. Are there any hardware requirements I need to consider? Or are there any settings that I need to tweak? And lastly where do I place the ...
2
votes
0answers
467 views

ffmpeg lens correction, fisheye effect

I want to remove fish eye effect using command line. I've found 2 ways. The simplest is using frei0r plugin called "defish0r" it has few parameters like fisheye type, scalling, interpol and video ...
2
votes
0answers
89 views

ffmpeg to cut intro and replace with new intro

I am using ffmpeg to cut out the intro in my video and replace it with a new intro. I run into a buffer underflow error when I try this. The commands I'm using are: ffmpeg -i ...
2
votes
0answers
42 views

Converting videos and time accuracy; pitfalls and solutions

I need to compress some videos about laboratory experiments which contain motions of some objects. Since in analysis time intervalls on the video are needed as accurate as the camera captured them, ...
2
votes
0answers
187 views

FFmpeg map_channel and video

I have a file that has the following format (note the number of tracks and channels within each track): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mov': Metadata: major_brand : qt ...
2
votes
0answers
190 views

Extract the frame (in image format) at exactly every minute (or second) from a video (by ffmpeg)

Motivation: I would like to seek the frame, then take high quality and exact time screenshots (images) from a video. The video is length is 00:48:43.71 and 23.98 fps (we can think it is 24 fps, isn't ...
2
votes
0answers
85 views

HyperCam2 video out of sync, ffmpeg throws video out of bounds

I've recorded my over 2h presentation using HyperCam2 but output video is totally out of sync with audio. It looks like video is 2x faster than audio so I have 'Thanks for watching' slide in the ...
2
votes
0answers
246 views

Overlay animated watermark multiple times

So, I have this animated watermark (MOV w/alpha) that I want to overlay on top of a video. I want to do it multiple times, so once in the beginning, once in the middle and finally towards the end. I'd ...
2
votes
0answers
331 views

How to display static image if the input stream ends using ffmpeg?

I am receiving a stream over the network with the following ffmpeg command: ffmpeg -i rtmp://server:port/input.stream -f flv rtmp://server2:port/output.stream When the input stream stalls, I want ...
2
votes
0answers
74 views

Set ipad compatible thumbs for mp4 videos based on a frame of the video with command line

I have a directory of 100 mp4 files. All are working well on my ipad but most of them do not have a working thumb. I want to generate these thumbs with a command line command (on macosx) based on a ...
2
votes
0answers
129 views

segment does not contain sync frame

Whenever I split a video using Apple's mediafilesegmenter, using the following command: medifilesegmenter video.ts -t 10. I get the following error for each segment except the first: segment does not ...
1
vote
0answers
56 views

ffmpeg drawtext filter problem with eif option

I want a countdown timer in my video in hours minute second format. I tried "drawtext" filter using eif option but it only provides me with countdown timer in seconds. I want complete H:M:S format. ...
1
vote
0answers
57 views

FFMPEG Tiff images to losseless video (H265) lags, broken output

I have 226 sequenced images (TIFF, 6.2MB each) and i would like loseless save them like video by using H265. Here is command which I used: ffmpeg -f image2 -framerate 25 -i IMG_%03d.tif -vcodec ...
1
vote
0answers
30 views

Why ffmpeg dcp playback behaving a different ways in mac and ubantu

I have a Mac desktop and a Linux Ubuntu setup. I have installed source code of ffmpeg with x264 and Libopenjpeg support in Linux. On the other hand I have installed homebrew version of ffmpeg with ...
1
vote
0answers
50 views

FFMpeg encode with original codec

I know about the -c copy switch with ffmpeg, but this does not work with filters as it means "don't re-encode". But what I want is to have my output use the same stream formats as my input. So if I ...
1
vote
0answers
205 views

best way to publish low latency video on ffmpeg

I am trying to publish a stream of live video that need to get to the client side in under 3 sec in latency. I am using vMix to capture a 720p/50 stream from a camera, that by virtual camera letting ...
1
vote
0answers
213 views

Fade in and Fade out drawtext and drawbox ffmpeg

I am using FFmpeg on andriod and the following is the configuration : ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) ...
1
vote
0answers
57 views

ffmpeg - Specify FC (center) instead of mono‏

I am trying to specify a single mono channel to be named 'Center' when viewed in Quicktime player, I know that technically specifying FC is mono, but in my user case I need it to actually be named ...
1
vote
0answers
62 views

Is possible to use ffmpeg to capture directly a DSLR streaming via USB?

If i have an high end Canon or Nikon camera is possible to do what eos_movrec do but with a better quality? Could be useful to use this for streaming or recording purposes. And in case of something ...
1
vote
0answers
101 views

ffmpeg not only writes mkv index at the end, but overwrites multiple places in file

According to Matroska options , the muxer writes the index at the end of file by default. However, if I save incomplete mkv file while encoding and compare it with the final clip, I can see more than ...
1
vote
0answers
212 views

Is there a simple explanation of x264 encoding parameters?

So, x264 is still the most popular (free) H.264 encoder out there. But it is also still considered ridiculously cryptic as well. There are tons of switches and options in the encoder that allow you to ...
1
vote
0answers
28 views

How to make batch ffmpeg with this codes?

How i batch render with ffmpeg with this code on windows? Codes work well. ffmpeg -y -loop 1 -i background_image.png -i mainmovie.mov -filter_complex "[0:v]setpts=PTS-STARTPTS[V1]; ...
1
vote
0answers
66 views

ffmpeg command to transcode video to multiple videos fit with MPEG-DASH

I need to transcode video and add it to Wowza server. is there any recommded command that I can use to transcode the vedeo in best way to work with mpeg-dash.
1
vote
0answers
38 views

What the equation that we should use to know the bitrate value?

I'm using ffmpeg to transcode mp4 file, I got the below command from: http://www.wowza.com/forums/content.php?192-Encoding-Suggestions-for-Video-on-Demand. ffmpeg -y -i Butterfly_HD_1080p.mp4 -s ...
1
vote
0answers
71 views

FFmpeg : Check if the aac bitstream is malformed or not

I want to upload few sets of videos on my server and later play them in the HTML5 video tag. But some of them are not playing. I checked the audio stream and video stream of the video, they have AAC ...
1
vote
0answers
111 views

Streaming WebM on unsupported platforms (Safari, IE, etc)

I'd like to stream WebM videos to browsers that don't support it (like Safari/IE). I have no problem in converting the video to a supportable format (like MP4), but the encoding should be on-demand, ...
1
vote
0answers
58 views

Losing audio in re-encoding with ffmpeg

I have some DVDs I want to save MP4s from. The video files are VOB files. I can play them if I change the extension to .mp4, but I can't use the seek bar in Windows Media Player. Also, the files are ...
1
vote
0answers
159 views

How to transcode HLS with multiple audio tracks

I am trying to create an HLS playlist with multiple audio streams. I have the following files: videoHD.mp4 videoSD.mp4 audioEN.mp4 audioFR.mp4 audioIT.mp4 How would I transmux these all together ...
1
vote
0answers
652 views

Converting VOB to mp4 (h264) using ffmpeg results in a different length (bya few frames)

I have a VOB file that I want to convert to h264 using x264. I used: ffmpeg -i 01.VOB -f mp4 -c:v libx264 -profile:v baseline -crf 17 -c:a toolame -vbr 3 prehratelne.mp4 which gave me this: ...
1
vote
0answers
147 views

DVB capture into ffmpeg in windows?

Looking for a way to use ffmpeg dshow to open a tv capture card within windows. I have tried running the list devices command and my usb capture does not show. If it is a device limitation, Im happy ...
1
vote
0answers
114 views

Why does parameter round in ffmpeg's cropdetect default to 16?

I have been experimenting with some ffmpeg options and I could not figure out, why the resulting files had been in a format I did not want. After further combing through the man pages, I realized that ...
1
vote
0answers
78 views

Is there a way? multiple images to looping video via ffmpeg?

I want to use ffmpeg to create a 15 second looping video from images for posting to instagram. For instance: Camera takes 3 pictures Each image plays for 2 frames (3 images = 6 frames) After 6 ...
1
vote
0answers
343 views

FFMPEG Sync Audio & Video From Pi Camera & USB Microphone

Posted this in the Raspberry Pi community, but it got closed for being off topic. Reposting in the hopes that it is now in the right place. I am trying to stream low-quality audio & video from my ...
1
vote
0answers
830 views

The ffmpeg`s filter_complex blend respecting overlay`s alpha channel

I need to blend an video with an semitransparent png like this: [1:0][0:0]blend=all_mode=average Seems like the transparency of png is ignored. What I missed? How to make the ffmpeg to respect ...
1
vote
0answers
146 views

How to get ffmpeg/x264 to use same parameters as input?

I'm trying to accomplish a smart rendering workflow using ffmpeg/x264. In short, get ffmpeg to segment the input file. Locate the segment(s) with changes to be made. Re-encode altered segments with ...
1
vote
0answers
607 views

Switching between H.264 video streams on the fly?

I have several H.264 encoded MP4 files, as well as still images. From these I want to generate a single video stream that I can broadcast. The stream will be composed of alternating still images and ...
1
vote
0answers
337 views

ffmpeg-php with fixed width and height and without stretch or squish

Hi there I googled for hours but no success to solve... This code works for me exec("ffmpeg -i $SourcePath -ar 22050 -ab 32 -f wemp -vf scale=500x400,setdar=16:9 $uploadpath1 2>&1"); but ...
1
vote
0answers
784 views

Lossless Editing by Combining Clips with FFmpeg x264

My new Canon Vixia HF G30 video camera has an option to encode directly to 35 Mbit/sec Mp4 at 1080p60 and it does a nice job. I primarily use it to record my daughter's high school basketball games. ...
1
vote
0answers
815 views

High bitrate in AVCONV converted MPG file causes DVD reading problem

I convert AVI to MPEG with folowing command: avconv -i file.avi -c:v mpeg2video -b:v 6000k -c:a mp2 -b:a 384k file.mpg When the MPG file has been burned to DVD it is hard to read afterthat. The DVD ...
1
vote
0answers
465 views

ffmpeg - convert video to iDevice format, replace sound with normalized WAV file, while maintaining the original video quality?

I'm using this command line to extract the audio $ffmpeg -i video.mkv -c:a pcm_s16le audio.wav this is its output ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers built on Oct 1 ...