H
helder227
Guest
Hi hello i try to extract a frame from a video.mp4 to image.jpg with ffmpeg on visual studio 2012
wen i try to extract the frame it give me an error on ffmpeg.
wen the form is load you have a button to chose a video.mp4 the its copy this file to the same folder of ffmpeg and then the command to extract, bellow image
This is my error
invalid data found wen processing input

This is my code
Private Sub executeffmpegextractthumb()
'Dim p As Process = Process.Start("cmd", "/k ffmpeg.exe -i " + TextBox1.Text + " -framerate 5/1 -filter:v fps=" + TextBox2.Text + " C:\Program Files\mdlabs_media_browser\media video maker\temp\out%02d.jpg")
Dim p As Process = Process.Start("cmd", "/k ffmpeg -i " + TextBox1.Text + " -vcodec mjpeg -qscale 0 -f image2 temp.jpg")
p.WaitForExit()
If p.HasExited Then
MsgBox("The Extraction Are Finish...")
End If
End Sub
Continue reading...
wen i try to extract the frame it give me an error on ffmpeg.
wen the form is load you have a button to chose a video.mp4 the its copy this file to the same folder of ffmpeg and then the command to extract, bellow image
This is my error
invalid data found wen processing input

This is my code
Private Sub executeffmpegextractthumb()
'Dim p As Process = Process.Start("cmd", "/k ffmpeg.exe -i " + TextBox1.Text + " -framerate 5/1 -filter:v fps=" + TextBox2.Text + " C:\Program Files\mdlabs_media_browser\media video maker\temp\out%02d.jpg")
Dim p As Process = Process.Start("cmd", "/k ffmpeg -i " + TextBox1.Text + " -vcodec mjpeg -qscale 0 -f image2 temp.jpg")
p.WaitForExit()
If p.HasExited Then
MsgBox("The Extraction Are Finish...")
End If
End Sub
Continue reading...