OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: DaMightyWhightyMan on October 17, 2004, 05:27:41 pm
-
What is the status on movie playing on pdaXrom. As it is now, i can only play fullscreen vids /w mplayer in the console (which gets garbled afterwards). or Windowed (un resizable) in X. Are there video player alternatives? Other ways to configure mplayer? any kind of improvments in the works? etc etc
thanks.
-
i guess you are still using 1.0.5... RC5 solved the grablled screen pb and you can use xmmsmplayer as a frontend under X.
As a general remark, i would say that many improvements have occured since 1.0.5 so if you have this possibility, i think you should upgrade.
good luck.
-
I'm using RC5 and I still get the garbled screen after playing a movie from the console. He's right, playing movies through xmms you can't resize them.
-
You can write a script for changing the resolution dynamically in X as follows:
#!/bin/bash
xrand -s 1 && mplayer $1 && xrand -s 0
Put this in a file like 'playvideo' and then in a terminal, run 'playvideo filename.avi'. Just make sure that you are using a desktop other than the first one because of the panel. This changes the resolution to 320x240 and then returns it to 640x480 afterwards.
-
how do you change desktops? more to my point how do you know which desktop you are in?
-
Please read the FAQ and search the www.pdaXrom.org site before posting questions.
http://www.pdaxrom.org/index.php?showid=25&menuid=8 (http://www.pdaxrom.org/index.php?showid=25&menuid=8)
You can also make mplayer run fullscreen that way by using this:
xrandr -s 1 | mplayer movie.avi
then press Shift+Alt+Right to move the video window onto a free desktop and press key 'f' for fullscreen.. :-)
-
The command in the above script has a typo & both instances of xrand should be
xrandr
As for changing desktops: a quick trip to the pdaxrom.org FAQ (don't forget to click on a ad while you're there ) will tell you that ctrl+alt and left & right arrows will move you through the desktops. (Calendar & Address buttons are the default keys for ctr & alt)
Cheers,
Jerry
#######
Doh, Laze you beat me to it!
-
I just wanted to post my own experience with experimenting with this, since I really want to see fullscreen playback of videos in X.
xrandr -s 1 | mplayer movie.avi works, but the video only takes up the width of the screen. xrandr -s 1 | mplayer -fs movie.avi sort of works, but the matchbox panel is still visible. Oh yeah, and after exiting the movie you're still stuck at 320x240, so I had to do xrandr -s 640x480 to get my screen back.
If someone knows how to hide the matchbox panel while playing movies in fullscreen with mplayer, that would do the trick, and I could make a short script that anyone could use to play fullscreen videos in X.
-
Sorry if this post is a little vague , but I just reflashed so this is from memory.
If you use xmms and go to "plugins"?
under "plugins ?" you can select mplayer plugin and then select configure.
there are some options here (maybe advanced ) that you can simply check uncheck to allow full screen playback
I did it.....if this post helps you thanks.....if its a load of trash...just ignore it and send me some nasty comments...(sorry too much beer tonight!
ads
-
Sorry if this post is a little vague , but I just reflashed so this is from memory.
If you use xmms and go to "plugins"?
under "plugins ?" you can select mplayer plugin and then select configure.
there are some options here (maybe advanced ) that you can simply check uncheck to allow full screen playback
I did it.....if this post helps you thanks.....if its a load of trash...just ignore it and send me some nasty comments...(sorry too much beer tonight!
ads
Hmmm... I just looked at it, and I couldn't see anything like a "fullscreen" option.
-
xrandr -s 1 | mplayer movie.avi works, but the video only takes up the width of the screen. xrandr -s 1 | mplayer -fs movie.avi sort of works, but the matchbox panel is still visible. Oh yeah, and after exiting the movie you're still stuck at 320x240, so I had to do xrandr -s 640x480 to get my screen back.
Do this:
xrandr -s 1 && mplayer -fs movie.avi  && xrandr -s 0
As soon as the movie playback starts make sure the mplayer window is selected and press the Shift+Alt(Adress)+Right combination - that moves the mplayer to the "empty" desktop. When movie playback is done you can use the ctrl+alt+left/right to return to normal desktop. Sadly at the moment there is no way to hide the matchbox panel or move mplayer to certain desktop (that i know of).
UPDATE !!!!
Couldn't live with the above solution... So I played around for a while and found this:
xrandr -s 1; sleep 1; Â mplayer -fstype fullscreen -fs movie.avi; sleep 1; xrandr -s 0
The above is sometime a bit buggy :-) The sleep 1 was just added because sometimes the Aterm "crashes" when too much is happening at once ;-)
Futhermore the -stop-xscreensaver can also be used for enhanced playback without poweroff - great if you use mplayer for mp3 playback.
More nice "features" are here.. http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html (http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
-
Perfect! From your help Laze I made the following script:
#!/bin/bash
xrandr -s 1; sleep 1; mplayer -framedrop -fstype fullscreen -fs "$1"; sleep 1; xrandr -s 0
It kept freezing on me until I added the -framedrop switch.
Just chmod +x it, put it somewhere in your $PATH to make it convenient, then type mymplayerscript.sh mymovie.avi for full screen videos inside X!
EDIT: Videos are still freezing once in a while, I'll keep at it...
-
If i get the time later tonight i will try to throw together a small python gui for controlling mplayer - just for practice - basically if you know the keyboard shortcuts and the commandline parameters there is no need for a gui :-) I couldn't find anyone google that had made anything like it ;-)
-
I had a problem with the video freezing before when using RC3. I downgraded to 1.0.5 and just installed the necessary packages from the RC3's feed and installed a subtitle font. It worked after that... so I don't really know what the problem might have been.
-
If i get the time later tonight i will try to throw together a small python gui for controlling mplayer - just for practice - basically if you know the keyboard shortcuts and the commandline parameters there is no need for a gui :-) I couldn't find anyone google that had made anything like it ;-)
Laze, don't waste your time! Mplayer has its own native gui available, with skins and everything else, and it should be explicitly enabled with one of the ./configure options when building mplayer.
Here:
http://mplayerhq.hu/DOCS/HTML/en/gui.html (http://mplayerhq.hu/DOCS/HTML/en/gui.html)
-
thanks everyone for your help
xrandr -s 1; sleep 1; mplayer -fstype fullscreen -fs movie.avi; sleep 1; xrandr -s 0
froze my c860 while trying to seek, seems to be a better solution ATM though.
Is there going to be any movie watching improvments in the next pdaxrom release?
-
I presume, as nobody mentions 640x480, that this resolution of video replay is impossible on the Z - not enough hardware acceleration or something?
-
I was able to play at .5 fps
-
Ha ha ha! Presumably there's something more wrong than just four times the data rate. though, or you'd only be able to play QVGA at 2fps!
-
the fact is that there is NO possibility to use direct frame buffer acceleration in 640x480, since the ati chip has 384 k of vram embedded
-
EDIT: Videos are still freezing once in a while, I'll keep at it...
I think I might have solved the freezing problem by disabling use of the RTC device with the -nortc option. My movie playing script is:
#!/bin/sh
xrandr -s 1
sleep 1
mplayer -nortc -framedrop -fstype fullscreen -fs "$@"
sleep 1
xrandr -s 0
It's still early days in my testing but so far I haven't had any movies freeze on me.
Matt
-
We have also discovered that turning of transparency and other "eye candy" in aterm removes the need for sleep 1 - also try using xterm - it seems to be alot more stable when resizing the screen up and down.
-
EDIT: Videos are still freezing once in a while, I'll keep at it...
I think I might have solved the freezing problem by disabling use of the RTC device with the -nortc option. My movie playing script is:
#!/bin/sh
xrandr -s 1
sleep 1
mplayer -nortc -framedrop -fstype fullscreen -fs "$@"
sleep 1
xrandr -s 0
It's still early days in my testing but so far I haven't had any movies freeze on me.
Matt
The -nortc switch seems to do the trick! I've played through a simpsons mpeg, and another divx movie without any freezing. Before they would freeze about half way through.
Thanks for writing a better script than I did by the way.
Now all we need is a gui, and some simple instructions on how to encode DVDs into the best format for mplayer pdaXrom. I'm guessing it would be divx.
-
Now all we need is a gui, and some simple instructions on how to encode DVDs into the best format for mplayer pdaXrom. I'm guessing it would be divx.
You can start looking at the video howto (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=MPEG%20Encoding) here on the ZUG
-
Hi guys,
Anybody knows how to increase font for subtitle ?
Thanks a lot.
-
the fact is that there is NO possibility to use direct frame buffer acceleration in 640x480, since the ati chip has 384 k of vram embedded
So, how does the X server gets 640x480 ?
-
simply, the chip uses ram instead of videoram
-
Hi guys,
Anybody knows how to increase font for subtitle ?
Thanks a lot.
Download one of the font packs from here (http://www.mplayerhq.hu/homepage/design7/dload.html) and follow the instruction in the file. It works for me on my desktop computer this way, haven't tried on my Z so far.
Hope it works,
Zumi
-
Hi Zumi,
Thanks for your tips. I will try when I go back home.
Have you ever tested the subtitle ?
mplayer -vobsub subtitle_file movie_file
warning : you must have subtitle_file.idx and subtitle_file.sub in the same directory.
Of course you can use all parameters (for fullscreen) talking above on this thread.
-
Hi Zumi,
Thanks for your tips. I will try when I go back home.
Have you ever tested the subtitle ?
mplayer -vobsub subtitle_file movie_file
warning : you must have subtitle_file.idx and subtitle_file.sub in the same directory.
Of course you can use all parameters (for fullscreen) talking above on this thread.
I'm using subs with the mplayer quite frequently. You're using wrong options. "-sub <subtitlefile>" goes for subtitles which are in regular subtitle format (.sub, .srt for example). You need -vobsub only when you want to view subs ripped from a DVD. (which consist of a ".idx", ".ifo" and a ".sub")
From the mplayer man page:
-vobsub
Specify a VOBsub file to use for subtitles. Has to be the full pathname
without extension, i.e. without the ".idx", ".ifo" or ".sub".
-sub
Use/display these subtitle files. Only one file can be displayed at the
same time and the files can be switched with "j".
-
Am I the only one with a C860, who gets a system crash in RC5 upon pressing the extrernal on/off button after using mplayer with pretty much ANY command line configuration?
Do people know what (might be) causing this, or have found any work arounds?
Needless to say the impressiveness of the C860 playing an MPEG4 encoded movie is considerably degraded when the only way to turn it off afterwards is to rip the battery out!
- Cj
-
ok i have 750 when i play a movie if i close the movie pannel it sort of locks up . if i close by the mmx console it doesn't.
hope that helps.
-
You can also use this line:
xrandr -s 1 && mplayer -ac mad -vo xvidix -vop rotate=1 -really-quiet -framedrop $1 && xrandr -s 0
This will only work with files that are really 320x240...
-
Okay if 640*480 is not possible i'm not really worried. What is the max resolution that can be played on the Z with the amount of buffer memory that the ati chip has? What is the max decent resolution that people have played. I'm even talking mpeg1 here...
-
320x240 MPEG 2's play very very very nicely