Audio streams 'default' flag

Locked
soulhunter
getID3() v1 developer
Posts: 40
Joined: Mon Jan 11, 2010 5:37 pm
Are you a spambot?: no
Location: Kaliningrad, Russia
Contact:

Audio streams 'default' flag

Post by soulhunter » Sat Apr 09, 2011 12:50 pm

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 )

James Heinrich
getID3() v1 developer
Posts: 1474
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Audio streams 'default' flag

Post by James Heinrich » Sat Apr 09, 2011 1:18 pm

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.

soulhunter
getID3() v1 developer
Posts: 40
Joined: Mon Jan 11, 2010 5:37 pm
Are you a spambot?: no
Location: Kaliningrad, Russia
Contact:

Re: Audio streams 'default' flag

Post by soulhunter » Sat Apr 09, 2011 1:50 pm

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.

James Heinrich
getID3() v1 developer
Posts: 1474
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Audio streams 'default' flag

Post by James Heinrich » Tue Jun 07, 2011 2:31 pm

Included in v1.9.0

Locked