Hi,
thank you very much for your answers.
Recording with Kaffeine would result in an intermediate file which I was trying to avoid.
But using ts2es I was in fact able to pipe the DVB-T radio stream directly to an ogg file:
channel=Fritz; mkfifo fifo.mp2; tzap -r "$channel" &
APID=$(grep "$channel" ~/.tzap/channels.conf|awk 'BEGIN { FS=":" }{ print $12 }')
ts2es /dev/dvb/adapter0/dvr0 $APID > fifo.mp2 &
ffmpeg -i fifo.mp2 -ab 160 "$channel".ogg
I did not consider ts2es at first since I could not find a recent Debian package containing this tool.
Quite a pity, if this is the only way to encode a DVB-T radio streams.
Is(n't) it???
Frank
Soyeb Aswat wrote:
> Hi,
>> Or use Kaffeine to record it then mplayer or oggenc to do the
> conversion.
>> Soyeb
>>> On Sun, 2005-10-09 at 22:41 +0100, nyk wrote:
>>>On Sun, Oct 09, 2005 at 08:15:52PM +0200, Frank Breitling wrote:
>>>>>Hello,
>>>>>>I have been trying to record a DVB-T radio program to an ogg file.
>>>Unfortunately I did not find a way to do it without an intermediate file.
>>>>This fragment should do the trick
>>>> # ATM still easier to do this than arse about with tzap -o
>>>> APID=$(grep "^$2" .tzap/channels.conf|awk ' BEGIN { FS=":" }
>> {
>> print $12
>> }')
>>>> tzap -S -r "${2}" &
>> ts2es /dev/dvb/adapter0/dvr0 $APID >"${FILENAME}.mp2"&
>>>> #####################################################################
>>>>Full (monstrously hacky) script attached
>>>>_______________________________________________
>>linux-dvb mailing list
>>linux-dvb at linuxtv.org>>http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb>>