I have now ripped the whole Vol 1 of the first BluRay (87 tracks) with the 
'direct stream demux' method and then converted to flac with ffmpeg using your 
command parameters. The resulting flac files play ok. Most transitions are 
perfectly gapless, but there are a few that have a slight click at the track 
change (amongst others between 5 and 6).

Next, I tested playback with my Oppo BDP93 via HDMI to an Onkyo AVR. 
Interesting result. Playback is @192kHz and gapless. However when I skip to 
tracks 5 and 6 (who both showed issues when converting to flac), the Oppo 
counter increments (showing playback in progress), but output stays silent. If 
I play tracks 4, 5 and 6 in one go without skipping forward, playback is ok and 
gapless. So there definitely seems to be a production issue on DG's side.

Your workaround is priceless, thank you. I will now get back to Deutsche 
Grammophon to see if I can get the 192kHz files as a download from them
Best regards
Rudi





-----Original Message-----
From: ffmpeg-user <[email protected]> On Behalf Of Paul B Mahol
Sent: Friday, 26. August 2022 22:37
To: FFmpeg user questions <[email protected]>
Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files

On Fri, Aug 26, 2022 at 10:23 PM <[email protected]> wrote:

> Thanks, Paul
> You are a genius. Your command worked with the two files I had sent 
> you. I am now getting playback on the dCS Rossini from the beginning 
> and (as far as I can hear) gapless playback between 4 and 5.
> However, I still have an inkling that not all is well I have attached 
> the log of the two conversions that I did. Chapter 4 seems to convert 
> ok with some messages but (as I see it) nothing serious. However 
> Chapter 5 (the one that previously converted to 48kHz) has some 
> serious error messages. Playback of the flac file seems ok.
> The dts file was extracted from the BluRay using DVDAE and the 'direct 
> stream demux' option.  Ffmpeg has more issues with some extracted "dts 
> files than with others. Could it be that the issue is already at the 
> stage of the 'direct stream demux' option?
> As I am getting exactly the same results (same files extract @48kHz) 
> using MakeMKV / MMH, there could be a problem at the ripping stage of 
> the BluRay and not primarily with ffmpeg? What do you think?
> Best regards
> Rudi
>
>
I do not think it is ripping stage. It is how content was originally produced.
I also noticed some strange error at end of chapter 5. So to be 100% sure it is 
still ok, check for gapless between chapter 5 and 6 (if there is 6 chapter or 
whatever comes next).
There is very slight chance that there is no delay in any of dts files but I 
doubt that because decoder follows specification 100% AFAIK.


>
>
>
> -----Original Message-----
> From: ffmpeg-user <[email protected]> On Behalf Of Paul B 
> Mahol
> Sent: Friday, 26. August 2022 21:57
> To: FFmpeg user questions <[email protected]>
> Subject: Re: [FFmpeg-user] Error decoding DTS-HD MA audio files
>
> On Fri, Aug 26, 2022 at 4:12 PM <[email protected]> wrote:
>
> > Hello
> >
> > Am trying to extract DTS-HD MA audio files from the following 
> > Blu-Ray (which I physically purchased)
> >
> > KARL RICHTER - J.S. Bach: Cantatas - Pure Audio Recordings < 
> > https://pureaudiorecordings.com/en/product/karl-richter-j-s-bach-can
> > ta
> > tas/
> > >
> >
> >
> > I am getting the same result both with DVDAE and with MakeMKV / MMH 
> > which I believe both use ffmpeg to extract DTS-HD MA. About 80% of 
> > the tracks are correctly extracted to 24/192kHz files and around 20% 
> > of the tracks are extracted to 24/48kHz files which play back at ΒΌ speed.
> > I then corrected the speed using
> >
> >
> >
> > ffmpeg -i 1.flac -af asetrate=192000 2.flac
> >
> >
> >
> > This now works on some of my playback equipment. However when I 
> > launch playback of a converted file, it shows 0/192kHz for around 5 
> > seconds and only then locks to the 24/192kHz stream and plays back. 
> > This happens with files that were correctly extracted to 192kHz and 
> > to those that I had to speed up after the fact. So there seems to be 
> > something fundamentally wrong with the ffmpeg extraction of this 
> > BluRay
> >
> >
> >
> > I have prepared some sample files on one drive
> >
> > https://1drv.ms/u/s!AmpEbEYrlrk5lWGskTYvPp0iv4L3?e=U7kCRC
> >
> > Chapter 4 extracts correctly to 192kHz
> >
> > Chapter 5 extracts to 48kHz
> >
>
> The Chapter 5 file dts-hd-ma have certain delay. Thus you get with 
> ffmpeg first few frames in only dts core at 48kHz 16bit and later full 
> dts-hd-ma kicks in with 192kHz and 32bit, but because filtering is not 
> supporting changing of sample rate and/or sample format at runtime all 
> remaining frames are filtered back to 48kHz and 16bit. This is evident 
> if you run ffmpeg with '-v debug'
> flag.
>
> Workaround is to force filtering at 192kHz and 32bit right at start 
> with this command:
>
> ffmpeg -i Title1\ -\ Chapter\ 05.dts -af 
> aformat=f=s32p:r=192000:cl=stereo out.flac
>
>
>
>
> >
> > Both flac extract to not play back correctly on dCS Rossini
> >
>
> Hardware playback of 24bit flac at 192000 Hz is not widely supported AFAIK.
>
>
> >
> >
> >
> > Could you please take a look at this? Thanks a lot
> >
> > Rudi
> >
> >
> >
> > _______________________________________________
> > ffmpeg-user mailing list
> > [email protected]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email 
> > [email protected] with subject "unsubscribe".
> >
> _______________________________________________
> ffmpeg-user mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email 
> [email protected] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email 
> [email protected] with subject "unsubscribe".
>
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [email protected] with 
subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to