Search in YouTube based on video resolution

29 نوفمبر, 2009
It happens that you search for a movie trailer in YouTube then click on the first result but you get surprised by its poor resolution. Then you search again and you found a better resolution video appeared as the fourth or fifth result

YouTube gives you the choice to sort the search results based on Relevance, Newest, Oldest and rating. However, it does not give you the choice to sort the search results based on video Resolution although it is technically possible as we will see later

In mean time, YouTube allows you to click on advanced search options and check on “Show only video with HD feature” but that does not solve the problem since it restrictes the search results to HD videos only and does not sort the search results based on video resolution so you might have the first result in HD format but with lower resolution than the fourth one for example. Same options and restrictions are applied in YouTube APIs

Video resolution and other video technical information are stored in YouTube server and you can notice that once you upload a video into your YouTube accont. Also, those information are attached to the FLV file itself in the file meta-data. That means if you wanna search YouTube based on video resolution you have to either have an access to resolution information in YouTube server (which is not possible in YouTube APIs) or to read the resolution information from FLV file meta-data (which is technically possible with many limitations) as we will see later

In order to read a file meta-data you have to download it to your server first. Downloading time is one of the limitations. imagine a typical number of YouTube search results (say 500). Each file has to be downloaded to your server, extracted meta-data from and re-ranked based on the resolution

YouTube legal agreement does not allow to download and save FLV file. This is another limitation. What about download a file then delete it immediately? Simply I do not know . It is really hard to figure out a legal agreement

Anyway, with all the above limitations I made a demo software that search YouTube based on video resolution. It works perfectly as long as the video results durations are less than four minutes. Otherwise, it will face a server time out issues since it takes too much time to download videos with duration more than four minutes. Try to search for something like “very short video” . That would possibly provide videos with short duration. Also try to reduce the search results using the drop down list

Here is a sample of what you are expected to see,Click Here. You can understand the point when you compare it with what YouTube provide for the same search string, Click Here. Use a non-Internet Explorer browser in order to see the atom feed in its right order :) . You will see in the fisrt link that the video results are sotred based on resolution while they are not in the second link

Just give it a try and tell me what do you think. :) Here I beg for your patience. The response time is 3 minutes in average. I agree that is not acceptable but this website is just a proof of concept

Last but not Least: Special Thanks to Eng.Md-Rahman from MCRLAB@UOTTAWA

أوباما في أوتاوا

19 فبراير, 2009

أوباما يصل إلى العاصمة الكندية أوتاوا صباح هذا اليوم في أول زيارة خارجية له خلال فترة رئاسته.

رابط الخير

مسخرة جديدة

12 فبراير, 2009

جاء في جريدة الوطن : إيقاف زيادة الـ50% لمرافقي المبتعثين

وأكد مدير عام الشؤون الإدارية و المالية بوزارة التعليم العالي فهد الطرباق في تصريح لـ”الوطن” أن الوزارة وجهت بإيقاف صرف الزيادة اعتبارا من صفر الحالي , مبينا أن ما صرفته الملاحق الثقافية في السابق هو من باب الاجتهاد في تفسير الأمر السامي الخاص بصرف الزيادة بمكافأة المبتعث في الخارج.

صعوبات تقنية تمر بها المدونة

26 يناير, 2009

أعتذر لمن تبقى من متابعي هذه المدونة عن اختفاءها عدة مرات ، كما أعتذر أيضاً عن ما ستكتشفونه من أخطاء تقنية موجودة بها.

الأخ محمد الحامد يقوم بجهد مشكور وبلا مقابل لترميم المدونة ، له مني جزيل الشكر.

تاريخ الإنترنت

15 يناير, 2009

فيديو ممتاز يشرح وبلهجة “بريطانية” واضحة تاريخ تطور الانترنت حتى عام 2009

لايزال بعض الناس يحتاج إلى عبارة انقر هنا  للوصول إلى الرابط :)

زمهرير أوتاوا وبياضها الناصع

30 نوفمبر, 2008

اليوم مشمس ودرجة الحرارة تبلغ 5 درجات تحت الصفر أما سرعة الرياح فهي 7 كلم في الساعة ، بمعنى آخر اليوم هو يوم مناسب للخروج والتمشية (على الأقدام) بدلاً من الجلوس في مكتبة الجامعة والتظاهر بالمذاكرة.

uottawa

الصورة أعلاه لجامعة أوتاوا، وتبدو كئيبة وذلك لاقتراب موعد الاختبارات النهائية!

uottawa

تركت الجامعة خلف ظهري، إلى الجسر المفضل لدي -الذي يطل على قنال ريدو-  وكما هو واضح في الصورة أعلاه فإن مياه القنال بدأت بالتجمد، وقريبا ستمتلئ بالمتزلجين.

بما أن مياه القنال لم تتجمد بشكل كاف، فالدخول للقنال ممنوع ويعرض فاعله للغرامة، إذا أمكن انتشاله حياً.

بعد عدة دقائق، قررت العودة، فالبرد اشتدّ!

إلى رحمة الله

31 أكتوبر, 2008

انتقلت عمتي سارة إلى رحمة الله، إنا لله وإنا إليه راجعون.

وبدأ الخريف

23 سبتمبر, 2008

اليوم هو أول أيام الخريف، استفتحت يومي بدخول قوقل لأجده كعادته يحتفل به بطريقته الخاصة

خرجت إلى الحديقة لأبحث عن الخريف :) ، فوجدته على الرصيف وقريبا سيغمر المنطقة كلها!

حالة شرود

16 سبتمبر, 2008

كم هو صعب أن أصف لكم شرود ذهني، إنه بدرجة صعوبة وصف شئ ما وأنت شارد الذهن!

أحمد الكثيري إلى رحمة الله

11 سبتمبر, 2008

انتقل زميلنا العزيز: أحمد بن زيد الكثيري هو ووالدته إلى رحمة الله. وذلك في حادث مروي أثناء سفرهما لأداء العمرة.

كل التعازي لأخي وزميلي: عبدالرحمن الشريف والأخ د.تركي الشريف و الأخ العزيز: أسامة الكثيري.

وإلى جميع الإخوة الزملاء الأعزاء.

إنا لله وإنا إليه راجعون.