From ac1cf91adcca0f2005739b140a3bb8b4d94e280b Mon Sep 17 00:00:00 2001 From: nin0dev Date: Mon, 24 Jun 2024 03:54:37 -0400 Subject: [PATCH] Added separate browser handling Chromium shits itself if i give it a streamed output from ffmpeg, so i just do old behavior of downloading file if its not a firefox browser --- videobundler/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videobundler/main.py b/videobundler/main.py index 2728f3b..d3be5d5 100644 --- a/videobundler/main.py +++ b/videobundler/main.py @@ -52,7 +52,7 @@ async def merge(request): return web.FileResponse( path=f"{job_id}.mp4" ) - cmdline = f"ffmpeg -i \"https://eu-proxy.poketube.fun/latest_version?id={video_id}&itag={audio_itag}&local=true\" -i \"https://eu-proxy.poketube.fun/latest_version?id={video_id}&itag={video_itag}&local=true\" -c copy -f mp4 -movflags frag_keyframe+empty_moov -" + cmdline = f"ffmpeg -i \"https://eu-proxy.poketube.fun/latest_version?id={video_id}&itag={audio_itag}&local=true\" -i \"https://eu-proxy.poketube.fun/latest_version?id={video_id}&itag={video_itag}&local=true\" -c copy -f mp4 -movflags frag_keyframe+empty_moov --duration 300 -" #proc_ffmpeg = await asyncio.create_subprocess_shell( # cmdline, # stdout=asyncio.subprocess.PIPE