Cypheros Transportstream Forum

English-speaking Support => TS-Doctor 1.2 => Thema gestartet von: jirim100 am März 31, 2013, 21:46:54

Titel: Aspect ratio detection
Beitrag von: jirim100 am März 31, 2013, 21:46:54
Please, where is in the header of video packet information about aspect ratio? I try write my own application (only private purposes) for detecting aspect ratio in .ts file (only standard definition).
Titel: Re: Aspect ratio detection
Beitrag von: Cypheros am März 31, 2013, 22:53:08
The aspect ratio information is in the sequence_header (0xB3).

aspect_ratio_information    := (Buffer[7] and $F0) shr 4;
...

Case aspect_ratio_information of
  2: FAspRa := '4/3';
  3: FAspRa := '16/9';
  4: FAspRa := '1/2.21';
end;
...
Titel: Re: Aspect ratio detection
Beitrag von: jirim100 am April 01, 2013, 00:39:27
Thanks for answer.

I searched this header in wrong position.
Titel: Re: Aspect ratio detection
Beitrag von: jirim100 am April 01, 2013, 00:50:50
Please, and from where I have to get the time of change aspect ratio, now I get the PCR time from adaptation field at the begining of ts packet. Then I create VideoRedo project file with marks but the position of this marks is not precise. I am in decoding transport stream beginner.
Titel: Re: Aspect ratio detection
Beitrag von: bbanda am Mai 11, 2013, 22:22:06
I'm editing a file recorded on Fortec Passion Plus HD decoder and I'd like the output file to have an aspect ratio of 16:9 instead of  4:3 obtained at the time using Ts-Doctor software. BB
Titel: Re: Aspect ratio detection
Beitrag von: Cypheros am Mai 11, 2013, 22:39:40
At the moment there is no option to change the aspect ratio. The TS-Doctor just shows the detected AR.
Titel: Re: Aspect ratio detection
Beitrag von: Derrick am Mai 11, 2013, 23:14:49
It would be nice to have an option in TSD for patching the AR. 

@jirim100, in the meantime I'd suggest to use the very old DVDPatcher for mpeg2 :D