or Connect
AVS › AVS Forum › Display Devices › Display Calibration › Creating Test Patterns
New Posts  All Forums:Forum Nav:

Creating Test Patterns - Page 2

post #31 of 44
Quote:


hank315, do you have any ideas why the HCenc encode would not play? It is being authored using Ulead Movie Factory to HD DVD, burned to DVD+R, and tested on XA2. We can get you an ISO or anything else you want if you would like to take a look. I would still like to use HCenc for the entire disc, but we can't figure out why it will not play.

Really don't know why it won't play, I can't find anything weird in the log you posted.
Maybe dump the colorimetry output (the sequence display extension isn't needed) and use the MPEG standard matrix.
I will certainly have a look at the encode, kind of curious myself why it doesn't play.
Please PM me how to obtain it.
post #32 of 44
Quote:
Originally Posted by hwjohn View Post

My apologies to hank315, I misunderstood how HCenc worked. I thought that it would switch between 9.8 Mbps and 29.4 Mbps based on input resolution. What it actually does is code whatever max bitrate you give it. For example, if I set 15 Mbps max bitrate and 6 Mbps avg. bitrate, then it codes 15 Mbps into the stream, so it is working correctly. The VBV also seems to be correct.

I encoded two clips using the same Avisynth script and as close to the same settings between HCenc and QuEnc as possible. The bad news is that the Toshiba XA2 we are testing on will not play any of the HCenc encoded files for some reason (just gives an error code and won't read the disc). On the other side, QuEnc produces buffer underflows when I mux using TMPGEnc. The resulting video stutters as the buffer drops.

Below is the output from Ron's program to analyze the sequence headers. It looks like QuEnc might be underflowing because the VBV is too small. It actually sets the bitrate the same way HCenc does. Both clips were encoded at a max bitrate of 15000, avg. of 6000.

QuEnc:
Code:
Interactive MPEG Decoder intd 0.72A
@ v
Verbose output turned on.
@ th
High level trace turned on
@ f1
 Found Sequence Start Code at byte position 0.
     435 Sequence_Header_Code
    1920 Horizontal_Size_Value
    1080 Vertical_Size_Value
       3 Aspect_Ratio_Information
       4 Frame_Rate_Code
   37500 Bit_Rate_Value
       1 Marker_Bit
     192 Vbv_Buffer_Size_Value
       0 Constrained_Parameters_Flag
       0 Load_Intra_Quantiser_Matrix
       0 Load_Non_Intra_Quantiser_Matrix
* --------  Sequence Start Code at 0        ---------
* Picture size: 1920x1080   Frame rate: 29.97   Bitrate: 15.00 Mb/s
* VBV size: 3072 Kb   Intra QM: default   Non Intra QM: default
     437 Extension_Start_Code
       1 Extension_Start_Code_Identifier
      72 Profile_And_Level_Indication
       1 Progressive_Sequence
       1 Chroma_Format
       0 Horizontal_Size_Extension
       0 Vertical_Size_Extension
       0 Bit_Rate_Extension
       1 Marker_Bit
       0 Vbv_Buffer_Size_Extension
       0 Low_Delay
       0 Frame_Rate_Extension_N
       0 Frame_Rate_Extension_D
* Progressive sequence.
* Main Profile, Main Level MPEG-2 bitstream.
     440 Group_Start_Code
    4096 Time_Code
       0 Closed_Gop
       0 Broken_Link
* --------       GOP Start Code at 22       ---------
* Open GOP at 00:00:00.00  drop flag: 0
     256 Picture_Start_Code
       0 Temporal_Reference
       1 Picture_Coding_Type
   65535 Vbv_Delay
       0 Extra_Bit_Picture
* Using VBR VBV model.
* --------          Intra frame at 30       ---------
* Temporal Reference:  0       VBV: 3145728 (+ 0) bits
     437 Extension_Start_Code
       8 Extension_Start_Code_Identifier
      15 Forward_Horizontal_F_Code
      15 Forward_Vertical_F_Code
      15 Backward_Horizontal_F_Code
      15 Backward_Vertical_F_Code
       0 Intra_Dc_Precision
       3 Picture_Structure
       0 Top_Field_First
       1 Frame_Pred_Frame_Dct
       0 Concealment_Motion_Vectors
       0 Q_Scale_Type
       0 Intra_Vlc_Format
       0 Alternate_Scan
       0 Repeat_First_Field
       1 Chroma_420_Type
       1 Progressive_Frame
       0 Composite_Display_Flag
* Intra DC:  8 bits            Quant scale: linear
* Scan: zig-zag                Intra VLC table: 0
* Top field first: 0           Repeat first field: 0
 Found Picture Start Code at byte position 49229.
HCenc:
Code:
Interactive MPEG Decoder intd 0.72A
@ v
Verbose output turned on.
@ th
High level trace turned on
@ f1
 Found Sequence Start Code at byte position 0.
     435 Sequence_Header_Code
    1920 Horizontal_Size_Value
    1080 Vertical_Size_Value
       3 Aspect_Ratio_Information
       4 Frame_Rate_Code
   37500 Bit_Rate_Value
       1 Marker_Bit
     597 Vbv_Buffer_Size_Value
       0 Constrained_Parameters_Flag
       0 Load_Intra_Quantiser_Matrix
       1 Load_Non_Intra_Quantiser_Matrix
      16 Non_Intra_Quantiser_Matrix
      17 Non_Intra_Quantiser_Matrix
      17 Non_Intra_Quantiser_Matrix
      18 Non_Intra_Quantiser_Matrix
      18 Non_Intra_Quantiser_Matrix
      18 Non_Intra_Quantiser_Matrix
      19 Non_Intra_Quantiser_Matrix
      19 Non_Intra_Quantiser_Matrix
      19 Non_Intra_Quantiser_Matrix
      19 Non_Intra_Quantiser_Matrix
      20 Non_Intra_Quantiser_Matrix
      20 Non_Intra_Quantiser_Matrix
      20 Non_Intra_Quantiser_Matrix
      20 Non_Intra_Quantiser_Matrix
      20 Non_Intra_Quantiser_Matrix
      21 Non_Intra_Quantiser_Matrix
      21 Non_Intra_Quantiser_Matrix
      21 Non_Intra_Quantiser_Matrix
      21 Non_Intra_Quantiser_Matrix
      21 Non_Intra_Quantiser_Matrix
      21 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      22 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      23 Non_Intra_Quantiser_Matrix
      24 Non_Intra_Quantiser_Matrix
      24 Non_Intra_Quantiser_Matrix
      24 Non_Intra_Quantiser_Matrix
      25 Non_Intra_Quantiser_Matrix
      24 Non_Intra_Quantiser_Matrix
      24 Non_Intra_Quantiser_Matrix
      24 Non_Intra_Quantiser_Matrix
      25 Non_Intra_Quantiser_Matrix
      26 Non_Intra_Quantiser_Matrix
      26 Non_Intra_Quantiser_Matrix
      26 Non_Intra_Quantiser_Matrix
      26 Non_Intra_Quantiser_Matrix
      25 Non_Intra_Quantiser_Matrix
      27 Non_Intra_Quantiser_Matrix
      27 Non_Intra_Quantiser_Matrix
      27 Non_Intra_Quantiser_Matrix
      27 Non_Intra_Quantiser_Matrix
      27 Non_Intra_Quantiser_Matrix
      28 Non_Intra_Quantiser_Matrix
      28 Non_Intra_Quantiser_Matrix
      28 Non_Intra_Quantiser_Matrix
      28 Non_Intra_Quantiser_Matrix
      30 Non_Intra_Quantiser_Matrix
      30 Non_Intra_Quantiser_Matrix
      30 Non_Intra_Quantiser_Matrix
      31 Non_Intra_Quantiser_Matrix
      31 Non_Intra_Quantiser_Matrix
      33 Non_Intra_Quantiser_Matrix
* --------  Sequence Start Code at 0        ---------
* Picture size: 1920x1080   Frame rate: 29.97   Bitrate: 15.00 Mb/s
* VBV size: 9552 Kb   Intra QM: default   Non Intra QM: loaded
     437 Extension_Start_Code
       1 Extension_Start_Code_Identifier
      68 Profile_And_Level_Indication
       1 Progressive_Sequence
       1 Chroma_Format
       0 Horizontal_Size_Extension
       0 Vertical_Size_Extension
       0 Bit_Rate_Extension
       1 Marker_Bit
       0 Vbv_Buffer_Size_Extension
       0 Low_Delay
       0 Frame_Rate_Extension_N
       0 Frame_Rate_Extension_D
* Progressive sequence.
* Main Profile, High Level MPEG-2 bitstream.
     437 Extension_Start_Code
       2 Extension_Start_Code_Identifier
       2 Video_Format
       1 Colour_Description
       1 Colour_Primaries
       1 Transfer_Characteristics
       1 Matrix_Coefficients
    1920 Display_Horizontal_Size
       1 Marker_Bit
    1080 Display_Vertical_Size
     434 User_Data_Start_Code
* -------- User Data Start Code at 98       ---------
     124 User_Data
      72 User_Data
** Unknown type: 72 (error reporting turned off)
      67 User_Data
     101 User_Data
     110 User_Data
      99 User_Data
      32 User_Data
      48 User_Data
      46 User_Data
      50 User_Data
      50 User_Data
      46 User_Data
      48 User_Data
      46 User_Data
      48 User_Data
      32 User_Data
      45 User_Data
      32 User_Data
      40 User_Data
      99 User_Data
      41 User_Data
      32 User_Data
      50 User_Data
      48 User_Data
      48 User_Data
      52 User_Data
      47 User_Data
      50 User_Data
      48 User_Data
      48 User_Data
      55 User_Data
     124 User_Data
     440 Group_Start_Code
    4096 Time_Code
       1 Closed_Gop
       0 Broken_Link
* --------       GOP Start Code at 134      ---------
* Closed GOP at 00:00:00.00  drop flag: 0
     256 Picture_Start_Code
       0 Temporal_Reference
       1 Picture_Coding_Type
   65535 Vbv_Delay
       0 Extra_Bit_Picture
* Using VBR VBV model.
* --------          Intra frame at 142      ---------
* Temporal Reference:  0       VBV: 9781248 (+ 0) bits
     437 Extension_Start_Code
       8 Extension_Start_Code_Identifier
      15 Forward_Horizontal_F_Code
      15 Forward_Vertical_F_Code
      15 Backward_Horizontal_F_Code
      15 Backward_Vertical_F_Code
       0 Intra_Dc_Precision
       3 Picture_Structure
       0 Top_Field_First
       1 Frame_Pred_Frame_Dct
       0 Concealment_Motion_Vectors
       1 Q_Scale_Type
       0 Intra_Vlc_Format
       0 Alternate_Scan
       0 Repeat_First_Field
       1 Chroma_420_Type
       1 Progressive_Frame
       0 Composite_Display_Flag
* Intra DC:  8 bits            Quant scale: non-linear
* Scan: zig-zag                Intra VLC table: 0
* Top field first: 0           Repeat first field: 0
 Found Picture Start Code at byte position 50149.
@
I'm going to try using QuEnc by patching the VBV and seeing if it plays smoothly.

hank315, do you have any ideas why the HCenc encode would not play? It is being authored using Ulead Movie Factory to HD DVD, burned to DVD+R, and tested on XA2. We can get you an ISO or anything else you want if you would like to take a look. I would still like to use HCenc for the entire disc, but we can't figure out why it will not play. Thanks in advance for any help you could give, and I apologize again for giving bad information.

My guess is that it's the user data after the display extension. HD DVD uses GOP user data for closed captioning, and maybe the decoder is getting confused with this non-standard user data. Is there a way to shut that off?

Ron
post #33 of 44
Quote:


My guess is that it's the user data after the display extension. HD DVD uses GOP user data for closed captioning, and maybe the decoder is getting confused with this non-standard user data. Is there a way to shut that off?

Sounds logical... It can't be disabled ATM, I will create a version which doesn't output the user data to see if it solves it.
post #34 of 44
Ron,
I have uploaded the files that those logs came from to the usual place, in case you are interested in taking a look. There are two self extracting archives that contain the muxed mpgs and the elementary m2v. MiscH was encoded using HCenc, MiscQ was encoded using QuEnc, and MiscQPatched is the same QuEnc clip but hex edited after muxing for correct VBV.

I have also uploaded the avisynth script and yuv files used to feed the encoders.

Hank,
I have sent you an email with details on how to get the files. Thanks again for your help.
post #35 of 44
Quote:
Originally Posted by dr1394 View Post

My guess is that it's the user data after the display extension. HD DVD uses GOP user data for closed captioning, and maybe the decoder is getting confused with this non-standard user data. Is there a way to shut that off?

Ron

Ron,
That worked. Thanks for the help!
post #36 of 44
Ron/Hank,
Do either of you guys have any experience with h264 streams (you wrote xport didnt you Ron)? We are trying to get the same calibration disc that we have made for HD DVD onto Blu-ray. The Ulead software we are using to author will create an AVCHD disc, but it will only accept a .mov container.

I am using x264 and MeGUI to encode a test clip to h264, which works fine. However, I can't get either the .264 elementary stream or a muxed .mp4 into a .mov container for use with the Ulead software. I have used about every piece of software I know to use.

The closest I have come is with Quicktime Pro, which will convert a muxed .mp4 to .mov, but only if I use the Export command and the output has a white screen for the first half of the video. It also seems that QuickTime transcodes the video no matter what you do.

You guys got an idea on how this can be done?

Thanks in advance.

List of software tried (some in combination with others):

ffmpeg
MeGUI
mkvtoolnix
Elecard Xmuxer Pro Trial
QuickTime Pro
VideoLAN
TsRemux
MP4box/Yamb
Avidemux
post #37 of 44
Ok, I got the h264 into .mov using ffmpeg. I had to use -vcodec copy so that it wouldn't transcode the video and it seems to work.

We are still having trouble with the Ulead software, but for now we are a step closer...

Ron,
Is there anyway to compare the .mpv output from xport with the original h264 to see if it was transcoded? We think the Ulead software is transcoding the h264 stream we feed it in the .mov, but I don't know of a reliable way to tell. I can't get gspot to show me anything other than the codec after I demux with xport.
post #38 of 44
Quote:
Originally Posted by hwjohn View Post

Ok, I got the h264 into .mov using ffmpeg. I had to use -vcodec copy so that it wouldn't transcode the video and it seems to work.

We are still having trouble with the Ulead software, but for now we are a step closer...

Ron,
Is there anyway to compare the .mpv output from xport with the original h264 to see if it was transcoded? We think the Ulead software is transcoding the h264 stream we feed it in the .mov, but I don't know of a reliable way to tell. I can't get gspot to show me anything other than the codec after I demux with xport.

You should be able to just do binary file compare with the original x264 file and the demuxed file. In a command window, use:

fc /b original.264 bits0001.mpv

I also have an H.264 parser that dumps tons of info:

http://www.w6rz.net/h264_parse.zip

If you still don't feel comfortable, upload the files and I'll check them out.

Ron
post #39 of 44
Quote:
Originally Posted by dr1394 View Post

You should be able to just do binary file compare with the original x264 file and the demuxed file. In a command window, use:

fc /b original.264 bits0001.mpv

I also have an H.264 parser that dumps tons of info:

http://www.w6rz.net/h264_parse.zip

If you still don't feel comfortable, upload the files and I'll check them out.

Ron

Thanks Ron. I wasn't sure if the mux/demux process could change insignificant parts of the stream that would make a binary compare fail. At any rate, I compared them and they aren't the same.

It looks like at this point that the Ulead software transcodes the .mov no matter what we do, which we are trying to avoid.

We have found that it will accept a muxed m2ts, but only if the video stream is mpeg2. It then transcodes the mpeg2 stream to AVC/h264 for use on the AVCHD disc. For some reason we have not been able to get it to accept an m2ts with an h264 video stream. I think it may be rejecting them because they aren't "compliant" enough. I have been using a combination of ffmpeg/TSRemux to get an m2ts file. We are testing some new files now, but it is very hit or miss.

You don't happen to have an "mport" that muxes m2ts do you? Thought I would ask; seems like you have everything but a time machine in your bag of tricks.
post #40 of 44
Ron,
I'm using xport and h264_parse to analyze the stream that Ulead transcoded. I figure if I can figure out what it transcodes to, then I have a better chance of feeding it something that it will refrain from transcoding.

Quick question. In the stream I have:

Code:
mb_adaptive_frame_field_flag : 0

frame_mbs_only_flag:0
And for every picture I care to check (you weren't kidding about verbose):

Code:
field_pic_flag:1
Does this for sure indicate that the stream is interlaced (not paff or mbaff, which I don't really understand)?

Is there any way I can determine frame rate?
post #41 of 44
How do you decode a mpeg2 to .tga frames using 16-235?
post #42 of 44
Thread Starter 
http://www.avsforum.com/avs-vb/showt...2#post12445522 and http://www.avsforum.com/avs-vb/showt...3#post12446743 refer to going from video to images. The second uses 16-235 levels.
post #43 of 44
Quote:
Originally Posted by alluringreality View Post

http://www.avsforum.com/avs-vb/showt...2#post12445522 and http://www.avsforum.com/avs-vb/showt...3#post12446743 refer to going from video to images. The second uses 16-235 levels.

Works also for SD videos?
post #44 of 44
Quote:
Originally Posted by blutarsky View Post

Works also for SD videos?

I don't think yuvtorgb is going to work for Rec. 601 material. It's been a while since I used it, but I'm pretty sure that the decoding matrix is hard coded for Rec. 709.

I think Ron has another version of yuvtorgb that he made for GetGray that does use Rec. 601. You might be able to find a link to it by searching the GetGray thread, it seems like I have seen it before.

EDIT: I was wrong. If you follow the second link provided by alluringreality, you will see that yuvtorgb has command line options to do Rec. 601 or 709 matrices, as well as video or pc levels. To get a decoded SD YUV file to RGB should be something like this:

yuvtorgb -v -6 720 480 test.yuv test.tga

That should give you a .tga image that you can inspect with Photoshop. Keep in mind you will first have to use the reference decoder (ldecod) to decode the MPEG stream to 4:2:0, then use clipyuvhd to get a 4:2:2 series of images that yuvtorgb will accept as input. I think you already have those parts figured out.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Display Calibration
AVS › AVS Forum › Display Devices › Display Calibration › Creating Test Patterns