![]() When the conversion completes, you should have changed your AVI files to MP4 files without quality loss. The article he quotes mentions using multi-pass conversion, which is a good way to achieve better compression without sacrificing quality. Try this command line in FFmpeg for converting AVI to MP4 files: ‘ffmpeg -i input.avi -c:v libx264 -preset slow -crf 19 -c:a libvoaacenc -b:a 128k’. Marty Jay helpfully mentions that sameq means same quantizer as in the input, which may not result in the same quality. The last time I transcoded video I used qscale=8.0, but I'd suggest that you experiment to find the optimum to match the quality of your input. The lower the number the better the quality, but the more space your file will take. Alternatively, you may want to use the qscale option to set the quality manually. my x264 command: ffmpeg -i 'Video.mp4' -c:a copy -c:v libx264 -crf 0 'x264 Test.mp4' -y (>15GB before I prematurely stopped it, it wasnt even finished) The NVENC command has -cq 0 (equal to lossless) while x264 has -crf 0 (also equal to lossless). I hope you can use zetah's suggestion above in his comment and use the -sameq switch. ffmpeg: Video convert m2ts to mp4, mp4 to webm, mp4 to ogv tools Raw script.sh MP4 TO MP4 (MEDIUM) ffmpeg -i input.mp4 -b 1000000 output.mp4 M2TS TO MP4 ffmpeg -i input.m2ts -vcodec libx264 -crf 20 -acodec ac3 -vf 'yadif' output.mp4 MP4 TO WEBM (HIGH) ffmpeg -i input.mp4 -aq 5 -ac 2 -qmax 25 -threads 2 output. If you must transcode because you need to use a particular video codec codec:copy may be helpful if you don't have a reason to transcode (and it should be faster). It is compatible with a wide range of devices and operating. ![]() You always lose a little quality whenever you transcode from one codec to another, video or audio, but perhaps you can avoid it if you only want to change from MP4 container type to an AVI container. MPEG-4 (MP4) is a container video format that can store multimedia data, usually audio and video. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |