Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

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

gparag1983
Beginner
1,812 Views

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 ?

 

0 Kudos
17 Replies
Petter_L_Intel
Employee
1,812 Views

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 

0 Kudos
gparag1983
Beginner
1,812 Views

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

0 Kudos
Petter_L_Intel
Employee
1,812 Views

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 

0 Kudos
gparag1983
Beginner
1,812 Views

Hi Peter,

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

Regards

Parag Gandhi

0 Kudos
Petter_L_Intel
Employee
1,812 Views

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 

0 Kudos
gparag1983
Beginner
1,812 Views

Hell Petter,

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

Regards

Parag Gandhi

0 Kudos
gparag1983
Beginner
1,812 Views

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

0 Kudos
gparag1983
Beginner
1,812 Views

Dear Peter,

Any solution for this problem?

Regards

Parag Gandhi

0 Kudos
Petter_L_Intel
Employee
1,812 Views

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 

0 Kudos
Petter_L_Intel
Employee
1,812 Views

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

0 Kudos
gparag1983
Beginner
1,812 Views

Hi Peter,

When you are planning to release new Graphic driver ?

Regards

Parag Gandhi

0 Kudos
Petter_L_Intel
Employee
1,812 Views

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 

0 Kudos
gparag1983
Beginner
1,812 Views

Dear Petter,

Is reported problem is solved in latest intel graphic driver ?

Regards

Parag gandhi

0 Kudos
Petter_L_Intel
Employee
1,812 Views

Hi Parag,

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

Regards,
Petter

0 Kudos
gparag1983
Beginner
1,812 Views

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

 

 

0 Kudos
Petter_L_Intel
Employee
1,812 Views

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

0 Kudos
gparag1983
Beginner
1,812 Views

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

0 Kudos
Reply