Log in

View Full Version : mp4box track Handlername and userDataName usage ?


phibertron
26th March 2011, 14:54
In itunes and apple devices, when there are multiple tracks
It will display each track as <language> ( <Type Track #> )
For ex: English ( Audio Track 1 )

If the trak.udta.name atom or userDataName
is populated it will use that in place of <Type Track #>
For ex: English ( Dolby Surround )

Itunes and apple devices are not reading the trak.hdlr.name or handlerName
that I can use with name= for a track

How I currently deal with it is I use mp4box like this

mp4box
-add Video..h264:lang=en:name="AVC Video"
-add Audio_track2.aac:lang=en:group=1:name="Mono"
-add Audio_track3.aac:lang=en:group=1:disable:name="Stereo"
-add Audio_track4.aac:lang=en:group=1:disable:name="Dolby Surround"
-add Audio_track5.aac:lang=en:group=1:disable:name="Dolby Pro Logic"
-add Audio_track6.ac3:lang=en:group=1:disable:name="AC3"
output.mp4


I use the mp4track.exe to check to see what is there

mp4track "output.mp4" --list

track[1] id=2
type = audio
enabled = true
inMovie = false
inPreview = false
layer = 0
alternateGroup = 1
volume = 1.0000
width = 0.00000000
height = 0.00000000
language = English
handlerName = Mono
userDataName = <absent>

I then add the userDataName string with mp4track.exe

mp4track "output.mp4" --track-id 2 --udtaname "Mono"

I use the mp4track.exe to check to see that it is there

mp4track "output.mp4" --list

track[1] id=2
type = audio
enabled = true
inMovie = false
inPreview = false
layer = 0
alternateGroup = 1
volume = 1.0000
width = 0.00000000
height = 0.00000000
language = English
handlerName = Mono
userDataName = Mono

So now when i go to select a track I can know what it is, For ex:

English ( Mono )
English ( Stereo )
English ( Dolby Surround )
English ( Dolby Pro Logic )
English ( AC3 )

as opposed to

English ( Audio Track 1 )
English ( Audio Track 2 )
English ( Audio Track 3 )
English ( Audio Track 4 )
English ( Audio Track 5 )


Is it possible to add the userDataName string to a track with mp4box ?
I was hoping I could do it with -add-arg

If it is not possible, sure I'll keep using mp4track
But would it be possible to add this feature to mp4box?