LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I convert 1080p/720p video to 480p using ffmpeg? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-convert-1080p-720p-video-to-480p-using-ffmpeg-4175523803/)

Livestream 10-30-2014 11:17 AM

How do I convert 1080p/720p video to 480p using ffmpeg?
 
I would like to know how to convert 1080p/720p video to 480p using ffmpeg with minimal quality loss(assuming lossless conversion is impossible).

c0d3d 10-30-2014 12:43 PM

This should do the trick:
Code:

ffmpeg -i /path/to/input -s WxH /path/to/output

metaschima 10-30-2014 01:50 PM

Provide the output of
Code:

ffmpeg -i input.mkv
as well as specific codecs you want to use, and I'll recommend some commands. In general it's something like:

Code:

ffmpeg -i input.mkv -vcodec libx264 -vpre medium -crf 15 -s 640x272 -aspect 640:272 -r 23.976 -threads 4 -acodec libvo_aacenc -ab 128k -ar 48000 -async 48000 -ac 2 -scodec copy output.mkv
https://trac.ffmpeg.org/wiki/Encode/H.264

Livestream 10-31-2014 06:15 AM

Quote:

Originally Posted by metaschima (Post 5262005)
Provide the output of
Code:

ffmpeg -i input.mkv
as well as specific codecs you want to use, and I'll recommend some commands. In general it's something like:

Code:

ffmpeg -i input.mkv -vcodec libx264 -vpre medium -crf 15 -s 640x272 -aspect 640:272 -r 23.976 -threads 4 -acodec libvo_aacenc -ab 128k -ar 48000 -async 48000 -ac 2 -scodec copy output.mkv
https://trac.ffmpeg.org/wiki/Encode/H.264

Thank you for providing me with that link. I think I will find what I need there.


All times are GMT -5. The time now is 07:31 AM.