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

Mp4mux tag msg fix #36

Closed
wants to merge 4 commits into from
Closed

Conversation

sezanzeb
Copy link
Contributor

@sezanzeb sezanzeb commented Jul 15, 2020

This PR fixes: https://bugs.launchpad.net/soundconverter/+bug/1883257

The mp4mux gstreamer pipeline plugin did not forward the tag messages sent by decodebin. A workaround was to branch the pipeline into a fakesink, which would cause those (duplicate) messages to not be hidden by a muxer.

Duplicate tag messages are actually a normal thing, the documentation even mentions it, so there is now less debug output when a duplicate tag message arrives by adding a check in append_tag. Especially when converting to flac I would see a huge number of tag logs.

The change to the readme was made because there actually is a encodebin, it's just very difficult to use. See https://stackoverflow.com/questions/62684838/how-do-you-figure-out-gstreamer-profile-strings on why. Also, considering that the profile string has to be added in order to determine which output format is being used, I don't see the extra value it would bring for us, since in that case we can also just use the encoders and muxers for the format in question like we already do depending on the output format.

Please try to convert some of your files with this change as well please, as I think this is a rather odd change to the gstreamer pipeline. If it doesn't, I'll try to add a new unittest that reproduces the error.

@sezanzeb sezanzeb marked this pull request as draft July 18, 2020 21:27
@sezanzeb
Copy link
Contributor Author

I doubt gstreamer does m4a tags correctly

https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/759#note_573415

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

Successfully merging this pull request may close these issues.

1 participant