Re: [vdr] Streamdev script to stream audio only?

2011-12-06 Thread Teemu Suikki
I actually managed to get this working quite well, here is my externremux.sh:


echo -ne 'Content-type: audio/mpeg\r\n'
echo -ne '\r\n'

ffmpeg -f mpegts -i - -vn -acodec libmp3lame -ab 32000 -ar 44100 -ac 1
-f mp3 pipe:1


Nothing more needed really, simple is beautiful. :) However, there is
one huge problem. It takes ages to start streaming, and then the audio
is a full minute behind.. The start delay is fine, but I need more
realtime streaming.

I'm going to York UK tomorrow to watch Snooker UK Championship, and I
was planning to hear the finnish commentary from Eurosport. :D It's
pretty much useless if there is a minute delay..

--
Teemu



2011/12/6 Johannes Truschnigg :
> Hi there,
>
> On Tue, Dec 06, 2011 at 05:00:24PM +0200, Teemu Suikki wrote:
>> Hi!
>>
>> I need a mp3 audio stream of live tv channels.. I tried to do it with ffmpeg,
>> but it doesn't work properly. No data is transferred, I guess ffmpeg doesn't
>> like to write to a fifo?
>
> I did something similar once (relaying Internet radio stations to the local
> network in order to save outbound bandwidth with many users in parallel), and
> ran into trouble because the buffered nature of a fifo/pipe made audio skip
> every few seconds (tried with both ffmpeg and mplayer initially and also tried
> using an unbuffered pipe as a means of IPC, but in the end, neither worked and
> I had to look elsewhere). I settled for a solution involving Icecast as the
> streaming server, and a stripped down, cli-only custom build of VideoLAN
> Client (VLC) as its source. VLC comes with an optional Icecast output plugin
> you can enable at build-time that allows you to recode the incoming data on
> the fly, and relay it to Icecast in another format (OGG Vorbis or MP3, iirc).
>
> I'm pretty sure you should be able to do that with a video input as your
> source, too.
>
> --
> with best regards:
> - Johannes Truschnigg ( johan...@truschnigg.info )
>
> www:   http://johannes.truschnigg.info/
> phone: +43 650 2 17
> xmpp:  johan...@truschnigg.info
>
> Please do not bother me with HTML-eMail or attachments. Thank you.
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk7eOBUACgkQnnUApj8OcoLGRACfei+oeJ7S+QHauYfF29U8pzJA
> yZYAmwXTwrNcKnOS3CT/A/Y/s/7UDHi/
> =Dt46
> -END PGP SIGNATURE-
>
> ___
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>



-- 
Teemu Suikki
http://www.z-power.fi/

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] [ANNOUNCE] VDR developer version 1.7.22

2011-12-06 Thread Klaus Schmidinger

On 05.12.2011 20:42, Detlef Heine wrote:

- The new setup options "LNB/Device n connected to sat cable" can be
used to define
which DVB-S devices are connected to the same sat cable and are
therefore "bonded".
This obsoletes the LNBSHARE patch. Users of the LNBSHARE patch will need
to newly
set up their sat devices with the above options.


Hello Klaus,
I have much trouble with the new added Feature from above.
My vdr have a S2-6400 card and 1 cable with an splitter for the 2 frondends.
I have set up the options correctly. But, specifically on Pro7, the picture and 
sound freeze after some seconds. The vdr-log show in this moment lines like 
this:

Dec 5 19:24:31 hd-vdr vdr: [1628] changing pids of channel 1435 from 
511+511=2:512=deu@3;515=deu@106:0:32 to 
511+511=2:512=deu@3,513=eng@3;515=deu@106:0:32
Dec 5 19:24:31 hd-vdr vdr: [1628] changing pids of channel 1440 from 
2815+2815=2:2816=deu@3;2819=deu@106:0:32 to 
2815+2815=2:2816=deu@3,2817=eng@3;2819=deu@106:0:32
Dec 5 19:24:51 hd-vdr vdr: [1628] changing pids of channel 1512 from 
767+767=27:0;771=deu@106,772=eng@106:0:32 to 
767+767=27:0;771=deu@106,772=eng@106:0:32
Dec 5 19:24:51 hd-vdr vdr: [1628] changing pids of channel 1513 from 
1023+1023=27:0;1027=deu@106:0:32 to 1023+1023=27:0;1027=deu@106:0:32
Dec 5 19:24:52 hd-vdr vdr: [1628] changing pids of channel 1514 from 
1279+1279=27:0;1283=deu@106:0:32 to 1279+1279=27:0;1283=deu@106:0:32
Dec 5 19:24:52 hd-vdr vdr: [1628] changing pids of channel 1511 from 
511+511=27:0;515=deu@106,516=eng@106:0:32 to 
511+511=27:0;515=deu@106,516=eng@106:0:32
Dec 5 19:25:12 hd-vdr vdr: [1628] changing pids of channel 1444 from 
767+767=27:0;771=deu@106,772=eng@106:0:32 to 
767+767=27:0;771=deu@106,772=eng@106:0:32
Dec 5 19:25:12 hd-vdr vdr: [1628] changing pids of channel 1442 from 
1023+1023=27:0;1027=deu@106:0:32 to 1023+1023=27:0;1027=deu@106:0:32
Dec 5 19:25:13 hd-vdr vdr: [1628] changing pids of channel 1441 from 
1279+1279=27:0;1283=deu@106:0:32 to 
1279+1279=27:0;1283=deu@106,1284=eng@106:0:32
Dec 5 19:25:13 hd-vdr vdr: [1628] changing pids of channel 1443 from 
1535+1535=27:0;1539=deu@106:0:32 to 1535+1535=27:0;1539=deu@106:0:32

With the LNBSHARE patch and vdr-1.7.21 I had no problems like this.

How can I fix this?


Do you have only two deivces that share a cable, or is there
a third one? There is a bug with more than two devices that
share one cable.

Please try this:

--- dvbdevice.c 2011/12/03 15:24:27 2.48
+++ dvbdevice.c 2011/12/06 17:38:18
@@ -1126,7 +1126,7 @@
if (cDevice *Device2 = cDevice::GetDevice(d)) {
   if (cDvbDevice *DvbDevice1 = dynamic_cast(Device1)) {
  if (cDvbDevice *DvbDevice2 = dynamic_cast(Device2)) {
-if (!DvbDevice2->Bond(DvbDevice1))
+if (!DvbDevice1->Bond(DvbDevice2))
return false; // Bond() has already logged the error
 }
  else

Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Streamdev script to stream audio only?

2011-12-06 Thread Johannes Truschnigg
Hi there,

On Tue, Dec 06, 2011 at 05:00:24PM +0200, Teemu Suikki wrote:
> Hi!
> 
> I need a mp3 audio stream of live tv channels.. I tried to do it with ffmpeg,
> but it doesn't work properly. No data is transferred, I guess ffmpeg doesn't
> like to write to a fifo?

I did something similar once (relaying Internet radio stations to the local
network in order to save outbound bandwidth with many users in parallel), and
ran into trouble because the buffered nature of a fifo/pipe made audio skip
every few seconds (tried with both ffmpeg and mplayer initially and also tried
using an unbuffered pipe as a means of IPC, but in the end, neither worked and
I had to look elsewhere). I settled for a solution involving Icecast as the
streaming server, and a stripped down, cli-only custom build of VideoLAN
Client (VLC) as its source. VLC comes with an optional Icecast output plugin
you can enable at build-time that allows you to recode the incoming data on
the fly, and relay it to Icecast in another format (OGG Vorbis or MP3, iirc).

I'm pretty sure you should be able to do that with a video input as your
source, too.

-- 
with best regards:
- Johannes Truschnigg ( johan...@truschnigg.info )

www:   http://johannes.truschnigg.info/
phone: +43 650 2 17
xmpp:  johan...@truschnigg.info

Please do not bother me with HTML-eMail or attachments. Thank you.


signature.asc
Description: Digital signature
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] Streamdev script to stream audio only?

2011-12-06 Thread Teemu Suikki
Hi!

I need a mp3 audio stream of live tv channels.. I tried to do it with
ffmpeg, but it doesn't work properly. No data is transferred, I guess
ffmpeg doesn't like to write to a fifo?

Any ideas?
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr