c# - how to combine all chunk videos path into text file using ffmpeg -


task create final output video combining chunk videos recording webcam using ffmpeg.

for that, created process passing ffmpeg command argument , save chunk videos local folder.

code snippet:

process =new process(); process.startinfo.filename = directory.getcurrentdirectory() + @"\ffmpeg.exe"; process.startinfo.arguments = "-re -rtbufsize 1000m -f dshow -i video=" + "\"" + viddevname + "\"" + " -acodec libvo_aacenc -ab 48kb -ar 22050 -ac 2 -b:a 128k -vcodec libx264 -r 25 -s 480x360 -pix_fmt yuv420p -preset medium -segment_time 10 -f segment output%03d.mp4"; process.start(); 

its working fine. now, have create text file of listing chunk videos path , can create final output video using "-f concat -safe 0 -i mylist.txt -c copy output.mp4" argument.

am stuck in creating text file listing chunk videos path in c#. have used (for %i in (*.wav) @echo file '%i') > mylist.txt create text file. working fine in command prompt not in c# application. please suggest on this.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -