Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Added support for Vorbis video, Opus audio and 60fps #227

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mysteryx93
Copy link

Added support for Vorbis video, Opus audio, 60fps, as well as various HD formats that are only available by parsing the Dash Manifest. Added ProgressEventArgs.ProgressBytes.

Note: since recently, YouTube returns (409) Forbidden. This merge does not solve this problem.

… HD formats that are only available by parsing the Dash Manifest. Added ProgressEventArgs.ProgressBytes.
@mysteryx93
Copy link
Author

I forgot one line of code to set DownloadSize. Must add this in VideoDownloader.cs line 47, just after response.GetResponseStream()

DownloadSize = (int)response.ContentLength;

@jphellemons
Copy link
Contributor

I had this JObject errors too when I upgraded the Json.Net package. Perhaps just rollback the nuget package update for json.net?
I think that this is a nice PR! good work 👍

<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.5.0.8\lib\net35\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\..\NaturalGroundingPlayer\packages\Newtonsoft.Json.9.0.1\lib\net35\Newtonsoft.Json.dll</HintPath>
Copy link

@Code1110 Code1110 Mar 1, 2017

Choose a reason for hiding this comment

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

Should be <HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net35\Newtonsoft.Json.dll</HintPath> instead.

@Code1110
Copy link

Code1110 commented Mar 1, 2017

There are actually 4 Problems with this PR:

  1. The HintPath in YoutubeExtractor.csproj is wrong
  2. YoutubeExtractor_Portable.csproj should use Newtonsoft.Json also in Version 9.0.1 (see packages.YoutubeExtractor_Portable.config)
  3. Types like XmlDocument and XmlNodeList are not supported by Portable .NET Framework (see http://stackoverflow.com/questions/19585015/xmldocument-not-available-in-visual-studio-2012-dll-build)
  4. HttpWebRequest.GetResponse() is not supported by Portable .NET Framework (HttpWebRequest.BeginGetResponse() should be used instead)

DecryptDownloadUrl(info);

var request = (HttpWebRequest)WebRequest.Create(info.DownloadUrl);
using (WebResponse response = request.GetResponse()) {
Copy link

Choose a reason for hiding this comment

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

We should use request.BeginGetResponse() here instead.

@Tyrrrz
Copy link

Tyrrrz commented Mar 6, 2017

@mysteryx93 How do you deal with partial dash streams (ones that only have content for a particular segment in the timeline)? I don't see anything about it in code.

@mysteryx93
Copy link
Author

Partial DASH streams? Never heard of that. There are still a few features missing.

@Tyrrrz
Copy link

Tyrrrz commented Mar 6, 2017

@mysteryx93 they are the ones that have "sq/" in Initialization.sourceURL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants