Page 1 of 1

Youtube quality change

Posted: Mon Jan 03, 2011 8:56 am
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

Re: Youtube quality change

Posted: Mon Jan 03, 2011 8:17 pm
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

Re: Youtube quality change

Posted: Mon Jan 03, 2011 9:05 pm
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... :'(

Re: Youtube quality change

Posted: Mon Jan 03, 2011 9:34 pm
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

Re: Youtube quality change

Posted: Tue Jan 04, 2011 12:09 am
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?

Re: Youtube quality change

Posted: Tue Jan 04, 2011 6:59 am
by Eugene
Videos with different quality in sVideoFmtURLMap, separated by commas.

Description of video formats - http://en.wikipedia.org/wiki/YouTube

Re: Youtube quality change

Posted: Tue Jan 04, 2011 10:56 am
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.

Re: Youtube quality change

Posted: Sat Jan 08, 2011 11:24 pm
by yHo
Any update?

Re: Youtube quality change

Posted: Wed Jan 19, 2011 10:48 am
by Eugene

Re: Youtube quality change

Posted: Wed Jan 19, 2011 8:53 pm
by yHo
Dammm!!!! this update is just AWESOME
Thanks man!!!! So happy too bought it...

Will you make this work with dailymotion to?