Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi!
I'm creating a screen recorder using FFMpeg.
All works, if i double click a .bat file i obtain a .mkv file.
But, automatic, if i open the .bat file using
VB
Process.Start("Path to batch file"), 
the batch file fails because all %% from the .bat are replaced with %. I tried to escape using %%%% but not working.

Thanks!

P.S. I replaced Path to batch file with my batch file path.

It doesn't worked with %% or %%%% because ffmpeg.exe path wasn't
VB
ProcessStartInfo.WorkingDirectory


It was the Project path\bin\debug folder. Sorry for asking without checking the Autos. :D
Posted
Updated 5-Jun-15 5:32am
v2
Comments
Tomas Takac 5-Jun-15 7:01am    
If the %% gets replaced then why doubling them didn't work?
Richard MacCutchan 5-Jun-15 8:44am    
Show us the content of your batch file.
Adrian Andrei 5-Jun-15 11:28am    
ffmpeg -framerate 20 -f image2 -i frame%%d.png -codec copy video.mkv
ZurdoDev 5-Jun-15 11:38am    
If this fixed the issue then please post as solution so that it no longer shows unsolved.

1 solution

Check the autos.
Check if ffmpeg images folder is the Process.WorkingDirectory.
Check if images are png files.
Check if there are some problems with your code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900