Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opus audio in WebM with negative timestamps is not supported #1218

Open
Makio64 opened this issue Jun 12, 2023 · 3 comments
Open

Opus audio in WebM with negative timestamps is not supported #1218

Makio64 opened this issue Jun 12, 2023 · 3 comments

Comments

@Makio64
Copy link

Makio64 commented Jun 12, 2023

System info

Operating System: MacOS 13.2
Shaka Packager Version: v2.6.1 - latest

Issue and steps to reproduce the problem

(1) encoded vp9 with ffmpeg 6.0, command argument bellow `

            '-crf', '35',
            '-b:v', '0',
            '-deadline', 'good',
            '-row-mt', '0',
            '-color_range', '1',
            '-c:a', 'libopus',
            '-c:v', 'libvpx-vp9',
            '-g', '30', 
            '-keyint_min', '30',
            '-r', '30',

(2) Fragment it with shaka classic command

What is the expected result?
No problem fragmenting like with ffmpeg 5.x.x

What happens instead?
Packaging Error: 8 (PARSER_FAILURE)

[0613/011030:WARNING:vp_codec_configuration_record.cc(45)] VPx video full range flag is inconsistent, 1 vs 0
[0613/011030:ERROR:representation.cc(39)] Unrecognized container type: 5
[0613/011030:ERROR:adaptation_set.cc(189)] Failed to initialize Representation.
[0613/011030:ERROR:mpd_notify_muxer_listener.cc(235)] Failed to notify MpdNotifier.
[0613/011030:ERROR:webm_cluster_parser.cc(329)] Got a block with a timecode before the previous block.
[0613/011030:ERROR:webm_cluster_parser.cc(329)] Got a block with a timecode before the previous block.
[0613/011030:ERROR:webm_cluster_parser.cc(329)] Got a block with a timecode before the previous block.
[0613/011030:ERROR:packager_main.cc(554)] Packaging Error: 8 (PARSER_FAILURE): Cannot parse media file /path/vp9_480p.webm
@amlbj136
Copy link

same here, seems ffmpeg bug?

@cosmin
Copy link
Collaborator

cosmin commented Nov 30, 2023

Does it repro if you use mp4 as a container instead of webm?

@vicwilliam
Copy link

vicwilliam commented Apr 13, 2024

Hi, I've been through this and in my case it was an issue related to the audio track in the input file having a small negative padding.
When you probe the input file you'll see the audio track negative timestamp

My way of "fixing" this is having audio encoded in a separate ouput file, and the video output file having no audio mapped.
After applying this fix my media played without any issues.
Just encode the video file with -an in ffmpeg.

@cosmin cosmin changed the title bug on av1 / vp9 encoded by latest ffmpeg 6.0 Opus audio in WebM with negative timestamps is not supported Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants