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).
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;
...
Thanks for answer.
I searched this header in wrong position.
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.
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
At the moment there is no option to change the aspect ratio. The TS-Doctor just shows the detected AR.
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