Autor Beitrag
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Mi 06.01.10 22:55 
Hallihallo,

wie ja bereits erwähnt, quäle ich mich gerade mit der ffmpeg.exe herum. Jetzt möchte ich ganz simpel, mehrere Bilder als Movie ausgegeben haben, laut FAQ macht man das so:

Zitat:

3.2 How do I encode single pictures into movies?

First, rename your pictures to follow a numerical sequence. For example, img1.jpg, img2.jpg, img3.jpg,... Then you may run:

ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg

Notice that `%d' is replaced by the image number.

`img%03d.jpg' means the sequence `img001.jpg', `img002.jpg', etc...

The same logic is used for any image format that ffmpeg reads.


Meine Dateien liegen so vor: Frame0001.jpg..Frame0250.jpg, deshalb habe ich das ganze mal so interpretiert:
ausblenden Delphi-Quelltext
1:
  shellexecute(handle,'open',PWideChar(extractFilePath(ParamStr(0))+'bin\ffmpeg.exe -f image2 -i Frame%04d.jpg /movie/test.mpg'),nil,nil,0);					


scheint aber falsch zu sein, könntet ihr mir also vllt. einen Kurzen Interpretation-zu-ShellExecute-Crashkurs geben? :oops:
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mi 06.01.10 23:11 
Der Parameter von ShellExecutre in den du jetz Dateinamen und Parameter geschreiben hast ist NUR für den Dateinamen von ffpmeg - die Parameter kommen in den 1. nil-Parameter danach.

"/movie/test.mpg" sieht nicht wirklich nach ner Pfadangabe im Windows-Stil aus, das musst du wahrscheinlich auch noch ändern.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
FinnO Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Do 07.01.10 16:54 
okay, soweit klapperts, es wird auch ein movie erstellt, einziges Problem nur noch: Die Date ist nur 1 Frame Lang -.- mal gucken, was da nicht stimmt, ansonsten: Solved!