distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
206 stars 43 forks source link

Missing codecs and quality tags in live video getInfo #64

Closed tux1765 closed 1 month ago

tux1765 commented 1 month ago

Describe the bug

When getting video info ytdl.getInfo on a live video the container, codec, videoCodec, and audioCodec are reuturning null. The qualityLabel is also missing as a whole on YouTube Live videos when isLive is true. This does not allow the ytdl.chooseFormat with highest or lowest as the quality option to choose the proper video quality.

Environment

tux1765 commented 1 month ago

Just to expand on some findings. with chooseFormats and quality highest or lowest it seems that the highest quality returns the lowest video and vice versa. Willing to test and add more info if needed. Thank you!

Guru322 commented 1 month ago

not just live video , normal ytvideo too many itags returning null qualityLabel , not a single itag with both video and audio codec

Environment

@distube/ytdl-core version: 4.14.2
Node.js version: 22.3.0
Operating system: Arch
robert-mefford commented 1 month ago

Is there anyway to download video that has both video and audio? I was using v4.13.5 and I can download video with both video/audio. But with latest version I can not download both.

Is this expected result?

skick1234 commented 1 month ago

This is expected since I moved to ios player, I'm finishing the android player to get more itag.

robert-mefford commented 1 month ago

Then should I download video and audio separately and merge them using ffmpeg package?

skick1234 commented 1 month ago

Should be improved on 4.14.3

skick1234 commented 1 month ago

Then should I download video and audio separately and merge them using ffmpeg package?

In the worse case, you have to do it for better output quality.

tux1765 commented 1 month ago

@skick1234 Thank you for the quick work! Everything seems to be working again in latest release