How to set GOP Header (I frame of GOP) timestamp

How to set GOP Header (I frame of GOP) timestamp

Hello,

I encoding Raw buffer into Mpeg2-DVD format using IQSV Encoder.

File is recorded properly. But I found file is not playing properly in VLC player . In video I found some jerk and in MediaInformation- Statistic info I found  some frame Lost. Total no of frame lost is equal to Total no of GOP inside file.

When I analyze this file in one of the Mpeg File anlyzer, I found I frame timesatmp of every GOP is 0.

How to set GOP Header (I frame of GOP)  timestamp ?

 

18 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Parag,

Can you share some more information on how you created the file you feed to VLC? Are you using te Media SDK samples or your own application?

The application is responsible for setting time stamps and, if needed, package the encoded elemantary stream into a media container which normally also include time stamps for each frame.

Regads,
Petter 

Thanks Peter,

I am analyzing encoded stream in Elecard Stream analyzer. In which I found that for all I frames Header Info -> group_of_picture_header() -> timecode is 0.

Same issue is found in stream encode with Media SDK sample appplication (Encoder).

Regards

Parag Gandhi

Hi Parag,

I did quick test on my side and it seems that this may possibly be an issue with Media SDK HW DLL and possibly with older generation Core Processors.

Can you please share details about your system configuration and which Intel Graphics driver you use? One way to capture this data is to run the mediasdk_sys_analyzer tool which is part of the SDK package. Can you please capture and share the Media SDK trace log so that we can see the exact encoder configuration you use.

Regards,
Petter 

Hi Peter,

Please find the my machine configuration and Intel media sdk info which I capture from mediasdk_sys_analyzer tool.

Regards

Parag Gandhi

Attachments: 

Hi Parag,

sorry for the delayed response.

Can you also please share your encoder configuration. You can capture this quickly by starting the mediasdk_tracer tool, starting capture then running your encode workload. This will give you a log file showing all the encoder parameters used.

Based on the sys_analyzer log you provided I can see you're using a recent driver. Good! But you are using a quite old version of Media SDK (2012). I strongly encourage you to update to the latest version which is Media SDK 2013 R2.

Regards,
Petter 

Hell Petter,

Please find my encoder setting which i capture using mediasdk_tracer tool and capture media file.

Regards

Parag Gandhi

Attachments: 

AttachmentSize
Downloadapplication/octet-stream analyzer.log2 MB

Hello Petter,

Please ignore previously attacht file which not uploaded properly.And find my encoder setting which i capture using mediasdk_tracer tool and capture media file.

Regards

Parag Gandhi

Attachments: 

AttachmentSize
Downloadvideo/mpeg pal-720-4-3.mpeg31.13 MB
Downloadapplication/octet-stream analyzer.log2.23 MB

Dear Peter,

Any solution for this problem?

Regards

Parag Gandhi

Hi Parag,

Sorry for the delay. our MPEG2 encoder expert is looking into the details of the issue, due to some high priority near term efforts this is unfortunately taking some time.  We will get back with more info as soon as possible.  Sorry for the inconvenience.

However, I've observed that the MPEG2 timecode is accurately applied to GOP header for 4th generation processors (aka. Haswell). If you have access to such platform feel to try it out.  (we are exploring if there is a strict HW platform dependency)

Regards,
Petter 

Hi Parag,

a quick update on this topic. We recently committed some fixes to address this issue. You should see the issue resolved in an upcoming graphics driver release.

Regards,
Petter

Hi Peter,

When you are planning to release new Graphic driver ?

Regards

Parag Gandhi

Hi Parag,

I unfortunately can not provide you a definite date in time since it depends on external Intel graphics driver release schedules which is out of Media SDK component control. But a new driver will likely be released within the next few weeks.

Regards,
Petter 

Dear Petter,

Is reported problem is solved in latest intel graphic driver ?

Regards

Parag gandhi

Hi Parag,

From what I can tell the issue is resolved in the latest available driver on Intel.com: 15.33.3345

Regards,
Petter

Hello  Peter,

I install Intel new Graphic driver. Please find my machine configuration.

If I encode my raw buffer in MPEG 2 format with IQSV Software Encoder then encoded stream have proper timestamp for each GOP.

mpeg2 -f 25 -b 6000 -i "D:\\raw.yuv" -o "D:\\ENCODE.MPG" -w 720 -h 576

But we encode same buffer with Hardware based IQSV Encoder, then encoded steam have not proper timestamp for each GOP.

mpeg2 -hw -f 25 -b 6000 -i "D:\\raw.yuv" -o "D:\\HW_ENCODE.MPG" -w 720 -h 576

I tested this two  cases with Media SDK 2013 R2\samples\sample_encode application.

I analyze encoded stream in Elecard Stream Analyzer.

Regards

Parag Gandhi

 

 

Attachments: 

AttachmentSize
Downloadimage/jpeg 2014_01_07_System_Config.jpg94.71 KB

Hi Parag,

can you share some more details (encoder config, generated streams etc.) about the incorrect GOP header timestamps you are seeing? 

I tested the 3345 driver, and compared to the behavior observed for earlier drivers the I can see the GOP header time stamp is now != 0.

Regards,
Petter

Hi Petter,

Please find 

1. Encoded Stream (ENCODE.MPG)

2. Encoder Configuration (analyzer.log)

3. System Configuration (SystemConfig.jpg)

if I analyze Encode. Mpeg in Elecard Stream Analyzer, I found that First GOP (I frame) time is 0:0:0:0. Second GOP time is 7:0:0:0. Third GOP time is 2:1:0:0 . Fourt GOP time is 10:1:0:0

Thanks & Regards

Parag Gandhi

Attachments: 

AttachmentSize
Downloadapplication/octet-stream analyzer_2.log2.54 MB
Downloadvideo/mpeg ENCODE.MPG7.17 MB
Downloadimage/jpeg SystemConfig_0.jpg378.32 KB

Leave a Comment

Please sign in to add a comment. Not a member? Join today