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

1
vote
2answers
83 views

Convert .WMV using FFmpeg

I'd like to use FFmpeg on the Mac Terminal command line to convert a .WMV file. I'm familiar with the syntax: ffmpeg -i /path/OriginalMovieFile.wmv /path/NewMovieFile.??? However, my recent attempt ...
1
vote
0answers
11 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
18 views

ffmpeg reducing 60fps to 30fps, but file size is larger

I just did: ffmpeg -i inputfile -r 30 -vcodec libx264 -an -s hd480 output_30.mp4 and ffmpeg -i inputfile -vcodec libx264 -an -s hd480 output_60.mp4 on a 60fps file. Why is the second file 27 MB ...
1
vote
0answers
14 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, ...
1
vote
1answer
33 views

ffmpeg encoded videos are not playing on mobile browser

I have set up a server to upload and play videos. I used django/python as the scripting language, and nginx and gunicorn as the webserver. I am using videojs as the video player. For h264 mp4 I tried ...
1
vote
1answer
30 views

ffmpeg - resize and crop

I want to know how to use the scale filter to take an image that is 2154x1136 and scale it down exactly 89.04% such that the image sits in a 1920x1080 frame, with full image left and right and black ...
1
vote
0answers
7 views

avconv converting videos in really bad quality

I have this linux command line app called avcon. It is used to converting files. For instance if I have a file called video.mp4 I can run avconv -i video.mp4 video.ogg and it will convert this ...
1
vote
0answers
22 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 ...
0
votes
0answers
9 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 ...
2
votes
2answers
60 views

FFMpeg Encoding and Core Usage

We have developed an application to transcode source .mov files into .ogg, .mp4 and .webm output. It is currently running on AWS EC2 instance g2.8xlarge. It is working (yay!). My question: Even ...
1
vote
1answer
45 views

FFmpeg : Error occurred while encoding audio stream from ac3 to aac

I am using following command to encode my video to h264 and aac audio codec : ffmpeg -i sample.mp4 -codec:v libx264 -profile:v high -level:v 4.0 -codec:a libvo_aacenc -b:a 128k output_file.mp4 ...
0
votes
0answers
15 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, ...
2
votes
0answers
32 views

FFmpeg pan filter and clipping

I have a file that has one video stream and one audio stream with 8 channels. I want to create a new file that will only contain the first 2 channels of the audio stream (no video). I can do this ...
0
votes
1answer
55 views

How to encode video to profile high using ffmpeg?

This is my first post here. I am in a situation where my original file is of profile High and transcoding profile is High10. I am suspecting that this is the cause my video is not getting played in ...
2
votes
0answers
17 views

Video transitions and filters - how to create custom ones?

I am wondering if there is a possibility to do custom video transitions or filters. Like the video spiraling out, little squares appearing, circling out or something like that. Wiping the video out ...
1
vote
1answer
19 views

ffmpeg multi quality conversion?

is there any way in a one line of command i convert mp4 file to ts ,but with 3 different quality as output files ? for example 480p 720p 1080p ? Regards,
2
votes
2answers
428 views

FFMpeg and HLS, videos need to load in their entirety before they start playing

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
0answers
34 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
25 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 ...
4
votes
2answers
139 views

Moving Crop in Video

I have an HD video of a speaker giving a lecture. I would like to resize the video by cropping each frame, but the cropping rectangle needs to be centered on the speaker's head as he moves around the ...
0
votes
1answer
77 views

Putting a Lower bitrate of my video stream in my current mp4 container

Sorry if my question is too noobish, this is my first question. What I have is: An mp4 movie with a video stream and an audio stream. What I want in the output: Is an mp4 file containing: the same ...
2
votes
1answer
237 views

Unable to concatenate videos due to identical MOOV atoms

I am cutting out segments from a long mp4 file and then rejoining parts of them. However, since FFMPEG apparently keeps the same MOOV atom for the trimmed files as the original, it looks to FFMPEG ...
1
vote
0answers
33 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 ...
2
votes
2answers
43 views

How can I set the first frame of a video to an I-frame and the rest to P-frames (preferably with ffmpeg)?

I'd like to try to do some datamoshing like this tutorial. But I'd like to be able to do it programatically, so instead of vdub and avidemux, I'd like to figure out how to do as many parts of this ...
1
vote
1answer
56 views

ffmpeg stream options for mp3, cover art of mp4

I have potentially millions of HLS streaming videos to create from cover art and mp3s. Obviously, I'd like to keep the resulting bandwidth to a minimum. I tried various ffmpeg flags specifically ...
2
votes
1answer
74 views

Converting files to Avid-friendly DNxHD MXF

Please forgive the noob question, I'm new here. I've looked for an answer on this forum but not found one so far. I've also tried the BMXlib forum. I'm trying to convert small video files that have ...
1
vote
0answers
11 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 ...
3
votes
2answers
1k views

How to hold the last frame when using ffmpeg

I'm cutting/converting some videos with ffmpeg. What I'd really like is to be able to have the output hold the last frame for a few seconds (with silence for audio). Is such a thing possible? Or ...
5
votes
2answers
4k views

How to concatenate clips from the same video with ffmpeg

I have a long video with different scenes in it. I want to extract and concatenate 2 scenes from the video (that do not start on an I-frame) using ffmpeg 2.1.4. For argument, say I want 5 seconds ...
2
votes
2answers
44 views

VOB editing with FFMPEG

I read that it is better to extract from vob H264 files within a .ts to have a lossless and more accurate sample, easy to cut, is that correct ? I used these commands : ffmpeg -i VTS_01_1.VOB ...
0
votes
0answers
32 views

Crossfading audio at beginning and ending of video

The html5 video tag has a loop attribute. When playing a video in a continuous loop, it doesn't do this seamlessly. I hear cracks and pops at the beginning. With ffmpeg I am able to trim .05 seconds ...
5
votes
3answers
10k views

How can I convert .MTS file (AVCHD) to .mp4 by ffmpeg without re-encoding H264 video stream?

Note: I posted same question to stackoverflow a short time before, when I have not found this comunity yet. I repost this since the question is more suitable to this community. 1. What I tried I ...
2
votes
1answer
372 views

Lossy output with FFMPEG JPEG 2000

I'm trying to achieve a lossy JPEG 2000 output with FFMPEG, but no success so far. Using this command line: ffmpeg -i input.dpx -pix_fmt yuv420p -vcodec libopenjpeg output.jp2 As a result I get ...
3
votes
1answer
134 views

Video converted by FFMPEG has a different duration, why?

I convert videos using FFMPEG. My goal is to convert them to the MP4 container format (MPEG-4 Part 14) with AAC-encoded audio stream and MPEG-4 part 10-encoded video stream. I use the following line ...
3
votes
1answer
280 views

ffmpeg drawtext filter - create transparent background with text

I am currently working with the drawtext filter. So far I have only been successful with drawtext option configurations to use the right font and place the text horizontally centered. How could i get ...
2
votes
1answer
106 views

ffmpeg - video with timer

I am currently working with the drawtext and drawbox filters to recreate a similar video appearance to what is shown below in the image. I am trying to see of a possible ways to add a count down timer ...
1
vote
0answers
162 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: ...
2
votes
1answer
121 views

Freeze frame effect with ffmpeg

I am currently fiddling with ffmpeg to achieve a freeze frame effect and so far have been unsuccessful. I have been able to do this with adobe after effects shown here. However I would like to achieve ...
2
votes
1answer
94 views

HTML5 background video encoding settings

I'm doing a full page background video and I'm trying to convert the original mp4 to an webm. The background will not have any audio. I'm currently using ffmpeg. ffmpeg -i INPUT.mp4 -b 614400 -s ...
1
vote
0answers
49 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 ...
0
votes
1answer
117 views

Can I run this in one command line (ffmpeg)

I used this command ffmpeg -i thevideo.mp4 -c:a copy -vf 'drawbox= : x=0 : y=0 : color=invert:enable=between(t\,11\,39)' output.mp4 but it runs very slow. So, I took another approach, I copy first ...
2
votes
1answer
506 views

Non-Monotonous DTS on concat (ffmpeg)

After running this command ffmpeg -f concat -i mylist.txt -c copy output.mp4 - I'm getting corrupted output.mp4 file and this message: ffmpeg -f concat -i mylist.txt -c copy output.mp4 ffmpeg version ...
1
vote
1answer
183 views

FFMPEG: Why does the concat filter cause loss of a/v sync/lipsync?

I am doing some tests with the FFMPEG concat filter (DASH experiments), and am seeing that I start losing lipsync after a few concatenations. Is it expected that one can concatenate independent ...
1
vote
1answer
190 views

using -force_key_frames in ffmpeg with libx265

I'm trying encode a video stream using HEVC with ffmpeg and create a MPEG-TS file. I need to be able to insert IDR frames to certain locations in the stream. I came across the flag -force_key_frames ...
1
vote
0answers
79 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 ...
-3
votes
1answer
24 views

FFMPEG 2 audio track input

Here is what I have so far . I just dont know how to add plughw:1,0 into the command . I have tested that recording does work on plughw:1,0 . function stream { ffmpeg -r 10 -threads 2 \ -f ...
2
votes
1answer
56 views

How to extract Xtra atom from MP4 file?

Can one dump/extract the Xtra atom from an MP4 file ? I am looking for a solution on a linux system (debian/jessie if possible). Apparently this atom is used by WMP, as per link. I'd like to be able ...
1
vote
1answer
265 views

How to resolve ffmpeg error cannot load default config file?

I have got this error message when using ffmpeg [Parsed_drawtext_0 @ 03bdc300] Could not load font "/Library/Fonts/DroidSansMono.ttf": cannot open resource Fontconfig error: Cannot load default ...
1
vote
1answer
115 views

Converting container or transcode movies to iPhone from command line (os x)

Over the years I collected many movies in different container formats (avi, mp4, mkv) and encoded with different codecs too. Now want convert containers (or transcode them if absolutely necessary) to ...
0
votes
0answers
52 views

FFMPEG: Windows binaries with globbing (libavformat) support?

I am struggling to get ffmpeg to combine a bunch of images in to a video which have a format with a full 17 digit timestamp. 17 digits is well beyond what -i %d will support. So I want to use ...