pully icon indicating copy to clipboard operation
pully copied to clipboard

No matching audio stream!

Open Tuizi opened this issue 8 years ago • 10 comments

I get the error: "No matching audio stream!" when trying to save with the preset "mp3" this video https://www.youtube.com/watch?v=RKpjqddcuy0

Any idea why?

Tuizi avatar May 14 '17 18:05 Tuizi

Hmmm, can you try it with other videos and see if that preset works for you?

jimbuck avatar May 15 '17 13:05 jimbuck

Yes it works, it just few video where I get this issue. Maybe 10% of all video I try to process, I can give you other example if you want

Tuizi avatar May 15 '17 14:05 Tuizi

I think I need to add some more debugging functionality to really see what the issue might be. I would think that there is something going on with those videos, not necessarily this library. But I could be wrong! Under the covers I use ytdl-core, which does the actual parsing of various media types and downloading. I will try to take a look at this sometime this week.

(In the meantime if mp3 versions are critical try downloading the whole video and then use another program to extract just the audio (ffmpeg would be perfect)

jimbuck avatar May 15 '17 14:05 jimbuck

Ok keep me updated and I will try the full video + ffmpeg process

Tuizi avatar May 15 '17 17:05 Tuizi

Same problem here. I tried about a dozen videos from https://www.youtube.com/channel/UCEGJQkfFh4wk2HYtPLInnPA/videos and had that error with each of them :(

tkissing avatar Oct 20 '17 17:10 tkissing

Hmm, there should be a common ground when it comes to the raw data coming back. We can try adding more logging when it fails and see if we can determine anything.

jimbuck avatar Oct 24 '17 13:10 jimbuck

Failed for this video too:

https://www.youtube.com/watch?v=VfnYmGSE1aY

My Code:

            pully.download({
                url: "https://www.youtube.com/watch?v=VfnYmGSE1aY",
                preset: Presets.MP3,
            }).then((results) => {
                res.status(200).download(results.path, "song.mp3");
            }, (err) => console.error(err));

Why does this happen?

dolanmiu avatar Nov 10 '17 03:11 dolanmiu

I've been super busy with day job stuff, but I'm really missing working on my pet projects. I think it's time I create a little "dump" command that will grab the data for the video/audio tracks so we can compare them. Pully wraps node-ytdl-core and merges the best audio and video tracks based on your preset choice. As for the details of why some videos work and others don't, I'll need everyone's help!

jimbuck avatar Nov 13 '17 14:11 jimbuck

I was having a similar issue, but with video streams. All video formats were being filtered out because the format.type was undefined. This issue was related to the raw field changing from type to mimeType. This was addressed in https://github.com/jimbuck/pully-core/commit/1b2d4275c564235b18d356815f82d6facc068b64 when https://github.com/jimbuck/pully-core/blame/master/src/index.ts#L42 was changed. Updating to the latest pully-core resolved the issue for me. I had to do it the dirty way by reaching into node_modules/pully and installing the latest version manually. It looks like pully-core will be upgraded in the next release due to this commit https://github.com/jimbuck/pully/commit/c491a50ebc019edb5395bc8fab10f3fa999fed60

nakleiderer avatar Dec 29 '19 02:12 nakleiderer

@nakleiderer You are absolutely correct. A few things changed in the underlying APIs so I am working through those now. Hopefully I'll get pully updated and released soon.

jimbuck avatar Dec 29 '19 04:12 jimbuck