Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
MPlayer/MEncoder Tips and Tricks
- ingo
- Posts: 195
- Joined: 2007-04-15 14:15
- Location: http://www.hi-motorbiketours.com
The stream I tried it on was the one you had posted but it was the next morning that I tried to play it, so that might have been the reason.
Will wait for Saturday and the next round of Premiership games to give it another try - will report back or be too depressed to log on - depending on the outcome...
Cheers for all your help, anyway
Will wait for Saturday and the next round of Premiership games to give it another try - will report back or be too depressed to log on - depending on the outcome...
Cheers for all your help, anyway
-
- Posts: 45
- Joined: 2007-10-16 15:21
- Location: England, UK
How I got Mplayer to stream everything.
--REVISED 16 Jan 2008--
If you haven't already you should
apt-get remove xine-plugin totem-mozilla mozilla-plugin-vlc kaffeine-mozilla helix-player mozilla-helix-player
apt-get install mplayer mozilla-mplayer w32codecs (And RealPlayer, try and get a deb file and use the "dpkg -i"command, see bottom of how-to. Check if it's in the repo first. You can watch RM streams with MPlayer, but it's a bit random. You need w64codecs if you run a 64bit Debian)
Then paste the following settings into gedit $HOME/.mplayer/mplayerplug-in.conf (don't worry if it's empty or if you didn't already have this file there). They improve streaming a great deal with certain sites which have caused problems.
download=1
cachesize=1024
cache-percent=25
keep-download=0
dload-dir=$HOME
noembed=0
autoplay=1
enable-wmp=1
enable-qt=1
enable-rm=0
enable-gmp=1
enable-dvx=1
enable-mpeg=1
enable-mp3=1
enable-midi=0
enable-pls=1
enable-ogg=1
enable-smil=1
enable-helix=1
nomediacache=0
nopauseonhide=1
rtsp-use-tcp=0
rtsp-use-http=0
Then rm $HOME/.mozilla/firefox/pluginreg.dat
If you use RealPlayer, make sure you change the values of rm, smil and helix to '0' in the MPlayer conf.
Keep-download is an easy way to save streaming media, just change the value to 1 and it will download to your home directory. For an explaination of what the other settings do check out http://mplayerplug-in.sourceforge.net/config.php
You can add vo= and ao= if you want to change the default video and audio output. Otherwise you don't really need those settings in the list. You can add other settings from the link above if you think they will be useful to you.
Works great for me as outlined above. Only have problems with abcnews.com due to their belief that only Microsoft users matter. No big loss though.
Also, make sure you completely remove Helix Xine, VLC and Totem Mozilla plugins as they conflict with MPlayer, and Helix conflicts with RealPlayer.
Nathan
FYI: The Ubuntu RealPlayer will work in Debian, and there is a fix in my Ubuntu how-to for when RealPlayer stutters or freezes while playing. There are also other tips and fixes that will work in Debian. Go here.
If you haven't already you should
apt-get remove xine-plugin totem-mozilla mozilla-plugin-vlc kaffeine-mozilla helix-player mozilla-helix-player
apt-get install mplayer mozilla-mplayer w32codecs (And RealPlayer, try and get a deb file and use the "dpkg -i"command, see bottom of how-to. Check if it's in the repo first. You can watch RM streams with MPlayer, but it's a bit random. You need w64codecs if you run a 64bit Debian)
Then paste the following settings into gedit $HOME/.mplayer/mplayerplug-in.conf (don't worry if it's empty or if you didn't already have this file there). They improve streaming a great deal with certain sites which have caused problems.
download=1
cachesize=1024
cache-percent=25
keep-download=0
dload-dir=$HOME
noembed=0
autoplay=1
enable-wmp=1
enable-qt=1
enable-rm=0
enable-gmp=1
enable-dvx=1
enable-mpeg=1
enable-mp3=1
enable-midi=0
enable-pls=1
enable-ogg=1
enable-smil=1
enable-helix=1
nomediacache=0
nopauseonhide=1
rtsp-use-tcp=0
rtsp-use-http=0
Then rm $HOME/.mozilla/firefox/pluginreg.dat
If you use RealPlayer, make sure you change the values of rm, smil and helix to '0' in the MPlayer conf.
Keep-download is an easy way to save streaming media, just change the value to 1 and it will download to your home directory. For an explaination of what the other settings do check out http://mplayerplug-in.sourceforge.net/config.php
You can add vo= and ao= if you want to change the default video and audio output. Otherwise you don't really need those settings in the list. You can add other settings from the link above if you think they will be useful to you.
Works great for me as outlined above. Only have problems with abcnews.com due to their belief that only Microsoft users matter. No big loss though.
Also, make sure you completely remove Helix Xine, VLC and Totem Mozilla plugins as they conflict with MPlayer, and Helix conflicts with RealPlayer.
Nathan
FYI: The Ubuntu RealPlayer will work in Debian, and there is a fix in my Ubuntu how-to for when RealPlayer stutters or freezes while playing. There are also other tips and fixes that will work in Debian. Go here.
Last edited by reassuringlyoffensive on 2008-02-16 03:09, edited 16 times in total.
"Imagination is a quality given a man to compensate him for what he is not, and a sense of humour was provided to console him for what he is."
- ingo
- Posts: 195
- Joined: 2007-04-15 14:15
- Location: http://www.hi-motorbiketours.com
-
- Posts: 45
- Joined: 2007-10-16 15:21
- Location: England, UK
ingo wrote:Cheers Nathan, but I've got the sopcast player up and running now... Good advice though if it works
That's good. I posted it as these settings gave me the best performance. Mplayer doesn't start too soon, BBC streams work well (even real) and stage6 (divx.com) works well too.
Give it a try.
Nathan
"Imagination is a quality given a man to compensate him for what he is not, and a sense of humour was provided to console him for what he is."
-
- Posts: 45
- Joined: 2007-10-16 15:21
- Location: England, UK
Added a link to a nice tips & tricks in Linux Journal: Multimedia Dynamite, Linux Journal, October 1st, 2007.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
-
- Posts: 45
- Joined: 2007-10-16 15:21
- Location: England, UK
Changed the conf to edit to gedit $HOME/.mplayer/mplayerplug-in.conf as it totally overrides the /etc conf.
Added rm $HOME/.mozilla/firefox/pluginreg.datas it updates Firefox on what plugins and settings you are using.
Nathan
Added rm $HOME/.mozilla/firefox/pluginreg.datas it updates Firefox on what plugins and settings you are using.
Nathan
"Imagination is a quality given a man to compensate him for what he is not, and a sense of humour was provided to console him for what he is."
It may or may not be relevant, however I found that my MPlayer playback of high quality videos is much smoother, crisp and crystal clear when playing in Enlightenment DR17 window manager (I use the http://edevelop.org/debian/ repo). It was noticeably smoother than in Fluxbox for example especially the re-encoded *.avi videos. DR17 is indeed excellent for multimedia.
Also, it would be more efficient if you compile & build MPlayer from source. I built different player to optimize for two of my PC, an AMD 2.4GHz and an old PII 350mHz.
Also, it would be more efficient if you compile & build MPlayer from source. I built different player to optimize for two of my PC, an AMD 2.4GHz and an old PII 350mHz.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
Rewritten HOWTO and dditional tips including creating and editing video for playback using EDL (Edit Decision List) - useful for skipping commercials, muting & cutting some portion of video for kids, and quick editing.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
Howto suppress MPlayer "spectral overflow in RLE" by Gonky:
http://forums.debian.net/viewtopic.php?t=31313
http://forums.debian.net/viewtopic.php?t=31313
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
Here's a little bash script that executes mplayer to shuffle play all the music on your machine. Or sleep for certain amount of time before doing so. Use it as a kind of an alarm clock or an egg timer. It also checks if the playlist exists and if it does not, it is generated.
Note: I have also added MIDI files to be grepped into the playlist even though mplayer does not handle them. That's just because I consider them as "songs" too and this way can keep track of them as well.
Edit: Updated code somewhat.
Edit2: Updated code somewhat more.
Code: Select all
#!/bin/bash
# Edit variables as you wish
AUDIOPATH='/media/disk/Storage/Audio/'
PLAYLISTDIR='/home/username/.playlists'
PLAYLIST='/home/username/.playlists/all'
TEMPLIST='/home/username/temporaryplaylist'
MPLAYER=$(which mplayer)
if [ ! -n $MPLAYER ]; then
echo "Install mplayer and try again."
exit 1
fi
make_playlist () {
if [ -d "$PLAYLISTDIR" ]; then
touch "$PLAYLIST"
else
mkdir -p "$PLAYLISTDIR"
touch "$PLAYLIST"
fi
touch "$TEMPLIST"
find $AUDIOPATH -print -type f > "$TEMPLIST"
grep -i 'mp3$' "$TEMPLIST" > "$PLAYLIST"
grep -i 'ogg$' "$TEMPLIST" >> "$PLAYLIST"
grep -i 'm4a$' "$TEMPLIST" >> "$PLAYLIST"
grep -i 'mid$' "$TEMPLIST" >> "$PLAYLIST"
grep -i 'wma$' "$TEMPLIST" >> "$PLAYLIST"
grep -i 'flac$' "$TEMPLIST" >> "$PLAYLIST"
grep -i 'mp4$' "$TEMPLIST" >> "$PLAYLIST"
rm "$TEMPLIST"
echo Total files: $(wc -l "$PLAYLIST")
}
checkplay() {
if [ ! -f "$PLAYLIST" ]; then
make_playlist
$MPLAYER -shuffle -playlist $PLAYLIST
else
$MPLAYER -shuffle -playlist $PLAYLIST
fi
}
usage() {
cat << EOF
Usage: $(basename "$0") [ARG]
<digit> Doze for <digit> seconds and start playing
<digit>m Doze for <digit> minutes and start playing
<digit>h Doze for <digit> hours and start playing
-c | --create Create playlist w/o playing it
-h | --help Show this help
<digit> path-to-track
Doze for <digit> and play specified track,
continuing with random play
w/o ARG playing starts immediately
EOF
}
# Show usage
if [ "$1" == "-h" -o "$1" == "--help" ]; then
usage
exit 0
fi
# Just create playlist w/o playing it
if [ "$1" == "-c" -o "$1" == "--create" ]; then
make_playlist
exit 0
fi
# Start playing immediately
if [ "$#" -eq 0 ]; then
checkplay
exit 0
fi
# Doze first
if [ "$#" -eq 1 ]; then
sleep "$1"
checkplay
exit 0
fi
# Doze and play "alarm"
if [ "$#" -eq 2 ]; then
sleep "$1"
$MPLAYER "$2"
checkplay
exit 0
fi
Edit: Updated code somewhat.
Edit2: Updated code somewhat more.
Last edited by debil on 2010-02-21 00:09, edited 5 times in total.
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
A: It was made in the image of its founder.
Just a note that this project is not related to mplayer maintained by either Debian developer or Christian Marillat (debian-multimedia) and is not associated with www.mplayerhq.hu.oompa wrote:I just want to mention smplayer which intends to be a complete frontend to mplayer.
SMplayer is just one of several frontends that use mplayer and I think that it's maintained by Ubuntu developer.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
It's over a year ago, however this write-up should be useful for anyone interested in playing 1080p H.264 video in Debian (and other distro) using a fairly mid-size range hardward:
HD Video Playback in Linux
http://blog.charlies-server.com/2007/09 ... k-in-linux
Check out a couple of mplayer options that you can use in this article.
HD Video Playback in Linux
http://blog.charlies-server.com/2007/09 ... k-in-linux
Check out a couple of mplayer options that you can use in this article.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
Although I use MPlayer's mencoder exclusively, I sometime use ffmpeg which can be quite powerful (non-linear) video editing tool as demonstrated in this excellent video tutorial, "Video Editing Magic with ffmpeg" by Elliot Isaacson. The tutorial cover transcoding, creating animations, screen captures and slow-motion effects:
http://www.linuxjournal.com/video/linux ... gic-ffmpeg
http://www.linuxjournal.com/video/linux ... gic-ffmpeg
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
If you play audio cd like this:corra wrote:Hi,
congratulations for this nice how-to...I'd like to know if it's possible to jump from a track to another (by keyboard) when you listen to an audio cd with mplayer. I read the manual but ->, -<, Pg up and pg down are what I'm looking for...
Thank you,
Corra
Code: Select all
$ mplayer -identify cdda://
Code: Select all
! and @
Seek to the beginning of the previous/next chapter
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
It doesn't work...here is what happens when I press @:
Code: Select all
corrado@corrado:~$ mplayer -identify -cache 512 cdda://
MPlayer 1.0rc1-4.1.2-DFSG-free (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.86GHz (Family: 6, Model: 13, Stepping: 8)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 cdda://.
ID_CDDA_TRACKS=17
ID_CDDA_TRACK_1_MSF=03:07:27
ID_CDDA_TRACK_2_MSF=03:06:34
ID_CDDA_TRACK_3_MSF=03:34:68
ID_CDDA_TRACK_4_MSF=04:08:04
ID_CDDA_TRACK_5_MSF=02:58:53
ID_CDDA_TRACK_6_MSF=04:29:33
ID_CDDA_TRACK_7_MSF=03:54:30
ID_CDDA_TRACK_8_MSF=03:53:02
ID_CDDA_TRACK_9_MSF=04:55:34
ID_CDDA_TRACK_10_MSF=04:35:10
ID_CDDA_TRACK_11_MSF=03:21:03
ID_CDDA_TRACK_12_MSF=03:05:07
ID_CDDA_TRACK_13_MSF=03:50:67
ID_CDDA_TRACK_14_MSF=04:59:08
ID_CDDA_TRACK_15_MSF=03:18:03
ID_CDDA_TRACK_16_MSF=04:02:46
ID_CDDA_TRACK_17_MSF=08:37:44
Found audio CD with 17 tracks.
Cache fill: 0.00% (0 bytes)
Track 1
ID_CDDA_TRACK=1
rawaudio file format detected.
ID_AUDIO_ID=0
ID_FILENAME=cdda://
ID_DEMUXER=rawaudio
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=0.00
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
ID_AUDIO_BITRATE=1411200
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=pcm
Video: no video
Position: 0 %
A: 0.0 (unknown) of 4197.3 ( 1:09:57.2) ??,?% 0%
Exiting... (End of file)
Unfortunately due to the inflexible linux sound implementation if you want to use mplayer to watch a video only and listen to audio only in another program, the audio will mix together from both apps. If you mute the PCM level on mplayer it will mute on every other running program as well.
I have found the commandline option:
mplayer -ao 0
is useful so you can listen to mp3 or flash audio with other programs while watching a muted video in mplayer.
I have found the commandline option:
mplayer -ao 0
is useful so you can listen to mp3 or flash audio with other programs while watching a muted video in mplayer.