Audio streams 'default' flag

Audio streams 'default' flag

Postby soulhunter » Sat Apr 09, 2011 7:50 am

It would be great to copy value of FlagDefault (for example in [matroska][tracks][X][FlagDefault]) to $info[audio][streams] array (for example [audio][streams][X][default]) to create cross-module availability to determine which audio stream is played by default.
Do similar flags with the same meaning exist in other audio/video formats? If they don't, this feature doesn't make much sence of course )
soulhunter
getID3() contributor
 
Posts: 36
Joined: Mon Jan 11, 2010 12:37 pm
Location: Kaliningrad, Russia

Re: Audio streams 'default' flag

Postby James Heinrich » Sat Apr 09, 2011 8:18 am

Sounds like a good idea. I don't know if any other container formats have a default flag, but no reason it can't be implemented anyways.
James Heinrich
getID3() v1 developer
 
Posts: 1204
Joined: Fri May 04, 2001 11:00 am
Location: London, ON, Canada

Re: Audio streams 'default' flag

Postby soulhunter » Sat Apr 09, 2011 8:50 am

I didn't mean exactly the flag existance, but the availability to determine default stream anyway. Also, it could be done not only for audio streams, but for all stream types (video, audio, subtitles, etc).
Also I think that this flag should be set in [aduio/video/subtitle/etc][streams] only if there is more than one stream of that type.
soulhunter
getID3() contributor
 
Posts: 36
Joined: Mon Jan 11, 2010 12:37 pm
Location: Kaliningrad, Russia

Re: Audio streams 'default' flag

Postby James Heinrich » Tue Jun 07, 2011 9:31 am

Included in v1.9.0
James Heinrich
getID3() v1 developer
 
Posts: 1204
Joined: Fri May 04, 2001 11:00 am
Location: London, ON, Canada


Return to Wishlist - implemented

Who is online

Users browsing this forum: No registered users and 0 guests

cron