* [commandline] trplayer kludge, but it works (fwd)
@ Jude DaShiell
` Michael Whapples
` Tony Baechler
0 siblings, 2 replies; 8+ messages in thread
From: Jude DaShiell @ UTC (permalink / raw)
To: speakup
---------- Forwarded message ----------
Date: Sun, 27 Jul 2008 06:26:05
From: Karl Dahlke <eklhad@comcast.net>
Reply-To: commandline@yahoogroups.com
To: commandline@yahoogroups.com
Subject: [commandline] trplayer kludge, but it works
Ok, this is really bogus, but I just can't spend a lot of time on this.
This is the fastest way I could get streaming audio to work.
1) Create a new directory /trj, for a trplayer jail.
We're going to chroot into this, so it's like a jail.
2) Make directories bin dev etc usr lib usr/bin usr/lib in /trj.
3) Put in a few critical files like /etc/host.conf and /bin/bash
and /dev/console etc.
4) Telnet into the old machine, where trplayer works.
Copy /lib/* and /usr/lib/* over to /trj.
This brings in RealPlayer8, which is under /usr/lib,
and it brings in the compatability libraries,
which were necessary for trplayer to run even on the old box.
Note that trplayer was compiled for an even older redhat, and sorry,
this is the only binary,
so we needed compat libraries even to get it to work on that machine.
Trying to compile it from source would probably take me two weeks,
if it can be done at all,
which it probably can't, as I'm sure the real player sdk
has changed substantially over the past few years.
Why such a valuable program goes unmaintained, I don't know.
5) Make sure you can chroot into /trj.
This means bash has to work, along with its 5 shared libraries.
No real problem here; I copied all the libraries over.
Like using a sledge hammer to do the job.
6) Test trplayer; it works.
7) Remove, about a dozen at a time, the libraries in /trj/lib and /trj/usr/lib,
until trplayer doesn't work.
If you took something out that made it break, put it back.
(Does it hurt when you do that? Then don't do that!)
Finally you are left with a handful of shared libraries.
That's all you need.
Notice that one of these is /lib/ld-linux.so.2,
and it is referenced, in bash, and in trplayer, by an absolute path.
That's why I had to chroot into a new filesystem.
I couldn't just put these old libraries in a special
old_tr_libs directory and setLD_LIBRARY_PATH,
though that would have been so much easier.
8) Remove any programs or files in the RealPlayer directory that trplayer doesn't need.
This just saves space, and I haven't done it yet.
9) Write a C program to chroot into /trj and call up trplayer,
passing the arguments along.
This has to be setuid root.
10) Point to this wrapper program in your edbrowse config file.
Verify that you can invoke streaming audio from web pages,
and you don't have to be root to do it.
Well it all works, and I really don't want to think about it any more,
at least not for a while.
However, there is a real incentive to get this working, somehow,
under real player 11.
That program can access windows media, and flash.
How many websites are currently unavailable to edbrowse because they rely on flash?
I have real player 11, and I wonder if I can just swap libraries,
and have it work.
That's probably too good to be true.
If any of you would like the trj file system, bundled up as a compressed tarball,
I could make it available.
Or, if you have a better solution, please let me know.
Karl Dahlke
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/commandline/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/commandline/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:commandline-digest@yahoogroups.com
mailto:commandline-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
commandline-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [commandline] trplayer kludge, but it works (fwd)
[commandline] trplayer kludge, but it works (fwd) Jude DaShiell
@ ` Michael Whapples
` Adam Myrow
` Tony Baechler
1 sibling, 1 reply; 8+ messages in thread
From: Michael Whapples @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Why not just use something like mplayer? Much simpler as it tends to be
packaged into distributions and supports many more formats. OK, mplayer
I found needed the actual stream URL extracting from the .ram file (in
the case of the BBC it just needed the content which is the stream URL,
use a command like
mplayer $(cat filename.ram)
). Mplayer is just one example, there are others like xine.
Another alternative, if you want to make some work for yourself would be
create a command line player based on something like gstreamer... Well
for simple use you could even use some of the CLI tools included with
gstreamer.
I really would leave trplayer alone.
Michael Whapples
On -10/01/37 20:59, Jude DaShiell wrote:
>
>
>
>
>
>
> ---------- Forwarded message ----------
> Date: Sun, 27 Jul 2008 06:26:05
> From: Karl Dahlke <eklhad@comcast.net>
> Reply-To: commandline@yahoogroups.com
> To: commandline@yahoogroups.com
> Subject: [commandline] trplayer kludge, but it works
>
> Ok, this is really bogus, but I just can't spend a lot of time on this.
> This is the fastest way I could get streaming audio to work.
>
> 1) Create a new directory /trj, for a trplayer jail.
> We're going to chroot into this, so it's like a jail.
>
> 2) Make directories bin dev etc usr lib usr/bin usr/lib in /trj.
>
> 3) Put in a few critical files like /etc/host.conf and /bin/bash
> and /dev/console etc.
>
> 4) Telnet into the old machine, where trplayer works.
> Copy /lib/* and /usr/lib/* over to /trj.
> This brings in RealPlayer8, which is under /usr/lib,
> and it brings in the compatability libraries,
> which were necessary for trplayer to run even on the old box.
> Note that trplayer was compiled for an even older redhat, and sorry,
> this is the only binary,
> so we needed compat libraries even to get it to work on that machine.
> Trying to compile it from source would probably take me two weeks,
> if it can be done at all,
> which it probably can't, as I'm sure the real player sdk
> has changed substantially over the past few years.
> Why such a valuable program goes unmaintained, I don't know.
>
> 5) Make sure you can chroot into /trj.
> This means bash has to work, along with its 5 shared libraries.
> No real problem here; I copied all the libraries over.
> Like using a sledge hammer to do the job.
>
> 6) Test trplayer; it works.
>
> 7) Remove, about a dozen at a time, the libraries in /trj/lib and
> /trj/usr/lib,
> until trplayer doesn't work.
> If you took something out that made it break, put it back.
> (Does it hurt when you do that? Then don't do that!)
> Finally you are left with a handful of shared libraries.
> That's all you need.
> Notice that one of these is /lib/ld-linux.so.2,
> and it is referenced, in bash, and in trplayer, by an absolute path.
> That's why I had to chroot into a new filesystem.
> I couldn't just put these old libraries in a special
> old_tr_libs directory and setLD_LIBRARY_PATH,
> though that would have been so much easier.
>
> 8) Remove any programs or files in the RealPlayer directory that
> trplayer doesn't need.
> This just saves space, and I haven't done it yet.
>
> 9) Write a C program to chroot into /trj and call up trplayer,
> passing the arguments along.
> This has to be setuid root.
>
> 10) Point to this wrapper program in your edbrowse config file.
> Verify that you can invoke streaming audio from web pages,
> and you don't have to be root to do it.
>
> Well it all works, and I really don't want to think about it any more,
> at least not for a while.
> However, there is a real incentive to get this working, somehow,
> under real player 11.
> That program can access windows media, and flash.
> How many websites are currently unavailable to edbrowse because they
> rely on flash?
> I have real player 11, and I wonder if I can just swap libraries,
> and have it work.
> That's probably too good to be true.
>
> If any of you would like the trj file system, bundled up as a
> compressed tarball,
> I could make it available.
> Or, if you have a better solution, please let me know.
>
> Karl Dahlke
>
> ------------------------------------
>
> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/commandline/
>
> <*> Your email settings:
> Individual Email | Traditional
>
> <*> To change settings online go to:
> http://groups.yahoo.com/group/commandline/join
> (Yahoo! ID required)
>
> <*> To change settings via email:
> mailto:commandline-digest@yahoogroups.com
> mailto:commandline-fullfeatured@yahoogroups.com
>
> <*> To unsubscribe from this group, send an email to:
> commandline-unsubscribe@yahoogroups.com
>
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [commandline] trplayer kludge, but it works (fwd)
` Michael Whapples
@ ` Adam Myrow
` Chuck Hallenbeck
0 siblings, 1 reply; 8+ messages in thread
From: Adam Myrow @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
On Thu, 26 Nov 2009, Michael Whapples wrote:
> mplayer $(cat filename.ram)
Or, just use the "-playlist" option. In other words, "mplayer -playlist
filename.ram." There is no logical reason to still be using trplayer, as
it hasn't been updated in almost a decade.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [commandline] trplayer kludge, but it works (fwd)
` Adam Myrow
@ ` Chuck Hallenbeck
` Kirk Reiser
0 siblings, 1 reply; 8+ messages in thread
From: Chuck Hallenbeck @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Hi Adam,
On Thu, Nov 26, 2009 at 12:23:18PM -0600, Adam Myrow wrote:
> There is no logical reason to still be
> using trplayer, as it hasn't been updated in almost a decade.
I'm inclined to agree with you, except: how does one play flash files
with mplayer?
Chuck
--
The Moon is Waxing Gibbous (68% of Full)
My web site: www.hallenbeck.ftml.net
Audio editor, weblog: edway.wordpress.com
--------
The secret of a happy marriage is to treat all disasters as incidents,
and none of the incidents as a disaster. -- Harold Nicolson
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [commandline] trplayer kludge, but it works (fwd)
` Chuck Hallenbeck
@ ` Kirk Reiser
` Chuck Hallenbeck
0 siblings, 1 reply; 8+ messages in thread
From: Kirk Reiser @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
mplayer will play .flv files. I use youtube-dl to go and fetch a
youtube links file and then use mplayer to play it. It works quite
well. youtube-dl is a debian package and I'm sure available other
places also.
Kirk
On Thu, 26 Nov 2009, Chuck Hallenbeck wrote:
> Hi Adam,
>
> On Thu, Nov 26, 2009 at 12:23:18PM -0600, Adam Myrow wrote:
>> There is no logical reason to still be
>> using trplayer, as it hasn't been updated in almost a decade.
>
> I'm inclined to agree with you, except: how does one play flash files
> with mplayer?
>
> Chuck
>
>
>
> --
> The Moon is Waxing Gibbous (68% of Full)
> My web site: www.hallenbeck.ftml.net
> Audio editor, weblog: edway.wordpress.com
> --------
>
> The secret of a happy marriage is to treat all disasters as incidents,
> and none of the incidents as a disaster. -- Harold Nicolson
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Kirk Reiser The Computer Braille Facility
e-mail: kirk@braille.uwo.ca University of Western Ontario
phone: (519) 661-3061
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [commandline] trplayer kludge, but it works (fwd)
` Kirk Reiser
@ ` Chuck Hallenbeck
0 siblings, 0 replies; 8+ messages in thread
From: Chuck Hallenbeck @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Interesting. It's available on Archlinux too, I'll give it a spin. In
my experience, mplayer can play simple flash files, but most of the
ones I've encountered have been compressed swf format, seems like
nobody posts swf any more unless it's compressed.
Thanks,
Chuck
On Fri, Nov 27, 2009 at 07:58:13AM -0500, Kirk Reiser wrote:
> mplayer will play .flv files. I use youtube-dl to go and fetch a
> youtube links file and then use mplayer to play it. It works quite
> well. youtube-dl is a debian package and I'm sure available other
> places also.
>
> Kirk
>
> On Thu, 26 Nov 2009, Chuck Hallenbeck wrote:
>
> >Hi Adam,
> >
> >On Thu, Nov 26, 2009 at 12:23:18PM -0600, Adam Myrow wrote:
> >> There is no logical reason to still be
> >>using trplayer, as it hasn't been updated in almost a decade.
> >
> >I'm inclined to agree with you, except: how does one play flash files
> >with mplayer?
> >
> >Chuck
> >
> >
> >
> >--
> >The Moon is Waxing Gibbous (68% of Full)
> > My web site: www.hallenbeck.ftml.net
> > Audio editor, weblog: edway.wordpress.com
> > --------
> >
> >The secret of a happy marriage is to treat all disasters as incidents,
> >and none of the incidents as a disaster. -- Harold Nicolson
> >_______________________________________________
> >Speakup mailing list
> >Speakup@braille.uwo.ca
> >http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> Kirk Reiser The Computer Braille Facility
> e-mail: kirk@braille.uwo.ca University of Western Ontario
> phone: (519) 661-3061
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
--
The Moon is Waxing Gibbous (75% of Full)
My web site: www.hallenbeck.ftml.net
Audio editor, weblog: edway.wordpress.com
--------
The secret of a happy marriage is to treat all disasters as incidents,
and none of the incidents as a disaster. -- Harold Nicolson
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [commandline] trplayer kludge, but it works (fwd)
[commandline] trplayer kludge, but it works (fwd) Jude DaShiell
` Michael Whapples
@ ` Tony Baechler
` Chuck Hallenbeck
1 sibling, 1 reply; 8+ messages in thread
From: Tony Baechler @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
I'm sure I'm not the only one to point this out, but here are my thoughts.
On point #4, why not just use Helix? It has Linux binaries that work.
It leaves a lot to be desired in terms of the UI, but it plays audio and
is compatible with Real. It's not in Debian, but you can download
precompiled binaries after registration. You might be able to get
source, it's hard to tell. I think Ubuntu might have Helix or Real also
but it requires X. The Helix site is confusing, but it's there.
On point #7, why not just use ldd? That shows the needed libraries. On
a large system, there is no reason to copy hundreds of unnecessary
libraries. If you can set up a compressed loop filesystem, you could
just jail it that way, just making sure the compressed loop filesystem
is mounted in /etc/fstab.
Finally, the reason why it's no longer maintained is simple. Matt
Campbell works for Serotek and probably no longer has the time or
interest. I know for certain that it used to work on Debian, so I'm not
sure where the Red Hat comment comes from.
Of course, you could also use MPlayer which plays Real and avoid the
hassle altogether, but I don't think it plays Flash.
On 11/26/2009 3:39 AM, Jude DaShiell wrote:
> 4) Telnet into the old machine, where trplayer works.
> Copy /lib/* and /usr/lib/* over to /trj.
> This brings in RealPlayer8, which is under /usr/lib,
> and it brings in the compatability libraries,
> which were necessary for trplayer to run even on the old box.
> Note that trplayer was compiled for an even older redhat, and sorry,
> this is the only binary,
> so we needed compat libraries even to get it to work on that machine.
> Trying to compile it from source would probably take me two weeks,
> if it can be done at all,
> which it probably can't, as I'm sure the real player sdk
> has changed substantially over the past few years.
> Why such a valuable program goes unmaintained, I don't know.
> 7) Remove, about a dozen at a time, the libraries in /trj/lib and
> /trj/usr/lib,
> until trplayer doesn't work.
> If you took something out that made it break, put it back.
> (Does it hurt when you do that? Then don't do that!)
> Finally you are left with a handful of shared libraries.
> That's all you need.
> Notice that one of these is /lib/ld-linux.so.2,
> and it is referenced, in bash, and in trplayer, by an absolute path.
> That's why I had to chroot into a new filesystem.
> I couldn't just put these old libraries in a special
> old_tr_libs directory and setLD_LIBRARY_PATH,
> though that would have been so much easier.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [commandline] trplayer kludge, but it works (fwd)
` Tony Baechler
@ ` Chuck Hallenbeck
0 siblings, 0 replies; 8+ messages in thread
From: Chuck Hallenbeck @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
On Sun, Nov 29, 2009 at 06:47:07PM -0800, Tony Baechler wrote:
> Of course, you could also use MPlayer which plays Real and avoid the
> hassle altogether, but I don't think it plays Flash.
Hi Tony,
As Kirk pointed out, youtube-dl will retrieve flash files from that
site and store them as flv files, which mplayer plays fine. In
addition, clive will do that, and will also hand flash files on google
and a list of other servers. Each supported server needs to be
configured, but clive comes ready to handle a bunch of them
Chuck
--
The Moon is Waxing Gibbous (96% of Full)
My web site: www.hallenbeck.ftml.net
Audio editor, weblog: edway.wordpress.com
--------
Which is worse: ignorance or apathy? Who knows? Who cares?
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[commandline] trplayer kludge, but it works (fwd) Jude DaShiell
` Michael Whapples
` Adam Myrow
` Chuck Hallenbeck
` Kirk Reiser
` Chuck Hallenbeck
` Tony Baechler
` Chuck Hallenbeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).