jeantje Posted January 18, 2009 Share Posted January 18, 2009 (edited) How could i get the red part and update it in an label Edited January 18, 2009 by jeantje Link to comment Share on other sites More sharing options...
FireFox Posted January 18, 2009 Share Posted January 18, 2009 @jeantje WinGetText and String functions Cheers, FireFox. Link to comment Share on other sites More sharing options...
autoitter Posted January 18, 2009 Share Posted January 18, 2009 If you start ffmpeg as a child process using Run() you could use StdOutRead() to read and parse the output of ffmpeg. Link to comment Share on other sites More sharing options...
jeantje Posted January 18, 2009 Author Share Posted January 18, 2009 @autoitter Could u give an example Link to comment Share on other sites More sharing options...
FireFox Posted January 18, 2009 Share Posted January 18, 2009 @jeantje $ffmpeg = Run(@ComSpec & ' /C ' & 'ffmpeg -i Unconverted.avi -b 512k -vcodec msmpeg4v2 Converted.avi', '', @SW_HIDE) StdOutRead($ffmpeg) Cheers, FireFox. Link to comment Share on other sites More sharing options...
jeantje Posted January 18, 2009 Author Share Posted January 18, 2009 $ffmpeg = Run(@ComSpec & " /C " & "ffmpeg.exe -i sdf.mp4 -f avi -r 10 -s 256x192 -b 192k -bt 64k -vcodec mpeg4 -deinterlace -acodec mp3 -ar 32000 -ab 96k -ac 2 tuna-vids.avi","",@SW_HIDE) $Out = StdOutRead($ffmpeg) While 1 MsgBox(0,$Out,"") WEnd This gives nothing? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 18, 2009 Developers Share Posted January 18, 2009 That's not surprising.... have a look at the helpfile at the shown examples for these commands. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 18, 2009 Developers Share Posted January 18, 2009 No need to PM me, just post here. Try: #include <Constants.au3> $ffmpeg = Run(@ComSpec & " /C " & "ffmpeg.exe -i sdf.mp4 -f avi -r 10 -s 256x192 -b 192k -bt 64k -vcodec mpeg4 -deinterlace -acodec mp3 -ar 32000 -ab 96k -ac 2 tuna-vids.avi", "", @SW_HIDE,$STDERR_MERGED) Sleep(500) While 1 $Out = StdoutRead($ffmpeg) MsgBox(0, $Out, "") WEnd Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jeantje Posted January 18, 2009 Author Share Posted January 18, 2009 No need to PM me, just post here. Try: #include <Constants.au3> $ffmpeg = Run(@ComSpec & " /C " & "ffmpeg.exe -i sdf.mp4 -f avi -r 10 -s 256x192 -b 192k -bt 64k -vcodec mpeg4 -deinterlace -acodec mp3 -ar 32000 -ab 96k -ac 2 tuna-vids.avi", "", @SW_HIDE,$STDERR_MERGED) Sleep(500) While 1 $Out = StdoutRead($ffmpeg) MsgBox(0, $Out, "") WEnd Jos ok that's done so thank you but i have another question it returns something in a messagebox and now i only want to set the value in the red box on the image in an label so how do i do that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now