Re: DVR and MP3 decoder queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Jul 2006 06:37:51 -0700 (PDT)
Amol Lad <dal_loma@xxxxxxxxx> wrote:

> Hi,
> 
> Please clear my below doubts:
> 
> 1. To run linuxtv-dvb-apps-1.1.1/test/test_dvr_play.c
> is it necessary to tune to frontend ? I believe I can
> do this without giving any input to the tuner
> 
> 2. Is there any sample MP3 decoder available based on
> DVB APIs? If not, what all we need to take care while
> writing the decoder using the APIs. Will the following
> work
> 
> {
>   open("/dev/dvb/adapter0/audio0");
>   Set audio stream source to AUDIO_SOURCE_MEMORY
>   set channel to AUDIO_STEREO
>   set audio coding mode to ?? (mpeg1, mpeg2ext ??)
>   while (!end of file){
>     write(data to audio0)
>   }
> }

That looks like a hardware mpeg decoder API to me.

It goes something like this:
1. tune to a station
2. set PES filter to the audio pid you desire
3. extract PES packets and feed it to libmad or some other decoder
4. pass output to alsa or oss.

Minimal app probably takes only about 1000 lines of code.

-- 
Aapo Tahkola

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux