[MPlayer-dev-eng] How to split MPEG-1/2 ( Layer 1, 2, 3) Audio Elementary Stream

Nico Sabbi nsabbi at tiscali.it
Mon Sep 26 08:48:30 CEST 2005


shaswata jash wrote:

>I want to split MPEG audio elementary streams (ES)  in smaller chunks such a way that each smaller chunk can be played independently by the players. The audio ES is collected from a RTP server . The above splitting is needed as i need to develop a pseudo decoder which will do the splitting work and then pass these independent chunks to a real media player.
> 
>I have approached the work in following way: We all know, an MPEG 1/2 audio elementary streams (Layer 1,2,3) are consist of Frame ( where each frame starts with 12 bits of '1'). I have divided the audio ES such a way that each splitted ES contains only one frame. The original audio ES can be played using MPlayer . But when i try to play those splitted ES (which contains only single audio frame) , error is encountered by the player (MPlayer infact not showing any error, but no sound can be heard).
> 
>  
>

1 frame is not enough for detection, unless you use -rawaudio 
format=0x55 -demuxer rawaudio.
Even so, 1 audio frames typically lasts 1152/sample_rate, that at 48 Khz 
is 0.024 seconds, so
hoa are you supposed to hear it without relenting it?




More information about the MPlayer-dev-eng mailing list