[FFmpeg-user] low quality video using raspberry pi
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Feb 21 13:13:54 CET 2016
shuvro majumder <shuvromaj <at> gmail.com> writes:
> ffmpeg -f video4linux2 -s 320*240 -r 20 -i /dev/video0 out.mpg
(-r 20 may be wrong, -s 320x240 looks wrong.)
If this is meant as a fast intermediate step to loose as
little quality as possible, use -qscale 2 -mbd 2
If this has size constraints, please add -b with an
appropriate bitrate for your size constraints.
> ffmpeg -i out.mpg -c:v libx264 -preset slower -crf 30 -c:a copy output.h264
If you have size constraints (you wrote that you have them)
do not use a constant quality but specify a bitrate.
Note that the -h264 file format that you specified does
not support audio, so -acodec copy makes no sense.
More information about the ffmpeg-user