I tried adjusting the keyframe steps to be 8 frames so there's an even number of keyframes in hopes that the compressor will land on a keyframe at the first and last frames of the loop and more closely match the source frame, but it still ends up with a pop at the loop (in addition to a larger file size). However, if your mp4 files are already very high quality, I expect the size difference will not be so great. Update of ffmpeg Update of AOM AV1 (3.6.0) Codec Update of vpx (1.13.0) Codec. ffmpeg -i test.webm -vf zscaletlinear:npl100,formatgbrpf32le,zscalepbt709,tonemaptonemaphable:desat0,zscaletbt709:mbt709:rtv,formatyuv420p -c:v libx264 -crf 17 -preset slower test2.mp4. I know the technical details as to why it's happening (because of the encoding process the block chunks are different from the first to last frame thus the pop), I just don't know what to do about it. ffmpeg -i input.mp4 -lossless 1 output.webm When I tried -lossless 1 on a low-quality mp4, the resulting webm was 100× larger, which was not accceptable to me. Of course, this pop only occurs when compressing, it is perfectly seamless in AE with no glitches. When encoding either to h264 or webm vp9 and working around 3000kbps to 8000kbps, at the loop point there's a noticeable "pop" in the loop as the video resets. This converts the webm to mp4 and the mp4 quality is great: ffmpeg -i video.webm -fflags +genpts -r 25 video.mp4. Step 10: After converting your files from the WebM to MP4 format, you can find it in the Output folder which you have created before. This will be a very quick post more as a reference for use to revert back to when needed, recently we had to convert a video into three format webm, ogv and mp4. So I have a 7-second seamless looping video to be used as a web background in the form of a png sequence. Now the ffmpeg will start converting your WebM file to the MP4 format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |