Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [video-conversion]

The video-conversion tag covers software & formats related to converting videos from one format or container to the other.

57
votes
3answers
48k views

Resizing videos with ffmpeg/avconv to fit into static sized player

I have a html 5 video player which is 700px wide, 400px high. I'm trying to use avconv to use ffmpeg to resize (while retaining the aspect ratio) and making sure it fits into my player. Input can be ...
28
votes
1answer
16k views

What is the “sameq” or “same_quant” option in FFmpeg? Does it mean “same quality”?

Often, I've seen FFmpeg commands using the sameq option, for example ffmpeg -i input.mp4 -sameq output.avi What does this mean? Does it mean "same quality"? If not, what should I use instead?
41
votes
1answer
140k views

Convert AVI (Xvid) to MP4 (H.264) keeping the same quality

I want to compress an AVI file to MP4 using an h.264 codec. I could not get the same quality. How can I compress it? Original Video: Original Video Screen: FFmpeg console output (ffmpeg -i input....
17
votes
7answers
2k views

What tool can I use to to rip DVD movies? [closed]

What tool can I use to to rip DVD movies? I have used "Dr. DivX" long back. Is there any better tool to rip DVDs?
42
votes
2answers
155k views

Handbrake settings to convert MKV to MP4 while retaining the original quality

I have a ton of MKV files I need to convert to MP4 and my chosen software is Handbrake. I'm stuck on which settings would be best for the conversion. I want to retain full quality. Do I just convert ...
10
votes
3answers
44k views

Batch Convert .mkv to .mp4

I want to batch convert all .mkv files in a folder into .mp4 with VLC. It should use the original video-/audio stream and if possible the .ass subtitle of the .mkv. It's not really a conversion, it's ...
24
votes
2answers
44k views

How to extract subtitles from MP4 and MKV movies

I'm trying to extract subtitles from MP4 and MKV movies. I'm using mp4box (on OS X) but cannot figure out how it works. Any hints?
7
votes
2answers
30k views

Converting images to video using FFMPEG on Windows

I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG. I've ...
3
votes
3answers
6k views

Batch convert videos from MPG to AVI

I have a few hundred short MPEG files (each ~10 seconds) that I need to batch convert to AVI. What would be the best way to do this? I've tried using WinFF but the quality was very subpar.
29
votes
5answers
50k views

What is the CORRECT way to fix keyframes in FFMPEG for DASH?

When conditioning a stream for DASH playback, random access points must be at the exact same source stream time in all streams. The usual way to do this is to force a fixed frame rate and fixed GOP ...
36
votes
2answers
77k views

Converting video from 1080p to 720p with smallest qualiti loss using ffmpeg

I stack with my high quality movie: 1080p with 60fps. The trouble is lags while playing. I tried to convert it to 720p with ffmpeg: ffmpeg -i MyMovie.mkv -r 60 -s hd720 MyMovie_720p.mkv But I ...
19
votes
2answers
52k views

How to cut at exact frames using ffmpeg?

I'm trying to use ffmpeg to cut video files at precise times. The ffmpeg help shows an option -timecode_frame_start to specify the starting frame but I am unable to get this command to work. The ...
9
votes
4answers
388 views

What is the easiest way to convert MPEG video to FLV format?

I have MPEG video (.mpg) that I would like to convert to FLV format for use in Flash players. What is the easiest (idiot-proof) way to do this on a Windows machine?
7
votes
3answers
10k views

How do I convert WTV (and DVR-MS) files into a smaller standard format?

The external hard drive on my HTPC is almost full and so I'm going to need to convert a large number of the films recorded from the television (in WTV format) into something smaller. At present, a 2 ...
6
votes
1answer
13k views

Convert AVI into H.264 that works inside an HTML5 Video tag

I would like to convert an existing black and white AVI into an H.264 video that works inside an HTML5 video tag. I'm currently using this ffmpeg command: ffmpeg -i file.avi -y -c:v libx264 file....
2
votes
1answer
673 views

How to split video files upon detected change in resolution? (ie. recorded streams containing multiple widths)

I have many video files (flv/mp4) that change resolution mid-stream (720p/1080p/640). I would like to use something like ffmpeg to automatically detect the change in resolution and split the videos ...
1
vote
2answers
4k views

Converting 5.1 audio to stereo and keeping both tracks

Let's say I have a video file that has 5.1 audio (maybe AAC or something) and I want to convert that track to stereo so I can use it with Plex without doing any transcoding. Well, I also want to keep ...
3
votes
0answers
680 views

Ffmpeg sync error, first image showing really fast

I want to converting my images with mp3 to videos... but first slide is showing up really fast. I want to each slide duration 5-7 seconds or so RAW material MP3 Files My list Images FFmpeg git-...
2
votes
2answers
431 views

Converting home video tape to digital? [duplicate]

Possible Duplicate: What do I need to be able to convert analog video (VHS, or an old camcorder) on a Mac? My mother has some old home movies recorded on video tape that she'd like to convert to ...
2
votes
1answer
8k views

What file extensions does ffmpeg support?

I'm trying to extract a subtitle from a Blu-ray disc and it is an hdmv_pgs_subtitle. So I try ffmpeg -i file.m2ts -map 0:3 -scodec copy rip3/test.sub and get Could not write header for output ...
1
vote
0answers
610 views

ffmpeg conversion to MP4 not working

I am sort of a newbie when it comes to FFMPEG (with php) but I have have been studying up on it for the last couple of weeks. when i use shell commands like: echo shell_exec('ffmpeg -i input.3gp ...
0
votes
1answer
2k views

Video cut with missing frames in FFmpeg

I have tried every possible command to cut a portion (1-3 mins) of an H.264 mp4 video but it comes out good & bad. My video is 29.97 FPS, 1080p, ~80 minutes, ~3.5 GB, and at ~6200 KB/s bitrate. ...
35
votes
7answers
56k 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 are ...
28
votes
4answers
149k views

How can I watch a side-by-side 3D video in 2D?

I have a 3D movie (.MKV), with side-by-side 3D, and it works just fine at home. Now I want to see it at my friend's house, and they don't have a 3D system. Is there any way to crop one of the sides ...
17
votes
1answer
33k views

Convert specific video and audio track only with ffmpeg

I have an MKV file (vidui.mkv) with 6 tracks in it. Track 1 - video - xvid - 1920x1080 Track 2 - video - xvid - 720x576 Track 3 - audio - AAC - 1240kbps - English Track 4 - audio - AAC - 648kbps - ...
10
votes
2answers
22k views

How does bitrate differ for the same resolution and framerate?

Reading about video quality I found that it depends of resolution, frames per second and bitrate, which decides the size of the video. My question is how the bitrate is calculated and how it can ...
11
votes
2answers
8k views

FFMPEG - Convert a video to a timelapse

I'm using ffmpeg in flash builder (Action script 3) to convert a video to a time lapse of the video. I've worked out how to use setpts to do this, but the resulting output file is the same length as ...
7
votes
2answers
3k views

Change rotation flag in MP4 video (without losing metadata)

I just want to change the rotation flag in a .mp4 video file. Many similar questions exist, most answers suggest using ffmpeg -i input.mp4 -map_metadata 0 -metadata:s:v rotate=90 -codec copy output....
4
votes
1answer
60k views

Convert any video to HD Video

I bought a PC that has Intel HD graphics card built it, which supports Full HD Video at its best (1080p). But many videos online are not in HD Format (less than 720p). Hence if I need to convert to ...
12
votes
2answers
54k views

How to make an MPEG2 video file with the highest quality possible using FFMPEG?

I have got a WMV (v9 (WMV3), 960x720, 30.000030 fps, planar 4:2:0 YUV, produced by PowerPoint 2010) file and need to convert it to MPEG2 - the only format my TVset can read from an USB flash drive (I ...
10
votes
1answer
18k views

Extracting every frame from video file as image in OS X

What I want to do is extract every frame of a video file and output the images. I tried using VLC's commands through terminal, however it seems to be skipping frames, even though I turned off "skip ...
8
votes
1answer
5k views

FFmpeg split video and merge back

I'm trying to use FFmpeg to split video based on some start_time and end_time inputs, and replace those with other video files. For instance, for input 10 15 I will need to replace EXACT seconds 10 to ...
8
votes
3answers
10k views

ffplay - how to play together separate video and audio files

So I am able to transcode separate video and audio files into one movie file, like so: ffmpeg -ss 0 -lowres 0 -r 24 -i dcp/picture.mxf -vf "xyz2rgb" -i mov/sound.wav -ac 2 -ab 256k -vb 3000k -t 10 -y ...
2
votes
1answer
5k views

Fix an m4v video that has lagging audio (audio and video out of sync)

Here's a similar question for windows: Tool to fix video that's out of sync with audio? I'm hoping to solve this problem on a Mac. I've tried Handbrake and Avidemux (the latter seems to have an ...
1
vote
3answers
12k views

Conversion from WebM to MP4 in Ubuntu is slow and bad quality

I have used the command ffmpeg -i input.webm -q:v 10 -c:a copy out.mp4 I also tried using avconv instead of ffmpeg. The conversion is successful but the quality is bad. Also it takes a lot of time. ...
3
votes
3answers
3k views

FFmpeg tweaks for converting from WMV to FLV?

When using ffmpeg to convert from .wmv files to .flv files, I find that either the quality is too low or the bps is too high. I am working on a Ubuntu Linux installation. Any suggestions? The bps ...
2
votes
1answer
3k views

Lossless rotation of video (MPG, MP4)? [duplicate]

It is possible -- indeed, quite easy -- to rotate JPEG-files without re-encoding them, which means, no additional loss of quality is introduced in the process. Is the same possible for the similarly-...
8
votes
2answers
2k views

Convert Mp4 to Mp3 with thumbnail

I'm able to convert a mp4 to a mp3 in ffmpeg, but I'm not sure how I would add in a thumbnail of the video. Currently have this to convert from mp4 to mp3 ffmpeg -i video.mp4 -acodec libmp3lame -...
5
votes
2answers
23k views

How to convert Webex' WRF to any other video format?

I've recorded a Webex WRF screencast and I'd like to convert it to WMV or AVI or something. The Webex Editor keeps saying it needs Windows Media Player 9. Is there any other way to convert WRF?
4
votes
2answers
13k views

What video codec puts the CPU/GPU under the least possible load while decoding?

I'm interested in transcoding a video I own for use as a screensaver; size isn't an issue, but I want to stress the processor and video card as little as possible as far as video decoding goes. What ...
4
votes
3answers
6k views

How can I check the integrity of an avi file and repair it automatically in Linux?

I have an avi file and tried to check it as suggested here. But after a short while I just got a segmentation fault, without any other information! How is it possible to fix/repair this avi file? ...
3
votes
1answer
9k views

ffmpeg warning: “Timestamps are unset in a packet” when converting H264 to mp4

I am getting the following warning message when executing ffmpeg: [mp4 @ 00000000025c00a0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. ...
3
votes
1answer
1k views

FFmpeg x264 Encode Settings

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. ...
2
votes
1answer
4k views

ffmpeg settings for VHS mpeg2/mp2 to H264/MP4 VBR conversion and reducing file size

My input is as follows: Input #0, mpeg, from 'D:\Videos\2015.mpg': Duration: 01:49:08.74, start: 0.220000, bitrate: 4940 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg), ...
2
votes
1answer
4k views

ffmpeg overlay video on another video in specific time

I have video with duration 01:30 min and i have another video with duration 00:50 sec i want to overlay the second video on the top of the first video at 00:45 to 00:50 i'm trying to use this command ...
1
vote
1answer
4k views

FFMPEG for animation of image files outputs all-black video

I am trying to create an animation of a few images ("f_01.png", "f_02.png", ..., "f_08.png") that are each a different solid colour, but it always outputs a video entirely made up of black frames. ...
4
votes
3answers
468 views

Batch-split many AVIs in 2 parts?

how can I batch split many AVIs into 2 parts, with no conversion? NB: this didn't help much What is the best software to split and join avi files?
4
votes
1answer
3k views

Include external subtitles while converting video with FFmpeg

Is it possible to use subtitles from an external file while converting a video with FFmpeg? The file extension of the subtitles is .stl or .vob.
3
votes
5answers
31k views

Convert large .mov file to .avi or other small file format

I have a large 3G .mov file that I need to post online or attach in an email (hopefully the final output will be less then 100mb). What is the best way for me to do this, quickly and for free?
2
votes
0answers
3k views

FFMPEG fade between images

I need to do cross fade transition between two images and followed this link which works perfect for two images. ffmpeg -loop 1 -i input0.png -loop 1 -i input1.png -filter_complex "[1:v][0:v]blend=...