DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default Play mediastream

Hi all, can somebody give me a hint, how to play this stream:

http://streams.br-online.de/bayern4klassik_2.m3u

I tried with xmms, vlc and so on, but none of them did anything!

TIA für trying!
Reply With Quote
  #2   (View Single Post)  
Old 19th September 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Its a playlist file. You download, `cat` it and play each media stream with mplayer:

mplayer "http://gffstream.ic.llnwd.net/stream/gffstream_w13a"
mplayer "http://gffstream.ic.llnwd.net/stream/gffstream_w13b"
__________________
The power of plain text? It can control an entire OS
Reply With Quote
  #3   (View Single Post)  
Old 19th September 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

% mplayer -playlist http://streams.br-online.de/bayern4klassik_2.m3u

That is just one of many possibilities ...
Reply With Quote
  #4   (View Single Post)  
Old 19th September 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

It should run fine with multimedia/audacious.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #5   (View Single Post)  
Old 19th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

It did actually run fine with mplayer, thanks!

Funny, I thought the GUI stuff would handle it better than a cli-application

I wonder, which one does the best recording-stuff?
Reply With Quote
  #6   (View Single Post)  
Old 20th September 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Quote:
Originally Posted by PatrickBaer View Post
Funny, I thought the GUI stuff would handle it better than a cli-application
Its true, in Windows or possibly Mac OS as well

Quote:
I wonder, which one does the best recording-stuff?
Mplayer supports this feature out of the box. For instance, with Richard's command:

%mplayer -playlist "http://streams.br-online.de/bayern4klassik_2.m3u" -dumpstream

Once finishing recording, play the file stream.dump

%mplayer stream.dump
__________________
The power of plain text? It can control an entire OS
Reply With Quote
  #7   (View Single Post)  
Old 23rd September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

Works fine in XMMS. Just save the .m3u file on your harddrive. Then open it up in XMMS. It will list the streams in the playlist...you only need to use one of them.

Or you could open up the .m3u file in an editor and get the location of the stream itself and open that up.
Reply With Quote
  #8   (View Single Post)  
Old 26th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

mplayer does indeed a good job so far. But there's something else:

I want to record a webradio show every night from 11pm to midnight.

I can only think of mplayer ... &; sleep 3600; kill -TERM %1

Somebody have more elegant approach?
Reply With Quote
  #9   (View Single Post)  
Old 26th September 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

at(1) & cron(8)
Reply With Quote
Old 26th September 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Quote:
Originally Posted by PatrickBaer View Post
mplayer does indeed a good job so far. But there's something else:

I want to record a webradio show every night from 11pm to midnight.

I can only think of mplayer ... &; sleep 3600; kill -TERM %1

Somebody have more elegant approach?
Fill in the APP_PARA variable and use this script with cron:

Code:
#! /bin/sh

APP_NAME=mplayer
APP_PARA=
APP_CMD="$APP_NAME $APP_PARA"
APP_PID="pgrep $APP_NAME \| head -1"

AT_PARA=midnight
AT_CMD="at $AT_PARA"

$APP_CMD &
echo "kill $($APP_PID)" | $AT_CMD
__________________
The power of plain text? It can control an entire OS
Reply With Quote
Old 26th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

Not a bad idea! How about a little shorter

mplayer APP_PARA &
echo "pkill mplayer"|at midnight

But good idea, will do so!
Reply With Quote
Old 27th September 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Any other mplayer processes (play movie, music) running between 23pm an midnight are terminated, too!
__________________
The power of plain text? It can control an entire OS
Reply With Quote
Old 27th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

True, but it's a mailscanner, so I frankly don't care
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm looking for a music text based music player that can play .m4p and .m4a formats cssgalactic FreeBSD Ports and Packages 4 14th July 2008 04:16 AM
How to play an avi video? aleunix OpenBSD Packages and Ports 3 16th June 2008 06:25 AM


All times are GMT. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick