1
Fork 0

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
This commit is contained in:
nin0dev 2024-06-24 03:54:37 -04:00
parent f16ebe8aa3
commit ac1cf91adc

View file

@ -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