Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: On Linux, ffmpeg-static binary is unable to download content if nscd daemon is not running. #101

Closed
jojobii-arks opened this issue Mar 29, 2023 · 11 comments

Comments

@jojobii-arks
Copy link
Contributor

jojobii-arks commented Mar 29, 2023

New info, see #101 (comment)

Previously titled - Bug: Unable to download content in formats that rely on ffmpeg when running Cobalt in Ubuntu/WSL

Original Issue below:


Issue

  • When running Cobalt in an Ubuntu environment, attempting to download an audio/video file in formats that utilize ffmpeg to process results in the downloaded file being blank.
    • Selecting "Best" for Audio Format is still functional in Ubuntu environment somehow...
  • When running Cobalt in Windows, it works as expected.

Steps to Reproduce.

  • On Windows
    • Clone repository, run npm run setup with default values for localhost environment. npm start and open Cobalt on browser. Attempt to download a YouTube Video in different formats and observe normal behavior.
  • On WSL/Ubuntu
    • Follow the same steps as Windows. Use the same YouTube Video. Observe files being downloaded as empty except for Audio Only + Format: Best.

Additional Notes

ffmpeg started on 2023-03-28 at 20:35:44
Report written to "ffmpeg-20230328-203544.log"
Log level: 48
Command line:
/home/jojobii/workspaces/cobalt-epic-style/node_modules/ffmpeg-static/ffmpeg -loglevel -8 -i "https://rr1---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680082544&ei=ELIjZK25Mp6csfIPutWDoA8&ip=136.52.91.139&id=o-AFoRoqHha1qZcqaa2zkNy0xtkOHV2sugMNVLQH5CDxyO&itag=251&source=youtube&requiressl=yes&mh=qo&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenle&ms=au%2Crdu&mv=m&mvi=1&pl=20&initcwndbps=2086250&spc=99c5CTiil2vDhQvg8aCoSNL1Aas5VBBNPXCiPXu0RMBUHE-xxw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=42542&dur=3.621&lmt=1679280854098011&mt=1680060775&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgSQDFWQfS7U7lx9Vuj0zX8VBrtG-XzzZSOi4rV1rXNfoCIQDmR_8QO5ZXEfZhnLYYW_1Q7irDUKYwFV_IPip1eDFQ3Q%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAK1rPHdE28-qaDZ6LUm_pthyNBWhgjH3o0I2v0eRD4JYAiEA9KSgkPZP1SMDy16zY_Qvmq3JXRE5elTS85qrBwJFLv8%3D" -vn -metadata "title=maow" -metadata "artist=Tuvy" -report -ar 48000 -ac 2 -b:a 320k -f mp3 pipe:3
ffmpeg version 5.0.1-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
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '-8'.
Reading option '-i' ... matched as input url with argument 'https://rr1---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680082544&ei=ELIjZK25Mp6csfIPutWDoA8&ip=136.52.91.139&id=o-AFoRoqHha1qZcqaa2zkNy0xtkOHV2sugMNVLQH5CDxyO&itag=251&source=youtube&requiressl=yes&mh=qo&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenle&ms=au%2Crdu&mv=m&mvi=1&pl=20&initcwndbps=2086250&spc=99c5CTiil2vDhQvg8aCoSNL1Aas5VBBNPXCiPXu0RMBUHE-xxw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=42542&dur=3.621&lmt=1679280854098011&mt=1680060775&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgSQDFWQfS7U7lx9Vuj0zX8VBrtG-XzzZSOi4rV1rXNfoCIQDmR_8QO5ZXEfZhnLYYW_1Q7irDUKYwFV_IPip1eDFQ3Q%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAK1rPHdE28-qaDZ6LUm_pthyNBWhgjH3o0I2v0eRD4JYAiEA9KSgkPZP1SMDy16zY_Qvmq3JXRE5elTS85qrBwJFLv8%3D'.
Reading option '-vn' ... matched as option 'vn' (disable video) with argument '1'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'title=maow'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'artist=Tuvy'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '48000'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '320k'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mp3'.
Reading option 'pipe:3' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument -8.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url https://rr1---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680082544&ei=ELIjZK25Mp6csfIPutWDoA8&ip=136.52.91.139&id=o-AFoRoqHha1qZcqaa2zkNy0xtkOHV2sugMNVLQH5CDxyO&itag=251&source=youtube&requiressl=yes&mh=qo&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenle&ms=au%2Crdu&mv=m&mvi=1&pl=20&initcwndbps=2086250&spc=99c5CTiil2vDhQvg8aCoSNL1Aas5VBBNPXCiPXu0RMBUHE-xxw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=42542&dur=3.621&lmt=1679280854098011&mt=1680060775&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgSQDFWQfS7U7lx9Vuj0zX8VBrtG-XzzZSOi4rV1rXNfoCIQDmR_8QO5ZXEfZhnLYYW_1Q7irDUKYwFV_IPip1eDFQ3Q%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAK1rPHdE28-qaDZ6LUm_pthyNBWhgjH3o0I2v0eRD4JYAiEA9KSgkPZP1SMDy16zY_Qvmq3JXRE5elTS85qrBwJFLv8%3D.
Successfully parsed a group of options.
Opening an input file: https://rr1---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680082544&ei=ELIjZK25Mp6csfIPutWDoA8&ip=136.52.91.139&id=o-AFoRoqHha1qZcqaa2zkNy0xtkOHV2sugMNVLQH5CDxyO&itag=251&source=youtube&requiressl=yes&mh=qo&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenle&ms=au%2Crdu&mv=m&mvi=1&pl=20&initcwndbps=2086250&spc=99c5CTiil2vDhQvg8aCoSNL1Aas5VBBNPXCiPXu0RMBUHE-xxw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=42542&dur=3.621&lmt=1679280854098011&mt=1680060775&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgSQDFWQfS7U7lx9Vuj0zX8VBrtG-XzzZSOi4rV1rXNfoCIQDmR_8QO5ZXEfZhnLYYW_1Q7irDUKYwFV_IPip1eDFQ3Q%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAK1rPHdE28-qaDZ6LUm_pthyNBWhgjH3o0I2v0eRD4JYAiEA9KSgkPZP1SMDy16zY_Qvmq3JXRE5elTS85qrBwJFLv8%3D.
[NULL @ 0x5a023c0] Opening 'https://rr1---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680082544&ei=ELIjZK25Mp6csfIPutWDoA8&ip=136.52.91.139&id=o-AFoRoqHha1qZcqaa2zkNy0xtkOHV2sugMNVLQH5CDxyO&itag=251&source=youtube&requiressl=yes&mh=qo&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenle&ms=au%2Crdu&mv=m&mvi=1&pl=20&initcwndbps=2086250&spc=99c5CTiil2vDhQvg8aCoSNL1Aas5VBBNPXCiPXu0RMBUHE-xxw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=42542&dur=3.621&lmt=1679280854098011&mt=1680060775&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgSQDFWQfS7U7lx9Vuj0zX8VBrtG-XzzZSOi4rV1rXNfoCIQDmR_8QO5ZXEfZhnLYYW_1Q7irDUKYwFV_IPip1eDFQ3Q%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAK1rPHdE28-qaDZ6LUm_pthyNBWhgjH3o0I2v0eRD4JYAiEA9KSgkPZP1SMDy16zY_Qvmq3JXRE5elTS85qrBwJFLv8%3D' for reading
[https @ 0x5a02f80] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'

@wukko
Copy link
Member

wukko commented Mar 29, 2023

main cobalt instance runs on ubuntu, and it's just fine.

what version of ubuntu on wsl are you running exactly?

@jojobii-arks
Copy link
Contributor Author

main cobalt instance runs on ubuntu, and it's just fine.

what version of ubuntu on wsl are you running exactly?

  • Version of Ubuntu on WSL is Ubuntu 22.04.2 LTS.
    • The issue was tested on Node v18.15.0. I downgraded to v17.9.1, redid setup, but still ran into the same issue.
  • I also have a live deployment running on a DigitalOcean VM with Ubuntu 22.10. https://co.arks.cafe

@wukko
Copy link
Member

wukko commented Mar 30, 2023

is there a ffmpeg executable in node_modules/ffmpeg-static?

@jojobii-arks
Copy link
Contributor Author

  • Yup, ffmpeg binary is in node_modules/ffmpeg-static.
  • I also have ffmpeg installed locally through apt, version 7:4.4.2-0ubuntu0.22.04.1, if that causes any issues... When the runtime launches the child process, it still launches the binary provided by the ffmpeg-static module.

cwd: ./node_modules/ffmpeg-static

$ ls -F
LICENSE  README.md  example.js*  ffmpeg*  ffmpeg.LICENSE  ffmpeg.README  index.js  install.js  package.json  types/

$ ./ffmpeg
ffmpeg version 5.0.1-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
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

$

@jojobii-arks
Copy link
Contributor Author

@wukko could I ask what node version of Node you're running on https://co.wukko.me?

@jojobii-arks
Copy link
Contributor Author

More Research:

With -report flag, I attempted to download files that use the binary node_modules/ffmpeg-static/ffmpeg on both Windows and WSL. Audio Only + .mp3. Using the following video: https://www.youtube.com/watch?v=a6TRa36bymo

Ultimately, seems like an issue with ffmpeg in WSL being able to access the remote file over HTTPS in the first place... I'll update if I find anything else.

Logs:

WSL

ffmpeg started on 2023-04-03 at 11:00:53
Report written to "ffmpeg-20230403-110053.log"
Log level: 48
Command line:
/home/jojobii/workspaces/cobalt-epic-style/node_modules/ffmpeg-static/ffmpeg -loglevel -8 -i "https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566453&ei=VRQrZO_mHI6Wkwacv6zoCQ&ip=136.52.91.139&id=o-AKcdOpfFkPUiIBNM9YNUwrxeuZFbRT6h-I7L69eNEOLK&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenl7&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CeKP9AirOid6TwVjx00DNrHh7GNzeGLTSwabgifzNakLEw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgKoos7OlK9ZJTLHnJQ6NHy9TLW01UamX0I4t9HKhxA-ACIQDGkjil8rEMWKuYyvAgaCBK5Kg2IU-2XfIZSUnMeXDrww%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAM4yrkrzx3Sr1kyKY_L_WGYCPJRsmiUiMcCBNdxdpnUOAiEAl_RJ_0yhxBnnwYzTcaCxHIng331ee58nboFSFqavO-4%3D" -vn -metadata "title=Why your drift doesn't come out | KartRider: Drift Tutorial" -metadata "artist=donutKR" -ar 48000 -ac 2 -b:a 320k -report -f mp3 pipe:3
ffmpeg version 5.0.1-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
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '-8'.
Reading option '-i' ... matched as input url with argument 'https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566453&ei=VRQrZO_mHI6Wkwacv6zoCQ&ip=136.52.91.139&id=o-AKcdOpfFkPUiIBNM9YNUwrxeuZFbRT6h-I7L69eNEOLK&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenl7&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CeKP9AirOid6TwVjx00DNrHh7GNzeGLTSwabgifzNakLEw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgKoos7OlK9ZJTLHnJQ6NHy9TLW01UamX0I4t9HKhxA-ACIQDGkjil8rEMWKuYyvAgaCBK5Kg2IU-2XfIZSUnMeXDrww%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAM4yrkrzx3Sr1kyKY_L_WGYCPJRsmiUiMcCBNdxdpnUOAiEAl_RJ_0yhxBnnwYzTcaCxHIng331ee58nboFSFqavO-4%3D'.
Reading option '-vn' ... matched as option 'vn' (disable video) with argument '1'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'title=Why your drift doesn't come out | KartRider: Drift Tutorial'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'artist=donutKR'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '48000'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '320k'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mp3'.
Reading option 'pipe:3' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument -8.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566453&ei=VRQrZO_mHI6Wkwacv6zoCQ&ip=136.52.91.139&id=o-AKcdOpfFkPUiIBNM9YNUwrxeuZFbRT6h-I7L69eNEOLK&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenl7&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CeKP9AirOid6TwVjx00DNrHh7GNzeGLTSwabgifzNakLEw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgKoos7OlK9ZJTLHnJQ6NHy9TLW01UamX0I4t9HKhxA-ACIQDGkjil8rEMWKuYyvAgaCBK5Kg2IU-2XfIZSUnMeXDrww%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAM4yrkrzx3Sr1kyKY_L_WGYCPJRsmiUiMcCBNdxdpnUOAiEAl_RJ_0yhxBnnwYzTcaCxHIng331ee58nboFSFqavO-4%3D.
Successfully parsed a group of options.
Opening an input file: https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566453&ei=VRQrZO_mHI6Wkwacv6zoCQ&ip=136.52.91.139&id=o-AKcdOpfFkPUiIBNM9YNUwrxeuZFbRT6h-I7L69eNEOLK&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenl7&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CeKP9AirOid6TwVjx00DNrHh7GNzeGLTSwabgifzNakLEw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgKoos7OlK9ZJTLHnJQ6NHy9TLW01UamX0I4t9HKhxA-ACIQDGkjil8rEMWKuYyvAgaCBK5Kg2IU-2XfIZSUnMeXDrww%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAM4yrkrzx3Sr1kyKY_L_WGYCPJRsmiUiMcCBNdxdpnUOAiEAl_RJ_0yhxBnnwYzTcaCxHIng331ee58nboFSFqavO-4%3D.
[NULL @ 0x6a93480] Opening 'https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566453&ei=VRQrZO_mHI6Wkwacv6zoCQ&ip=136.52.91.139&id=o-AKcdOpfFkPUiIBNM9YNUwrxeuZFbRT6h-I7L69eNEOLK&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5msenl7&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CeKP9AirOid6TwVjx00DNrHh7GNzeGLTSwabgifzNakLEw&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgKoos7OlK9ZJTLHnJQ6NHy9TLW01UamX0I4t9HKhxA-ACIQDGkjil8rEMWKuYyvAgaCBK5Kg2IU-2XfIZSUnMeXDrww%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAM4yrkrzx3Sr1kyKY_L_WGYCPJRsmiUiMcCBNdxdpnUOAiEAl_RJ_0yhxBnnwYzTcaCxHIng331ee58nboFSFqavO-4%3D' for reading
[https @ 0x6a94000] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'

Windows

ffmpeg started on 2023-04-03 at 11:02:26
Report written to "ffmpeg-20230403-110226.log"
Log level: 48
Command line:
"C:\\Users\\josep\\Workspaces\\cobalt-epic-style\\node_modules\\ffmpeg-static\\ffmpeg.exe" -loglevel -8 -i "https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D" -vn -metadata "title=Why your drift doesn't come out | KartRider: Drift Tutorial" -metadata "artist=donutKR" -ar 48000 -ac 2 -b:a 320k -report -f mp3 pipe:3
ffmpeg version 5.0.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --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-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  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
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '-8'.
Reading option '-i' ... matched as input url with argument 'https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D'.
Reading option '-vn' ... matched as option 'vn' (disable video) with argument '1'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'title=Why your drift doesn't come out | KartRider: Drift Tutorial'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'artist=donutKR'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '48000'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '320k'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mp3'.
Reading option 'pipe:3' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument -8.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D.
Successfully parsed a group of options.
Opening an input file: https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D.
[NULL @ 000001eb3077e5c0] Opening 'https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D' for reading
[https @ 000001eb3077f240] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 000001eb307835c0] Original list of addresses:
[tcp @ 000001eb307835c0] Address 23.228.131.15 port 443
[tcp @ 000001eb307835c0] Interleaved list of addresses:
[tcp @ 000001eb307835c0] Address 23.228.131.15 port 443
[tcp @ 000001eb307835c0] Starting connection attempt to 23.228.131.15 port 443
[tcp @ 000001eb307835c0] Successfully connected to 23.228.131.15 port 443
[https @ 000001eb3077f240] request: GET /videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D HTTP/1.1

User-Agent: Lavf/59.16.100

Accept: */*

Range: bytes=0-

Connection: close

Host: rr4---sn-bvvbax[matroska,webm @ 000001eb3077e5c0] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 000001eb3077e5c0] Before avformat_find_stream_info() pos: 651 bytes read:16384 seeks:0 nb_streams:1
[opus @ 000001eb30a56480] skip 312/960 samples
[matroska,webm @ 000001eb3077e5c0] All info found
[matroska,webm @ 000001eb3077e5c0] After avformat_find_stream_info() pos: 1256 bytes read:16384 seeks:0 frames:1
Input #0, matroska,webm, from 'https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D':
  Metadata:
    encoder         : google/video-file
  Duration: 00:03:41.82, start: -0.007000, bitrate: 123 kb/s
  Stream #0:0(eng), 1, 1/1000: Audio: opus, 48000 Hz, stereo, fltp (default)
Successfully opened the file.
Parsing a group of options: output url pipe:3.
Applying option vn (disable video) with argument 1.
Applying option metadata (add metadata) with argument title=Why your drift doesn't come out | KartRider: Drift Tutorial.
Applying option metadata (add metadata) with argument artist=donutKR.
Applying option ar (set audio sampling rate (in Hz)) with argument 48000.
Applying option ac (set number of audio channels) with argument 2.
Applying option b:a (video bitrate (please use -b:v)) with argument 320k.
Applying option f (force format) with argument mp3.
Successfully parsed a group of options.
Opening an output file: pipe:3.
[pipe @ 000001eb30a9f600] Setting default whitelist 'crypto,data'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (opus (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[opus @ 000001eb30af3b40] skip 312/960 samples
detected 16 logical cores
[graph_0_in_0_0 @ 000001eb30b43640] Setting 'time_base' to value '1/48000'
[graph_0_in_0_0 @ 000001eb30b43640] Setting 'sample_rate' to value '48000'
[graph_0_in_0_0 @ 000001eb30b43640] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0_0 @ 000001eb30b43640] Setting 'channel_layout' to value '0x3'
[graph_0_in_0_0 @ 000001eb30b43640] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[format_out_0_0 @ 000001eb30b40a80] Setting 'sample_fmts' to value 's32p|fltp|s16p'
[format_out_0_0 @ 000001eb30b40a80] Setting 'sample_rates' to value '48000'
[format_out_0_0 @ 000001eb30b40a80] Setting 'channel_layouts' to value '0x3'
[AVFilterGraph @ 000001eb30af35c0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
Output #0, mp3, to 'pipe:3':
  Metadata:
    TPE1            : donutKR
    TIT2            : Why your drift doesn't come out | KartRider: Drift Tutorial
    TSSE            : Lavf59.16.100
  Stream #0:0(eng), 0, 1/48000: Audio: mp3, 48000 Hz, stereo, fltp, 320 kb/s (default)
    Metadata:
      encoder         : Lavc59.18.100 libmp3lame
size=       0kB time=00:00:00.00 bitrate=N/A speed=N/A    
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
size=    1318kB time=00:00:33.72 bitrate= 320.2kbits/s speed=67.4x    
size=    2565kB time=00:01:05.64 bitrate= 320.1kbits/s speed=65.6x    
size=    3898kB time=00:01:39.77 bitrate= 320.1kbits/s speed=66.5x    
size=    5195kB time=00:02:12.96 bitrate= 320.0kbits/s speed=66.5x    
size=    6381kB time=00:02:43.32 bitrate= 320.0kbits/s speed=65.3x    
size=    7653kB time=00:03:15.89 bitrate= 320.0kbits/s speed=65.3x    
[opus @ 000001eb30af3b40] skip 0 / discard 234 samples due to side data
[opus @ 000001eb30af3b40] discard 234/960 samples
[out_0_0 @ 000001eb30b41040] EOF on sink link out_0_0:default.
No more output streams to write to, finishing.
[libmp3lame @ 000001eb30b2f280] Trying to remove 17 more samples than there are in the queue
[libmp3lame @ 000001eb30b2f280] Trying to remove 1152 samples, but the queue is empty
[libmp3lame @ 000001eb30b2f280] Trying to remove 1152 more samples than there are in the queue
size=    8666kB time=00:03:41.83 bitrate= 320.0kbits/s speed=66.2x    
video:0kB audio:8666kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001521%
Input file #0 (https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680566546&ei=shQrZPiyMMqmkwb0xZzwBg&ip=136.52.91.139&id=o-ALuuS3Vx5K0ufmAhTwSx9jH8DPczxXZU0C42FawqnqKz&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=1947500&spc=99c5CU12eKl4vWksRNnGlxwP8sJEcJga2CIg_Fq9dp7o1MxFyA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680544636&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAJa4bkpQwuLz8_4q2fLDbVfJwP7sO4r795gKJ6nl4cXTAiEApjCLbgGbkvEAe4ZKTIEaol7eWKj16HJC7LcWHlYRVMs%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAMMY_GPLAUA4kY2R7csbAi5eP8VpT3euA_Ob3lvoEmMHAiBn0Rh-mCHMnxp6DI4mgEul2FkP83Jeo8NWz7C-fZEJAg%3D%3D):
  Input stream #0:0 (audio): 11091 packets read (3352414 bytes); 11091 frames decoded (10646814 samples); 
  Total: 11091 packets (3352414 bytes) demuxed
Output file #0 (pipe:3):
  Output stream #0:0 (audio): 9243 frames encoded (10646814 samples); 9244 packets muxed (8874240 bytes); 
  Total: 9244 packets (8874240 bytes) muxed
[AVIOContext @ 000001eb30a9f6c0] Statistics: 8874375 bytes written, 0 seeks, 9245 writeouts
11091 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000001eb30a4dc40] Statistics: 3430975 bytes read, 0 seeks

@jojobii-arks
Copy link
Contributor Author

$ /home/jojobii/workspaces/cobalt-epic-style/node_modules/ffmpeg-static/ffmpeg -loglevel -8 -i "https://rr4---sn-bvvbax4pcxg-a5ml.googlevideo.com/videoplayback?expire=1680568031&ei=fxorZJviN4_CkgbmiSE&ip=136.52.91.139&id=o-AP-9jD8Fxl_bXJgdjK0Jz7SPaukYSPRjUUeb6Fr5UxvJ&itag=251&source=youtube&requiressl=yes&mh=mP&mm=31%2C29&mn=sn-bvvbax4pcxg-a5ml%2Csn-a5mekn6k&ms=au%2Crdu&mv=m&mvi=4&pl=20&initcwndbps=2216250&spc=99c5CYa_loLZsQLaBdgyKRCvKH0PvlpQX27j9QnzcDJjeUJgeA&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3430975&dur=221.821&lmt=1680501463998775&mt=1680546081&fvip=4&keepalive=yes&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAP-cWkRCGML3NPZZt6gRgcByZ8Vyk9XwFV-XiNILCiVwAiARJ8FYkzc32cA0YHqn7lqUGLcXrn_6I9NoLjWn9eJT3w%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgSvRmkmhvCeU0S13nK2Xq70gxF71IEKk885rG9v4kK1sCIEq3hISdDWePJiFmP5ZVDIjL2S3he72dQnORgFDXNuns" -vn -metadata "title=Why your drift doesn't come out | KartRider: Drift Tutorial" -metadata "artist=donutKR" -ar 48000 -ac 2 -b:a 320k -report -f mp3 pipe:3
[1]    7379 segmentation fault  /home/jojobii/workspaces/cobalt-epic-style/node_modules/ffmpeg-static/ffmpeg 

Ahhh... it's a segfault with the binary 😭😭😭😭😭😭😭

@jojobii-arks
Copy link
Contributor Author

SOLVED IT

well, someone else solved it. I found the solution though: https://stackoverflow.com/questions/60528501/ffmpeg-segmentation-fault-with-network-stream-source

Turns out, nscd needs to be installed and running so that the ffmpeg-static binary can resolve DNS.

From ./node_modules/ffmpeg-static/ffmpeg.README in Ubuntu.

Notes: A limitation of statically linking glibc is the loss of DNS resolution. Installing nscd through your package manager will fix this.

Should the installation of this package be added to the setup script somehow? Or maybe a note saying that it should be installed and running?

sudo apt install nscd
sudo service nscd start

@wukko
Copy link
Member

wukko commented Apr 6, 2023

OHHHHH so that's why ffmpeg wouldn't download stuff on 22.04

does this mean that 20.04 comes with ncsd but 22.04 doesn't? how does that make any sense...

thank you, i'll make sure to add a note about this somewhere (or maybe i should just move networking stuff away from ffmpeg) :D

@jojobii-arks
Copy link
Contributor Author

Between both manifests (Ubuntu 22.04.2 LTS and Ubuntu 20.04.6 LTS), doesn't seem like nscd is present in either. 🤔

I'll rename the issue as well to better reflect the issue 👍

@jojobii-arks jojobii-arks changed the title Bug: Unable to download content in formats that rely on ffmpeg when running Cobalt in Ubuntu/WSL Bug: On Linux, ffmpeg-static binary is unable to download content if nscd daemon is not running. Apr 6, 2023
wukko added a commit that referenced this issue May 8, 2023
- updated readme: added info about new services, sorted the list alphabetically, replaced emoji with checkmarks, added info about ncsd (#101), and more.
- fixed typos in vk and setup modules.
- removed unused variables from css.
@wukko
Copy link
Member

wukko commented May 8, 2023

finally came around to updating the readme, thank you :D

@wukko wukko closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants