abdulrahman1s / fem-dl

Frontend Masters Course Downloader That actually works.
https://npmjs.com/package/fem-dl
The Unlicense
164 stars 28 forks source link

tmp file not found #26

Open claudio4 opened 7 months ago

claudio4 commented 7 months ago

I have been trying to use this program but I always get a whatever.tmp.mkv: No such file or directory error immediatly after ffmpeg's banner (example below). I have tried to use Node v21.5.0, v18.19.0 and v16.15.1. I also tried to modify the ffmpeg-static version and I have used both 5.0.0 (recommended in other issue) and 5.1.0. But I get the same result.

The preferred quality was not found, downgraded to 1080p
⠸ Downloading captions for Introduction...
node:internal/process/esm_loader:94
    internalBinding('errors').triggerUncaughtException(
                              ^
ffmpeg version 5.0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
/home/claudio4/Downloads/Developer Productivity/1. Introduction/Introduction.tmp.mkv: No such file or directory

Thrown at:
    at loadESM (node:internal/process/esm_loader:94:31)
    at processTicksAndRejections (node:internal/process/task_queues:96:5

Any help would be appreciated.

imsrikant commented 5 months ago

I am having the same error as well. @abdulrahman1s please help.

AkinaSS commented 5 months ago

I also got the same issue too, I haven't modify anything yet since I don't know how to do so without breaking things, my ffmpeg version is 6.0 and node version is v20.11.1 from what looks like in this stack trace

⠧ Downloading captions for Introduction...
node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
⠦ Downloading captions for Introduction...
node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
/home/chikathetougemaster/Fem-videos/Build AI-Powered Apps with OpenAI and Node.js/1. Introduction/Introduction.tmp.mkv: No such file or directory

(Use `node --trace-uncaught ...` to show where the exception was thrown)

Node.js v20.11.1

I would very appreciate if someone can point me to the right direction or how to fix this, I heard that it still working but idk...

imsrikant commented 5 months ago

This error is only happening in Unix based OS.

AkinaSS commented 5 months ago

This error is only happening in Unix based OS.

True I think, btw I run this on WSL Ubuntu so I don't know...

abdulrahman1s commented 5 months ago

Is this issue happening only with this course, or is it occurring with any course you're trying to download? If it's specific to a course, please email me at mail@abdulrahman.dev with your account credentials (cookies), and I'll work on fixing it this week.

claudio4 commented 5 months ago

Is this issue happening only with this course, or is it occurring with any course you're trying to download?

With any course.

abdulrahman1s commented 5 months ago

That's strange, could you provide additional information like what distro you ware using, and what tool did you use to run the program? (npm or pnpm)

ferdinandodanise commented 5 months ago

Hi, I had same issue and I understood that the problem was about subtitles not present for that course. Try to unselect subtitles

claudio4 commented 5 months ago

That's strange, could you provide additional information like what distro you ware using, and what tool did you use to run the program? (npm or pnpm)

I tried it in OpenSUSE TW on WSL and in Debian bookworm on a VM. In oS I used both npm and pnpm, in Deb I only tried npm.

AkinaSS commented 5 months ago

Is this issue happening only with this course, or is it occurring with any course you're trying to download? If it's specific to a course, please email me at mail@abdulrahman.dev with your account credentials (cookies), and I'll work on fixing it this week.

Consider that me and the author of the issue try to download different courses and got the same error, I think it looks like it's every course applied For more information, I run it in Ubuntu on WSL, I don't know the correct version but I download it straight from the Microsoft Store (the first one on search) so it's safe to assume that it's the newest version of it. I tried both npm and pnpm but it gives the same error The only thing I notice is when it's failed to download, the only thing it leaves back is a vtt file like here, probably for the video subtitle, the rest is not found

chikathetougemaster@LAPTOP-8U2KT215:~$ ls Fem-videos/Build\ AI-Powered\ Apps\ with\ OpenAI\ and\ Node.js/1.\ Introduction/
Introduction.vtt

Hi, I had same issue and I understood that the problem was about subtitles not present for that course. Try to unselect subtitles

I see but the course I try to download does have subtitles though if you checked, so I don't think that's the case

nooreldeensalah commented 2 months ago

We can conclude that this is a compatibility issue on Unix-based systems, I've found an old fork that works on Linux. The fork is 17 commits behind https://github.com/kruzkasu223/fem-dl-working/tree/master, my assumptions are perhaps the code broke while refactoring.

Thought I'd post this so others who get the issue get to try to use this solution