estatejas.blogg.se

Ffmpeg encode h264 example
Ffmpeg encode h264 example











ffmpeg encode h264 example

However I found it introduce some loss in particular situations. Note that since the initial recording was lossless, and the re-encode is lossless too, no quality loss is introduced in this process in any way.īased on this I trusted the guide and assumed using -qp 0 I would achieve a fully lossless workflow )

ffmpeg encode h264 example

This is also repeated in the realtime capture section help when talking about an optional re-encoding with a slower preset to try saving some size: Use of -qp is recommended over -crf for lossless because 8-bit and 10-bit x264 use different -crf values for lossless.

ffmpeg encode h264 example

You can use -qp 0 or -crf 0 to encode a lossless output. ffmpeg -f dshow -i video="screen-capture-recorder" -video_size 1920x1080 -framerate 30 -c:v libx264 -crf 0 -preset ultrafast capture.mkvīased on what is said on ffmpeg h264 documentation with the -qp 0 or -crf 0 options libx264 should work in lossless mode. I got curious on ffmpeg screen capture capabilities and started messing around with a simple realtime capture test in h264.













Ffmpeg encode h264 example