나는 유튜브 MP3 변환기를 만들려고하고 있어요하지만 난이 오류를 얻고있다 :. URI이 제공되었다C# 유튜브 MP3 변환기
"잘못된 요청이 요청 URI가 절대 URI 여야 또는 기본 주소를 설정해야합니다. "
나는 비디오 라이브러리과 MediaToolkit을 사용하고 있습니다.
문제는 "video.getBytes()"
코드 :
YouTube youtube = YouTube.Default;
Video video = youtube.GetVideo(url_textBox.Text);
string source = @"C:\Users\MyComputer\Downloads";
System.IO.File.WriteAllBytes(source + video.FullName, video.GetBytes()); // here is the problem
var inputFile = new MediaFile { Filename = source + video.FullName };
var outputFile = new MediaFile { Filename = $"{source + video.FullName}.mp3" };
using (var engine = new Engine())
{
engine.GetMetadata(inputFile);
engine.Convert(inputFile, outputFile);
}
그래서 어떤 URI를 사용하고 있습니까? – jmoerdyk
+ jmeordyk https://www.youtube.com/watch?v=TW9d8vYrVFQ with https – MaximeSkillZ