Take a look how it is used in Demo scene for implementation of Progress Bar. Edit 2: Here's the output of ffmpeg -i tsfile.ts. Also, I am unable to specify the program PID to extract. The file contains the video but the audio isn't attached (no sound). Edit: Note that the file output.mpg is created. Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 1989 kb/s, SAR 1:1 DAR 3:2, 28.66 fps, 29.50 tbr, 22500 tbn, 45k tbcĪs you can see many more info about video file is available for parsing from the log in OnProgress method. ffmpeg -i tsfile.ts -vcodec copy -acodec copy -q:v 1 output.mpg. You can do it parsing first occurrence of Duration info, here is how it looks in the received log: To organize commands loop for every sliced part of video you have to know video file duration. Also you can do the same with FFmpegCommand.DirectInput method for more flexibility.įor custom command implementation take a look here: You can use FFmpegCommand.Trim method in the loop starting it every time when OnFinish method of previous operation is called.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |