[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead

Streaming live Radio to an Internet Radio

Help for using get_iplayer

Streaming live Radio to an Internet Radio

Postby machare » 07 Mar 2010 02:30

The procedure for adapting mediatomb to use get_iplayer to stream TV to an xStreamer is described here:
http://forum.xtreamer.net/viewtopic.php?f=11&t=5937

Has anyone done something similar to stream the BBC iplayer aac live radio stations to an Internet Radio?

Mediatomb is one way to pass the URL for get_iplayer to an Internet Radio. Internet Radio servers such as vtuner let you add your own stations by entering a URL which points to a local server running get_iplayer.

The benefit of doing this is that the Internet Radio gets an aac stream rather than a wma stream.
machare
 
Posts: 7
Joined: 02 Mar 2010 12:08
Top

Re: Streaming live Radio to an Internet Radio

Postby machare » 07 Mar 2010 23:09

I have started two terminal windows on my Ubuntu 9.04 PC.

In one Window I run get_iplayer and set it to listen. In the other window I run mplayer and tell it to stream from get_iplayer.

When I do this the two programs clearly communicate but there is a failure and no sound.
The displays from the two terminals are shown below. Is there anything that can be done to make this work?

************************************************************************************************
************************************************************************************************
get_iplayer version 2.73 Terminal Window - Playing to mplayer
************************************************************************************************
************************************************************************************************


mike@Ubuntu:~$ get_iplayer.cgi -p 1935 -g /usr/bin/get_iplayer -l 10.0.0.25
INFO: Command: /usr/bin/get_iplayer --nopurge --nocopyright --listplugins
INFO: Listening on 10.0.0.25:1935
WARNING: Insecure Remote access is allowed, use --listen=127.0.0.1 to limit to this host only
GET: /
QUERY_STRING = ACTION=stream&PROGTYPES=liveradio&PID=bbc_radio_one&MODES=flashaac&OUTTYPE=mp3

HEADERS:
Connection: close
Content-Type: audio/mpeg


INFO: Start Streaming bbc_radio_one to browser using modes 'flashaac', output ext '', audio bitrate '', video size '', video fram rate ''
DEBUG: get_iplayer options: "nopurge=1" "modes=flashaac" "stream=1" "pid=bbc_radio_one" "type=liveradio"
INFO: Command: /usr/bin/get_iplayer --nocopyright --hash --expiry=999999999 --webrequest nopurge%3D1?modes%3Dflashaac?stream%3D1?pid%3Dbbc_radio_one?type%3Dliveradio
DEBUG: Forked STDOUT reader with PID 21101
DEBUG: Forked STDERR reader with PID 21102
INFO Trying to stream pid using type liveradio
INFO: pid found in cache
Matches:
80132: BBC Radio 1 - live

INFO: 1 Matching Programmes
INFO: Checking existence of default version
INFO: flashaacstd1,flashaaclow1 modes will be tried for version default
INFO: Trying flashaacstd1 mode to record liveradio: BBC Radio 1 - live
INFO: File name prefix = BBC_Radio_1_live_2010-03-07_223926
FLVStreamer v2.1c1
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
Starting Live Stream
Metadata:
audiocodecid mp4a
audiodatarate 128.00
createdby BBC
canseektoend FALSE
#####################################################################
INFO: 21101 Cleaning up (signal = PIPE), killing cmd PID=21100:
INFO: 21101 killing cmd PID=21100 with SIGINT

INFO: Cleaning up (signal = INT), killing PID=21105:.
Caught signal: 2, cleaning up, just a second...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Download may be incomplete (downloaded about 0.00%), try resuming
..INFO: 21101 killing cmd PID=21100 with SIGPIPE

INFO: Cleaning up (signal = PIPE), killing PID=21105:...INFO: 21101 killing cmd PID=21100 with SIGTERM

INFO: Cleaning up (signal = TERM), killing PID=21105:...INFO: 21101 killing cmd PID=21100 with SIGKILL
INFO: 21101 killed cmd PID=21100
INFO: Finished Streaming bbc_radio_one to browser




************************************************************************************************
************************************************************************************************
mplayer Terminal Window
************************************************************************************************
************************************************************************************************

mike@Ubuntu:~$ mplayer -cache 512 "http://10.0.0.25:1935/?ACTION=stream&PROGTYPES=liveradio&PID=bbc_radio_one&MODES=flashaac&OUTTYPE=mp3"
MPlayer SVN-r30856-4.3.3 (C) 2000-2010 MPlayer Team

Playing http://10.0.0.25:1935/?ACTION=stream&PR ... UTTYPE=mp3.
Resolving 10.0.0.25 for AF_INET6...
Couldn't resolve name for AF_INET6: 10.0.0.25
Connecting to server 10.0.0.25[10.0.0.25]: 1935...
Cache size set to 512 KBytes
Cache fill: 18.75% (98304 bytes)


Exiting... (End of file)
mike@Ubuntu:~$
machare
 
Posts: 7
Joined: 02 Mar 2010 12:08
Top

Re: Streaming live Radio to an Internet Radio

Postby linuxcentre » 08 Mar 2010 00:43

MODES=flashaac&OUTTYPE=mp3 ...

Maybe wrong OUTTYPE, try aac
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29
Top

Re: Streaming live Radio to an Internet Radio

Postby machare » 08 Mar 2010 17:44

Thank you, but that also fails:


Metadata:
audiocodecid mp4a
audiodatarate 128.00
createdby BBC
canseektoend FALSE
##########Input #0, flv, from 'pipe:':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: 0x0000, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
Unable to find a suitable output format for 'pipe:'
#
Caught signal: 13, cleaning up, just a second...
ERROR: Download: Failed writing, exiting!
INFO: Command exit code 1 (raw code = 256)

INFO: Streaming failed with exit code 1
ERROR: aborting get_iplayer
machare
 
Posts: 7
Joined: 02 Mar 2010 12:08
Top


Return to help



Who is online

Users browsing this forum: No registered users and 2 guests

cron
./cache/ is NOT writable.