Bilder zu einem Video zusammenfügen... (Shell-Command)

  • Moinsen,


    leider habe ich bei Google & Co. nicht wirklich das richtige finden können, wahrscheinlich habe ich mal wieder die völlig falschen Schlüsselwörter eingegeben.
    Ich suche ein Shell-Befehl, der mir aus Bildern ein Video zusammenbaut. Das kann doch bestimmt jemand aus seinem Cache abrufen.... :)


    Greetz aus NZ

    KellerServer | Fractal Cockpit Server + DigiBit Twin SAT>IP Server | Ubuntu22 VM mit vdr 2.6 |

  • ne mehr als dürftige lösung:

    Bash
    #!/bin/sh
    ls $1.jpg > files.list
    transcode -i ./files.list -k -z  -x imlist,null  -g 702x576   -y ffmpeg,null -F mpeg2video   -o ./Movie-`/bin/date +%y%m%d-%H%M` -H 0
    rm files.list
  • hi,


    mencoder bringt das schon mit, nachfolgend ein auszug aus der doku:



    12.7. Encoding from multiple input image files (JPEG, PNG, TGA, SGI)


    MEncoder is capable of creating movies from one or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.


    Explanation of the process:


    1.


    MEncoder decodes the input image(s) with libjpeg (when decoding PNGs, it will use libpng).
    2.


    MEncoder then feeds the decoded image to the chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.).


    Examples. The explanation of the -mf option is in the man page.


    Creating an MPEG-4 file from all the JPEG files in the current directory:


    mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi


    Creating an MPEG-4 file from some JPEG files in the current directory:


    mencoder mf://frame001.jpg,frame002.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi


    Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current directory contains the list of files to use as source, one per line):


    mencoder mf://@list.txt -mf w=800:h=600:fps=25:type=jpg \
    -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi


    Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current directory:


    mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o output.avi


    Creating an uncompressed file from all the PNG files in the current directory:


    mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o output.avi


    Note


    Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format.


    Creating a Motion PNG (MPNG) file from all the PNG files in the current directory:


    mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o output.avi


    Creating a Motion TGA (MTGA) file from all the TGA files in the current directory:


    mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o output.avi

  • Ja cool, das sieht doch sehr geil aus... :)
    Besonders mit der Liste, das werd ich dann mal austesten, wenn die Bilder bearbeitet sind...
    Leider hab ich noch ein kleines Problem mit dem Schreiben einer Variable auf einen Hintergrund...
    hier


    Vielen Dank
    Christian

    KellerServer | Fractal Cockpit Server + DigiBit Twin SAT>IP Server | Ubuntu22 VM mit vdr 2.6 |

  • Oha, das sieht auch schick aus, da kann ich mri denn auch noch eigenes Programmieren sparen... :D
    Hoffe ich finde naechste Woche endlich mal Zeit damit herumzuspielen.


    Vielen Dank fuer den Tipp!


    Greetz aus NZ

    KellerServer | Fractal Cockpit Server + DigiBit Twin SAT>IP Server | Ubuntu22 VM mit vdr 2.6 |

  • Moinsen,


    ich muss nochmal einen Tipp erbitten... ;(
    EDIT
    mjpegtools hab ich von deb ftp://ftp.nerim.net/debian-marillat/ gezogen.
    Nur fehlt mir irgendwie noch das Prog ppmtoy4m...
    Jemand eine Idee wo das abgeblieben ist?

    Code
    vdr:/home/kniep# dvd-slideshow test.txt 
    [dvd-slideshow]            dvd-slideshow 0.7.5
    [dvd-slideshow]            Licensed under the GNU GPL
    [dvd-slideshow]            Copyright 2003-2006 by Scott Dylewski
    [dvd-slideshow]            
    [dvd-slideshow] Using default slideshow name: test
    [dvd-slideshow] Output directory not specified.
    [dvd-slideshow] Using /home/kniep
    [dvd-slideshow] ERROR: ppmtoy4m not found! 
    [dvd-slideshow] Check the dependencies and make sure everything is installed.



    Greetz

    KellerServer | Fractal Cockpit Server + DigiBit Twin SAT>IP Server | Ubuntu22 VM mit vdr 2.6 |

    Einmal editiert, zuletzt von kniepbert ()

Jetzt mitmachen!

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