Skip to content

Conversation

AudricV
Copy link
Member

@AudricV AudricV commented Jun 16, 2022

This PR fixes an issue, when adding ItagItem's properties on livestreams and post livestreams, where the fps, audioSampleRate and audioChannels values were not set for these stream types (and so only set for video streams, thanks to a else introduced by @Stypox in c8a77da).

This caused exceptions when creating DASH manifests of audio streams (because a valid number of audio channels is required in the AudioChannelConfiguration element of DASH manifests). To prevent it again, if this value is unknown, a fallback to 2 has been added (because most YouTube audio streams have 2 channels).

This PR also removes completely the SoundCloud HLS workaround which is being removed progressively by SoundCloud for MP3 streams too. Unfortunately, it means for UMG tracks (which have now a faster loading time because no HLS manifest is now fetched) that no progressive stream will be available for download in NewPipe.

AudricV added 2 commits June 16, 2022 12:12
…elds for ItagItems of live streams and post live streams

These values were only set before for video streams.

A fallback for the audio channels count has been added, in order to prevent exceptions when generating DASH manifests of audio streams: the fallback value is 2, because most audio streams on YouTube have 2 audio channels.
SoundCloud is currently removing this workaround completely, so there is no need to keep it, because it impacts the loading time (a HLS playlist was downloaded and parsed).
@AudricV AudricV added bug Issue is related to a bug soundcloud service, https://soundcloud.com/ youtube service, https://www.youtube.com/ labels Jun 16, 2022
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| itagType == ItagItem.ItagType.VIDEO_ONLY) {
}

if (itagType == ItagItem.ItagType.VIDEO || itagType == ItagItem.ItagType.VIDEO_ONLY) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops, I didn't notice the if above was referring to streamType instead of itagItem, that's why I accidentally added an else

@Stypox Stypox merged commit 1b51eab into TeamNewPipe:dev Jun 17, 2022
@AudricV AudricV deleted the delivery-methods-fixes-and-improvements branch June 17, 2022 14:10
litetex added a commit to litetex/NewPipeExtractor that referenced this pull request Jun 18, 2022
litetex added a commit to litetex/NewPipeExtractor that referenced this pull request Jun 19, 2022
litetex added a commit to litetex/NewPipeExtractor that referenced this pull request Jun 19, 2022
litetex added a commit to litetex/NewPipeExtractor that referenced this pull request Jun 19, 2022
litetex added a commit to litetex/NewPipeExtractor that referenced this pull request Jun 24, 2022
litetex added a commit to litetex/NewPipeExtractor that referenced this pull request Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug soundcloud service, https://soundcloud.com/ youtube service, https://www.youtube.com/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants