I have a problem when using the command line for ffmpeg.exe ( https://trac.ffmpeg.org/wiki/Create a thumbnail image every X seconds of the video )
The command I need to send is "
That works perfectly in windows CMD.
This is my code in b4j:
The issue I have is that I get an error which shows that the spaces in the params are not interpreted correctly:
the command reads until the -ss and stops there.
Is there a way to send a raw command and not using the params as a list? I have the feeling that the issue comes from there.
Thanks and Happy New year!
The command I need to send is "
B4X:
D:\B4J\QTFileListing\Objects>ffmpeg.exe -i "C:\folder\Out\WIP\2013_12_13\sh04_avc1.mov" -ss 00:00:01 -vframes 1 -f image2 img_15_%03d.jpg
This is my code in b4j:
B4X:
Dim js As Shell
Dim params As List: params.Initialize
params.Add("-i """ & fullPath & """")
params.Add("-ss 00:00:01")
params.Add("-vframes 1")
params.Add("-f image2")
params.Add("img_15_%03d.jpg")
js.Initialize("js", "ffmpeg.exe", params)
js.WorkingDirectory = File.DirApp
js.Run(-1)
The issue I have is that I get an error which shows that the spaces in the params are not interpreted correctly:
B4X:
'-i "C:\folder\Out\WIP\2013_12_17\sh04_avc1.mov' -ss: Invalid argument
the command reads until the -ss and stops there.
Is there a way to send a raw command and not using the params as a list? I have the feeling that the issue comes from there.
Thanks and Happy New year!