[Cin] Report guessed / detected SAR/DAR values

Andrew Randrianasulu randrianasulu at gmail.com
Wed Jan 10 01:23:09 CET 2024


ср, 10 янв. 2024 г., 02:37 Andrew Randrianasulu <randrianasulu at gmail.com>:

>
>
> ср, 10 янв. 2024 г., 02:29 Phyllis Smith <phylsmith2017 at gmail.com>:
>
>> Strange results in my "go to" test file with "guessed".  See bold below.
>>
>> file path: /root/media1/Britney Spears - Pepsi Commercial with Bob
>> Dole.mpeg
>>   15817144 bytes
>> info:
>> format: mpeg
>>
>> 1 video stream
>> vid0 (0),  id 0x000001:
>>   video1 mpeg1video  352x240 29.97 pix yuv420p
>>   interlace (container level): 1
>>   interlace (codec level): -1
>>     color space:unknown/ range:tv
>>   *Guessed SAR: 200:219, DAR: 880:657 *
>>     2712+0 frms 90.51 secs  0:01:30.51
>>
>
> from wcalc console calculator:
>
> -> 880/657
>  = 1.33942
>
> so ... it just different representation?
>
> There is code in mwindow.C that does display aspect ratio calculations
> ..... May be I can reuse that for more user-friendly display .....
>


I also tried to just reduce max number (1024*1024) it allowed to reduce to
just 100. May be it will work better ... ? currently testing.

>
>
>
>
>> While "mediainfo" reports what I consider to be correct:
>>
>> Video
>> ID                                       : 224 (0xE0)
>> Format                                   : MPEG Video
>> Format version                           : Version 1
>> Format settings                          : CustomMatrix / BVOP
>> Format settings, BVOP                    : Yes
>> Format settings, Matrix                  : Custom
>> Format settings, GOP                     : Variable
>> Duration                                 : 1 min 30 s
>> Bit rate mode                            : Constant
>> Bit rate                                 : 1 150 kb/s
>> Width                                    : 352 pixels
>> Height                                   : 240 pixels
>> *Display aspect ratio                     : 4:3*
>>
>> On Sun, Jan 7, 2024 at 9:21 AM Andrew Randrianasulu <
>> randrianasulu at gmail.com> wrote:
>>
>>> in ffmpeg asset detailed info
>>>
>>> for files like HDV info is guessed, for files like mov / mp4 you
>>> sometimes can get detection working.
>>>
>>> code lifted from dump.c and ffprobe.c
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240110/f36841ce/attachment.htm>


More information about the Cin mailing list