[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
Linuxcentre • View topic - [solved] Efficient Live Recording?

[solved] Efficient Live Recording?

Help for using get_iplayer

[solved] Efficient Live Recording?

Postby JonathanSagnella » 20 Jan 2010 22:51

What would be the best way to get a high quality live recording?

For example, I'm currently use this for recording my daily fix of Murder She Wrote:

"get_iplayer --modes=flashnormal --type=livetv --get 80002"

I leave it on all day and when I come back I close get-iplayer and am left with a very long recording of all the days tv, which I can't convert without losing quality. Any tips for clean converting or better recording?
JonathanSagnella
 
Posts: 8
Joined: 19 Jan 2010 18:09

Re: Efficient Live Recording?

Postby linuxcentre » 20 Jan 2010 23:45

JonathanSagnella wrote:What would be the best way to get a high quality live recording?

For example, I'm currently use this for recording my daily fix of Murder She Wrote:

"get_iplayer --modes=flashnormal --type=livetv --get 80002"

I leave it on all day and when I come back I close get-iplayer and am left with a very long recording of all the days tv, which I can't convert without losing quality. Any tips for clean converting or better recording?


Firstly, I think the --stop=<number of seconds> option will help a little as i should close get_iplayer after that duration.
Secondly, use the following to DEMUX (i.e. lossless conversion) the flv file:

Code: Select all
ffmpeg -i infile.flv -acodec copy -vcode copy -y outfile.avi


It should only take a minurte or two. If not then substitute avi for mp4.
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29

Re: Efficient Live Recording?

Postby linuxcentre » 20 Jan 2010 23:46

I forgot to mention: try using --modes=flashvhigh,flashhigh,flashstd,flashnormal
BBC One, specifically, has three different stream bitrates.
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29

Re: Efficient Live Recording?

Postby NetworkNed » 21 Jan 2010 02:16

--modes=flashhd,flashvhigh ??
The forum's avatar functionality is currently disabled. :(
NetworkNed
 
Posts: 22
Joined: 21 Jan 2010 02:04

Re: Efficient Live Recording?

Postby linuxcentre » 21 Jan 2010 09:22

NetworkNed wrote:--modes=flashhd,flashvhigh ??


Nah, there are no flashhd BBC live streams yet AFAIK.
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29

Re: Efficient Live Recording?

Postby macerg » 21 Jan 2010 10:40

JonathanSagnella wrote: ....................
I leave it on all day and when I come back I close get-iplayer and am left with a very long recording of all the days tv, which I can't convert without losing quality. Any tips for clean converting or better recording?



Here is my set-up-up for recording selected radio programs (Linux), firstly the crontab for timed recoding start:-
Code: Select all
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h  dom mon dow   command
59 18 * * mon recrad.sh 2 Paul_Jones 3720
59 18 * * wed recrad.sh 2 Mike_Harding 3720
14 23 * * tue-thu recrad.sh 3 Late_Junction 6420
59 22 * * sat recrad.sh 2 Bob_Harris 10920

Note the three parameters passed to recrad.sh are
firstly the BBC radio channel, then the program name (for naming locally) and then the
program length (in seconds).



Now the recrad.sh shell script that calls get_iplayer :-
Code: Select all
#Record BBC Radios 1-4 + World Service International
case "$1" in
"")
   # set channel to Radio 4 if blank
   dvb_channel="39"
   get_stream="35"
   channel_text="BBC_Radio_4_FM_"
   ;;
  1)
   # set channel to radio 1
   dvb_channel="36"
   get_stream="32"
   channel_text="BBC_Radio_1_live_"
   ;;
  2)
   # set channel to radio 2
   dvb_channel="37"
   get_stream="33"
   channel_text="BBC_Radio_2_live_"
   ;;
  3)
   # set channel to radio 3
   dvb_channel="38"
   get_stream="34"
   channel_text="BBC_Radio_3_live_"
   ;;
  4)
   # set channel to radio 4
   dvb_channel="39"
   get_stream="35"
   channel_text="BBC_Radio_4_FM_"
   ;;
  w)
   # set channel to world service international
   dvb_channel="40"
   get_stream="56"
   channel_text="BBC_World_Service_Intl_live_"
   ;;
  *)
   echo "usage: recrad.sh [1|2|3|4|w -(radio channel)] [program_name] [program length in seconds]" >&2
   exit 8
   ;;
esac
   
case "$2" in

"")
   # set program to ad_hoc if blank
   program="ad_hoc"
   ;;
  *)   
   # set program to value of $2 if non-blank
   program="$2"
   ;;
esac

case "$3" in

"")
   # set program_length to 1 hour 2 mins if blank
   program_length="3720"
   ;;
  *)   
   #set program_length to value of $3 if non-blank
   program_length="$3"
   ;;
esac

mkdir $HOME/radio/$program/ >/dev/null 2>&1
echo "recording "$channel_text" into "$HOME/radio/$program" for "$program_length" seconds"
#Try tuner first
if dvbstream -n $program_length -f 714166670 0 4$dvb_channel  >$HOME/Desktop/$channel_text-$program-from-tuner-report_`date +%Y-%m-%d@%H-%M-%S`.txt 2>&1 -o >$HOME/radio/$program/$channel_text`date +%Y-%m-%d_%H%M%S`.mpeg
   then exit 0
else
#Use internet if tuner fails
   if get_iplayer 801$get_stream --get --preset=liveradio --outputliveradio=$HOME/radio/$program/ --stop=$program_length >$HOME/Desktop/$channel_text-$program-from-internet-report_`date +%Y-%m-%d@%H-%M-%S`.txt 2>&1
   then exit 2
   fi
exit 4
fi


Note that the script tries my tuner first and then tries the internet.

The above is easily adaptable for TV.
macerg
 
Posts: 5
Joined: 20 Jan 2010 12:22
Location: Pai, Mae Hong Son District, Northern Thailand

Re: Efficient Live Recording?

Postby linuxcentre » 21 Jan 2010 16:28

Just (probably a stupid) question.. Why not just use the get_iplayer PVR features to get the failed programmes after they are up on iPlayer?
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29

Re: Efficient Live Recording?

Postby JonathanSagnella » 21 Jan 2010 17:53

linuxcentre wrote:Just (probably a stupid) question.. Why not just use the get_iplayer PVR features to get the failed programmes after they are up on iPlayer?


Not all programs go up on the website afterwards. Expensive Imports such as Heroes and Little-Loved shows such as Murder She Wrote don't get added. Thanks for the help everyone.

P.S. Sorry for the dumb question, but what program do I put the "ffmpeg -i infile.flv -acodec copy -vcode copy -y outfile.avi" in?
JonathanSagnella
 
Posts: 8
Joined: 19 Jan 2010 18:09

Re: Efficient Live Recording?

Postby linuxcentre » 21 Jan 2010 18:00

Heroes is on iPlayer I often record it. But I get your point!
Sorry, the ffmpeg line is just an example of the shell command used to demux flv to mp4/avi.
linuxcentre
Site Admin
 
Posts: 306
Joined: 31 Dec 2009 17:29

Re: Efficient Live Recording?

Postby JohnDinton » 21 Jan 2010 18:13

It may be worth pointing out that for Windows users who used the version of the installer I used, to call ffmpeg from the get_iplayer prompt you need to type

ffmpeg\bin\ffmpeg ...

I haven't yet used get_iplayer in Linux or the latest Windows installer, so I don't know if it's the same with them.
JohnDinton
 
Posts: 40
Joined: 19 Jan 2010 20:16

Next

Return to help



Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron
./cache/ is NOT writable.