[FFmpeg-user] DAR/SAR

Jim Julian jimlynnjulian2 at yahoo.com
Wed Mar 1 06:37:58 EET 2023


Hello,



   The problem turns out to be a poster thumbnail inserted as data. A closer look shows the thumbnail listed in ffprobe. I removed the thumbnail and the problem was removed as well.
Problem solved.

   I'm not used to this forum format so may have not recognized your response in a message that seemed all junk.

   I incorrectly assumed ffmpeg, VLC, and MediaInfo recognized the full set of Matroska and MPEG-4 tags, except, maybe, for the custom tags in the Matroska specification.

Thank you for your time and interest.
Jim Julian

Cogito ergo sum.
René Descartes circa 1685
“I think, therefore, I am.”

Sum ergo cogito.
Google 2004
“So, I’m thinking...”


> On Feb 28, 2023, at 6:36 PM, Steve Zemlicka <stevezemlicka at gmail.com> wrote:
> 
> Sorry, I just saw that you already ran an ffprobe.  If you run ffprobe
> again and look for Stream #0:0, does yours report the DAR as 4:3?  If so,
> perhaps you were looking at Stream #0:2 when you were seeing the DAR
> 17:25.  If not, then perhaps there's something else going on with your
> build.  If that's the case, let us know which version you're running
> (usually reported at the top of ffprobe/ffmpeg output)
> 
>> On Tue, Feb 28, 2023 at 5:34 PM Steve Zemlicka <stevezemlicka at gmail.com>
>> wrote:
>> 
>> if you run ffprobe [filename], you'll notice that it does indicate 4:3 for
>> stream#0:0
>>  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661),
>> yuv420p(progressive), 640x480, 792 kb/s, SAR 1:1 DAR 4:3, 23.98 fps, 23.98
>> tbr, 23981 tbn (default)
>> 
>> When dealing with aspect ratios, it's always good to do a ffprobe to
>> examine the details of how ffmpeg will interpret/recognize the files.  The
>> entire ffprobe for that file is as follows:
>> 
>> ffprobe version n5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
>>  built with gcc 12.2.0 (GCC)
>>  configuration: --prefix=/usr --disable-debug --disable-static
>> --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm
>> --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl
>> --enable-ladspa --enable-libaom --enable-libass --enable-libbluray
>> --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype
>> --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack
>> --enable-libmfx --enable-libmodplug --enable-libmp3lame
>> --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
>> --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg
>> --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh
>> --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab
>> --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp
>> --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2
>> --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc
>> --enable-opencl --enable-opengl --enable-shared --enable-version3
>> --enable-vulkan
>>  libavutil      57. 28.100 / 57. 28.100
>>  libavcodec     59. 37.100 / 59. 37.100
>>  libavformat    59. 27.100 / 59. 27.100
>>  libavdevice    59.  7.100 / 59.  7.100
>>  libavfilter     8. 44.100 /  8. 44.100
>>  libswscale      6.  7.100 /  6.  7.100
>>  libswresample   4.  7.100 /  4.  7.100
>>  libpostproc    56.  6.100 / 56.  6.100
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x557a198b11c0] stream 0, timescale not set
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Hallelujah (1929)._edit.mp4':
>>  Metadata:
>>    major_brand     : isom
>>    minor_version   : 512
>>    compatible_brands: isomiso2avc1mp41
>>    iTunEXTC        : mpaa|NR|600|
>>    iTunMOVI        : <?xml version="1.0" encoding="UTF-8"?>
>>                    : <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
>> "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
>>                    : <plist version="1.0">
>>                    : <dict>
>>                    : <key>directors</key>
>>                    : <array>
>>                    : <dict>
>>                    : <key>name</key>
>>                    : <string>King Vidor</string>
>>                    : </dict>
>>                    : </array>
>>                    : <key>producers</key>
>>                    : <array>
>>                    : <dict>
>>                    : <key>name</key>
>>                    : <string>Irving Thalberg</string>
>>                    : </dict>
>>                    : </array>
>>                    : <key>screenwriters</key>
>>                    : <array>
>>                    : <dict>
>>                    : <key>name</key>
>>                    : <string>Wanda Tuchock</string>
>>                    : </dict>
>>                    : </array>
>>                    : <key>studio</key>
>>                    : <string>Metro-Goldwyn-Mayer</string>
>>                    : </dict>
>>                    : </plist>
>>                    :
>>    title           : Hallelujah
>>    artist          : Victoria Spivey
>>    genre           : Drama
>>    date            : 1929-08-20
>>    description     : Sharecroppers Zeke and Spunk Johnson sell their
>> family's portion of the cotton crop for $100. They are promptly cheated out
>> of the money by the shill Chick (Nina Mae McKinney), in collusion with her
>> gambling-hustler boyfriend, Hot Shot. Spunk is murdered
>>    synopsis        : Sharecroppers Zeke and Spunk Johnson sell their
>> family's portion of the cotton crop for $100. They are promptly cheated out
>> of the money by the shill Chick (Nina Mae McKinney), in collusion with her
>> gambling-hustler boyfriend, Hot Shot. Spunk is murdered
>>    encoder         : Lavf58.20.100
>>    hd_video        : 0
>>    media_type      : 9
>>  Duration: 01:39:51.41, start: 0.000000, bitrate: 869 kb/s
>>  Chapters:
>>    Chapter #0:0: start 0.000000, end 5991.000000
>>      Metadata:
>>        title           : Chapter 1
>>  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661),
>> yuv420p(progressive), 640x480, 792 kb/s, SAR 1:1 DAR 4:3, 23.98 fps, 23.98
>> tbr, 23981 tbn (default)
>>    Metadata:
>>      handler_name    : VideoHandler
>>      vendor_id       : [0][0][0][0]
>>  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
>> stereo, fltp, 65 kb/s (default)
>>    Metadata:
>>      handler_name    : SoundHandler
>>      vendor_id       : [0][0][0][0]
>>  Stream #0:2[0x0]: Video: mjpeg (Baseline), yuvj420p(pc,
>> bt470bg/unknown/unknown), 680x1000 [SAR 1:1 DAR 17:25], 90k tbr, 90k tbn
>> (attached pic)
>>  Stream #0:3[0x3](und): Data: bin_data (text / 0x74786574)
>>    Metadata:
>>      creation_time   : 2023-02-18T02:49:07.000000Z
>> 
>> On Tue, Feb 28, 2023 at 12:22 PM Jim Julian via ffmpeg-user <
>> ffmpeg-user at ffmpeg.org> wrote:
>> 
>>> I've just finished a dialogue with MediaInfo and there seems to be a
>>> difference in the Linux and Windows versions. I also tried using WSL and
>>> bash without success. The DAR/SAR are still reported incorrectly.
>>> 680x1000 [SAR 1:1  DAR  17:25], where the movie is actually 640x480 and
>>> DAR=4:3.
>>> 
>>> For anyone interested in examing the movie (636Mb) , here's a dropbox
>>> link to the movie:
>>> https://www.dropbox.com/s/d66qlltgnpnru0d/Hallelujah%20%281929%29._edit.mp4?dl=0
>>> 
>>> 
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>>> 
>> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list