import osĬommand = "ffmpeg -fflags discardcorrupt -i " os.path.join(path, filename) " -c copy -map 0 -segment_time 00:00:03 -f segment -reset_timestamps 1 " os.path.join(path, "outputd. Note: I used os.path.join() to save the output file in that same directory because my python file was in another one. Here's the correct code, however I recommend to you to read this. I assumed every other argument is correct, for me it didn't work at first, I just had to add Otherwise, you would get an error like Unrecognized option 'iC:\Users\user\Desktop\folder\filename.mp4-c'.Įrror splitting the argument list: Option not found after the first run through, to make sure the start and endpoints are correct, it prints the start and end points. The syntax " filename " is correct, however there must be a space before and after command = "ffmpeg -i " filename " -c copy -map 0 -segment_time 00:00:06 -f segment -reset_timestamps 1 outputd.mp4" Now, it runs a loop for the number of parts, to convert a video with the start point (denoted in the ffmpeg command as -ss) originally 0, and the end point ( -t ), originally the length of 1 part (in our case 400). It's a tkinter widget that can be used for all sorts of things. pip install ffmpeg ListBox A list box is a box that holds a list of items. It is used to convert files, trim video and audio files, reduce the file size and crop the video, etc. First of all, there's a typo in the syntax, as you wrote - i while the correct syntax is -i. Using ffmpeg we can manipulate all multimedia files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |