05:07
Using latest iOS and Xcode, I have an AppIntent to which Im passing a video file from iOS Shortcuts, Im using an IntentFile parameter to read that in the intent. Then Im using FFmpeg-iOS to generate a single frame from the video.
...
ⓐParameter(title: "Media", supportedTypeIdentifiers: ["public.image", "public.video"], inputConnectionBehavior: .connectToPreviousIntentResult)
var media: IntentFile
...
let mediaPath = media.fileURL!.absoluteString;
let posterPath = mediaPath.replacingOccurrences(of: media.filename, with: "poster.jpg")
_ = ffmpeg(["FFmpeg-iOS", (...)
03:25
FFMPEG .bat script not running when I double click on the script file. It tries to open for a millisecond, and then just disappears. My videos are in .MP4 format same as in the script.
Here is the script:
FOR /F *tokens=*" %%G IN ('dir /b *.mp4') DO ffmpeg -i "%%G" -vf fade=in:0:d=5 -af afade=in:0:d=5 "%%~nG_1.mov"
And this is the result I am getting when I paste script to the CMD in folder:
*" %%G IN ('dir /b *.mp4') DO ffmpeg -i "%%G" -vf fade=in:0:d=5 -af afade=in:0:d=5 "%%~nG_1.mov" was unexpected at this (...)