[FFmpeg-user] FFMPEG for Blu-ray.. Solved

kifayat ullah kifayat.ullah at yahoo.com
Thu Jun 28 18:43:54 CEST 2012

Thanks Carl & Andy,

I have figure it out why a m2ts (mpeg2video + AC3) was not playing sounds on software players where as it was playing sounds perfectly on Hardware Player.
To rectify this I have done follwing tweaks.

In AUDIO PES Packet Header 
    1.    PES_Extension_header flag, it should always be true.
    2.    PES_extension_flag_2 should always be true.
    3.    PES_extension_field_length will always be 0x1.
    4.    PES_extension_field reserved should always be 0x71 for AC3 audio ( might be different for others).

Remember As for as my research is, above is valid and essential if the audio used is AC3. 

I also seen that LPCM audio plays fine without these settings.

It is little, but might help some one as I have spend quite number of hours to fiugre it out.


 From: Andy Furniss <andyqos at ukfsn.org>
To: FFmpeg user questions and RTFMs <ffmpeg-user at ffmpeg.org> 
Cc: Carl Eugen Hoyos <cehoyos at ag.or.at> 
Sent: Wednesday, 27 June 2012, 15:38
Subject: Re: [FFmpeg-user] FFMPEG for Blu-ray..
Carl Eugen Hoyos wrote:
> Andy Furniss <andyqos <at> ukfsn.org> writes:
>>> Sorry, I cannot test because I have no possibility
>>> to play Blu-ray, I just wanted to find out if it is
>>> a muxing or a remuxing problem.
>> Works OK and in sync for me with mplayer br://0/.....
> I meant I neither have a hardware player nor a certified
> software player.
> (I was assuming that MPlayer plays FFmpeg files as expected.)

OK I see what you mean, but I thought the problem was m2ts OK but m2ts 
in BR structure = no sound with s/w players but h/w OK.

ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

More information about the ffmpeg-user mailing list