Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: run cmd line prompt from Opus
PostPosted: December 22nd, 2018, 7:45 am 
Offline

Joined: December 1st, 2016, 5:33 pm
Posts: 14
Hi, I want to run an ffmpeg function which is a normal command line function from Opus when I click on a button. For instance when I click a button this is run <ffmpeg -i C:\ffmpeg\surf\Surf_Test3.mov -vf framestep=12,setpts=N/FRAME_RATE/TB C:\tmp\webber\surf%d.png>

I have spent some time looking at the scripting and can get the command line up, it just doesn't then automatically have the ffmpeg line loaded and run.

Any help would be very welcome.

thanks
Stuart


For this message Gillawa has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: run cmd line prompt from Opus
PostPosted: December 22nd, 2018, 10:26 pm 
Offline

Joined: December 1st, 2016, 5:33 pm
Posts: 14
Well, I got it to work by using the Launch File action and putting the ffmpeg code -i C:\ffmpeg\surf\Surf_Test3.mov -vf framestep=12,setpts=N/FRAME_RATE/TB C:\tmp\webber\surf%d.png into the option/parameter.

Still would be interested whether this can be done in scripting though.

What I want is to have that after the video has played (ie Surf_Test3.mov) as a variable so that when new video or camera feed is active image snapshots can be extracted and stored in their own folder.


For this message Gillawa has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: run cmd line prompt from Opus
PostPosted: December 23rd, 2018, 1:24 am 
Offline

Joined: December 1st, 2016, 5:33 pm
Posts: 14
what ever you do, do not miss one little backslash. this works for those that may be interested

var Fname = "c:\\ffmpeg\\bin\\ffmpeg.exe"
var Params = " -i C:\\ffmpeg\\surf\\Surf_Test3.mov -vf framestep=12,setpts=N/FRAME_RATE/TB C:\\tmp\\webber\\surf%d.png"
LaunchFile(Fname,Params)


For this message Gillawa has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group