Opened 3 weeks ago

Last modified 3 weeks ago

#10948 new defect

[ffmpeg] spdif: Unusual frame timing 40 samples/frame is not implemented.

Reported by: adolfotregosa Owned by:
Priority: critical Component: ffmpeg
Version: git-master Keywords: spdif audio cuts truehd atmos
Cc: adolfotregosa Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by adolfotregosa)

Summary of the bug:

mpv sample.mkv -ao=pulse -audio-spdif=truehd

While playing this video file with truehd atmos audio, audio cuts always on the same spot, 100% reproducible every time giving the following message.

[ffmpeg] spdif: Unusual frame timing: 10248 => 12042, 40 samples/frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.

I compiled and tried latest ffmpeg git and mpv git with same results.

sample file -> https://tregosacloud.duckdns.org/s/HRWxz7oX7HCSSpD

Change History (2)

comment:1 by adolfotregosa, 3 weeks ago

Description: modified (diff)

comment:2 by adolfotregosa, 3 weeks ago

editing ffmpeg spdifenc.c and commenting out:

        /* sanity check */
        //if (padding_remaining < 0 || padding_remaining >= MAT_FRAME_SIZE / 2) {
        //    avpriv_request_sample(s, "Unusual frame timing: %"PRIu16" => %"PRIu16", %d samples/frame",
        //                          ctx->truehd_prev_time, input_timing, ctx->truehd_samples_per_frame);
        //    padding_remaining = 0;
       // }

Afterwards compiling ffmpeg and mpv with that change to ffmpeg seams to be fixing two issues for me. Spdif/passthrough to the AVR audio no longer cuts on the problematic spot and when seeking movie, audio is not going silent whereas it was becoming silent most of the time having one to keep seeking until audio eventually recovered.

Since I know very little of what am I doing hopefully someone who actually knows what they are doing has a look at this and implements a proper fix.

Last edited 3 weeks ago by adolfotregosa (previous) (diff)
Note: See TracTickets for help on using tickets.