mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-30 05:48:41 +01:00
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:
parent
f16ebe8aa3
commit
ac1cf91adc
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ async def merge(request):
|
||||||
return web.FileResponse(
|
return web.FileResponse(
|
||||||
path=f"{job_id}.mp4"
|
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(
|
#proc_ffmpeg = await asyncio.create_subprocess_shell(
|
||||||
# cmdline,
|
# cmdline,
|
||||||
# stdout=asyncio.subprocess.PIPE
|
# stdout=asyncio.subprocess.PIPE
|
||||||
|
|
Loading…
Reference in a new issue