kewlbear / YoutubeDL

An iOS app using youtube-dl Python module with PythonKit Swift package
MIT License
210 stars 36 forks source link

You have requested downloading the video partially, but ffmpeg is not installed #19

Closed kientux closed 8 months ago

kientux commented 8 months ago

I'm facing this error when using example app:

You have requested downloading the video partially, but ffmpeg is not installed. Aborting

This is because of this line in python ffmpeg handler:

raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), args[0])

image

When I remove the line, it run through communicate function but after all it throws AttributionError:

Popen.__init__: <yt_dlp.utils.Popen object at 0x126d28160> (['ffmpeg', '-bsfs'],)
Popen.communicate: <yt_dlp.utils.Popen object at 0x126d28160> () {'timeout': None}
Popen.kill: <yt_dlp.utils.Popen object at 0x126d28160>
Popen.wait: <yt_dlp.utils.Popen object at 0x126d28160> {'timeout': None}
ERROR: 'Popen' object has no attribute '_Pop__args'

Please explain the python handler code, I have very little knowledge about python @kewlbear, thanks!

kewlbear commented 8 months ago

@kientux Thanks for reporting! Fixed it. Please update YoutubeDL-iOS package.