Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | mplayer using command line in Windows


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

mplayer using command line in Windows
Reply
 
Thread Tools
Old 30-01-2008, 21:06   #16
cookie_365
Double-Choc
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
Re: mplayer using command line in Windows

If it's a 3 hour show it'll take 3 hours to stream down.

And I'm not waiting 3 hours to tell you how big the file will be
__________________

cookie_365 is offline   Reply With Quote
Advertisement
Old 30-01-2008, 21:50   #17
popper
cf.mega poster
 
Join Date: Jan 2006
Posts: 3,270
popper has a bronze arraypopper has a bronze arraypopper has a bronze array
popper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze array
Re: mplayer using command line in Windows

using 'mplayer for windows' seems to work fine and no .exe required.
http://mulder.dummwiedeutsch.de/home...cts&browser=ie



c:\Program Files\MPlayer for Windows>mplayer -dumpstream -dumpfile bobharris.ra
-bandwidth 999999999999 -ao null rtsp://rmv8.bbc.net.uk/radio2/bobharris.ra
MPlayer dev-SVN-r23673-4.2.0 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2400+ (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
113 audio & 235 video codecs
Playing rtsp://rmv8.bbc.net.uk/radio2/bobharris.ra.
Resolving rmv8.bbc.net.uk for AF_INET...
Connecting to server rmv8.bbc.net.uk[212.58.224.132]: 554...
Cache size set to 640 KBytes
-------------------------
im not going to download the whole thing just to see, as my download limit at this time of day is rather low now .

but you know it works as expected it seems.
popper is offline   Reply With Quote
Old 30-01-2008, 21:59   #18
Cobbydaler
What hast thou done?
 
Cobbydaler's Avatar
 
Join Date: Apr 2006
Location: Manchester
Services: VM National Broadband
Posts: 8,882
Cobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny stars
Cobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny starsCobbydaler has a pair of shiny stars
Re: mplayer using command line in Windows

Gosh, Bob Harris hasn't worn very well...
__________________
No trees were harmed in the sending of this message, but millions of electrons were terribly inconvenienced...
Cobbydaler is offline   Reply With Quote
Old 30-01-2008, 22:06   #19
popper
cf.mega poster
 
Join Date: Jan 2006
Posts: 3,270
popper has a bronze arraypopper has a bronze arraypopper has a bronze array
popper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze array
Re: mplayer using command line in Windows

ROFL.

i do like the Elephants Dream bloke though must make an avatar of him one day.
popper is offline   Reply With Quote
Old 30-01-2008, 22:12   #20
ronald146m
cf.addict
 
ronald146m's Avatar
 
Join Date: Jun 2003
Posts: 386
ronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to behold
Re: mplayer using command line in Windows

That's good popper.

Please will you explain how you did that from the start in Windows.

Do you click on 'Run' to open a window,
then type cmd and hit return
then type

c:\Program Files\MPlayer for Windows>mplayer -dumpstream -dumpfile bobharris.ra
-bandwidth 999999999999 -ao null rtsp://rmv8.bbc.net.uk/radio2/bobharris.ra

then hit return.

Is that exactly how you would explain it to somebody?
ronald146m is offline   Reply With Quote
Old 30-01-2008, 22:23   #21
popper
cf.mega poster
 
Join Date: Jan 2006
Posts: 3,270
popper has a bronze arraypopper has a bronze arraypopper has a bronze array
popper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze array
Re: mplayer using command line in Windows

typed cmd then pasted your cli line into the shell, simple really.

the windows cli compiled version should also work from a windows emulation inside *nix, i cant test it for you right now as im not near a *nix machine, just try it.
popper is offline   Reply With Quote
Old 30-01-2008, 22:32   #22
ronald146m
cf.addict
 
ronald146m's Avatar
 
Join Date: Jun 2003
Posts: 386
ronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to behold
Re: mplayer using command line in Windows

So you type cmd
and hit return
then paste in

mplayer -dumpstream -dumpfile bobharris.ra
-bandwidth 999999999999 -ao null rtsp://rmv8.bbc.net.uk/radio2/bobharris.ra


and hit return.

No need for the
c:\Program Files\MPlayer for Windows>
part ?
ronald146m is offline   Reply With Quote
Old 30-01-2008, 22:42   #23
popper
cf.mega poster
 
Join Date: Jan 2006
Posts: 3,270
popper has a bronze arraypopper has a bronze arraypopper has a bronze array
popper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze array
Re: mplayer using command line in Windows

correct, as long as the path to the Mplayer binary is in the windows path somewere, else the full path needs using, or cd,ing to the dir first, i forget.
popper is offline   Reply With Quote
Old 30-01-2008, 22:50   #24
ronald146m
cf.addict
 
ronald146m's Avatar
 
Join Date: Jun 2003
Posts: 386
ronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to behold
Re: mplayer using command line in Windows

OK, I think I understand.
You'd set up a 'path' when you install mplayer so that whenever Windows saw the word 'mplayer' in a command it would know exactly where to go, no matter which directory you're in at the time.
Is that what you mean?
ronald146m is offline   Reply With Quote
Old 30-01-2008, 23:01   #25
popper
cf.mega poster
 
Join Date: Jan 2006
Posts: 3,270
popper has a bronze arraypopper has a bronze arraypopper has a bronze array
popper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze array
Re: mplayer using command line in Windows

i thought you said you were a *nix bloke?

its exactly the same type of thing as your generic shell/cli on any platform, be it windows,*nix,AmigaOS, whatever, as long as the exe your trying to run is in a path set in the environment variable ,you can type the exe's name and it runs.

in AmigaOS and windows theres no need to give the ./ directive if your cd'ed into the exe's dir by default OC unlike most *nix defaults.

so yes, as you said.
popper is offline   Reply With Quote
Old 30-01-2008, 23:11   #26
ronald146m
cf.addict
 
ronald146m's Avatar
 
Join Date: Jun 2003
Posts: 386
ronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to behold
Re: mplayer using command line in Windows

Don't overestimate my intelligence
I think i understand you. With Ubuntu all the executables are in a usr>bin folder.

I've got a link for a 5 minute radio show, it downloads in a twinkle.
When it's finished there's a file named stream.dump. This has to be renamed whatever_you_like.ra then it will play in mplayer or real player.

This is the command:-
mplayer -dumpstream -bandwidth 999999999999 -ao null rtsp://rmv8.bbc.net.uk/radio4/religion/sun0543.ra


When I paste it into my monitor I get this result,

ron@ron-desktop:~$ mplayer -dumpstream -bandwidth 999999999999 -ao null rtsp://rmv8.bbc.net.uk/radio4/religion/sun0543.ra
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.26GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://rmv8.bbc.net.uk/radio4/religion/sun0543.ra.
Resolving rmv8.bbc.net.uk for AF_INET6...
Couldn't resolve name for AF_INET6: rmv8.bbc.net.uk
Resolving rmv8.bbc.net.uk for AF_INET...
Connecting to server rmv8.bbc.net.uk[212.58.224.140]: 554...
Cache size set to 640 KBytes
realrtsp: Stream EOF detected
Core dumped

Exiting... (End of file)
ron@ron-desktop:~$
ronald146m is offline   Reply With Quote
Old 30-01-2008, 23:34   #27
popper
cf.mega poster
 
Join Date: Jan 2006
Posts: 3,270
popper has a bronze arraypopper has a bronze arraypopper has a bronze array
popper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze arraypopper has a bronze array
Re: mplayer using command line in Windows

yep, thats OK everyone need to learn new stuff every day.

as far as i can see your just missing the -dumpfile somefile.ra on that line and your done, it will save that somefile.ra in the dir you ran the command from.

im trying to work out if your
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team is far older than my old
MPlayer dev-SVN-r23673-4.2.0 (C) 2000-2007 MPlayer Team lol.

im assuming it is as mine says 4.2.0, and yours 4.1.2 so perhaps you need to go get a newer version if your getting some type of problem playing the streamed and saved file back now?.

the small bit i got before, played back just fine in my version, (after i ctrl/c ed the command,I.E stopped it streaming any more to the file without deleteing the already saved bit).

---------- Post added at 00:34 ---------- Previous post was at 00:29 ----------

ohh, mine says
113 audio & 235 video codecs on the line
yours didnt have any of that, if your pasting the result as is.

did you have the codecs compiled into your version or did you install the external codec pack perhaps?, its been a while since i played with Mplayer and forget the exact sequence.

if Mplayer wont play the files , just use VLC if you happen to have the RA codec for that
popper is offline   Reply With Quote
Old 30-01-2008, 23:51   #28
ronald146m
cf.addict
 
ronald146m's Avatar
 
Join Date: Jun 2003
Posts: 386
ronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to beholdronald146m is a splendid one to behold
Re: mplayer using command line in Windows

Hi

I deliberately left the -dumpfile something.ra off. Without specifying a dumpfile it always creates a file with the same name, stream.dump. But it's up to you. My program's working fine. Those comments it throws up are just gobbledygook.

If you downloaded the bobharris file it is only 83.9 MB. That's for a 3 hour show. And the 999999999999 in the command tells it to download at full pelt. But the files are in ra format.

It's possible to download those files in wav format, which is more useful, but they are much bigger. mplayer converts them to wav on-the-fly whilst downloading. But the 3 hour show in wav format results in a file size of 1.8 GB.

The point of this exercise is to download the Beeb programmes without having to sit there recording in real time.
There are some Windows packages out there that will do this too, but afaik they are not freeware.

So even a noobie could probably manage to download using mplayer by following a cribsheet. Or maybe a command saved in notepad where they only needed to add the programme link to the end then paste it in.

This is the version of the command to download in wav format. It always gives a file named audiodump.wav.

mplayer -bandwidth 999999999999 rtsp://rmv8.bbc.net.uk/radio4/religion/sun0543.ra -vo null -vc null -ao pcm:fast

Thanks for your help.

This is my output:-

/religion/sun0543.ra -vo null -vc null -ao pcm:fast
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.26GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://rmv8.bbc.net.uk/radio4/religion/sun0543.ra.
Resolving rmv8.bbc.net.uk for AF_INET6...
Couldn't resolve name for AF_INET6: rmv8.bbc.net.uk
Resolving rmv8.bbc.net.uk for AF_INET...
Connecting to server rmv8.bbc.net.uk[212.58.252.4]: 554...
Cache size set to 640 KBytes
Cache fill: 13.75% (90112 bytes)
REAL file format detected.
Stream description: audio/x-pn-multirate-realaudio logical stream
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 0
Clip info:
name: Bells on Sunday
author: BBC Radio 4
copyright: (C) British Broadcasting Corporation 2008
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
================================================== ========================
[AO PCM] File: audiodump.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
realrtsp: Stream EOF detected04:01.0) 2.9% 0%
A: 241.3 (04:01.2) of 241.0 (04:01.0) 2.9% 0%

Exiting... (End of file)
ron@ron-desktop:~$
ronald146m is offline   Reply With Quote
Old 31-01-2008, 11:07   #29
TraxData
Guest
 
Location: In a pretty place where the flowers grow.
Services: 25/25 Symetrical.
Posts: n/a
Re: mplayer using command line in Windows

Quote:
Originally Posted by ronald146m View Post
That's good popper.

Please will you explain how you did that from the start in Windows.

Do you click on 'Run' to open a window,
then type cmd and hit return
then type

c:\Program Files\MPlayer for Windows>mplayer -dumpstream -dumpfile bobharris.ra
-bandwidth 999999999999 -ao null rtsp://rmv8.bbc.net.uk/radio2/bobharris.ra

then hit return.

Is that exactly how you would explain it to somebody?

Thankyou for giving me a bad rep for confirming it worked in windows!

All because i didnt come back and reply to your thread quick enough
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Google Search




All times are GMT. The time now is 07:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.

(server5.cableforum.co.uk)

SEO by vBSEO 3.3.2