Skip to content

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

@jojobii-arks

Description

@jojobii-arks

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions