Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
8th September 2008, 01:30 | #1 | Link |
Registered User
Join Date: Sep 2007
Posts: 31
|
Adding Aspect Ratio-Flag to H264-RAW-Streams
Hi,
when creating H264-streams with x264 and anamoprhic settings such as --sar 16:11 there will be AR-Information present in the bitstream after encoding. Code:
aspect_ratio_info_present_flag: 1 aspect_ratio_idc:4 (--sar 16:11) So, is there a little tool existing, that can add the ar-information back into the stream? greets LTJ |
8th September 2008, 14:35 | #3 | Link |
Registered User
Join Date: Sep 2007
Posts: 31
|
I already tested this tool before posting here.
Unfortunately this tool does its job not correct. After patching the Stream the AR is correct, but playing the File with mpc+ffdshow, VLC, mplayer as RAW and muxed to MKV with -engage keep_bitstream_ar_info, results in grey frames combined with macroblock-salad. H264Info changes something in the bitstream, but doesnīt add the correct entry into the SPS-NALU as posted above. Iīm wondering a little bit that there is no real solution for this, I am already looking for such a tool for a while. For a good C++ programmer it should be no problem to write a little tool that offers the ability to add / remove these little VUI-Parameters. As far as I know, decoding the SPS-NALU is not very hard. There are only signed and unsigned integer and a few Exp-Golomb coded bits. Donīt get me wrong, I would do this by myself, but I would need weeks, perhaps month, with my extremly bad C++ - knowledge . greets LTJ |
Thread Tools | Search this Thread |
Display Modes | |
|
|