any audio wizards know howto store *.smil files?

Gary Kline kline at tao.thought.org
Wed Jul 26 00:31:34 UTC 2006


On Tue, Jul 25, 2006 at 05:11:36PM -0400, Andy Reitz wrote:
> On Tue, 25 Jul 2006, Lars Eighner wrote:
> 
> > On Tue, 25 Jul 2006, Gary Kline wrote:
> >
> > >
> > > 	Is there a way of saving *.[ra|ram|smil] or any real audio
> > > 	type files locally?  I've poked around and haven't found any
> > > 	means of saving real* stuff.
> >
> > If mplayer will play it, you can (probably) dump it with
> > -dumpaudio -dumpfile <filename>
> >
> > dumpfile defaults to ./stream.dump
> 
> Actually, I tend to use the '-dumpstream' parameter instead of
> '-dumpaudio', because that will get both audio and video. If all you want
> is the audio part, however, then by all means go with '-dumpaudio'.
> 
> I'm not sure if mplayer can parse smil files. If you can't get that to
> work, then just download the smil file (it is just a small text file), and
> pick out the URLs for the media files, and hand those to mplayer. For
> example, I just pulled this smil file from NPR:
> 
> <smil>
> <meta name="title" content="Talk of the Nation - Tuesday, July 25, 2006"
> />
> <meta name="author" content="http://www.npr.org/" />
> <meta name="copyright" content="2006" />
> <body>
> <audio
> src="rtsp://real.npr.org:80/real.npr.na-central/totn/20060725_totn_01.rm?v1st=&mt=2"
> title="Will Syria Help Ease Mideast Turmoil?" author="Talk of the Nation -
> Tuesday, July 25, 2006" copyright="2006" />
> <audio
> src="rtsp://real.npr.org:80/real.npr.na-central/totn/20060725_totn_02.rm?v1st=&mt=2"
> title="Henry V and the 'Battle That Made England'" author="Talk of the
> Nation - Tuesday, July 25, 2006" copyright="2006" />
> <audio
> src="rtsp://real.npr.org:80/real.npr.na-central/totn/20060725_totn_03.rm?v1st=&mt=2"
> title="The Adaptations of Philip K. Dick" author="Talk of the Nation -
> Tuesday, July 25, 2006" copyright="2006" />
> <audio
> src="rtsp://real.npr.org:80/real.npr.na-central/totn/20060725_totn_04.rm?v1st=&mt=2"
> title="Is Third World War Talk Just Hyperbole?" author="Talk of the Nation
> - Tuesday, July 25, 2006" copyright="2006" />
> <audio
> src="rtsp://real.npr.org:80/real.npr.na-central/totn/20060725_totn_05.rm?v1st=&mt=2"
> title="Letters: Middle East Fighting, India.Arie" author="Talk of the
> Nation - Tuesday, July 25, 2006" copyright="2006" />
> </body>
> </smil>
> 
> You can see the <audio> tags contain the good bits (in this case,
> RTSP-style URLs). You can feed those URLs directly to mplayer, which in my
> testing should work fine.
> 


	Apologies for the delay; a buddy dropped by for awhile.  My 
	last post fetched some  non-NPR site that I figure was the "adv"
	that helps pay for the songs/talk space and bandwitdh.  I finally
	used 

	"mplayer rtsp://foobar/..../"

	and it loooked as though the entire don would take 20-30 minutes to
	download.  Not a problem;  this ex-hacker turnd singer (V. Teng)
	has a voice worth waiting for.  My IDSL like is 144k... pretty
	slow.  I'll test with the -dumpaudio -dumpfile "xyz" and see what
	happens.

	gary

	
	Rats. Here's what happened whn I added the two switches to mplayer.
	Anybody know why the streamm bmbed out??



pm 17:15 <tao> [5094] sh -x YY1.sh
+ mplayer -dumpaudio -dumpfile /tmp/vT1
rtsp://real.npr.org:80/real.npr.na-central/news.db.rm?v1st=8AB1883F11EB3EE3&mt=4
MPlayer 1.0pre7try2-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6,
Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.

This codecs.conf is too old and incompatible with this MPlayer release!
at line 5
Playing
rtsp://real.npr.org:80/real.npr.na-central/news.db.rm?v1st=8AB1883F11EB3EE3&mt=4.
Resolving real.npr.org for AF_INET6...
Couldn't resolve name for AF_INET6: real.npr.org
Resolving real.npr.org for AF_INET...
Connecting to server real.npr.org[63.236.6.227]:80 ...
Cache size set to 8192 KBytes
Connected to server: real.npr.org
Cache fill:  7.03% (589824 bytes)    Stream EOF detected
Cache fill:  7.08% (593920 bytes)    REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Core dumped ;)

Exiting... (End of file)


-- 
   Gary Kline     kline at thought.org   www.thought.org     Public service Unix



More information about the freebsd-questions mailing list