question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - Audio does not download with video

See original GitHub issue

Describe the bug Videos do not download with audio, only video.

To Reproduce Steps to reproduce the behavior: Video: https://www.youtube.com/watch?v=VWDpWmc5Yys image

Expected behavior Video downloaded w/ audio

Screenshots

Environment

  ytdl_material:
    container_name: YTDL_Material
    image: tzahi12345/youtubedl-material:nightly
    volumes:
      - $DOWNLOADDIR/downloads/Youtube-dl-mat/appdata:/app/appdata
      - $DOWNLOADDIR/downloads/Youtube-dl-mat/audio:/app/audio
      - $DOWNLOADDIR/downloads/Youtube-dl-mat/video:/app/video
      - $DOWNLOADDIR/downloads/Youtube-dl-mat/subscriptions:/app/subscriptions
      - $DOWNLOADDIR/downloads/Youtube-dl-mat/users:/app/users
    environment: 
      ALLOW_CONFIG_MUTATIONS: 'true'
      ytdl_use_local_db: 'true'
      write_ytdl_config: 'true'
      UID: $PUID
      GID: $PGID
    networks:
      - isonet
    ports:
      - "8998:17442"
    restart: always

JSON attached video.info.json.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dejan995commented, Sep 29, 2021

Just to confirm that this is now working. Although I opened and linked a new issue about an error message that has started to appear after this fix.

1reaction
Tzahi12345commented, Sep 29, 2021

@modem7 @dejan995 Thanks for the help with debugging this!

Long story short, if you selected a video quality that didn’t have the audio built in, it wouldn’t add one automatically (despite the logic being there) due to a bug. See commit here.

We’re doing something similar to MeTube with a couple differences:

  • If you select a quality level, do some additional preprocessing to determine the format_id (ex. 400 or 22) and adding an audio format if one doesn’t exist (looks something like 400+172)
  • If it’s left on max, we just do bestvideo+bestaudio
  • For both of these approaches we add --merge-output-format mp4

Anyways it should be fixed now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Methods: How to Solve Audio File Not Playing
Method 5: Re-Download File from Same Place ... If you are still unable to run the file, then it's a possibility that the...
Read more >
Troubleshoot audio and video issues on your computer or ...
Troubleshoot audio and video issues on your computer or mobile device. On this page: Audio issues. No sound; Volume is too high or...
Read more >
20 most common video errors & how to fix them
This article guide you how to fix all 20 problems or errors while playing videos like playback errors, audio video sync, issues, choppy, ......
Read more >
Fix sound or audio problems in Windows - Microsoft Support
Fix sound or audio problems in Windows ; 3. Verify that all Windows Updates are installed. To check for updates: Select Start ;...
Read more >
9 Fixes for When a Movie Has No Sound - MakeUseOf
The movie might be encoded to play on different channels that your device cannot support. For example, it's not uncommon for downloaded movies ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found