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

TMediaCore_FFmpeg.FindStreamIDs() fails to find video stream if artwork is embedded as stream 0 #902

Open
bohning opened this issue Oct 4, 2024 · 2 comments

Comments

@bohning
Copy link
Collaborator

bohning commented Oct 4, 2024

When embedding artwork into an mp4 file via the Python mutagen module, the artwork is added as stream 0, shifting the video track to stream 1.

ffprobe mp4_without_embedded_artwork.mp4:

Stream #0:0[0x1](und): Video: vp9 (Profile 0) (vp09 / 0x39307076), yuv420p(tv, bt709), 1920x1080, 1730 kb/s, 59.95 fps, 59.94 tbr, 1k tbn (default)

ffprobe mp4_with_embedded_artwork.mp4:

Stream #0:0[0x0]: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1920x1920 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn (attached pic)
Stream #0:1[0x1](und): Video: vp9 (Profile 0) (vp09 / 0x39307076), yuv420p(tv, bt709), 1920x1080, 1730 kb/s, 59.95 fps, 59.94 tbr, 1k tbn (default)

The resulting file does not work with USDX, presumably because FindStreamIDs() fails to correctly identify the video stream ID.

@s09bQ5
Copy link
Collaborator

s09bQ5 commented Oct 4, 2024

And where does this play correctly?

@bohning
Copy link
Collaborator Author

bohning commented Oct 4, 2024

In VLC for example.

bohning added a commit to bohning/usdb_syncer that referenced this issue Oct 11, 2024
This can be reenabled as soon as this is fixed either on the mutagen (quodlibet/mutagen#661) or USDX side (UltraStar-Deluxe/USDX#902).
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

2 participants