die Filme der Canon Ixus laufen nicht unter MPlayer

  • Hallo zusammen,


    da ich Heute noch ein wenig feinschliff an meinem ctvdr vorgenommen habe kam mir noch die Idee nicht nur die Photos der Digitalcamera sondern auch die Kurzfilme mit dem ctvdr anzuschauen.


    Ich denke aber der Mplayer erkennt den "sehr eigenwilligen" codec von Canon nicht.


    kann ich ( als Linux Anfänger ) diesen codec finden und unter Linux einbinden ?

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

  • Da bin ich auch noch am suchen... der bisherige Weg über Nero in eine DVD zu wandeln und dann in den VDR einspielen ist auf Dauer doch nicht ganz befriedigend...


    Garry

    VDR-Tower(yaVDR0.5): ASROCK N68c-S UCC + MSI N210 MDIG/D3NVIDIA630 + Doppeltunerkarte TBS 6981 + 2*DVBS USB PCTV461e
    Pundit Ah2 2xSkystar2.6c + HP NovaTD über DVI HDMI (yavdr0.3) stillgelegt
    Asus M3N78-EMH HDMI + GT630 single Slot mit YAVDR0.5 2xTT cinergy DVB-C +DVBS USB PCTV461e+ Hauppauge USB TD (DUAL DVB-T) 2 x MediaMVP+RaspberryVomp + Raspbmc

  • Hallo zusammen,


    das läuft inzwischen bei mir (C´t-VDR 2.06, testing). Leider nur aus dem Gedächtnis: in der Config-Datei vdrmplayer.sh.conf in /etc/cdr/plugins/ habe ich den Wert der Variable NTSC von true auf false gesetzt (Also: NTSC="false"). Wenn es das nicht war, müßte ich noch einmal genau nachsehen.


    Gruß Herbert

  • herb


    leider wars das nicht, nach der änderung keine Besserung des Zustandes.


    ich gehe über das Menu zum Mplayer wähle die Datei aus und das jetzige Live TV-Bild wird zweimal unterbrochen. Das wars.


    Normale Filme (svcds usw.) sind kein Problem, ich denke der passende CODEC für CANON fehlt :rolleyes:

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

  • Zitat

    Original von Hoppi
    Normale Filme (svcds usw.) sind kein Problem, ich denke der passende CODEC für CANON fehlt :rolleyes:


    glaube nicht, dass es nen eigenen canon-codec gibt. wenn ich mich richtig erinnere liefert canon für windows den quicktime-player von apple mit, mit dem man dann auch die videos problemlos anschauen kann. (mplayer unter windows macht auch keine probleme wenn quicktime-codec installiert ist)


    wäre also durchaus denkbar, dass es reicht, wenn du irgendwo den quicktime-codec für deinen linux-mplayer findest.


    mfg
    schelli :sonne

    Scenic D6 Umbau; Asus-P3B-F; Celeron 633Mhz; 256MB; 360GB; DVD+-RW; DD5.1; GLCD 240x128; 1x DVB-S Rev. 1.6

  • neee, das ist definitiv kein codec-Problem, weil ich nur den Mplayer mit den im Source-Paket enthaltenen Codecs kompiliert & installiert hatte. Zusätzliche Codecs habe ich nicht installiert. Welche Mplayer-Version hast Du? Ich habe 1.0-pre5 installiert. Klappt das denn, wenn Du (ohne laufenden vdr) den Mplayer mit der Datei manuell startest?


    Gruß Herbert

  • ;( herb


    dann wollen wir mal nachsehen:


    Zitat

    Original von Herb
    Welche Mplayer-Version hast Du?


    VDRINFO.Log meldet vdr-plugin-mplayer (0.9.7-1)


    wenn ich nach dem erfolglosen start in der syslog nachsehe erscheint das:


    Mar 8 20:48:04 hopp vdr[18704]: connect from 127.0.0.1, port 39978 - accepted
    Mar 8 20:48:04 hopp vdr[18704]: closing SVDRP connection
    Mar 8 20:48:09 hopp vdr[18704]: connect from 127.0.0.1, port 39979 - accepted
    Mar 8 20:48:09 hopp vdr[18704]: closing SVDRP connection
    Mar 8 20:48:09 hopp vdr[25889]: mplayer: mplayer child started (pid=25889)
    Mar 8 20:48:09 hopp logger: *** Starting mplayer.sh Version 0.8.5
    Mar 8 20:48:09 hopp logger: *** DEBUG: Variable CFGFIL has value "/etc/vdr/plugins/vdrmplayer.sh.conf"
    Mar 8 20:48:09 hopp logger: *** Use Option USERDEF at your own risk!
    Mar 8 20:48:09 hopp logger: *** INFO: Source Video has Resolution of 320 x 240 ...
    Mar 8 20:48:09 hopp logger: *** INFO: For Sqare Pixels we would scale to 512 x 384 ...


    sieht eher nach einem Problem der Auflösung aus oder ??


    Zitat

    Original von Herb
    Klappt das denn, wenn Du (ohne laufenden vdr) den Mplayer mit der Datei manuell startest?


    Ich kann zwar den CTVDR stoppen aber um den Mplayer alleine zu starten reichen meine "wahnsinnigen " Linux Kenntnisse doch noch nicht aus ;(


    P.S. ich habe mal einen Beispielfilm unter http://www.hopp.net/sopho/test.avi abgelegt

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

    Einmal editiert, zuletzt von Hoppi ()

  • hi,
    also bei mir klappt dein testvideo.
    ich verwende auch c't vdr (wenn auch in einer stark abgewandelten form).


    der 'codec' ist außerdem MJPEG (passt ja zu einer digicam).
    zum testen empfehle ich dir den vdr zu beenden (/etc/init.d/vdr stop) und dann das script manuell aufzurufen (/usr/lib/vdrdevel-plugin-mplayer/mplayer.sh <pfad zu test.avi>/test.avi). falls du aus den meldungen nicht schlau wirst kannst du die ja auch hier posten.


    edit.. hab mal noch ein beweisfoto angefügt:

  • slime


    habe es Probiert


    Zitat

    zum testen empfehle ich dir den vdr zu beenden (/etc/init.d/vdr stop)


    hopp:/var/lib/platte_b/camera# /etc/init.d/vdr stop
    Stopping Linux Video Disk Recorder: vdr .
    Rewriting remote changes KBD remote-event


    Zitat


    und dann das script manuell aufzurufen (/usr/lib/vdrdevel-plugin-mplayer/mplayer.sh <pfad zu test.avi>/test.avi).


    O.K. mein Pfad ist anders aber trotzdem bekomme ich kein Bild


    hopp:/var/lib/platte_b/camera# /usr/lib/vdr-plugin-mplayer/mplayer.sh /var/lib/platte_b/camera/test.avi

    root: *** Starting mplayer.sh Version 0.8.5
    root: *** DEBUG: Variable CFGFIL has value "/etc/vdr/plugins/vdrmplayer.sh.conf"
    root: *** Use Option USERDEF at your own risk!
    root: *** INFO: Source Video has Resolution of 320 x 240 ...
    root: *** INFO: For Sqare Pixels we would scale to 512 x 384 ...
    MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team


    CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 997.6 MHz (Family: 6, Stepping: 10)
    Detected cache-line size is 32 bytes
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
    Compiled for Debian.
    Reading config file /etc/mplayer/mplayer.conf
    Reading config file /root/.mplayer/config
    Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
    Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
    font: can't open file: /root/.mplayer/font/font.desc
    font: can't open file: /usr/share/mplayer/font/font.desc
    Using Linux hardware RTC timing (1024Hz).
    Can't open input config file /root/.mplayer/input.conf: No such file or directory
    Input config file /etc/mplayer/input.conf parsed: 53 binds
    Opening joystick device /dev/input/js0
    Can't open joystick device /dev/input/js0 : No such device
    Can't init input joystick
    Setting up LIRC support...
    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 /var/lib/platte_b/camera/test.avi.
    Cache fill: 0.00% (0 bytes) AVI file format detected.
    VIDEO: [MJPG] 320x240 24bpp 15.000 fps 1687.5 kbps (206.0 kbyte/s)
    Clip info:
    Digitization Time: Tue Mar 08 18:42:24 2005


    Software: CanonMVI01
    ==========================================================================
    Trying to force audio codec driver family libmad...
    Opening audio decoder: [pcm] Uncompressed PCM audio decoder
    AUDIO: 11024 Hz, 1 ch, 8 bit (0x8), ratio: 11024->11024 (88.2 kbit)
    Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
    ==========================================================================
    Opening /dev/dvb/adapter0/video0+audio0
    Opening video filter: [lavc=5000:25.000]
    Opening video filter: [expand w=352 h=288 x=-1 y=-1 osd=1]
    Expand: 352 x 288, -1 ; -1 (-1=autodetect) osd: 1
    Opening video filter: [scale w=352 h=384]
    Opening video filter: [detc=dr=2:am=1]
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
    ==========================================================================
    Checking audio filter chain for 11464Hz/1ch/8bit -> 11464Hz/2ch/8bit...
    AF_pre: af format: 1 bps, 1 ch, 11464 hz, little endian unsigned int
    AF_pre: 11464Hz 1ch Unsigned 8-bit
    ao_mpegpes: 11464 Hz not supported, try to resample...
    AO: [mpegpes] 48000Hz 2ch Signed 16-bit (Big-Endian) (2 bps)
    Building audio filter chain for 11464Hz/1ch/8bit -> 48000Hz/2ch/16bit...
    Starting playback...
    VDec: vo config request - 320 x 240 (preferred csp: Planar 422P)
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    VDec: using Planar 422P as output csp (no 1)
    Movie-Aspect is undefined - no prescaling applied.
    SwScaler: reducing / aligning filtersize 1 -> 4
    SwScaler: reducing / aligning filtersize 1 -> 4
    SwScaler: reducing / aligning filtersize 1 -> 1
    SwScaler: reducing / aligning filtersize 9 -> 8


    SwScaler: BICUBIC scaler, from Planar 422P to Planar YV12 using MMX2
    [mpeg1video @ 0x85c9da8]removing common factors from framerate
    VO: [mpegpes] 352x384 => 512x384 Mpeg PES
    DVB: height=384 not supported (try 240/480 (ntsc) or 288/576 (pal)
    FATAL: Cannot initialize video driver.


    FATAL: Could not initialize video filters (-vf) or video output (-vo).



    Exiting... (End of file)
    hopp:/var/lib/platte_b/camera#


    So sollte es aussehen: Testfilm Bob der Baumeister mit Bildausgabe :D


    hopp:/var/lib/platte_a/film/svcd# /usr/lib/vdr-plugin-mplayer/mplayer.sh /var/lib/platte_a/film/svcd/bob01.dat

    root: *** Starting mplayer.sh Version 0.8.5
    root: *** DEBUG: Variable CFGFIL has value "/etc/vdr/plugins/vdrmplayer.sh.conf"
    root: *** Use Option USERDEF at your own risk!
    root: *** INFO: Source Video has Resolution of 352 x 288 ...
    root: *** INFO: For Sqare Pixels we would scale to 512 x 418 ...
    MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team


    CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 997.5 MHz (Family: 6, Stepping: 10)
    Detected cache-line size is 32 bytes
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
    Compiled for Debian.
    Reading config file /etc/mplayer/mplayer.conf
    Reading config file /root/.mplayer/config
    Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
    Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
    font: can't open file: /root/.mplayer/font/font.desc
    font: can't open file: /usr/share/mplayer/font/font.desc
    Using Linux hardware RTC timing (1024Hz).
    Can't open input config file /root/.mplayer/input.conf: No such file or directory
    Input config file /etc/mplayer/input.conf parsed: 53 binds
    Opening joystick device /dev/input/js0
    Can't open joystick device /dev/input/js0 : No such device
    Can't init input joystick
    Setting up LIRC support...
    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 /var/lib/platte_a/film/svcd/bob01.dat.
    Cache fill: 0.00% (0 bytes) MPEG-PS file format detected.
    VIDEO: MPEG1 352x288 (aspect 8) 25.000 fps 1256.0 kbps (157.0 kbyte/s)
    ==========================================================================
    Trying to force audio codec driver family libmad...
    Opening audio decoder: [libmad] libmad mpeg audio decoder
    AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128.0 kbit)
    Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
    ==========================================================================
    Opening /dev/dvb/adapter0/video0+audio0
    ==========================================================================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 352 x 288 (preferred csp: Mpeg PES)
    VDec: using Mpeg PES as output csp (no 0)
    Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
    VO: [mpegpes] 352x288 => 384x288 Mpeg PES
    Selected video codec: [mpegpes] vfm:mpegpes (Mpeg PES output (.mpg or Dxr3/DVB card))
    ==========================================================================
    Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
    AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
    AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
    AO: [mpegpes] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
    Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
    Starting playback...

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

  • Hallo Hoppi,


    eigentlich meinte ich, nur den Mplayer ohne das Scipt zu starten. Also: vdr stoppen und dann


    mplayer -ao mpegpes -vf mpegpes ixusdatei


    Wenn das funktioniert, dann liegt es am Start-Script, sonst am Mplayer.


    Deine Fehlermeldung kommt mir noch bekannt vor. Wie gesagt, ich glaube danach die oben beschriebene Änderung vorgenommen zu haben. Wenn nix mehr hilft (und Dein Mplayer die Datei abspielt), dann laß mir doch Deine Dateien vdrmplayer.sh.conf aus /etc/vdr/plugins und mplayer.sh aus /usr/lib/vdr-plugin-mplayer zukommen, ich vergleiche sie dann mal mit meinen.


    Gruß Herbert

  • Hallo Herb01,


    ich hatte doch gesagt Zitat "ich als Linux Anfänger"


    nächster Versuch
    hopp:~# mplayer -ao mpegpes -vf mpegpes /var/lib/platte_b/camera/test.avi
    MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team


    CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 1719 MHz (Family: 6, Stepping: 10)
    Detected cache-line size is 32 bytes
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
    Compiled for Debian.
    Reading config file /etc/mplayer/mplayer.conf
    Reading config file /root/.mplayer/config
    Option vf: mpegpes doesn't exist.



    Zitat

    dann laß mir doch Deine Dateien vdrmplayer.sh.conf aus /etc/vdr/plugins und mplayer.sh aus /usr/lib/vdr-plugin-mplayer zukommen, ich vergleiche sie dann mal mit meinen.


    sollst du haben :D :D


    /usr/lib/vdr-plugin-mplayer/mplayer.sh


    #!/bin/bash
    #
    # $Id: vdrmplayer.sh,v 1.5 2004/06/03 08:30:06 vdrtobi Exp $
    #


    unset LANG
    declare VERSION="0.8.5"


    # History (as always in the source code :)
    #
    # 0.8.5 - changed the check for the existence of the video file to check also
    # that it can actually be read
    # - added a new PAL height: 544
    # - [experimental] use detelicining (detc) filter to play NTSC as PAL;
    # thanks to Martin Hoffmann for this one
    # - [experimental] make the detelecinig filter configurable via conf-file
    # - changed the warning messages about wrong DVD options to be displayed
    # only when DEBUG is set to true
    # - added a comment to mplayer.sh.conf that the DVD dummy files MUST be
    # named DVD/VCD in capital letters
    # - removed '-afm 9' from AO defaults, because audio filters by numbers are
    # removed from MPlayer (9 meant hwac, it is handeled differently anyway)
    # - changed the the use of the -speed parameter: the man pages says one
    # should use a value between 0.01 and 100, not something like 25:24
    #
    # 0.8.4 - added some more debugging info
    # - changed the MPlayer option that is used to play DVDs and VCDs from
    # -vcd/-dvd to VCD:// and DVD://
    # - added cuefile support for MPlayer version 1.0x
    # - added new config option to distinguish MPlayer versions (0.9x or 1.0)
    # important for playing cuefiles
    # - fixed bug in detecting empty CACHE option
    # - fixed a bug where USE_SPEED is ignored and '-speed' always used
    # - added a check for the return value of 'mplayer -identify'
    # - added support for AC3 sound when playing a DVD
    # - make audio output configurable via config file (e.g. for DXR3)
    #
    # 0.8.3 - changed the default value of USERDEF from '-really-quiet' to '-quiet',
    # because it suppressed the progressbar messages from mplayer
    # - added '-dvd 1' to the DVD call to reliably play a DVD
    # (though only the first one)
    #
    # 0.8.2 - changed the way mplayer is called to identify files;
    # should prevent the opening of a X window, that happens
    # on some systems
    # - play mpeg files without any scaling if possible
    # - added config line for AC3 out via DVB card (thanks to Christian Jacobsen)
    # - added a new config option to choose the video out device;
    # intended for dx3 users
    # - added config options for subtitles (thanks to Martin Åkerström)
    # - fixed a bug when SLOW_CPU is set to "false" instead of being
    # just commented out
    # - minor code clean-up
    # - cleanup some comments and messages
    #
    # 0.8.1 - fixed a bug when DVDFiles or DVD not set correctly
    # - if path to mplayer is incorrect, log an error and exit
    # - cue file support; you can now choose a cue file as input;
    # after I did this on user request, I asked myself, for what
    # do one needs this, as mplayer can play .bin files directly...
    # - support for 16/9 TV sets (thanks to Vaclav Janecek)
    #
    # 0.8.0 - bumped the version number to be more flexible
    # - added VCD/DVD support
    #
    # 0.0.7 - clear LANG variable
    # - added support for slow computers: reduces the Y
    # resolution to the half of the possible maximum
    # - use kind of a window for detecting the frames_per_sec
    #
    # 0.0.6a-jha
    # - fixed a bug that prevented the SLAVE mode from working
    #
    # 0.0.6-jha
    # - major rework
    # - added config option to disable either NTSC or PAL support
    # - added mplayer's '-speed' option; is disabled by default (see
    # config file), because it didn't work as expected for me
    # - rudimentary sub titles support:
    # if a sub titles file (.sub suffix) with exactly the
    # same name as the played video file exists, it is used
    # (not really useful yet)
    # - changed the was the config file is parsed:
    # let's do it the simple way, just source the file
    # =================================================
    # ---> IMPORTANT! you MUST use the new config file
    # =================================================
    #
    # 0.0.5d-jha
    # - added AC3 support (thanks to Christian Jacobsen
    # <christian.jacobsen -at- stageholding.de>)
    # - better support for mplayers SLAVE mode
    # - fixed some scaling problems
    # - some minor clean-ups
    #
    # 0.0.5c-jha
    # - play videos with 24 or 23.976 fps as NTSC, not PAL
    #
    # 0.0.5b-jha
    # - Improved getvidxy - thanks to new mplayer option '-identify'
    # it gets now the correct values for X-/Y-resolution
    # and the framerate (if defined in the video file)
    # for all media files
    # - reworked the scaling calculation to scale only if needed
    # and if so, scale as little as possible to save CPU power
    # - distinguish between NTSC and PAL files; play them with
    # the right TV norm
    #
    # 0.0.4 Improved getvidxy - No Temp Files needed anymore!
    #
    # 0.0.3 Seems to work fine - still lacks support for X x 432 Files
    # What about MPEG Files ?
    #



    function initialize () {
    # source config file
    source "$CFGFIL"


    # Debug Mode ?
    if test -z "$DEBUG" -o "$DEBUG" != "true"; then DEBUG=false; fi


    # use AC3?
    if test -z "$USEAC3" -o "$USEAC3" != "true"; then USEAC3=false; fi
    debugvar USEAC3 "$USEAC3"


    # AC3 command line
    if test -z "$AC3AOUT"; then
    errorcfg AC3AOUT
    exit
    else
    debugvar AC3AOUT "$AC3AOUT"
    fi


    # TV aspect ratio
    if test -z "$TV_ASPECT"; then errorcfg TV_ASPECT; fi
    debugvar TV_ASPECT "$TV_ASPECT"


    # can do PAL?
    if test -z "$PAL" -o "$PAL" != "true"; then PAL=false; fi
    debugvar PAL "$PAL"


    # can do NTSC?
    if test -z "$NTSC" -o "$NTSC" != "true"; then NTSC=false; fi
    debugvar NTSC "$NTSC"


    if test $NTSC == "false" -a $PAL == "false"; then
    echolog "*** FATAL: Config Options NTSC and PAL both set to false ... Exiting."
    exit
    fi


    # use speed setting?
    SPEED=""
    if test -z "$USE_SPEED"; then USE_SPEED=false; fi
    debugvar USE_SPEED "$USE_SPEED"


    # which detelecining filter should be used, if configured
    # to play NTSC as PAL
    if test -z "$DETC_FILTER"; then $DETC_FILTER="detc=dr=2:am=1"; fi
    debugvar DETC_FILTER "$DETC_FILTER"


    # where is Mplayer
    if ! test -x "$MPLAYER" -a -f "$MPLAYER"; then
    echolog "*** Option MPLAYER not found in config file or not set correctly"
    exit
    else
    debugvar MPLAYER "$MPLAYER"
    fi


    if test -z "$VOP"; then errorcfg VOP; exit; else debugvar VOP "$VOP"; fi


    if test -z "$VO"; then errorcfg VO; exit; else debugvar VO "$VO"; fi


    if test -z "$AO"; then errorcfg AO; exit; else debugvar AO "$AO"; fi
    AOUT="-ao $AO"


    if test -z $CACHE; then
    echolog "*** Option CACHE not set in config file - calling mplayer without Cache!"
    CACHESTR="-nocache"
    else
    CACHESTR="-cache $CACHE"; debugvar CACHE "$CACHE"; debugvar CACHESTR "$CACHESTR"
    fi


    if test -z "$FRAMEDROP" -o "$FRAMEDROP" != "true"; then FRAMEDROP=false; fi
    debugvar FRAMEDROP "$FRAMEDROP"
    if $FRAMEDROP; then FDSTR="-framedrop"; fi
    debugvar FDSTR "$FDSTR"


    declare LIRCSTR="" # no extra Lirc option!
    if ! test -z "$LIRCRC"; then LIRCSTR="-lircconf $LIRCRC"; fi
    debugvar LIRCRC "$LIRCRC"; debugvar LIRCSTR "$LIRCSTR"


    if ! test -z "$SUBPOS"; then SUBTITLES=" -subpos $SUBPOS"; fi
    if ! test -z "$SUBCOLOR"; then SUBTITLES="$SUBTITLES -sub-bg-color $SUBCOLOR"; fi
    if ! test -z "$SUBALPHA"; then SUBTITLES="$SUBTITLES -sub-bg-alpha $SUBCOLOR"; fi


    debugvar SUBTITLE "$SUBTITLES"


    if test "$SLAVE" != "SLAVE"; then
    REMOTE="$LIRCSTR"
    else
    REMOTE="-slave -nolirc"
    fi
    debugvar REMOTE "$REMOTE"


    if ! test -z "$USERDEF"; then echolog "*** Use Option USERDEF at your own risk!"; fi
    debugvar USERDEF "$USERDEF"


    if test -z $XResPAL; then errorcfg XResPAL; exit; else debugvar XResPAL "${XResPAL[*]}"; fi
    if test -z $XResNTSC; then errorcfg XResNTSC; exit; else debugvar XResNTSC "${XResNTSC[*]}"; fi


    # do we run on a slow computer?
    if test -z "$SLOW_CPU" -o "$SLOW_CPU" == "false"; then
    SLOW_CPU=false
    else
    XResPAL=(352)
    XResNTSC=(352)
    debugvar XResPAL "${XResPAL[*]}"
    debugvar XResNTSC "${XResNTSC[*]}"
    fi
    debugvar SLOW_CPU "$SLOW_CPU"


    if ! test -d "$DVDFiles"; then debugmsg "*** Option DVDFiles not set correctly! You will not be able to play VCD/DVD" ""; DVDFiles=""; fi
    debugvar DVDFiles "$DVDFiles"
    if ! test -b "$DVD"; then debugmsg "*** Option DVD not set correctly! You will not be able to play VCD/DVD" ""; DVD=""; fi
    debugvar DVD "$DVD"
    if test -z $DVDLANG; then DVDLANG="en"; fi
    debugvar DVDLANG "$DVDLANG"


    # extra DVD options
    debugvar DVDOPTIONS "$DVDOPTIONS"


    # extra VCD options
    debugvar VCDOPTIONS "$VCDOPTIONS"


    # play MPEG files without rescaling?
    if test -z "$MPEG_DIRECT" -o "$MPEG_DIRECT" != "false"; then MPEG_DIRECT="true"; fi
    debugvar MPEG_DIRECT "$MPEG_DIRECT"


    # get the file extension of the video
    SUFFIX=$(echo -e "${FILE:$[${#FILE}-4]:4}" | tr [A-Z] [a-z])
    debugvar SUFFIX $SUFFIX


    if test -z "$MPLAYER_V1"; then
    echolog "*** MPLAYER_V1 not set! Setting it to 'false'."
    echolog "*** If you cannot play cue-files, then set it to 'true'."
    MPLAYER_V1="false"
    fi
    debugvar MPLAYER_V1 "$MPLAYER_V1"


    return;
    }



    function getvidxy () {


    # call: getvidxy
    # determine x and y resolution of the file!
    # output: variable ORIG_X and ORIG_Y (global)


    # variable definitions
    local TEMP1 MPLAYER_RETURN
    ORIG_X=0; ORIG_Y=0


    TEMP1=`$MPLAYER -identify -vo null -ao null -frames 0 "$FILE" 2>/dev/null | grep -i -e "^ID_"`
    MPLAYER_RETURN=$?
    debugmsg "OutputFromMPLAYER:" "$TEMP1"
    debugmsg "MPLAYER_RETURN: " "$MPLAYER_RETURN"


    if test $MPLAYER_RETURN -ne 0; then
    echolog "*** FATAL: something went wrong analyzing the video; mplayer reported an error!"
    echolog "*** FATAL: check your mplayer installation. Exiting..."
    exit
    fi


    ORIG_X=`echo "$TEMP1"|grep ID_VIDEO_WIDTH|cut -d"=" -f2`
    debugmsg "parsed output for ORIG_X:" $ORIG_X


    ORIG_Y=`echo "$TEMP1"|grep ID_VIDEO_HEIGHT|cut -d"=" -f2`
    debugmsg "parsed output for ORIG_Y:" $ORIG_Y


    ORIG_FPS=`echo "$TEMP1"|grep ID_VIDEO_FPS|cut -d"=" -f2`
    debugmsg "parsed output for ORIG_FPS:" $ORIG_FPS


    ORIG_ASPECT=`echo "$TEMP1"|grep ID_VIDEO_ASPECT|cut -d"=" -f2`
    debugmsg "parsed output for ORIG_ASPECT:" $ORIG_ASPECT


    VIDEO_FORMAT=`echo "$TEMP1"|grep ID_VIDEO_FORMAT|cut -d"=" -f2`
    debugmsg "parsed output for VIDEO_FORMAT:" $VIDEO_FORMAT


    AUDIO_CODEC=`echo "$TEMP1"|grep ID_AUDIO_CODEC|cut -d"=" -f2`
    debugmsg "parsed output for AUDIO_CODEC:" $AUDIO_CODEC


    return;
    }



    function calcnewxy () {
    local -i MAX_X TEMP_ASPECT
    # TEMP_ASPECT=`echo $ORIG_ASPECT|sed 's/\.//'`
    # if test $TEMP_ASPECT -eq 0; then TEMP_ASPECT=$((4000/3)); fi


    if test $ORIG_X -gt 352 -o $ORIG_Y -gt $HALF_Y; then
    MAX_X=$(($FULL_Y*$TV_ASPECT))
    else
    MAX_X=$(($HALF_Y*$TV_ASPECT))
    fi
    debugvar MAX_X $MAX_X


    NEW_Y=$(($MAX_X*$ORIG_Y/$ORIG_X)); debugvar NEW_Y $NEW_Y
    echolog "*** INFO: For Sqare Pixels we would scale to $MAX_X x $NEW_Y ..."
    test $NEW_Y -gt $FULL_Y && NEW_Y=$FULL_Y # force full screen/ ignore aspect ratio!


    return;
    }



    function choosebestx () {
    local -i MAX_X INDEX
    local XResTEMP
    declare repeat=true
    INDEX=0


    if $SLOW_CPU; then
    XResTEMP=(352)
    else
    if test $HALF_Y -eq 240; then
    XResTEMP=(${XResNTSC[*]})
    else
    if test $HALF_Y -eq 288; then
    XResTEMP=(${XResPAL[*]})
    else
    echolog "*** FATAL: HALF_Y not set or unknown: \"$HALF_Y\" ... Exiting."
    exit
    fi
    fi
    fi
    debugvar XResTEMP "${XResTEMP[*]}"


    ANZAHL=${#XResTEMP[*]}
    debugvar AnzahlVonXResTEMP $ANZAHL


    until ! $repeat; do
    if test ${XResTEMP[$INDEX]} -ge $ORIG_X; then repeat=false; NEW_X=${XResTEMP[$INDEX]}; fi
    INDEX=$(($INDEX+1))
    if test $INDEX -ge $ANZAHL; then repeat=false; NEW_X=${XResTEMP[$ANZAHL-1]}; fi
    done
    debugvar NEW_X $NEW_X


    return;
    }



    function choosebesty () {
    if test \( $ORIG_Y -eq $HALF_Y -a $ORIG_X -eq 352 \) -o \( $ORIG_Y -eq $FULL_Y -a ! $SLOW_CPU \); then
    REAL_Y=$ORIG_Y
    NEW_Y=$ORIG_Y
    NEW_X=$ORIG_X
    debugmsg "setting NEW = ORIG"
    else
    if test $ORIG_X -gt 352 -o $ORIG_Y -gt $HALF_Y; then
    REAL_Y=$FULL_Y
    debugmsg "setting REAL_Y = FULL_Y"
    else
    REAL_Y=$HALF_Y
    debugmsg "setting REAL_Y = HALF_Y"
    fi
    fi
    return;
    }



    function set_ntsc () {
    HALF_Y=240
    if $SLOW_CPU; then
    FULL_Y=$HALF_Y
    else
    FULL_Y=480
    fi
    NEW_FPS="29.970"
    return;
    }



    function set_pal () {
    HALF_Y=288
    if $SLOW_CPU; then
    FULL_Y=$HALF_Y
    else
    FULL_Y=576
    fi
    NEW_FPS="25.000"
    return;
    }



    function checkforac3 () {
    if test "X$AUDIO_CODEC" == "Xa52" && $USEAC3; then AOUT="$AC3AOUT"; fi
    return;
    }



    function checktvnorm () {
    local -i TEMP_FPS
    TEMP_FPS=`echo $ORIG_FPS|sed 's/\.//'`
    if test $TEMP_FPS -ge "23000" -a $TEMP_FPS -le "24499"; then
    debugmsg "Film"
    if $NTSC; then
    set_ntsc
    else
    set_pal
    $USE_SPEED && SPEED="-speed 1.04" # 25.000 / 24.000 = 1.04
    fi
    else
    if test \( $TEMP_FPS -ge "14000" -a $TEMP_FPS -le "16000" \) -o \( $TEMP_FPS -ge "29000" -a $TEMP_FPS -le "30499" \); then
    debugmsg "NTSC"
    if $NTSC; then
    set_ntsc
    else
    set_pal
    if $USE_SPEED; then
    SPEED="-speed 1.04" # 25.000 / 24.000 = 1.04
    DETC=",$DETC_FILTER"
    fi
    fi
    else
    debugmsg "PAL or unknown" $ORIG_FPS
    if $PAL; then
    set_pal
    else
    set_ntsc
    $USE_SPEED && SPEED="-speed 1.19" # 29.970 / 25.000 = 1.19
    fi
    fi
    fi
    return;
    }



    function echolog () {
    # prints the string on stdout and into /var/log/messages using logger!
    logger -s -- "$1"
    return;
    }



    function errorcfg () {
    echolog "*** FATAL: Config Option $1 not found in config file ... Exiting."
    exit;
    }



    function debugvar () {
    if $DEBUG; then echolog "*** DEBUG: Variable $1 has value \"$2\""; fi
    return;
    }



    function debugmsg () {
    if $DEBUG; then echolog "*** DEBUG: $1 \"$2\""; fi
    return;
    }



    # begin main!
    #
    #
    # ---------------------------------------------------------------------------
    #
    #


    declare -i ORIG_X ORIG_Y
    declare -i NEW_X NEW_Y
    declare -i HALF_Y FULL_Y
    declare ORIG_FPS NEW_FPS ORIG_ASPECT VIDEO_FORMAT AUDIO_CODEC
    declare CMDLINE AOUT REMOTE USERDEF SUFFIX
    declare FILE="$1"
    declare SLAVE="$2"
    declare -a XResPAL[0]
    declare -a XResNTSC[0]
    declare FDSTR=""
    declare SUBTITLES=""
    declare DETC=""


    echolog "*** Starting mplayer.sh Version $VERSION"


    if test -z "$FILE"; then echolog "*** USAGE: mplayer.sh <File_to_be_played>"; exit; fi
    if ! test -r "$FILE"; then echolog "*** ERROR: Make sure $FILE exists and is readable - otherwise it cannot be played ;-)"; exit; fi


    # Check if config file exists!
    declare CFGFIL="/etc/vdr/plugins/vdrmplayer.sh.conf"
    debugvar CFGFIL $CFGFIL
    if ! test -f $CFGFIL; then echolog "*** FATAL: vdrmplayer.sh.conf not found!!! Exiting." ; exit; fi


    # read config file and initialize the variables
    initialize



    if test \( "$FILE" == "$DVDFiles/DVD" -o "$FILE" == "$DVDFiles/VCD" \) -a -n "$DVDFiles" -a -n "$DVD"; then
    if test "$FILE" == "$DVDFiles/DVD"; then
    $USEAC3 && AOUT="$AC3AOUT"
    CMDLINE="$MPLAYER -vo $VO $AOUT -alang $DVDLANG $DVDOPTIONS $FDSTR $CACHESTR $REMOTE $USERDEF -dvd-device $DVD dvd://"
    fi
    if test "$FILE" == "$DVDFiles/VCD"; then
    CMDLINE="$MPLAYER -vo $VO $AOUT $VCDOPTIONS $FDSTR $CACHESTR $REMOTE $USERDEF -cdrom-device $DVD vcd://"
    fi
    unset FILE
    elif test "${SUFFIX}" == ".cue"; then
    if $MPLAYER_V1; then
    CMDLINE="$MPLAYER -vo $VO $AOUT $FDSTR $CACHESTR $REMOTE $USERDEF cue://$FILE:2"
    unset FILE
    else
    CMDLINE="$MPLAYER -vo $VO $AOUT $FDSTR $CACHESTR $REMOTE $USERDEF -vcd 2 -cuefile"
    fi
    else
    # Try to determine the video attributes
    if $DEBUG; then echolog "*** DEBUG: Calling getvidxy function to analyze source video stream ..."; fi
    getvidxy
    echolog "*** INFO: Source Video has Resolution of $ORIG_X x $ORIG_Y ..."
    if test $ORIG_X -eq 0 -o $ORIG_Y -eq 0; then echolog "*** FATAL: something went wrong analyzing the video; check your mplayer version ..."; exit; fi


    NEW_FPS=$ORIG_FPS


    if `echo "$VIDEO_FORMAT"| egrep -q "RV??"`; then
    FORCEIDX="-forceidx"
    else
    FORCEIDX=""
    fi


    checkforac3
    checktvnorm
    calcnewxy
    choosebestx
    choosebesty
    if test $NEW_X -eq 0 -o $NEW_Y -eq 0; then echolog "*** FATAL: Illegal Resolution ..."; exit; fi


    if test $MPEG_DIRECT == "true" -a \( $VIDEO_FORMAT == "0x10000001" -o $VIDEO_FORMAT == "0x10000002" \) -a \( \
    \( $PAL -a $NEW_FPS == "25.000" -a \( \( $ORIG_X == "352" -a $ORIG_Y == "288" \) -o \( $ORIG_Y == "576" -a \
    \( $ORIG_X == "352" -o $ORIG_X == "480" -o $ORIG_X == "528" -o $ORIG_X == "544" -o $ORIG_X == "688" -o $ORIG_X == "704" -o $ORIG_X == "720" \) \) \) \) -o \
    \( $NTSC -a $NEW_FPS == "29.970" -a \( \( $ORIG_X == "352" -a $ORIG_Y == "240" \) -o \( $ORIG_Y == "480" -a \
    \( $ORIG_X == "352" -o $ORIG_X == "480" -o $ORIG_X == "512" -o $ORIG_X == "640" -o $ORIG_X == "704" -o $ORIG_X == "720" \) \) \) \) \
    \) ; then
    CMDLINE="$MPLAYER -vo $VO $AOUT $FDSTR $CACHESTR $REMOTE $USERDEF"
    else
    CMDLINE="$MPLAYER -vo $VO $AOUT -vop $VOP:$NEW_FPS,expand=$NEW_X:$REAL_Y:-1:-1:1,scale=$NEW_X:${NEW_Y}${DETC} $SPEED $FDSTR $CACHESTR $REMOTE $SUBTITLES $USERDEF $FORCEIDX"
    fi
    fi


    debugvar CMDLINE "$CMDLINE"
    exec $CMDLINE "$FILE"
    exit

  • Hast d irgend etwas von diesen sachen installiert?
    libmjpegtools0 - MJPEG video capture/editting/playback MPEG encoding
    mjpegtools - MJPEG video capture/editting/playback MPEG encoding


    Ansonsten mal apt-get install libmjpegtools0 mjpegtools

  • slime


    Ich werde mich bemühen kleinere "sachen" zu posten, ich wollte aber auch keine neue Antwort aufmachen um die zweite Datei zu posten.
    Das nächste mal werde ich sie zusammen als zip File dranhängen


    nach erfolgreicher angabe des Befehls kam ein Bild aber in einem sehr schlechten Zustand in SW auf der oberen Bisldschirmseite.



    wilderigel


    die beiden Tools sind da: Antwort vom System
    libmjpegtools0 ist schon die neueste Version.
    mjpegtools ist schon die neueste Version.

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

  • wilderigel


    kann ich einfach den script auswechseln oder muß ich abhänigkeiten beachten ???


    wenn ja wo oder wie finde ich für die ct vdr Version einen anderen script ?!

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

  • Auf www.e-tobi.net/vdr/downloads (Aus Gedächtnis) gibt es ein Script, das den Mplayer compiliert.
    Das setzt natürlich die Entwicklerumgebung voraus, welche lt mir aber mitinstalliert wird.


    Habe mal die Ausgabe von mplayer.sh angehängt.
    Mal mit mplayer-586 mal mit mplayer Tobi
    Falls sich wer damit auskennt, und etwas herauslesen kann...

  • sorry für diie -vf-Option (hab wohl zu oft den mencoder mit irgendwelchen Filtern aufgerufen).


    @ Hoppi


    Ich habe mal Deine vdrmplayer.sh.conf-Datei mit meiner vergleichen. Der einzige Unterschied ist das eingestellte Bildformat. Du hast hier 16:9 eingestellt (TV_ASPECT="16/9"), ich dagegen 4:3 (TV_ASPECT="4/3").


    Die mplayer.sh-Datei scheint mit meiner identisch zu sein, habe ich aber nur grob drübergesehen (diff mit cut&paste aus dem Browser war nicht so richtig gut...).


    Und wenn es das Aspekt-Verhältnis nicht ist, dann fällt mir auch nur noch der Mplayer ein.


    Gruß Herbert

  • herb
    tja das wars auch nicht, werde dann mal am Wochenende versuchen das Paket von Wilderigel zu testen.


    Danke

    Cu Marcus


    IBM P IV 2,8 1024 MB 1x 400 GB 2x 200 GB HDD 1xNexus S 1.3 2.1 S 2.2


    c't VDR: 1.3.37-1ctvdr1 Kernel : 2.6.12-ct

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!