Log in

View Full Version : Problem re-encoding H.264 Blu Ray with large GOP length?


beameup
3rd November 2010, 05:44
I am having a difficulty with one particular blu ray (when in rome), and comparing the information with other H.264 Blu Ray's that I did not have a problem with, the only thing that really sticks out is the large GOP length (I may have the terminology wrong but the actual GOP data is M=3, N=26 from MediaInfo).

Did a few searches and did not find anything that might shed some light on the problem.

Here is the full track info from Media Info.

General
ID : 0
Complete name : E:\Temp\WIR1NNE1\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 21.0 GiB
Duration : 1h 30mn
Overall bit rate : 33.1 Mbps
Maximum Overall bit rate : 48.0 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=3, N=26
Codec ID : 27
Duration : 1h 30mn
Bit rate mode : Variable
Maximum bit rate : 33.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA
Muxing mode : Stream extension
Codec ID : 134
Duration : 1h 30mn
Bit rate mode : Variable
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits

Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 1h 30mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 416 MiB (2%)

Audio #3
ID : 4354 (0x1102)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 1h 30mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 416 MiB (2%)

Text #1
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Video delay : 1s 1ms

Text #2
ID : 4609 (0x1201)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144

Text #3
ID : 4610 (0x1202)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144

Text #4
ID : 4611 (0x1203)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144

Text #5
ID : 4612 (0x1204)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144

Text #6
ID : 4613 (0x1205)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144



Here are some symptoms of the problem:

* When played with Windows Media Player the video plays 2-3 time slower than in power dvd.

* When attempting to open in tmpgenc xpress, the program stops responding and I have to kill the program (waited over 10 min before killing it just to make sure).


Config Info:

* Haali Media Spliter
* ffdshow (with H.264/AVC decoder set to libavcode)
* Win7DSFilterTweaker 32-bit decoder set to ffdshow, have tried setting to MS with no difference (although not positive if I need to reboot before settings take effect).

Blue_MiSfit
3rd November 2010, 10:32
with H.264/AVC decoder set to libavcodec


This is the problem. lavc isn't fast enough to handle a BluRay stream because it's single threaded. Switch to ffmpeg-mt

Derek

beameup
5th November 2010, 01:20
Thanks, that did the trick.

One followup item: the seetings for Win7DSFilterTweaker did require a reboot, and the MS codec worked.

And a follow-up question. Which is better, defaulting to Microsoft or using ffmpeg-mt?