Rafostar / gtuber

C library to fetch media info from websites
https://rafostar.github.io/gtuber/
GNU Lesser General Public License v2.1
9 stars 3 forks source link

Error: Internal data stream error (for some itags) #54

Open josch opened 1 year ago

josch commented 1 year ago

I'm at fb83a368149e6cccc4bce2d3f84cdf4f0e6b3c22

$ gtuber-dl -i 299,251 https://www.youtube.com/watch?v=vwsL5X2J1Fc
Error: Internal data stream error.
$ gtuber-dl -i 299+251 https://www.youtube.com/watch?v=vwsL5X2J1Fc
Downloading...   1.4%.

Using a comma and a plus should not result in different behaviour, no?

Rafostar commented 1 year ago

For -i option manual (--help) says: A comma separated list of itags to download. So I hope this should be clear. I would rather have this consistent with gtubersrc element used internally and just set as-is. For GStreamer parser text 299+251 equals 550, so putting + here will either assume 550 or just download first number after we try to parse it.

When running interactive (without specifying itags) and text input appears, user should preferably use commas too, but I made that part also accept spaces and + signs to filter out eventual user mistakes.

ATM, working formats are avc1 (h264), av01 (AV1) and mp4a (AAC). So below should work for you (at least works on my end):

gtuber-dl -i 299,140 "https://www.youtube.com/watch?v=vwsL5X2J1Fc"

I am about 80% sure that remaining VP9 and Opus do not work due to some GStreamer issue, that I did not have time to investigate and try to fix for them right now.

josch commented 1 year ago

Yes, the help text is clear. I tried other varieties because it wasn't working (with that error message) and because i wasn't sure how to separate things on the interactive terminal. Here a few thoughts:

Clearly, the vp9+opus problem is a different one.

Rafostar commented 1 year ago

The user experience improvements aside, what's important on THIS issue at hand is whenever 299,140 worked for you. Did it?

josch commented 1 year ago

It works with 299,140 -- this is very useful to know for me. I'll be using that instead of 299,251 from now on.

Rafostar commented 1 year ago

OK. Let's keep this open for now since there is a problem with some formats and it would need more investigating where it comes from. I also appreciate your other suggestions, but they will likely be lost here if left as unrelated thread comment. Please consider opening separate issue(s) for anything you find questionable or needing improvement.