implemented looping of video stream & muxing to final output
This commit is contained in:
		| @@ -62,3 +62,8 @@ with open('list.txt', 'w') as f: | |||||||
|     for i in range(timesLoop): |     for i in range(timesLoop): | ||||||
|         print("file '{}'".format(shorterFile), file=f) |         print("file '{}'".format(shorterFile), file=f) | ||||||
|  |  | ||||||
|  | call(('/usr/bin/env', 'ffmpeg', '-f', 'concat', '-i', 'list.txt', '-c', 'copy', 'loopedvideo.mp4')) | ||||||
|  | call(('/usr/bin/env', 'ffmpeg', '-i', 'loopedvideo.mp4', | ||||||
|  |                                 '-i', FILES[Stream.AUDIO], | ||||||
|  |                                 '-map', '0', '-map', '1', | ||||||
|  |                                 '-c', 'copy', 'output.mp4')) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user