c# - How can i fix ( combine 1 audio and 1 image) with ffmpeg -


i have create video image , wav file. video must of length of audio file. copied ffmpeg (static version) solution folder. created environment variable on windows. tried start ffmpg code inserted in c # program, not work. how can fix it?

string immagine = folderbrowserdialog1.selectedpath + "/" + nomefile + ".jpg";             bmp.save(immagine);             string video = folderbrowserdialog2.selectedpath + "/" + nomefile + ".mp4";               using (process proc  = new process())               {                 proc.startinfo.filename = "ffmpeg.exe";                  proc.startinfo.arguments = " -loop 1 -i \"" + immagine + "\" -i \"" + suono + "\" -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest " + video + " -y";                 proc.start();              } 

do simple first ... on command line issue this

ffmpeg -i myimage.jpg  -i  myaudio.wav   myout.mp4 

to combine photo , audio file output video file ... not restricted using codec (jpg, wav, mp4, aac, ogg, etc.) substitute @ ... after have proven syntax correct put these parameters system call ffmpeg


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -