GNOME Bugzilla – Bug 622484
[qtmux] missing track number tag when transcoding to aac
Last modified: 2011-01-03 15:39:50 UTC
Take any ogg/mp3/flac file with track number in tags. Trancode it with a pipeline like this: gst-launch-0.10 filesrc location=test.mp3 ! decodebin ! audioconvert ! faac profile=2 ! ffmux_mp4 ! filesink location=test.m4a The resulting file contains all metadata from original file, minus the track number tag. ( http://developer.berlios.de/bugs/?func=detailbug&bug_id=17291&group_id=3213 )
Please use mp4mux instead of ffmux_mp4. You should consider ffmux_m4 unsupported. The problem also happens with mp4mux though. The reason is that the code only knows how to put a track-number/track-count pair into an 'trkn' atom, but has no fallback for when there's only a track number or only a track count. Not sure if there's an official or inofficial way to pack only one of the two values into that atom? (just set the other one to 0 maybe?)
It happens also with files with both track number and track count.
> It happens also with files with both track number and track count. With mp4mux? What version? Please be more specific. Maybe you could attach a GST_DEBUG=qtmux:5 log? This works fine for me with git and with qtmux/mp4mux from gst-plugins-bad 0.10.19: $ gst-launch-0.10 filesrc location=foo.ogg num-buffers=100 ! queue ! decodebin2 ! audioconvert ! faac profile=2 ! mp4mux ! filesink location=foo.mp4 $ gst-launch-0.10 filesrc location=foo.mp4 ! decodebin2 ! fakesink -t FOUND TAG : found by element "qtdemux0". audio codec: MPEG-4 AAC audio language code: en FOUND TAG : found by element "qtdemux0". title: Foo artist: Bar album: Title date: 2009-10-26 encoder: Xiph.Org libVorbis I 20090709 (oops) track number: 11 track count: 14 artist sortname: Bar container format: ISO MP4/M4A FOUND TAG : found by element "faad0". audio codec: MPEG-4 AAC audio
Woups, my fault. I was testing both time with ffmux_mp4. Works fine with mp4mux, thank you.
Fixed. commit be3a4b797853e4100a4511d4443fd0f987067c63 Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk> Date: Fri Jun 25 20:19:20 2010 -0300 qtmux: Write uint tags that don't have a complement Write uint tags that have complements (e.g. track-number/ track-count) even when we only have one of them available and set the other one to 0. Fixes #622484
*** Bug 638481 has been marked as a duplicate of this bug. ***