<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>&#8235;Htm - אחלה טיפים לבניית אתרים &#187; וידאו&#8236;</title>	<atom:link href="http://www.htm.co.il/tag/%d7%95%d7%99%d7%93%d7%90%d7%95/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.htm.co.il</link>
	<description>&#8235;מדריכים ומאמרים בנושא בניית אתרים. כל יום משהו חדש ללמוד, וליישם.&#8236;</description>	<lastBuildDate>Wed, 18 Jan 2012 09:32:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>il</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>&#8235;הוספת כתוביות לתגית וידאו&#8236;</title>		<link>http://www.htm.co.il/2009/12/15/%d7%94%d7%95%d7%a1%d7%a4%d7%aa-%d7%9b%d7%aa%d7%95%d7%91%d7%99%d7%95%d7%aa-%d7%9c%d7%aa%d7%92%d7%99%d7%aa-%d7%95%d7%99%d7%93%d7%90%d7%95/</link>
		<comments>http://www.htm.co.il/2009/12/15/%d7%94%d7%95%d7%a1%d7%a4%d7%aa-%d7%9b%d7%aa%d7%95%d7%91%d7%99%d7%95%d7%aa-%d7%9c%d7%aa%d7%92%d7%99%d7%aa-%d7%95%d7%99%d7%93%d7%90%d7%95/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 14:48:31 +0000</pubDate>
		<dc:creator>&#8235;אורן רוט&#8236;</dc:creator>				<category><![CDATA[בניית אתרים]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[וידאו]]></category>

		<guid isPermaLink="false">http://www.htm.co.il/?p=973</guid>
		<description><![CDATA[&#8235;השבוע דפדפן פיירפוקס חגג 5 שנים להיווסדו, בדף האינטרנט שהוקם לחגיגה ראיתי סרטון בפורמט פתוח שמתנגן עם כתוביות. ישר חיפשתי את אופן הפעולה לשילוב הכתוביות וכמובן שמצאתי. במדריך היום אני אסביר לכם כיצד להוסיף כתוביות לתגית video באמצעות קוד JS.&#8236;]]></description>			<content:encoded><![CDATA[<div dir="rtl"><p>הוספת כתוביות לסרטון וידאו זה בהחלט לא דבר חדש. בטכניקת <strong>הארדסאב </strong>(<em>hard-sub</em>) ניתן לצרוב את הכתוביות על גבי הסרטון ולעלות אותו לאינטרנט ובטכניקת <strong>סופטפאב</strong> (<em>soft-sub</em>) ניתן להציג סרטון עם כתוביות באמצעות שילוב של טכנולוגיית פלאש. מה שאני אלמד אתכם היום היא טכניקת סופטסאב להוספת כתוביות לסרטון המתנגן בתגית וידאו. </p>
<p>במדריך היום אנו נשתמש בסרטון וידאו בפורמט <strong>OGG</strong> או <strong>OGV </strong>(פורמט OGV הוא למעשה מקרה פרטי של OGG מכיוון ו-OGG יכול להתייחס גם לסאונד) ובכתוביות בפורמט SRT.  </p>
<p>היתרונות של הטכניקה שנלמד היום היא שהיא משתמשת בפורמטים פתוחים (OGG ו-SRT), היישום שלה מאוד פשוט ודינאמי ובתוך קובץ הכתוביות אנחנו יכולים לשלב תגיות HTML שיופיעו מאוחר יותר כחלק מן הכתוביות.</p>
<div id="DemoAndCodeBtns"><a id="demoLink" href="http://htm.co.il/lab/videoSub" target="_blank"><span>&lt;</span>דוגמא<span>&gt;</span></a><a href="http://htm.co.il/lab/videoSub/videoSub.rar" target="_blank"><span>&lt;</span>קוד<span>&gt;</span></a></div>
<h3>קוד ה-HTML</h3>
<p>בואו תחילה נביט בקוד ה-HTML:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:580px;height:auto;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;video_subtitles.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; #subtitle {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; background-color: rgba(255, 255, 255, 0.7);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding:10px 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; position: absolute;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bottom: 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 100%;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; color: black;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; visibility: hidden;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font-size: 1em;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align:center;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; direction:rtl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; #video {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width:432px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height:240px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; direction:ltr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;video <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;video&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;video5.ogv&quot;</span> controls<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> subtitles<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en.srt&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span>video&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;subtitle&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;visibility: hidden;&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></div></td></tr></tbody></table></div>
<p>וכעת ההסבר. בשורה 4 אנחנו למעשה מוסיפים כהרגלנו בקודש את ספריית ה-jQuery מתוך google. בשורה הבא אנחנו נוסיף את הסקריפט שיגרום לכל הכתוביות להופיע (מקורהסקריפט הוא מהבלוג <a href="http://blog.mozbox.org/post/2009/03/10/video-tag-and-subtitles">mozbox</a>). </p>
<p>לאחר מכן בין שורות 7-26 אנחנו מגדירים עיצוב CSS לוידאו ולשורת הכתוביות, אני לא ארחיב על נושא העיצוב.  </p>
<p>ועכשיו הגענו לעיקר, שורות 32-33 בואו נביט בהם שוב:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:580px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;video <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;video&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;video5.ogv&quot;</span> controls<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> subtitles<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en.srt&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span>video&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;subtitle&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;visibility: hidden;&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></div></td></tr></tbody></table></div>
<p>הוספנו למעשה שני דברים:</p>
<p><strong> תגית וידאו -</strong> התגית מכילה id בשם video, קישור לקובץ הוידאו (בפורמט OGV), לחצני פעולה (המאפיין controls לא צריך לקבל שום ערך) וקישור לקובץ הכתוביות שלנו (בפורמט SRT).</p>
<p><strong>אלמנט div ריק -</strong> האלמנט מכיל id בשם subtitles והוא מוסתר.</p>
<p>אם פעלתם לפי כל ההוראות עד עכשיו צריך להיות גם לכם סרטון עם כתוביות. אתם מוזמנים להוריד את קבצי המקור ולהביט בקוד הJS שמפעיל את הכתוביות.</p>
<div class="warning"><strong>שימו לב! </strong>הסרטון נתמך אך ורק בדפדפנים מודרנים שתומכים בתגית video (תקן HTML 5). קרי <strong>Firefox 3.1/3.5</strong> או <strong>chorme</strong>.</div>
<h3>עוד באותו נושא:</h3><ul class="related_post"><li  class="relatedPost"><a href="http://www.htm.co.il/2010/02/28/%d7%91-2010-%d7%90%d7%a0%d7%97%d7%a0%d7%95-%d7%a2%d7%95%d7%91%d7%a8%d7%99%d7%9d-%d7%9c-offline/" title="<!--:il-->ב-2010 אנחנו עוברים ל-Offline<!--:-->"><img src="http://htm.co.il/wp-content/post-images/1045.jpg" /><!--:il-->ב-2010 אנחנו עוברים ל-Offline<!--:--></a><div style="clear: both;"></div></li><li  class="relatedPost"><a href="http://www.htm.co.il/2009/11/15/%d7%9e%d7%a4%d7%aa-%d7%90%d7%aa%d7%a8-%d7%a6%d7%91%d7%a2%d7%95%d7%a0%d7%99%d7%aa-%d7%91%d7%a2%d7%96%d7%a8%d7%aa-jquery/" title="מפת אתר צבעונית בעזרת jQuery"><img src="http://htm.co.il/wp-content/post-images/859.jpg" />מפת אתר צבעונית בעזרת jQuery</a><div style="clear: both;"></div></li></ul></div>]]></content:encoded>			<wfw:commentRss>http://www.htm.co.il/2009/12/15/%d7%94%d7%95%d7%a1%d7%a4%d7%aa-%d7%9b%d7%aa%d7%95%d7%91%d7%99%d7%95%d7%aa-%d7%9c%d7%aa%d7%92%d7%99%d7%aa-%d7%95%d7%99%d7%93%d7%90%d7%95/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>&#8235;Screenr &#8211; דרך מאוד נוחה להקליט צילומי מסך&#8236;</title>		<link>http://www.htm.co.il/2009/09/11/screenr-%d7%93%d7%a8%d7%9a-%d7%9e%d7%90%d7%95%d7%93-%d7%a0%d7%95%d7%97%d7%94-%d7%9c%d7%94%d7%a7%d7%9c%d7%99%d7%98-%d7%a6%d7%99%d7%9c%d7%95%d7%9e%d7%99-%d7%9e%d7%a1%d7%9a/</link>
		<comments>http://www.htm.co.il/2009/09/11/screenr-%d7%93%d7%a8%d7%9a-%d7%9e%d7%90%d7%95%d7%93-%d7%a0%d7%95%d7%97%d7%94-%d7%9c%d7%94%d7%a7%d7%9c%d7%99%d7%98-%d7%a6%d7%99%d7%9c%d7%95%d7%9e%d7%99-%d7%9e%d7%a1%d7%9a/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 19:58:54 +0000</pubDate>
		<dc:creator>&#8235;אורן רוט&#8236;</dc:creator>				<category><![CDATA[המלצות]]></category>
		<category><![CDATA[screenr]]></category>
		<category><![CDATA[וידאו]]></category>
		<category><![CDATA[פלאש]]></category>
		<category><![CDATA[צילומי מסך]]></category>

		<guid isPermaLink="false">http://www.htm.co.il/?p=325</guid>
		<description><![CDATA[&#8235;אפלקצייה צד שרת להקלטת וידאו של צילומי מסך. כלי חינמי פשוט ונוח - מומלץ!&#8236;]]></description>			<content:encoded><![CDATA[<div dir="rtl"><p>בתור בונה אתרים אני מבקר בהרבה מאוד בלוגים ואתרים שמציעים מדריכים באמצעות <abbr title="וידאו של צילום המסך">screencast</abbr>.</p>
<p>האתר <a href="http://screenr.com" target="_blank">screenr.com</a> מציע שירות חינמי לגמריי להקלטת צילומי מסך, אבל למה לדבר שאפשר לשמוע ולראות:</p>
<p><object width="560" height="345" data="http://screenr.com/Content/assets/screenr_0817090731.swf" type="application/x-shockwave-flash"><param name="flashvars" value="i=11654" /><param name="allowFullScreen" value="true" /><param name="src" value="http://screenr.com/Content/assets/screenr_0817090731.swf" /><param name="allowfullscreen" value="true" /></object></p>
<p>כמובן שאת הוידאו הזה יצרתי בscreenr. המגבלה היחידה שנתקלתי בה בscreenr היא שהאתר מגביל את אורך ההקלטה לעד 5 דקות, אבל בל נשכח שזה מאוחסן בחינם בשרתי screenr. אז כל עוד יש לך מסר קצר ופשוט להעביר screenr הוא פתרון נפלא.</p>
<h3>עוד באותו נושא:</h3><ul class="related_post"><li  class="relatedPost"><a href="http://www.htm.co.il/2010/01/17/%d7%92%d7%9c%d7%a8%d7%99%d7%99%d7%aa-%d7%a4%d7%9c%d7%90%d7%a9-%d7%a2%d7%9c-%d7%91%d7%a1%d7%99%d7%a1-xml-%d7%9e%d7%aa%d7%a0%d7%94/" title="גלריית פלאש על בסיס XML מתנה!"><img src="http://htm.co.il/wp-content/post-images/988.jpg" />גלריית פלאש על בסיס XML מתנה!</a><div style="clear: both;"></div></li><li  class="relatedPost"><a href="http://www.htm.co.il/2009/12/15/%d7%94%d7%95%d7%a1%d7%a4%d7%aa-%d7%9b%d7%aa%d7%95%d7%91%d7%99%d7%95%d7%aa-%d7%9c%d7%aa%d7%92%d7%99%d7%aa-%d7%95%d7%99%d7%93%d7%90%d7%95/" title="<!--:il-->הוספת כתוביות לתגית וידאו<!--:--><!--:en-->Adding subtitles to a video tag<!--:-->"><img src="http://htm.co.il/wp-content/post-images/973.jpg" /><!--:il-->הוספת כתוביות לתגית וידאו<!--:--><!--:en-->Adding subtitles to a video tag<!--:--></a><div style="clear: both;"></div></li></ul></div>]]></content:encoded>			<wfw:commentRss>http://www.htm.co.il/2009/09/11/screenr-%d7%93%d7%a8%d7%9a-%d7%9e%d7%90%d7%95%d7%93-%d7%a0%d7%95%d7%97%d7%94-%d7%9c%d7%94%d7%a7%d7%9c%d7%99%d7%98-%d7%a6%d7%99%d7%9c%d7%95%d7%9e%d7%99-%d7%9e%d7%a1%d7%9a/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>



