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.

58
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 ...
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 ...
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....
37
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 ...
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 ...
30
votes
3answers
34k views

Convert from MOV to MP4 Container format

I have a digital camera that records nice 1080p H.264 format but unfortunately it uses the MOV container format. Basically I have nothing but the camera and VLC that play this format natively. Is ...
30
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 ...
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?
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 ...
27
votes
4answers
19k views

Lossless extraction of streams from WebM

I would like to extract streams from WebM video files without converting them (re-compression), can somebody recommend any software that can allow this?
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?
20
votes
6answers
96k views

M3U8 file to MP4 conversion?

Can an M3U8 video file be converted to MP4? I have had no luck finding a file converter that can do this since the M3U8 file is really an Audio playlist with many smaller files in a folder.
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 ...
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 - ...
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?
15
votes
3answers
22k views

VOB conversion quality in FFmpeg

I am trying to convert a VOB file to mpeg like this: ./ffmpeg.exe -i VTS_01_2.VOB -r 24 out1.mpeg However, the quality is very poor. I tried ./ffmpeg.exe -i VTS_01_2.VOB -vcodec copy out1.mpeg ...
15
votes
1answer
13k views

ffmpeg - How to copy|extract encoding settings from existing media file?

I wished to be able do this multiple times now so I ask. If I have an existing video or audio file, ffmpeg, mplayer and other media players can detect at least some of it's "propreties" like ...
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 ...
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 ...
11
votes
3answers
22k views

How do I reduce the file size of videos?

I need to reduce the file size of some of my HD videos, since I am running out of storage space. A lower resolution is acceptable, and other methods are welcome. I would prefer a GUI solution, as I am ...
10
votes
2answers
37k views

What's the difference between FFmpeg's “-vcodec copy” and “-sameq”?

What is the difference between using -vcodec copy and -sameq with FFmpeg? Do they do the same thing?
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 ...
10
votes
2answers
20k views

Why is converting WMV to MP4 so slow?

I am trying to convert a video from WMV to MP4 with FFmpeg but it takes couple of hours. If I try to convert it to AVI it only takes about 10-15 minutes. ffmpeg version ffmpeg version N-43206-...
10
votes
2answers
4k views

How do I convert webm to mp4 for MacOSX?

I'm on MacOSX Lion and would like a method for converting webm to mp4 (or another iTunes compatible format). ffmpeg seems like a possibility but the documentation is a bit obtuse for me; step-by-step ...
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 ...
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 ...
10
votes
1answer
5k views

FFmpeg/avidemux: fix packed B-frames

I'm transcoding some of my old mpeg4 videos (in avi containers) to h.264 with FFmpeg. Basically ffmpeg -i input.avi -c:v libx264 [x264 settings] -c:a libfdk_aac [aac settings] output.mp4 When doing ...
9
votes
3answers
22k views

VLC could not open the mp4a audio encoder

I am attempting to use the Convert/Save feature of VLC to convert an mkv file to an mp4. (H.264 video with MPEG-4 AAC audio) I get the following error: VLC could not open the mp4a audio encoder ...
9
votes
1answer
22k views

Using ffmpeg to make a movie from png files

I have 277 800x600 png files with filenames with the format island_sizes-CSH(II)-###.png where ### is a number starting with 084 and ending at 360. I'm doing ffmpeg -i island_sizes-CSH\(II\)-*.png ...
9
votes
4answers
389 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?
9
votes
2answers
16k views

How to see what command-line options handbrake sends to mencoder

I want to see what command-line options handbrake is sending to mencoder. I looked at the Activity Window and it shows a lot of stuff but not what I'm looking for. How can I find it?
9
votes
1answer
17k views

What H.264/H.265 video compression parameters provide DVD-equivalent quality with better compression?

I have got a box of DVD video disks that I seek to get rid of while I'd like to keep the videos by converting them into MP4 files to store them on a hard drive. Considering superiority of the modern ...
9
votes
2answers
3k views

converting a static file to a h264/mp4 stream produces sped up video

I'm building a NodeJS application that converts a static videofile to a streamable video which is being sent to a client (iPad or browser) on the fly (using the fluent-ffmpeg module). Everything is ...
8
votes
6answers
29k views

Can VLC crop black borders on the fly?

Many recordings have black bars either on top and bottom or at the left and right side due to the various aspect ratios used, resulting in a 4:3 coded 16:9 movie showing black borders on all four ...
8
votes
2answers
5k views

Why is encoding VP8/9 so slow compared to H.264?

Recently I wanted to try out the Webm codecs VP8 and VP9 but when I ran ffmpeg to encode a H.264 MP4 file into one of the other two codecs, I realized that the encoding is (by almost an order of ...
8
votes
2answers
16k views

FFMPEG mkv to mp4 conversion loses subtitles

Currently trying to convert my mkv library to mp4 (Iphone 6 plus) I've managed to get to mkv to mp4 conversion correctly, but I'm missing the subtitles part (SRT) Here's my code: dir/b/s *.mkv >...
8
votes
4answers
16k views

How can I mix two movies together before I handbrake them?

How can I mix two movies together before I handbrake them? I've got a two part movie on my disk as a pair of VideoTS folders. I want to generate one output movie. I plan on using handbrake to do the ...
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 ...
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
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 -...
8
votes
1answer
25k views

ffmpeg: Could not find codec parameters for stream 0 (Video: h264) unspecified size

I try to convert a video from .raw to .mp4. For this reason I did download, build and install both x264 and ffmpeg. However, command: ffmpeg -f h264 -i output.raw -vcodec copy output.mp4 fails with ...
7
votes
3answers
9k views

Convert video from .mp4 to .ogg

I am using ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers . I need to convert a file .mp4, to .ogg format. I am on Mac OS X, and I have tried this so far: ffmpeg -i sample_mpeg4....
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 ...
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....
7
votes
3answers
8k views

How to convert MP3 to Youtube-allowed video format?

I have many MP3 files on my website and I have decided to upload them to Youtube, but unfortunately for me, Youtube does not allow me to do that. It requires video format only. How can I convert ...
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 ...
7
votes
2answers
9k views

Using FFmpeg filter without video conversion

Does anyone have an idea of how I can put an image mask over the video without changing the audio & video codec? I'm making different media files for testing purposes and I want control over my ...
7
votes
3answers
937 views

How to convert .avi video that has 1 static image in the video (with sound) to mp4 video with ffmpeg to least possible size?

I've an .avi video (divx) that's at 25fps and it has mp3 audio at 64kbit/s. This video has just one image throughout the entire video. I'm trying to convert this video to mp4 but to make it as small ...
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....
6
votes
5answers
414 views

Convert videos to iPod Touch-friendly formats [closed]

I have a bunch of Xvid videos lying around, and I would love to convert them to a format that will play on my iPod touch efficiently and quickly. What free programs can do this? Although I am after ...