ffmpeg v7.1 h264 (libx264) stretching video on X-axis (take2 w/ smaller pix)
first time posting here, take it easy on me ;-) seems i slightly exceeded the size limit and posting was truncated ffmpeg version 7.1-essentials_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.2.0 (Rev1, Built by MSYS2 project) here's my syntax: ffmpeg -i $1 -c:v libx264 -crf 20 -c:a copy h264-$1 you can clearly see the guitarist's face is much wider after h264 processing am i missing something obvious!? p.s. note the default help syntax doesn't work in v6.0 nor 7.1 (this is the command listed in https://trac.ffmpeg.org/wiki/Encode/H.264) : ffmpeg -hide_banner -f lavfi -i nullsrc -c:v libx264 -preset help -f mp4 - x264 [error]: invalid preset 'help'
On 03-01-2025 00:59, Dat Head wrote:
first time posting here, take it easy on me ;-) seems i slightly exceeded the size limit and posting was truncated
ffmpeg version 7.1-essentials_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
here's my syntax: ffmpeg -i $1 -c:v libx264 -crf 20 -c:a copy h264-$1
you can clearly see the guitarist's face is much wider after h264 processing
am i missing something obvious!?
p.s. note the default help syntax doesn't work in v6.0 nor 7.1 (this is the command listed in https://trac.ffmpeg.org/wiki/Encode/H.264) :
ffmpeg -hide_banner -f lavfi -i nullsrc -c:v libx264 -preset help -f mp4 - x264 [error]: invalid preset 'help'
Well overlaying both images on top of each other clearly shows the face did not get wider, however because the transcoded image lacks some fine details it appears to look wider.
On Fri, Jan 3, 2025 at 4:26 PM Ferdi Scholten <ferdi@sttc-nlp.nl> wrote:
Well overlaying both images on top of each other clearly shows the face did not get wider, however because the transcoded image lacks some fine details it appears to look wider.
Well, I think the OP meant that the aspect ratio changed. Indeed the width is the same but the height changed from 540px to 480px, so that makes it look "wider". Now I admit I have no idea why... Vincent
it is def distorted in some way, but vlc player is what is making it look that way i think now, i brought the orig mpeg2 and h264 up in avidemux and don't see the issue. can anybody explain the Aspect Ratio numbers in the square brackets of the original? (that is only diff i see and indeed it's an aspect issue) Input #0, matroska,webm, from 'all.mkv': Duration: 01:24:44.31, start: 0.033000, bitrate: 5684 kb/s Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, fcc/bt470bg/bt470bg, bottom first), 720x480 [SAR 8:9 DAR 4:3], SAR 1:1 DAR 3:2, 29.97 fps, 29.97 tbr, 1k tbn (default) Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s (default) Size: 3.4G ================================================================================== Input #0, matroska,webm, from 'h264-all.mkv': Duration: 01:24:44.28, start: 0.000000, bitrate: 2433 kb/s Stream #0:0: Video: h264 (High), yuv420p(tv, fcc/bt470bg/bt470bg, bottom coded first (swapped)), 720x480 [SAR 1:1 DAR 3:2], 29.97 fps, 29.97 tbr, 1k tbn (default) Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s (default) Size: 1.5G On Fri, Jan 3, 2025 at 11:47 AM Vincent Deconinck <vdeconinck@gmail.com> wrote:
On Fri, Jan 3, 2025 at 4:26 PM Ferdi Scholten <ferdi@sttc-nlp.nl> wrote:
Well overlaying both images on top of each other clearly shows the face did not get wider, however because the transcoded image lacks some fine details it appears to look wider.
Well, I think the OP meant that the aspect ratio changed. Indeed the width is the same but the height changed from 540px to 480px, so that makes it look "wider". Now I admit I have no idea why...
Vincent _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
oops, sorry i top posted last reply (newbie!) well adding -aspect 4:3 to ffmpeg made it work as i expected (meaning no unanticipated aspect changes) but don't know why that was needed in this case (i'd still like to hear about the square bracket ratio numbers, versus the non-bracketed ones)
participants (3)
-
Dat Head -
Ferdi Scholten -
Vincent Deconinck