Need to figure out how to do this with ffmpeg.įfmpeg -hide_banner -i testvideo.mp4 -bsf:v h264_metadata=crop_left=128:crop_right=128:crop_top=0:crop_bottom=0 -codec copy 4 If FFMPEG is the problem (can't it set metadata in the output file?), maybe it must be adapted or a multi-tool solution with the command line equivalent of the MKVToolNix GUI header editor might be the way to go. You'd just have to communicate that the feature is limited to MKV output, and that it's just the cropping information that is saved, so the file size isn't reduced and the player is responsible for the actual cropping. In MKVToolNix GUI, import a video file, click the video track, and hover over the text box of "Video properties > Cropping" for help. But for playing purposes, it's very useful. The only caveat is that the video data stays the same and the file size is not reduced. For not supporting players like VLC, bug reports should be filed. I've done it multiple times in the past with MKVToolNix GUI, and it plays perfectly fine in MPC-BE. Actually, this is possible with a Matroska container.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |