video - High Quality Screen Capture with FFmpeg -
i'm trying figure out command high quality screen capture on rehl.
i have tried various options, none worked. quality not enough. i'm quite new ffmpeg , doesn't quite understand different flags. appreciated!
the commands have tried:
ffmpeg -y -f x11grab -r 30 -s 1920x1080 -i :0.0+0,0 -vcodec libx264 -strict -2 -b:v 16m output.mov
the first command tried. weird thing doesn't seem preserve bitrate specified -b:v 16m
. output video's bitrate 2mb/s. not correct way specify bitrate when doing screen capture?
ffmpeg -f x11grab -s 1920x1080 -r 30 -i :0.0 -qscale 0 -vcodec huffyuv output.mov
the huffyuv codec supposed lossless, quality doesn't seem better libx264 output.
ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0+0,0 -vcodec copy -pix_fmt yuv420p -qscale 0 -an output.mkv ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1920x1080 -r 30 -i output.mkv -an -c:v libx264 -qscale 0 result.mov
i'm trying capture rawvideo , convert libx264 codec viedeo. output corrupted.
i'm using version of ffmpeg that's built on april 23rd year. doesn't have preset -vpre lossless_ultrafast
see mentioned in lot posts.
edit:
after more research, command end using. have use h264 codec , yuv420p pixel_fmt since need able play quicktimes using quicktime.
ffmpeg -y -f x11grab -framerate 30 -video_size 1920x1080 -i :0.0+0,0 -c:v libx264 -pix_fmt yuv420p -qp 0 -preset ultrafast output.mov
the quality doesn't seem improved though -qp set 0. because of rgb conversion yuv color space according post.
found on internet, maybe answer question:
http://wiki.oz9aec.net/index.php/high_quality_screen_capture_with_ffmpeg
edit: answer outdated mentioned in comments. please ignore.
Comments
Post a Comment