myGully.com

myGully.com (https://mygully.com/index.php)
-   Videobearbeitung (https://mygully.com/forumdisplay.php?f=91)
-   -   ffmpeg jpgs zu Video mit Timestamps in xml File (https://mygully.com/showthread.php?t=3502061)

KnownSoldier 09.11.14 18:58

ffmpeg jpgs zu Video mit Timestamps in xml File
 
Hi,

hat jemand von euch eine Ahnung wie ich vorliegende .jpg Dateien mit einer zugehörigen .xml Datei (welche die notwendigen Daten beinhaltet, wie lang jede .jpg angezeigt wird) zu einem Video zusammenfüge?

Die JPGs repräsentieren dabei einfach Slides von einer Powerpoint-Präsentation und in der XML Datei wurde gespeichert, wie lang jedes Slide gezeigt wurde:

Code:

<eventStreamData>
  <open_url label="1.jpg" time="0:00:03.953" comment="beispiel"/>
  <open_url label="2.jpg" time="0:00:52.015" comment=" beispiel 2"/>
</eventStreamData>

Gesplittete video files kann ich mit ffmpeg gut zusammenfügen, aber für das obenliegende fällt mir gerade nichts ein, ich hoffe von euch hat jemand eine Idee :)

fryx 12.11.14 01:49

Weil es bbz nicht mehr gibt:

Zitat:

Creating video from images
Video from one image
To convert a still image to a video is easy and can be used to create slideshows, where short videos from
images (with added text) are joined together, joining videos is described in the chapter 23. For example to
create a 10-second video from the photo.jpg file, we include a -loop boolean option with a value true or 1
like in the command:
Code:

ffmpeg -loop 1 -i photo.jpg -t 10 photo.mp4
Video from many images
To create a video from multiple images, their filenames must end with a number, where these numbers
correspond with the sequence in which the images will be encoded to the video file. In this case the media
format is specified before the input and it is an image2 format. For example, from 100 images named
img1.jpg, img2.jpg, ..., img100.jpg can be created a 4-second video with 25 fps frame rate using the
command:
Code:

ffmpeg -f image2 -i img%d.jpg -r 25 video.mp4
If the image numbers start with zeros, for example img001.jpg, img002.jpg, etc. to provide the same
filename length, then the command is:
Code:

ffmpeg -f image2 -i img%3d.jpg -r 25 video.mp4
The number after the % sign must be the same as the number of digits in the image filenames.


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:05 Uhr.

Powered by vBulletin® (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.