Puyodead1 / udemy-downloader

A Udemy downloader that can download courses, with DRM support.
MIT License
1.33k stars 311 forks source link

[Bug]: Stuck at merging video and audio #107

Closed ghost closed 2 years ago

ghost commented 2 years ago

What happened?

I've been trying to download this course: https://www.udemy.com/course/react-tutorial-and-projects-course/

It has been stuck on the log that I attached below for more than an hour, if I go to the directory of the course I see the video(decrypted) which I can play without audio and the audio file(that is also decrypted) which is playable, I see a .mp4 with 0 bytes in size which is most probably the file that it tries to merge both of the files(video and audio to), this error sometimes also happens when it actually merges the files successfully and the script is stuck in the "merging" state, the way I was able to confirm this is if I go to the files, instead of finding a .mp4 file with size of 0 bytes, I would find a file which fully works with audio and video, the logs of this case is the same for the first case which I attached below.

I would say it happens randomly, so I didn't notice a specific pattern in which it happens

Expected Result

A playable lecture .mp4 file is supposed to be available, and the script should continue downloading other lectures and so on

Branch

master/main

What operating systems are you seeing the problem on?

Windows

Relevant log output

[07:35:39] [udemy-downloader] [handle_segments:1182] INFO: > Decryption complete
[07:35:39] [udemy-downloader] [handle_segments:1183] INFO: > Decrypting audio, this might take a minute...
[07:35:39] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDOUT]: 'Packaging completed successfully.'
[07:35:39] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193539:INFO:demuxer.cc(89)] Demuxer::Run() on file '019 Fusion Charts - Pie Chart.encrypted.m4a'."
[07:35:39] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193539:INFO:demuxer.cc(155)] Initialize Demuxer for file '019 Fusion Charts - Pie Chart.encrypted.m4a'."
[07:35:39] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193539:INFO:single_segment_segmenter.cc(111)] Update media header (moov) and rewrite the file to '019 Fusion Charts - Pie Chart.decrypted.m4a'."
[07:35:39] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193539:INFO:mp4_muxer.cc(186)] MP4 file '019 Fusion Charts - Pie Chart.decrypted.m4a' finalized."
[07:35:39] [udemy-downloader] [handle_segments:1189] INFO: > Decryption complete
[07:35:39] [udemy-downloader] [handle_segments:1190] INFO: > Merging video and audio, this might take a minute...
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'ffmpeg version 2021-11-18-git-85a6b7f7b7-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'built with gcc 11.2.0 (Rev2, Built by MSYS2 project)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libavutil      57.  9.100 / 57.  9.100'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libavcodec     59. 13.100 / 59. 13.100'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libavformat    59.  9.101 / 59.  9.101'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libavdevice    59.  0.101 / 59.  0.101'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libavfilter     8. 17.100 /  8. 17.100'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libswscale      6.  1.100 /  6.  1.100'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libswresample   4.  0.100 /  4.  0.100'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'libpostproc    56.  0.100 / 56.  0.100'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '019 Fusion Charts - Pie Chart.decrypted.mp4':"
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Metadata:'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'major_brand     : mp41'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'minor_version   : 0'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'compatible_brands: iso8isommp41dashavc1cmfc'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'creation_time   : 2022-03-04T17:35:38.000000Z'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Duration: 00:07:13.17, start: 0.172033, bitrate: 854 kb/s'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 12 kb/s, 30 fps, 30 tbr, 30k tbn (default)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Metadata:'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'creation_time   : 2022-03-04T17:35:38.000000Z'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'handler_name    : VideoHandler'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'vendor_id       : [0][0][0][0]'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'encoder         : AVC Coding'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: "Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '019 Fusion Charts - Pie Chart.decrypted.m4a':"
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Metadata:'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'major_brand     : mp41'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'minor_version   : 0'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'compatible_brands: iso8isommp41dashcmfc'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'creation_time   : 2022-03-04T17:35:39.000000Z'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Duration: 00:07:13.11, start: 0.000000, bitrate: 63 kb/s'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream #1:0[0x1](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 0 kb/s (default)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Metadata:'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'creation_time   : 2022-03-04T17:35:39.000000Z'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'handler_name    : SoundHandler'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'vendor_id       : [0][0][0][0]'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: "Output #0, mp4, to 'D:\\udemy-downloader\\out_dir\\react-tutorial-and-projects-course\\07 - Search Github Users\\019 Fusion Charts - Pie Chart.mp4':"
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Metadata:'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'title           : 019 Fusion Charts - Pie Chart'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 12 kb/s, 30 fps, 30 tbr, 30k tbn (default)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream #0:1: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 0 kb/s (default)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream mapping:'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream #0:0 -> #0:0 (copy)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Stream #1:0 -> #0:1 (copy)'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'Press [q] to stop, [?] for help'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'frame=    1 fps=0.0 q=-1.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \rframe=12990 fps=0.0 q=-1.0 Lsize=   48670kB time=00:07:13.10 bitrate= 920.6kbits/s speed=5.93e+03x'
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [FFMPEG-STDERR]: 'video:45018kB audio:3314kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.698067%'
[07:35:40] [udemy-downloader] [handle_segments:1197] INFO: > Merging complete, removing temporary files...
[07:35:40] [udemy-downloader] [parse_new:1444] INFO:   > Processing lecture 263 of 414
[07:35:40] [udemy-downloader] [process_lecture:1346] INFO:       > Lecture '020 Calculate Most Used Language' has DRM, attempting to download
[07:35:40] [udemy-downloader] [handle_segments:1139] INFO: > Downloading Lecture Tracks...
[07:35:40] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[generic] index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3V0L3YxLzY5MjUxOTM5MTA4NjQ2MDE4ZGMxYjg4MmUxODk0MmUxLzA2YzhkYzEyZGEyNzQ1ZjFiMGI0ZTdjMmMwMzJkZmVmLzg0MmQ0YjhlMmUwMTRmYmJiODdjNjQwZGRjODlkMDM2LyIsImV4cCI6MTY0NjQzMDc0NH0: Requesting header'
[07:35:41] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[generic] index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3V0L3YxLzY5MjUxOTM5MTA4NjQ2MDE4ZGMxYjg4MmUxODk0MmUxLzA2YzhkYzEyZGEyNzQ1ZjFiMGI0ZTdjMmMwMzJkZmVmLzg0MmQ0YjhlMmUwMTRmYmJiODdjNjQwZGRjODlkMDM2LyIsImV4cCI6MTY0NjQzMDc0NH0: Downloading webpage'
[07:35:43] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[generic] index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3V0L3YxLzY5MjUxOTM5MTA4NjQ2MDE4ZGMxYjg4MmUxODk0MmUxLzA2YzhkYzEyZGEyNzQ1ZjFiMGI0ZTdjMmMwMzJkZmVmLzg0MmQ0YjhlMmUwMTRmYmJiODdjNjQwZGRjODlkMDM2LyIsImV4cCI6MTY0NjQzMDc0NH0: Extracting information'
[07:35:43] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[info] index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3V0L3YxLzY5MjUxOTM5MTA4NjQ2MDE4ZGMxYjg4MmUxODk0MmUxLzA2YzhkYzEyZGEyNzQ1ZjFiMGI0ZTdjMmMwMzJkZmVmLzg0MmQ0YjhlMmUwMTRmYmJiODdjNjQwZGRjODlkMDM2LyIsImV4cCI6MTY0NjQzMDc0NH0: Downloading 2 format(s): 8, 9'
[07:35:43] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[dashsegments] Total fragments: 189'
[07:35:43] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[dashsegments] Fragment downloads will be delegated to aria2c'
[07:35:43] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[download] Destination: 020 Calculate Most Used Language.encrypted.mp4'
[07:36:23] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[DL:40KiB][#1c834f 0B/523KiB(0%)][#bf2a1c 0B/1.0MiB(0%)][#3440a4 0B/0B][#3493e6\r
 \r[DL:4.7MiB][#1c834f 480KiB/523KiB(91%)][#bf2a1c 896KiB/1.0MiB(83%)][#3440a4 512\r
                                           \r[DL:4.8MiB][#3440a4 1.0MiB/1.1MiB(89%)][#3493e6 0.9MiB/1.8MiB(50%)][#bb34c3 1.2\r                                                                               \r[DL:4.3MiB][#3493e6 1.2MiB/1.8MiB(64%)][#bb34c3 1.5MiB/1.8MiB(87%)][#ccbd94 1.2\r
       \r[DL:4.9MiB][#00ea45 0.9MiB/0.9MiB(98%)][#33bff2 1.2MiB/1.2MiB(100%)][#adbef2 83\r
                                                 \r[DL:5.4MiB][#adbef2 1.5MiB/1.7MiB(88%)][#f4d1a8 1.2MiB/1.3MiB(92%)][#7b2110 0.9\r                                                                               \r[DL:4.9MiB][#adbef2 1.6MiB/1.7MiB(96%)][#f7433c 864KiB/0.9MiB(91%)][#e48bd4 784\r
             \r[DL:4.7MiB][#ce9bc0 720KiB/0.9MiB(77%)][#a94c4e 672KiB/912KiB(73%)][#a737e6 752\r
                                                       \r[DL:4.4MiB][#0feb5b 560KiB/0.9MiB(58%)][#d0638a 544KiB/0.9MiB(57%)][#26d10a 512\r                                                                               \r[DL:5.4MiB][#80c1e8 1.3MiB/1.5MiB(86%)][#92f391 1.2MiB/1.3MiB(94%)][#271d1f 736\r
                   \r[DL:4.8MiB][#271d1f 1.0MiB/1.8MiB(56%)][#54b02c 1.0MiB/1.1MiB(88%)][#2b1dd3 1.0\r
                                                             \r[DL:4.7MiB][#271d1f 1.4MiB/1.8MiB(78%)][#ad96e5 0.9MiB/1.1MiB(84%)][#77260c 704\r                                                                               \r[DL:4.9MiB][#dae882 880KiB/902KiB(97%)][#1d1741 816KiB/0.9MiB(87%)][#03b423 816\r
                         \r[DL:4.9MiB][#03b423 1.3MiB/1.5MiB(85%)][#0ab78d 800KiB/0.9MiB(82%)][#ae2714 800\r
                                                                   \r[DL:4.3MiB][#fd6111 1.0MiB/1.5MiB(68%)][#02c5d9 1.0MiB/1.2MiB(85%)][#6e3e15 672\r                                                                               \r[DL:4.7MiB][#f46637 1.1MiB/1.4MiB(78%)][#416f5c 768KiB/885KiB(86%)][#b6f7a7 672\r
                               \r[DL:5.2MiB][#7e65fd 912KiB/1.0MiB(85%)][#477e20 624KiB/0.9MiB(62%)][#2a616d 624\r                                                                               \r[DL:5.7MiB][#b222c5 736KiB/1.4MiB(50%)][#4eee32 736KiB/0.9MiB(73%)][#067c2b 736\r                                                                               \r[DL:5.6MiB][#ea456e 736KiB/1.0MiB(69%)][#edb2f6 912KiB/1.1MiB(77%)][#e973ec 496\r
                                     \r[DL:5.5MiB][#e973ec 848KiB/878KiB(96%)][#bfc7cc 832KiB/1.1MiB(67%)][#fd6d14 352\r                                                                               \r[DL:5.6MiB][#f8754e 832KiB/0.9MiB(90%)][#2af366 608KiB/837KiB(72%)][#3ca991 608\r
 \r[DL:5.9MiB][#aa547d 544KiB/0.9MiB(58%)][#3aad68 560KiB/900KiB(62%)][#ef341a 576\r
                                           \r[DL:5.6MiB][#e0b983 848KiB/890KiB(95%)][#932941 0.9MiB/1.3MiB(67%)][#6625f6 0.9\r                                                                               \r[DL:5.3MiB][#932941 1.0MiB/1.3MiB(78%)][#40227c 752KiB/852KiB(88%)][#aebeeb 176\r
       \r[DL:5.6MiB][#aebeeb 832KiB/843KiB(98%)][#eac221 832KiB/1.3MiB(61%)][#bf12ff 736\r
                                                 \r[DL:5.2MiB][#eac221 1.1MiB/1.3MiB(84%)][#e28512 1.0MiB/1.0MiB(95%)][#c80c7e 0.9\r                                                                               \r[DL:5.0MiB][#4bfae9 736KiB/840KiB(87%)][#26b3dc 752KiB/1.1MiB(65%)][#43e6c6 720\r
             \r[DL:4.6MiB][#88388c 912KiB/0.9MiB(97%)][#04846a 0.9MiB/0.9MiB(98%)][#b5b824 848\r
                                                       \r[DL:4.7MiB][#8fcf39 0.9MiB/1.2MiB(74%)][#00d477 624KiB/0.9MiB(64%)][#6c612e 608\r                                                                               \r[DL:4.5MiB][#cad774 0.9MiB/1.4MiB(64%)][#e1d61a 784KiB/0.9MiB(82%)][#0a4993 704\r
                   \r[DL:4.3MiB][#e871d3 1.1MiB/1.7MiB(68%)][#1b406f 704KiB/0.9MiB(75%)][#13d6ca 864\r
                                                             \r[DL:4.5MiB][#579120 1.0MiB/1.1MiB(94%)][#07093a 1.0MiB/1.4MiB(76%)][#5d1d00 1.0\r                                                                               \r[DL:4.8MiB][#59e62f 0.9MiB/1.0MiB(95%)][#ea44f0 0.9MiB/1.0MiB(90%)][#b9ae4b 0.9\r
                         \r[DL:4.5MiB][#2f57f8 800KiB/0.9MiB(81%)][#492ef9 832KiB/1.0MiB(79%)][#7e63ad 816\r
                                                                   \r[DL:4.5MiB][#a7c1a6 864KiB/0.9MiB(92%)][#3f9b00 0.9MiB/0.9MiB(96%)][#d61593 768\r[aria2c] Downloaded 199748882 bytes'
[07:36:23] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[download] 100% of 190.50MiB in 00:39'
[07:36:23] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[dashsegments] Total fragments: 189'
[07:36:23] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[dashsegments] Fragment downloads will be delegated to aria2c'
[07:36:23] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[download] Destination: 020 Calculate Most Used Language.encrypted.m4a'
[07:36:59] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[DL:0B][#e315e3 0B/1.7KiB(0%)][#421d0f 0B/0B][#026108 0B/0B][#4338c5 0B/0B][#90\r
 \r[DL:269B][#421d0f 0B/50KiB(0%)][#026108 0B/50KiB(0%)][#4338c5 0B/49KiB(0%)][#90\r
                                           \r[DL:90KiB][#421d0f 32KiB/50KiB(62%)][#b60428 0B/0B][#424beb 0B/0B][#58a745 0B/0\r                                                                               \r[DL:208KiB][#424beb 0B/50KiB(0%)][#58a745 0B/49KiB(0%)][#651361 0B/50KiB(0%)][#\r
       \r[DL:321KiB][#eeda8f 0B/50KiB(0%)][#a8ff61 0B/0B][#9d9fc1 0B/0B][#befe0d 0B/0B][\r
                                                 \r[DL:247KiB][#eeda8f 0B/50KiB(0%)][#a8ff61 0B/49KiB(0%)][#9d9fc1 0B/49KiB(0%)][#\r                                                                               \r[DL:313KiB][#a191a5 0B/0B][#b58d46 0B/0B][#77d012 0B/0B][#1bca18 0B/0B][#d21585\r
             \r[DL:254KiB][#a191a5 0B/50KiB(0%)][#b58d46 0B/50KiB(0%)][#77d012 0B/49KiB(0%)][#\r
                                                       \r[DL:277KiB][#78e03f 0B/0B][#47f2de 0B/0B][#0348fd 0B/0B][#d4ef62 0B/50KiB(0%)][\r                                                                               \r[DL:249KiB][#78e03f 0B/50KiB(0%)][#47f2de 0B/50KiB(0%)][#0348fd 0B/50KiB(0%)][#\r
                   \r[DL:363KiB][#45f59a 0B/0B][#62f7c5 0B/0B][#ec4199 0B/0B][#0018ad 0B/0B][#c5dd65\r
                                                             \r[DL:258KiB][#45f59a 0B/50KiB(0%)][#62f7c5 0B/50KiB(0%)][#ec4199 0B/0B][#0018ad \r                                                                               \r[DL:356KiB][#370c91 0B/0B][#88bc0a 0B/0B][#4636ce 0B/0B][#b81f27 0B/0B][#fe7610\r
                         \r[DL:259KiB][#370c91 0B/50KiB(0%)][#88bc0a 0B/49KiB(0%)][#4636ce 0B/49KiB(0%)][#\r
                                                                   \r[DL:375KiB][#47388c 0B/0B][#eeac9a 0B/0B][#a041c3 0B/0B][#63090f 0B/0B][#e90441\r                                                                               \r[DL:265KiB][#47388c 0B/50KiB(0%)][#eeac9a 0B/50KiB(0%)][#a041c3 0B/49KiB(0%)][#\r
                               \r[DL:349KiB][#bca486 0B/0B][#fd2245 0B/0B][#6cdb6a 0B/0B][#2cdb22 0B/0B][#2a5614\r                                                                               \r[DL:265KiB][#bca486 0B/50KiB(0%)][#fd2245 0B/50KiB(0%)][#6cdb6a 0B/49KiB(0%)][#\r                                                                               \r[DL:342KiB][#779bd0 0B/0B][#a8bf63 16KiB/50KiB(31%)][#46c97b 0B/49KiB(0%)][#341\r
                                     \r[DL:347KiB][#438343 0B/0B][#67d366 0B/0B][#b2503a 0B/0B][#ff1a09 0B/0B][#8abe24\r                                                                               \r[DL:350KiB][#438343 0B/50KiB(0%)][#67d366 0B/0B][#b2503a 0B/49KiB(0%)][#ff1a09 \r
 \r[DL:354KiB][#adb03b 0B/0B][#628039 0B/0B][#0cd65d 0B/0B][#3b900e 0B/0B][#43a965\r[aria2c] Downloaded 9599582 bytes'
[07:36:59] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDOUT]: '[download] 100% of 9.15MiB in 00:36'
[07:36:59] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDERR]: 'WARNING: You have asked for UNPLAYABLE formats to be listed/downloaded. This is a developer option intended for debugging.'
[07:36:59] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDERR]: 'If you experience any issues while using this option, DO NOT open a bug report'
[07:36:59] [udemy-downloader] [log_subprocess_output:57] DEBUG: [YTDLP-STDERR]: 'WARNING: [generic] Forcing on generic information extractor.'
[07:36:59] [udemy-downloader] [handle_segments:1154] INFO: > Lecture Tracks Downloaded
[07:36:59] [udemy-downloader] [handle_segments:1163] INFO: KID for video file is: 156AC5DCE1404F21A8553879A9D43DE5
[07:36:59] [udemy-downloader] [handle_segments:1170] INFO: KID for audio file is: 156AC5DCE1404F21A8553879A9D43DE5
[07:36:59] [udemy-downloader] [handle_segments:1176] INFO: > Decrypting video, this might take a minute...
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDOUT]: 'Packaging completed successfully.'
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193659:INFO:demuxer.cc(89)] Demuxer::Run() on file '020 Calculate Most Used Language.encrypted.mp4'."
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193659:INFO:demuxer.cc(155)] Initialize Demuxer for file '020 Calculate Most Used Language.encrypted.mp4'."
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193701:INFO:single_segment_segmenter.cc(111)] Update media header (moov) and rewrite the file to '020 Calculate Most Used Language.decrypted.mp4'."
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193701:INFO:mp4_muxer.cc(186)] MP4 file '020 Calculate Most Used Language.decrypted.mp4' finalized."
[07:37:01] [udemy-downloader] [handle_segments:1182] INFO: > Decryption complete
[07:37:01] [udemy-downloader] [handle_segments:1183] INFO: > Decrypting audio, this might take a minute...
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDOUT]: 'Packaging completed successfully.'
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193701:INFO:demuxer.cc(89)] Demuxer::Run() on file '020 Calculate Most Used Language.encrypted.m4a'."
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193701:INFO:demuxer.cc(155)] Initialize Demuxer for file '020 Calculate Most Used Language.encrypted.m4a'."
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193701:INFO:single_segment_segmenter.cc(111)] Update media header (moov) and rewrite the file to '020 Calculate Most Used Language.decrypted.m4a'."
[07:37:01] [udemy-downloader] [log_subprocess_output:57] DEBUG: [SHAKA-STDERR]: "[0304/193701:INFO:mp4_muxer.cc(186)] MP4 file '020 Calculate Most Used Language.decrypted.m4a' finalized."
[07:37:01] [udemy-downloader] [handle_segments:1189] INFO: > Decryption complete
[07:37:01] [udemy-downloader] [handle_segments:1190] INFO: > Merging video and audio, this might take a minute...

Other information

If there is any other information that you would like me to provide, I would provide happily thank you

Puyodead1 commented 2 years ago

If there's a 0mb file, that usually indicates that ffmpeg is doing something, but the fact that it is stuck and also not outputting any logs is odd. Have you tried interrupting it with control + c and restarting it?

ghost commented 2 years ago

If there's a 0mb file, that usually indicates that ffmpeg is doing something, but the fact that it is stuck and also not outputting any logs is odd. Have you tried interrupting it with control + c and restarting it?

Yes I actually tried to ctrl + c, but it seems like as if my cmd isn't responding, I'm using Windows 11 and Windows Terminal(the new cmd app for windows) but if I create another tab, I can type commands and everything, I left it till now and wanted to see if it will be back ill try restarting(the cmd) and let you know how it goes

ghost commented 2 years ago

After closing the cmd it seemed like the size of the 0 bytes file suddenly changed to the size that it should be, which is weird, and I think this is the bug that I related in the OP to this, but I never noticed this is how it happens this error sometimes also happens when it actually merges the files successfully and the script is stuck in the "merging" state, the way I was able to confirm this is if I go to the files, instead of finding a .mp4 file with size of 0 bytes, I would find a file which fully works with audio and video, the logs of this case is the same for the first case which I attached below. I'll try changing the ffmpeg version, I was running the 2021-11-18-git-85a6b7f7b7-full_build-www.gyan.dev build ill try with the latest build and see if its related

superman2197 commented 2 years ago

If there's a 0mb file, that usually indicates that ffmpeg is doing something, but the fact that it is stuck and also not outputting any logs is odd. Have you tried interrupting it with control + c and restarting it?

@Puyodead1

Similar issue I also mentioned in thread https://github.com/Puyodead1/udemy-downloader/issues/88 along with the logs.

Puyodead1 commented 2 years ago

After closing the cmd it seemed like the size of the 0 bytes file suddenly changed to the size that it should be, which is weird, and I think this is the bug that I related in the OP to this, but I never noticed this is how it happens this error sometimes also happens when it actually merges the files successfully and the script is stuck in the "merging" state, the way I was able to confirm this is if I go to the files, instead of finding a .mp4 file with size of 0 bytes, I would find a file which fully works with audio and video, the logs of this case is the same for the first case which I attached below. I'll try changing the ffmpeg version, I was running the 2021-11-18-git-85a6b7f7b7-full_build-www.gyan.dev build ill try with the latest build and see if its related

Did you have a chance to try the latest version?

ghost commented 2 years ago

After closing the cmd it seemed like the size of the 0 bytes file suddenly changed to the size that it should be, which is weird, and I think this is the bug that I related in the OP to this, but I never noticed this is how it happens this error sometimes also happens when it actually merges the files successfully and the script is stuck in the "merging" state, the way I was able to confirm this is if I go to the files, instead of finding a .mp4 file with size of 0 bytes, I would find a file which fully works with audio and video, the logs of this case is the same for the first case which I attached below. I'll try changing the ffmpeg version, I was running the 2021-11-18-git-85a6b7f7b7-full_build-www.gyan.dev build ill try with the latest build and see if its related

Did you have a chance to try the latest version?

Yes I forgot to reply my bad, and the same issue occurred with the newer version

Puyodead1 commented 2 years ago

108 - merged to master