Ben,
I was trying to update the TAL_parser.pl script that you wrote last year to remove the step that we had to add to forward the stream through the local port that AlienBBC used to do the transcoding. Now Slimserver can play the true urls directly through mplayer. I think that I successfully did that, but I think that the thisamericanlife.org website might have changed its structure a little since I last used your script.
When I run it with --sort chrono_by_year the playlists do not build accurately. 1995.pls only gets a couple of shows and they are from 1996. All other years have a few oddballs from other years tossed in.
The playlist that get built work fine and the episode listed play great direclty through mplayer as planned.
If you could just take a quick look to see if I damaged the underlying code, or if it is just a matter of bringing the code in line with a change that they made to the TAL archive.
Thanks,
Tom Malsbury
I attached my updated TAL_parser.pl ,I added .txt to it so that the forums would allow it to be posted
Results 1 to 10 of 15
-
2005-10-27, 14:57 #1
Attn: Ben Klaas - This American Life Parser
-
2005-10-29, 07:00 #2
Hi Tom-- I'll take a look at it in the next few days...funny you should mention this script...I was just cutting all of my data over to a new server and was wondering to myself if anyone ever used those slimserver scripts...
Also, excited to hear that slimserver can play the URLs directly now. This means the playlists can be portable so I can use them elsewhere (in my case, on amarok, which if you are a linux user you should check out. I prefer it to all other audio players, including anything in the Win/Mac world)
Will update this thread after I take a look at the parsing code
#!/ben
-
2005-10-29, 21:48 #3
Linux Audio Players (was Re: Attn: Ben Klaas - ThisAmerican Life Parser)
bklaas wrote:
>Also, excited to hear that slimserver can play the URLs directly now.
>This means the playlists can be portable so I can use them elsewhere
>(in my case, on amarok, which if you are a linux user you should check
>out. I prefer it to all other audio players, including anything in the
>Win/Mac world)
>
>
Amarok is very nifty, but unstable on my SuSE 9.3 laptop; I tend to try
with it first, then switch to Juk if/when it crashes.
--
Jack At Monkeynoodle Dot Org: It's A Scientific Venture!
"I spent all me tin with the ladies drinking gin
so across the Western ocean I must wander" -- trad.
-
2005-10-30, 13:00 #4
I just posted a v1.3 to here-
http://benklaas.com/slimserver/
Tom, I don't see any issue when testing the chrono_by_year sort. Not sure what was going on there. Can you give it another try with this new version and see if you are still seeing issues?
Anyway, I put in a few other changes to tidy some things up, and reinserted the alienbbc URL formatting as a command-line option (it's off by default now), just in case someone without mplayer would like to use this script.
Also, I'd love to know how to stream real via mplayer so I can actually *use* this script of mine! If anyone has any pointers on that, by all means reply on this thread.
#!/ben
-
2005-10-30, 18:43 #5
Originally Posted by bklaas
Here are the only two shows that should get added to the 1995.pls:
Quitting 12/29 Episode 7
Vacations 12/8 Episode 4
Here is the content of the 1995.pls:
[playlist]
NumberOfEntries=3
File1=http://thislife.org/ra/7.ram
Title1=Quitting (12.29.1995)
Length1=-1
File2=http://thislife.org/ra/4.ram
Title2=Vacations (12.08.1995)
Length2=-1
File3=http://thislife.org/ra/7.ram
Title3=Poultry Slam '95 (12.01.1995)
Length3=-1
Version=2
This is pretty close, it is just picking up Episode 3 (Poultry Slam '95) which shouldn't be included and assigning it the url of Episode 7.
Now here is the really odd part, and this may be a new Slimserver bug with the way it stores playlists in the new database system or it may be a problem with how the script formats the data, here is how it shows up in Slimserver 6.2.1:
Home / Browse Playlists / 1995
Name: 1995
All Songs Play Add to playlist
Quitting (03.07.1996) Play Add to playlist
Vacations (02.14.1996) Play Add to playlist
Quitting (03.07.1996) Play Add to playlist
So you can see that it is not pulling the correct title information from the playlist(It is getting the beginning of the title for the first two, but changeing the date, and completely wrong on the third). However, they do link through to the right url and play fine.
If you have any ideas, I'd be intersted in hearing them. You can confirm that you are not seeing this behaviour on your system? I am seeing similar errors in all years generated.
--Tom Malsbury
-
2005-10-30, 19:54 #6
Streaming RealAudio via mplayer (was Re: Attn: Ben Klaas - ThisAmerican Life Parser)
Originally Posted by bklaas
If you think this may be your problem to you can take a look here to see if there is a package for your distro: http://rpm.pbone.net/index.php3?stat...&dist[]=43
I tested it according the the last step I found in this post:http://forums.slimdevices.com/showpo...15&postcount=1
* To test that the player works, run the following :
mplayer rtsp://rmlivev8.bbc.net.uk/farm/*/ev7/live24/radio1/live/r1_dsat_g2.ra
* You should see it connect and then start to decode; once it prints out
'Starting playback', you know all's well.
--Tom Malsbury
-
2005-10-31, 13:48 #7
Actually, I think the script is golden.
On the problems you see in the 1995.pls file:
There is an error in the html on http://www.thislife.org/pages/archives/archivemain.html. If you go there and hold your mouse over the "NA" by the 1995 entry "Poultry Slam" you will see what the problem is. I think that's the only error of that type on the page, so I'm choosing to ignore it rather than kludge a workaround.
as for the title/playlist thing...that's interesting. Looks a lot like this bug that I opened ages ago, but should have been fixed in 6.x slimserver:
http://bugs.slimdevices.com/show_bug.cgi?id=735
I've reproduced what you're seeing there, Tom. Probably this bug needs to get reopened.
-
2005-10-31, 14:14 #8
Originally Posted by bklaas
http://www.thislife.org/pages/archives/archive95.html
http://www.thislife.org/pages/archives/archive96.html
http://www.thislife.org/pages/archives/archive97.html
http://www.thislife.org/pages/archives/archive98.html etc..
These pages only list new shows for each year without rebroadcast of older episodes. When I looked at the playlists I was seeing episodes out of numeric order in each playlists. Now that I see what is going on and where you are getting the info I agree the code is golden.
Originally Posted by bklaas
Thanks againg for your quick attention. Is mplayer working for you yet?
--Tom Malsbury
-
2005-10-31, 14:54 #9
sounds like there is some active work going on with the playlist logic. If you open a bug, make sure to reference bug 735 as related, as it appears it is...
no love on mplayer, but probably serves me right...I just jumped the Fedora bandwagon and have started using Gentoo. I'm fairly pleased with it, but get totally stuck when I hit errors like this...so off the slimserver forums and on to the gentoo forums i go...
mediumspicy ~ # emerge mplayer
Calculating dependencies ...done!
>>> emerge (1 of 2) media-video/realplayer-10.0.6 to /
>>> Downloading https://helixcommunity.org/download....50915.i586.rpm
--15:51:02-- https://helixcommunity.org/download....50915.i586.rpm
=> `/usr/portage/distfiles/RealPlayer-10.0.6.776-20050915.i586.rpm'
Resolving helixcommunity.org... 207.188.25.135
Connecting to helixcommunity.org|207.188.25.135|:443... connected.
ERROR: Certificate verification error for helixcommunity.org: unable to get local issuer certificate
To connect to helixcommunity.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
!!! Couldn't download RealPlayer-10.0.6.776-20050915.i586.rpm. Aborting.
mediumspicy ~ #
-
2005-10-31, 15:52 #10
alright, I got mplayer working (thanks to the gentoo forums), now it's on to making slimserver work with these real audio streams. Tom, have you gotten that far? I'm assuming there needs to be a new line in convert.conf to handle .ra streams?
And while we're at it, mplayer should be able to handle a few more...wma, asx, etc. Any pointers there? http://www.pfarrell.com/music/slimserver/tips.html has some good pointers on wma over ffmpeg, but I'd like to know the ropes with mplayer...