DABDig Forums
register | my profile | my bookmarks | my notifications | search | faqs
Show topics:     
   All Forums
    Other EPG
        Streamripper
 
  Jump to:     
Bookmark This Topic | E-mail This Topic To A Friend   Previous Topic   Next Topic
Author Topic
aarons
Posts: 34
From:
Registered: 03/01/2006 19:32
Show this author's profile    Email the author of this post
Posted: Thursday, January 12, 2006 - 21:33 Edit this message  Reply to this message with quotes  (IP Logged)

Hello

I'm trying to set up DABDig with a program called streamripper - http://streamripper.sourceforge.net/ - which I use to save programmes from stations that broadcast in MP3.

The command I'd need to use to launch streamripper is something like...

C:\radioripping\streamripper\sripper.exe http://64.236.34.196:80/stream/1046 -r -t -s -d "W:\radio\KCRW\MBE\%date%" -l 11400

I thought I'd be able to use the Streaming and Streaming2 sections of the INI file to do this, but as far as I can see, I can't pass parameters this way. So I can't think of anyway of making it work? Am I missing something really obvious?

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Friday, January 13, 2006 - 00:12 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

I'll add parameter substitution in Streaming and Streaming2.

Do you need any substitution parameters other than those already documented?

Note - the documentation is not quite right ... the channel "number" is substituted in between CmdP1 and CmdP2.

If you make the channel number 1046 and for now hard-code the duration then it might just work.

Set TraceFlags=1 in dabdig.ini to see what command line is being generated.


Paul Webster

DABDig creator

Edited by Paul Webster on Thursday, January 12, 2006 - 7:18:44 PM

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Friday, January 13, 2006 - 02:09 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

There may well have been ways of doing it with other existing devices in DABDig - but it was easy enough to do as I suggested above and make Streaming and Streaming2 a bit more flexible.

So - once you get you hands on the new stuff you would do something like this.

DABDIG.MAP file

[Streaming]

KCRW\MBE=http://64.236.34.196:80/stream/1046

DABDIG.INI file

STREAMINGPATH=C:\radioripping\streamripper\

STREAMINGCMD=sripper.exe

STREAMINGCMDP1=

STREAMINGCMDP2=

STREAMINGCMDP3=

STREAMINGCMDOVERRIDE=$CP -r -t -s -d "W:\radio\$CN\%date%" -l $LS

or - if you would like some more flxibility over the date field ...

STREAMINGCMDOVERRIDE=$CP -r -t -s -d "W:\radio\$CN\$DY$DM$DD" -l $LS

Done for build 2.56b18

Or - if you wanted ResonanceFM - which has listings available via one of my User Channels on DigiGuide then ... you could have a dabdig.map entry of

[streaming]

ResonanceFM=http://relay.exequo.org:8000/resonanceFM

but then - given that you would have programme titles available - then you would probably make the other parameter something like this ...

STREAMINGCMDOVERRIDE=$CP -r -t -s -d "W:\radio\$CN\$TN" -l $LS

Double-check to make sure that the directory exists if the ripper doesn't create one on the fly ... or ...

try setting dabdig.ini entry:

OutputTarget=w:\radio\$cn

OutputTargetCreate=1

and replace the path from above with $OT

i.e.

STREAMINGCMDOVERRIDE=$CP -r -t -s -d "$OT\$TN" -l $LS

As a general rule - best to use the .pls file rather than the direct link - if the ripper supports it.

Note - that is from top of my head - so try it out before committing lots of recordings.


Paul Webster

DABDig creator

Edited by Paul Webster on Friday, January 13, 2006 - 5:59:59 AM

aarons
Posts: 34
From:
Registered: 03/01/2006 19:32
Show this author's profile    Email the author of this post
Posted: Friday, January 13, 2006 - 13:26 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

I've installed the patch and everything that I had working before is working fine, no problems there.

I'm currently experimenting with getting streamripper going. I think I'll be using a batch file to launch streamripper, and putting the address of the batch file in the dabdig.ini, then using the batch file to do a few tricks to make sure I've got the right directories, etc etc.

Will report back when it's all going. Thanks again for all the help.

aarons
Posts: 34
From:
Registered: 03/01/2006 19:32
Show this author's profile    Email the author of this post
Posted: Wednesday, January 18, 2006 - 18:43 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Noticed something today.. I was trying to use both 'Stream' and 'Stream2'. 'Stream' works perfectly, but when I use 'Stream2', the URL doesn't get passed properly

IE - it looks something like this

" Stream2-http://www.bbc.co.uk/listen.rm "

Did I explain that right? Roll Eyes

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Thursday, January 19, 2006 - 03:13 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

What did you have set for the channel number - plus what is in DefaultDevice in the dabdig.ini (see the other posting).

If you set TraceFlags=2 in dabdig.ini - and repeat the test then you should get a better clue about what is going on (all alert boxes echoed to dabdig.txt).


Paul Webster

DABDig creator

aarons
Posts: 34
From:
Registered: 03/01/2006 19:32
Show this author's profile    Email the author of this post
Posted: Monday, January 23, 2006 - 17:57 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

OK.

When I use Stream, I get this....

23-01-2006 17:55:18 - 2.56b18 - Trace:1 - on:Streaming - Full command line: "C:\radioripping\mplayer\mplayer.bat" "rtsp://streaming.rte.ie/encoder/radio1.rm" "RTE Radio 1" "Five Seven Live" "Five Seven Live" "4080" 23 01 2006 "Five Seven Live-200601231755"

When I try to use Stream2, I get this....

23-01-2006 17:50:32 - 2.56b18 - Trace:1 - on:Streaming2 - Full command line: "C:\radioripping\mplayer\mplayer.bat" "Stream2-rtsp://streaming.rte.ie/encoder/radio1.rm" "RTE Radio 1" "Five Seven Live" "Five Seven Live" "4380" 23 01 2006 "Five Seven Live-200601231750"

aarons
Posts: 34
From:
Registered: 03/01/2006 19:32
Show this author's profile    Email the author of this post
Posted: Monday, January 23, 2006 - 17:59 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

In the above post..

For the first example, channel number is

Stream-rtsp://streaming.rte.ie/encoder/radio1.rm

For the second example, channel number is

Stream2-rtsp://streaming.rte.ie/encoder/radio1.rm

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Monday, January 23, 2006 - 19:09 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Found a possible issue - if you were using Play rather than Record.

I had missed off a "2" in one place so it would have picked up the CmdOverride from the wrong device.

Fixed it in 2.56b21


Paul Webster

DABDig creator

  Previous Topic   Next Topic

Admin/Moderator: Thread Management