Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
How Many Audio Streams In Avi ?, according to official specs ...
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
ChristianHJW
Posted: Sep 11 2002, 11:03 AM


Advanced Member


Group: Moderators
Posts: 1768
Member No.: 2
Joined: 7-July 02



There was an interesting thread on mplayer Mailing list recently about the max. number of audio streams in an AVI ( http://news.gmane.org/thread.php?group=gma...eo.mplayer.user ; posted 10th, Sept, title 'multiple audio streams' ).

I was convinced official AVI specs will allow only one audio stream in one file ? Isnt it OpenDML AVI allowing more than 1 ( not sure about the 99 given from someone else ) ?

Anybody care to clarify ? Thanks in advance ...

--------------------
Visit the unofficial Virtualdub support forum on http://forums.virtualdub.org - help to reduce the big number of emails Avery Lee is getting every day !!
Support matroska as container and Gstreamer as the only truely open, x-platform multimedia platform ....
 
       Top
Ciler
  Posted: Sep 11 2002, 02:40 PM


Unregistered









dry.gif Same thread at Doom9's too...

Let's ask MSDN :

CODE

AVIFileGetStream

The AVIFileGetStream function returns the address of a stream interface that is associated with a specified AVI file.

STDAPI AVIFileGetStream(
 PAVIFILE pfile,      
 PAVISTREAM * ppavi,  
 DWORD fccType,      
 LONG lParam          
);

lParam
Count of the stream type. Identifies which occurrence of the specified stream type to access.


So I guess that there could be has much audio stream as a long can contain (minus 1 for the video stream)

However, the problem might not actually be VfW but DirectShow. Try to build an AVI file with 2 Video streams and feed it to any directshow player... Nice results expected !
 
  Top
phaeron
Posted: Sep 12 2002, 03:40 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



Video for Windows -- or rather, AVIFile -- supports multiple streams of any type in an AVI file. (I don't remember if the limit is 100 or 256, since it depends on whether stream IDs are encoded in hex.) I believe the original intention was that the wLanguage field in the AVI stream header would denote multiple languages, but this feature has largely atrophied and I don't think it is even documented what values you are supposed to place in that field (code page, two-letter locale, etc).

VirtualDub's input routines support multiple audio and video streams, but the processing and output backends only support 1 video + 1 audio.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Sep 11 2002, 11:03 AM Track this topic | Email this topic | Print this topic

<< Back to General Discussion