mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
demux: add a special case for backward demuxing of opus
Make --audio-backward-overlap default to 2 for Opus. I have no idea why this is needed. It seems to fix backward decoding though (going purely by listening). Normally, this should not be needed, since initial padding is completely contained within the first packet (normally, and in the case I tested). So the 2nd packet/frame should be fine, but for some unknown reason it works only with the 3rd.
This commit is contained in:
@@ -561,7 +561,8 @@ Playback Control
|
||||
The solution is to feed a previous packet to the decoder each time, and then
|
||||
discard the output. This option controls how many packets to feed. The
|
||||
``auto`` choice is currently hardcoded to 0 for video, and uses 1 for lossy
|
||||
audio, 0 for lossless audio.
|
||||
audio, 0 for lossless audio. As a hack, it sets it to 2 for Opus, which
|
||||
requires this for unknown reasons.
|
||||
|
||||
``--video-backward-overlap`` can potentially handle intra-refresh video,
|
||||
depending on the exact conditions. You may have to use the
|
||||
|
||||
Reference in New Issue
Block a user