I downloaded the latest FFMPEG for Windows (Version 3.2.4).
I wanted to use it for converting a MOV File which contains qtrle
uncompressed video.
The video can be downloaded on this link - https://www.sendspace.com/file/qjjkhj.
I can view the video in VLC Media Player yet when I try convert it in VLC into any video format the output is invalid video file.
I also tried using FFMPEG using the following command - ffmpeg -i DL126H.mov -c:v copy VideoClip0002.mp4
. Yet the result was: [mp4 @ 00000000026744e0] Could not find tag for codec
qtrlein stream #0, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argumentStream mapping:
.
I also tried the following - ffmpeg -i DL126H.mov -c:v mpeg2video -b 16M out.mpg
yet the output, just like in the case of VLC was invalid video file.
So I'd like the assistance with:
- Convert into Windows friendly format (With High Quality)?
- Change container into format working in Windows (With no rencoding).
- Convert into valid MPEG2 (
.mpg
) with high bit rate.
Thank You.
Answer
The syntax is simply
ffmpeg -i DL126H.mov -pix_fmt yuv420p VideoClip0002.mp4
This will encode using default parameters i.e. using libx264 at CRF 23 and AAC at 128 kbps.
To use custom parameters, like better video quality, use
ffmpeg -i DL126H.mov -crf 18 -pix_fmt yuv420p VideoClip0002.mp4
This will preserve more of the source quality but a larger file
In FFmpeg's case, the 'release' build is never the latest version. Always go for the nightly/snapshot/git build.
If you want to encode to MPEG-2, use
ffmpeg -i DL126H.mov -c:v mpeg2video -b:v 16M -bufsize 30M -maxrate 30M -pix_fmt yuv420p VideoClip0002.mp4
The MPEG-2 spec was designed during SD video days and its defaults are not suitable for HD video. So a couple of them have to be manually overridden. The result plays for me in WMP12.
No comments:
Post a Comment