Skip to content

rav1d fails or incorrectly decodes AV1 sample videos #1370

@ahomescu

Description

@ahomescu

Depending on the build profile, rav1d will incorrectly decode or just fail on some online videos, e.g., https://caraya.github.io/av1-video-demo/footloose.mp4. The sample at https://bitmovin.com/demos/av1/ also fails in Firefox, but I'm not sure how to download it to a file.

To reproduce, pull my enable_cdylib branch to create a librav1d.so shared library then run:

$ cargo build --release
$ LD_PRELOAD=./target/release/librav1d.so ffmpeg -i footloose.mp4 -vcodec vp9 footloose.vp9.mp4

In release or checked-release builds this fails with

[vist#0:0/av1 @ 0x57eb9e252dc0] [dec:libdav1d @ 0x57eb9e2b4b00] Error submitting packet to decoder: Invalid data found when processing input
    Last message repeated 4 times
[vist#0:0/av1 @ 0x57eb9e252dc0] [dec:libdav1d @ 0x57eb9e2b4b00] A decoder returned an unexpected error code. This is a bug, please report it.
[vist#0:0/av1 @ 0x57eb9e252dc0] [dec:libdav1d @ 0x57eb9e2b4b00] Error processing packet in decoder: Internal bug, should not have happened
[vist#0:0/av1 @ 0x57eb9e252dc0] [dec:libdav1d @ 0x57eb9e2b4b00] Task finished with error code: -558323010 (Internal bug, should not have happened)
[vist#0:0/av1 @ 0x57eb9e252dc0] [dec:libdav1d @ 0x57eb9e2b4b00] Terminating thread with return code -558323010 (Internal bug, should not have happened)

while in debug builds it produces a full but garbled output video.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions