Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFMPEG - convert video without losing resolution

I am using ffmpeg to convert mp4 video from youtube. The video is HD 1080. When I convert it to mpeg2video, the video loses its sharpness, regardless of the -s 1920x1080 parameter. How can I convert the video without losing picture sharpness? The command I use is:

ffmpeg -i BBB.mp4 -vcodec mpeg2video -s1920x1080 -acodec copy -f mpegts BBB.ts

like image 732
Srh Avatar asked Feb 03 '23 16:02

Srh


1 Answers

The best way to make sure your images are the same quality as they are before conversion, add -q:v 1. q is quality, v is for video, 1 is for the quality between 1-35, the lowest being the best quality.

That would make your new command as follows:

ffmpeg -i BBB.mp4 -vcodec mpeg2video -s 1920x1080 -q:v 1 -acodec copy -f mpegts BBB.ts
like image 83
jrkt Avatar answered Feb 08 '23 01:02

jrkt