Questions tagged [video-conversion]
The video-conversion tag covers software & formats related to converting videos from one format or container to the other.
99
questions
96
votes
3
answers
98k
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 a ...
31
votes
1
answer
21k
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?
57
votes
4
answers
159k
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 ...
72
votes
7
answers
125k
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 ...
61
votes
1
answer
189k
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....
57
votes
2
answers
203k
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 ...
18
votes
7
answers
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?
25
votes
3
answers
28k
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....
24
votes
1
answer
29k
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 ...
11
votes
3
answers
52k
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
3
answers
8k
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.
98
votes
9
answers
186k
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 ...
98
votes
3
answers
234k
views
Converting video from 1080p to 720p with smallest quality 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 ...
68
votes
3
answers
67k
views
Why does preset "veryfast" in FFmpeg generate the most compressed file compared to all other presets?
The FFmpeg wiki says that the best compression rate is by preset "veryslow".
But when I am trying it with my video then preset veryfast provides the best compression in my case.
The following is the ...
63
votes
2
answers
128k
views
How do I convert 10-bit H.265 / HEVC videos to H.264 without quality loss?
My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to ...
25
votes
3
answers
45k
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 >...
11
votes
4
answers
442
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?
8
votes
1
answer
16k
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....
7
votes
3
answers
12k
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 ...
4
votes
1
answer
3k
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 ...
3
votes
2
answers
10k
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
1
answer
14k
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 ...
3
votes
1
answer
7k
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. ...
3
votes
0
answers
760
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
2
answers
453
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 ...
1
vote
0
answers
11k
views
ffmpeg encoding requested yuv420p but got yuvj420p
When I encode with ffmpeg on Ubuntu 18, the default encoder h264 (libx264) uses by default the pixel format yuvj420p.
But https://ffmpeg.org/doxygen/trunk/pixfmt_8h_source.html says that ...
1
vote
1
answer
7k
views
Why using b-frames does not reduce the size of my video (using ffmpeg and nvenc)?
I have this command
ffmpeg -i input.mp4 -vcodec h264_nvenc -rc vbr_hq -cq 19 -rc-lookahead:v 32 -preset slow -profile:v main -c:a copy output.mp4
For my one-minute test video, it produces a file ...
0
votes
1
answer
1k
views
ffmpeg overlay a video after alphamerging two others
I currently have this command to alphamerge two videos, and upscale one of them.
ffmpeg -i video.mp4 -i matte.mp4 -filter_complex '[1][0]scale2ref[mask][main];[main][mask]alphamerge' -c:v qtrle output....
62
votes
1
answer
100k
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 - ...
59
votes
1
answer
135k
views
Downloading m3u8 videos [closed]
I am trying to download video from a .m3u8 livestream video format.
How can I download m3u8 videos using software on my personal computer such as ffmpeg, youtube-dl, VLC, etc?
M3U is a computer file ...
38
votes
4
answers
273k
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 ...
25
votes
8
answers
116k
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.
21
votes
2
answers
23k
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 ...
19
votes
2
answers
17k
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 ...
18
votes
5
answers
21k
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 ...
18
votes
5
answers
34k
views
Rip CD/DVD with ffmpeg
Is this possible with ffmpeg? Do you have any links that explain how to do this?
I have searched with Google but had not many results.
I just want to be able to convert a CD or DVD to MP3 audio ...
18
votes
2
answers
29k
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 ...
17
votes
2
answers
97k
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 ...
16
votes
1
answer
27k
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 ...
15
votes
7
answers
66k
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 ...
13
votes
1
answer
14k
views
Ffmpeg upscale and letterbox a video
I have a video with that is 480x360 in resolution, what I want to do is upscale this video to 1280:720 and not loos the original videos aspect ration ( letterbox the left and right side)
So I know ...
11
votes
3
answers
56k
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 ...
11
votes
3
answers
18k
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 ...
10
votes
3
answers
4k
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
5
answers
39k
views
VLC media player select audio track for conversion
When using VLC media player to convert a video with multiple audio tracks into another format (that may support only one audio track) using only one audio track, how do I select the audio track that ...
8
votes
1
answer
37k
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. ...
7
votes
2
answers
32k
views
How to convert an mp4 to mp4 using FFmpeg?
I have a set of MP4 files; all of them play with VLC on my Ubuntu box. But when copy them to USB; and want to play them from my TV (Grundig, 28 VLE 5500WG) some work; others do not.There is no ...
7
votes
2
answers
25k
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 ...
6
votes
2
answers
27k
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?
5
votes
3
answers
15k
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.
...