![]() ![]() ![]() Ī 2hours movie is done in about 45 minutes with 40 to 50 fps encoding and ending up of a size of 2gb movie very high quality This is the command i find to give the best quality overall and good size with my computer. See the MediaInfo of the audio converted file: See the MediaInfo from original m2ts file. But the converted m2ts file had 2 minutes of playback less. I don't know if it's a bug, but I tried to extract pcm audio from an m2ts file, and the program failed in this task. ![]() execute () if _name_ = "_main_" : asyncio. on ( "progress" ) def time_to_terminate ( progress : Progress ): if progress. output ( "output.mp4", vcodec = "copy" ) ). input (, rtsp_transport = "tcp", rtsp_flags = "prefer_tcp", ). execute () if _name_ = "_main_" : main () Asynchronous API import asyncio from ffmpeg import Progress from ffmpeg.asyncio import FFmpeg async def main (): ffmpeg = ( FFmpeg (). ![]() run ( main ()) Recording Synchronous API from ffmpeg import FFmpeg, Progress def main (): ffmpeg = ( FFmpeg (). Transcoding Synchronous API from ffmpeg import FFmpeg, Progress def main (): ffmpeg = ( FFmpeg (). You can find more examples in the documentation. To install python-ffmpeg, simply use pip: $ pip install python-ffmpeg A python binding for FFmpeg which provides sync and async APIs Help ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |