Hot answers tagged

34

You can use wget over ssh to open an HTTP connection and output stream data, then mplayer on the local machine to play it. ssh <user>@<host> "wget <stream> -O -" | mplayer -cache 512 - The subtleties: wget's -O (capital letter oh) option sets its output file; - (dash) implies stdout. mplayer's -cache option causes a configurable amount ...


19

You can use ssh's -L flag to create a tunnel from your system to a remote: ssh -L <localport>:<streamhost>:<streamport> <user>@<remote> You can then connect to your end of the tunnel with mplayer as you would otherwise: mplayer localhost:<localport>


18

You can try and use Untrunc to fix the file. Restore a damaged (truncated) mp4, m4v, mov, 3gp video. Provided you have a similar not broken video. you may need to compile it from source, but there is another option to use a Docker container and bind the folder with the file into the container and fix it that way. You can use the included Dockerfile to ...


11

You need to give it some cache when playing from stdin cat /dev/video1 | mplayer -cache 1024 - Without that cache option you'll get the error "Seek failed Cannot seek backward in linear streams"


10

It looks to be in this config file, at least according to this SU Q&A titled: get mplayer to start with a default volume other than 25%. ~/.mplayer/config To override the muted option you can press the numeric keys, 9 & 0. These will decrease/increase the volume. I believe the m key will toggle the muted sound too. OK, but where is this option ...


8

You can set up a SOCKS proxy: ssh -D localhost:8080 user@remotehost mplayer http_proxy://localhost:8080/http://stream You can use tell any other application, such as your web browser, to use this proxy too.


7

Solution provided here (https://github.com/ponchio/untrunc) solved my problem! I run it as a Docker container. Here my steps: Install Docker (in case you don't have it yet) Download the file (in an empty directory) https://raw.githubusercontent.com/ponchio/untrunc/master/Dockerfile On the same directory of the Dockerfile, run: docker build -t untrunc . ...


6

No. Mplayer can run using the the linux kernel framebuffer, which if you are on one of the virtual consoles (these are tty devices, and they are not the same as what's used in a GUI terminal) makes it seem as if it's running "in the console" because, of course, that's the entire screen. But it's not running in the console, it's running in the framebuffer, ...


6

sshfs is a wonderful tool for cases like this. It hides many a firewall and allows you to use whatever player you choose (though mplayer is still a nice choice). sudo apt-get install sshfs # your favorite packager here sshfs me@mydomain.org:/home/arthur/Music ~/Music I also run Subsonic listening to port 4040 on localhost and then ssh-tunnel home with ...


5

You might want to install the package mplayer-resumer. This will allow you to resume a video from where you left off. When you're done watching the videos using this wrapper script, you can then safely delete them. $ mplayer-resumer options path/to/file Automatic resuming from where you left off - tips tricks mplayer-resumer on github excerpt from main ...


5

Try mencoder instead: mencoder -speed 0.6 -o output_file file.mp3


5

There is a lot of misinformation on the web about this not being possible, however, it most definitely is possible. Note, you may need to adjust the -i and -pix_fmt a bit for your situation. ffmpeg -i /dev/video0 -pix_fmt bgra -f fbdev /dev/fb0 Also note, the user executing this must have privileges to write to the framebuffer (i.e. root).


5

Run mplayer like this mplayer -nostop-xscreensaver [other options] video-file or add the option into config file ~/.mplayer/config : [default] stop-xscreensaver=0


4

From man mplayer: -novideo Do not play/encode video. In many cases this will not work, use -vc null -vo null instead. Based on that statement, one (and possibly both) of the following should work: mplayer -novideo foo.mp3 mplayer -vc null -vo null foo.mp3


4

Turning my comment in to an answer: My best recommendation is to use mpv, which supports video-out drivers (and a lot more!) that AFAIK mplayer does not. Although mplayer development has recently seen some activity, for a long time (mplayer 1.1: June 2012; 1.2: October 2015) it was effectively dead. mpv, on the other hand, has had consistent releases since ...


3

Answer from: http://ranger.carina.uberspace.de/qa/358/open-several-marked-files. I tested this and it works. Marking is limited to 1 directory. To open files in multiple directories, you need to use the copy buffer instead: Move to a file you want to use and type "ya" to add the file to the copy buffer. If you mark files with space or v, they will all be ...


3

They both are used and supports different set of codecs. Even more some va-api drivers run nvdpau interfaces and vice versa. Archlinux wiki is good at explaining some basic things with its tables, even non distro specific stuff, which aplies to many distros: https://wiki.archlinux.org/index.php/VA-API https://wiki.archlinux.org/index.php/VDPAU


3

I don't think what you want to do is possible using a single mplayer. I found this exact question asked and apparently answer thusly: excerpt :[MPlayer-users] Display and record a camera ip stream at the same time ? This work, but I really want to do it in the same mplayer process. Any idea how to write a stream in a file in slave mode ? I haven'...


3

According to the mplayer man page mplayer - should read from stdin, but you also need to specify -noconsolecontrols to prevent mplayer from trying to read keyboard control events from stdin.


3

Try this: mplayer file > /dev/null 2>&1


3

The question was somedays old, and I did not submit it but it was still in my browser window. In the meantime I have evolved a somewhat hacker brute-force solution. I went to the folder where my mplayer binary is and copied it to another name. cd /usr/bin sudo cp mplayer mplfull Changed all occurrences of MPlayer to MPlfull in the copied file. sudo sed -...


3

You can try using pulseaudio sound server daemon in the raspberry pi and configuring pulseaudio client with the internal network ip of the server in the configuration. For example if you are using Debian and raspbian. In raspbian: echo "snd_bcm2835" > /etc/modules /* load the sound module \*/ apt-get install pulseaudio pulseaudio-module-zeroconf ...


3

For a cleanest/nicest solution you will need a second framebuffer device, which would require another graphics card. But there's another hacky way to achieve what you want with just one card. You can list all cards and connectors (monitors) available with: $ mpv --drm-connector help Then you can choose which card (0 or 1) and connector to use as an output ...


2

You may try to use a LADSPA plugin called ladspacc. Note that the regular karaoke effect is a simple operation (phase cancellation) while the opposite effect involves a complex signal processing chain; the ladspacc implementation will create slight sound artifacts.


2

Bash 4 : mplayer file &> /dev/null


2

If you want to pass the arguments to your script to mplayer, in an xterm, this should work: #!/bin/sh xterm -e mplayer "$@" This works because of how "$@" expands: one parameter per item. xterm does not attempt to interpret the arguments to the command in any way; it just passes them through. If you need actually put your file list in a variable, your ...


2

mplayer is "consuming" tmpedlfile remaining content. You need to add an option for it not to ignore its stdin: mplayer -noconsolecontrols -ss $startpos -endpos $length "$mediafile" &> /dev/null


2

As an alternative to explicitly diddling with file descriptors, in Bash you have a convenient way to do pipelines-as-FDs: mplayer -shuffle -playlist <(find /some/path -type f -not -name '*.foo') You have both <(COMMAND) (pipe output from command) and >(COMMAND) (pipe output into command) for this kind of purpose. They typically work by using /...


2

The way I have found is to inspect the data stream in the browser itself using browser developer tools. In Chrome, launch the developer tools, then click on the network tab. Then navigate to the page containing the stream. The stream will appear in the network tab - you may have to scroll up or down to find it but it will be the resource that is constantly ...


2

Play file directly You do not have to even download these files prior to playing them with mplayer. From the mplayer man page: excerpt mplayer [options] [file|URL|playlist|-] So mplayer can play URLs directly. Example $ mplayer http://mymusic.store.com/musicfoo.mp3 Performance You'll likely need to adjust the cache values to get mplayer to playback ...


Only top voted, non community-wiki answers of a minimum length are eligible