Youtube quality change

Internet TV, Radio, Podcasts
Post Reply
yHo
Posts: 10
Joined: Sat Jan 01, 2011 11:14 pm

Youtube quality change

Post by yHo »

Dear all,

First of all I need to thanks and wish a good and happy new year to all of you who are working on the software, I discover it during the last few days and I love it… Big heart to you guys.

But I’m not posting for that. I am having issue playing YouTube HD1080 video, not because of WMS but ‘cause of my internet connection… and as most of the YouTube user I follow are uploading video in HD1080 I’m not able to see it correctly.
Do you have any solution to change quality of the stream when playing it by WMS???

My configuration:
- Samsung UE46C6000
- Windows 7
- Last version of WMS
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Youtube quality change

Post by Eugene »

yHo wrote:Do you have any solution to change quality of the stream when playing it by WMS???
http://www.wildmediaserver.com/forum/vi ... f=18&t=874
yHo
Posts: 10
Joined: Sat Jan 01, 2011 11:14 pm

Re: Youtube quality change

Post by yHo »

Thanks Eugene, works perfectly in 360p.

other question is it possible to have different settings for youtube? like one for 360p one for 720p?
I try to rename it but didn't work... :'(
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Youtube quality change

Post by Eugene »

My computer - ... - youtube_min.wdf - right click - Open with - Notepad - change any digit in first <ItemID> - save file - drag & drop youtube_min.wdf
yHo
Posts: 10
Joined: Sat Jan 01, 2011 11:14 pm

Re: Youtube quality change

Post by yHo »

Works perfectly... ^^ (but I change it also in the <ParentID> line few line under to make it not crash)

one other things here... ;)
I try to understand your code but could't make it... I'm note in the code business. But what I could understand (if i got it right) is that you charge the best (in your youtube.wdf file) and the worth (in the youtube_min.wdf file) quality video.
Do you think it could be possible to charge a medium quality as 720p or 460p?
What would be the change to make it?
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Youtube quality change

Post by Eugene »

Videos with different quality in sVideoFmtURLMap, separated by commas.

Description of video formats - http://en.wikipedia.org/wiki/YouTube
yHo
Posts: 10
Joined: Sat Jan 01, 2011 11:14 pm

Re: Youtube quality change

Post by yHo »

I understood i should make some change in thoses line but where???

Code: Select all

  i, j: Integer;
  sVideoFmtURLMap, sWebPage: string;
begin
  MediaResourceLink := &apos;&apos;;                 
  sWebPage := WmsDownloadURL(mpFilePath);                       
  if WmsRegExMatch(&apos;fmt_url_map=(.*?)&&apos;, sWebPage, sVideoFmtURLMap) and (sVideoFmtURLMap <> &apos;&apos;) then begin
    sVideoFmtURLMap := WmsHttpDecode(sVideoFmtURLMap);           
    i := Pos(&apos;,&apos;, sVideoFmtURLMap);    
    if i > 0 then
      sVideoFmtURLMap := Copy(sVideoFmtURLMap, 1, i - 1);
    i := Pos(&apos;|&apos;, sVideoFmtURLMap);
    if i > 0 then
      MediaResourceLink := Copy(sVideoFmtURLMap, i + 1, Length(sVideoFmtURLMap));
  end else if WmsRegExMatch(&apos;fmt_stream_map=(.*?)&&apos;, sWebPage, sVideoFmtURLMap) and (sVideoFmtURLMap <> &apos;&apos;) then begin
    sVideoFmtURLMap := WmsHttpDecode(sVideoFmtURLMap);           
    i := Pos(&apos;,&apos;, sVideoFmtURLMap);    
    if i > 0 then
      sVideoFmtURLMap := Copy(sVideoFmtURLMap, 1, i - 1);
    i := Pos(&apos;|&apos;, sVideoFmtURLMap);    
    j := NPos(&apos;|&apos;, sVideoFmtURLMap, 2);
    if (i > 0) and (j > 0) then
      MediaResourceLink := &apos;-r "&apos; + Copy(sVideoFmtURLMap, j + 1, Length(sVideoFmtURLMap)) + &apos;" -y "&apos; + 
        Copy(sVideoFmtURLMap, i + 1, j - i - 1) + &apos;"&apos;
  end
end.
yHo
Posts: 10
Joined: Sat Jan 01, 2011 11:14 pm

Re: Youtube quality change

Post by yHo »

Any update?
yHo
Posts: 10
Joined: Sat Jan 01, 2011 11:14 pm

Re: Youtube quality change

Post by yHo »

Dammm!!!! this update is just AWESOME
Thanks man!!!! So happy too bought it...

Will you make this work with dailymotion to?
Post Reply