From: Keith W. <ke...@MI...> - 2009-07-16 01:44:44
|
Hi Gus, libmpeg2 itself can only parse an MPEG video elementary stream -- video only. Within the MPEG-2 world, a stream that combines video and audio is an MPEG-2 systems stream -- either a transport stream or a program stream. You can demultiplex these with the mpeg2dec and extract_mpeg2 example programs that ship with libmpeg2. They only pull out the video, but you can tweak them to do audio or a different stream. liba52 ships with extract_a52, which can pull out AC-3 audio from an MPEG system stream like like extract_mpeg2 does for video. Best, Keith On Wed, 15 Jul 2009, Gus Issa wrote: > Hello, > > Does libmpeg2 decode MPEG files with audio in them? I know the library > itself doesn't decode the audio but is there a way to get the audio data > from the library since it is already parsing the MPEG file? > > Gus > > |