Author Topic: Movie Playing  (Read 11145 times)

DaMightyWhightyMan

  • Newbie
  • *
  • Posts: 49
    • View Profile
Movie Playing
« 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.

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Movie Playing
« Reply #1 on: October 19, 2004, 03:14:08 am »
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.

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Movie Playing
« Reply #2 on: October 19, 2004, 08:09:14 am »
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.

gtJormungand

  • Newbie
  • *
  • Posts: 38
    • View Profile
Movie Playing
« Reply #3 on: October 19, 2004, 10:09:20 am »
You can write a script for changing the resolution dynamically in X as follows:

Code: [Select]
#!/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.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Movie Playing
« Reply #4 on: October 19, 2004, 10:11:37 am »
how do you change desktops? more to my point how do you know which desktop you are in?
« Last Edit: October 19, 2004, 10:12:04 am by omega »
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Movie Playing
« Reply #5 on: October 19, 2004, 10:54:02 am »
Please read the FAQ and search the www.pdaXrom.org site before posting questions.

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.. :-)
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Movie Playing
« Reply #6 on: October 19, 2004, 10:57:05 am »
The command in the above script has a typo & both instances of xrand should be
Code: [Select]
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!
« Last Edit: October 19, 2004, 10:58:05 am by jerrybme »
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Movie Playing
« Reply #7 on: October 19, 2004, 01:30:04 pm »
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.

ads

  • Newbie
  • *
  • Posts: 40
    • View Profile
Movie Playing
« Reply #8 on: October 19, 2004, 01:43:59 pm »
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
c750. Cacko Qt elena

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Movie Playing
« Reply #9 on: October 19, 2004, 01:58:48 pm »
Quote
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.

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Movie Playing
« Reply #10 on: October 19, 2004, 02:22:30 pm »
Quote
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:
Code: [Select]
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:
Code: [Select]
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
« Last Edit: October 19, 2004, 03:03:14 pm by Laze »
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Movie Playing
« Reply #11 on: October 19, 2004, 03:23:28 pm »
Perfect!  From your help Laze I made the following script:
Code: [Select]
#!/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...
« Last Edit: October 19, 2004, 03:32:56 pm by Xumbi »

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Movie Playing
« Reply #12 on: October 19, 2004, 04:07:36 pm »
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 ;-)
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

gtJormungand

  • Newbie
  • *
  • Posts: 38
    • View Profile
Movie Playing
« Reply #13 on: October 19, 2004, 06:13:04 pm »
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.

ikm

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://
Movie Playing
« Reply #14 on: October 20, 2004, 07:29:55 am »
Quote
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