Mplayer and mp4 files

Message ID 4A0D9F9F.2080600@web.de
State New
Headers

Commit Message

André Weidemann May 15, 2009, 5 p.m. UTC
  Hi Diego,

Diego Pierotto wrote:
> Thank you guys, now it's working but the other files (avi, divx, etc) 
> are not reproducing anymore :-(
> 
> Gotta choose which one keep running???

A user at the German VDR-Portal suggested to adjust the mplayer.sh.
http://www.vdr-portal.de/board/thread.php?threadid=82287

I put the code into a diff.
Copy this file to the directory of your mplayer.sh and run:

patch < mplayer.sh.diff

This should "fix" it.

Good luck.
  André
  

Patch

--- mplayer.sh.old	2009-05-15 18:52:14.285053000 +0200
+++ mplayer.sh	2009-05-15 18:46:21.473053000 +0200
@@ -554,9 +554,13 @@ 
        \) ; then
       CMDLINE="$MPLAYER -vo $VO $AOUT $FDSTR $CACHESTR $REMOTE $USERDEF"
     else
+        if test "${SUFFIX}" == ".mov" -o "${SUFFIX}" == ".MOV" -o "${SUFFIX}" == ".mp4" || `echo "$VIDEO_FORMAT"| egrep -q "avc1"` || `echo "$VIDEO_FORMAT"| egrep -q "jpeg"`; then
+        CMDLINE="$MPLAYER -vo $VO $AOUT -demuxer mov -vf scale=$NEW_X:${NEW_Y}${DETC},expand=$NEW_X:$REAL_Y:-1:-1:0,$VOP:$NEW_FPS $SPEED $FDSTR $CACHESTR $REMOTE $SUBTITLES $USERDEF $FORCEIDX"
+        else
       CMDLINE="$MPLAYER -vo $VO $AOUT -vf scale=$NEW_X:${NEW_Y}${DETC},expand=$NEW_X:$REAL_Y:-1:-1:1,$VOP:$NEW_FPS $SPEED $FDSTR $CACHESTR $REMOTE $SUBTITLES $USERDEF $FORCEIDX"
     fi
 fi
+fi
 
 debugvar CMDLINE "$CMDLINE"
 exec $CMDLINE "$FILE"