{"id":1829,"date":"2011-03-23T23:17:45","date_gmt":"2011-03-23T21:17:45","guid":{"rendered":"http:\/\/firefang.net\/blog\/?p=1829"},"modified":"2011-03-24T00:09:21","modified_gmt":"2011-03-23T22:09:21","slug":"%d7%90%d7%99%d7%9a-%d7%9c%d7%94%d7%95%d7%a8%d7%99%d7%93-%d7%a1%d7%a8%d7%98%d7%99-%d7%99%d7%95%d7%98%d7%99%d7%95%d7%91-%d7%9c%d7%a6%d7%a4%d7%99%d7%94-%d7%90%d7%95%d7%a4%d7%9c%d7%99%d7%99%d7%9f-%d7%91","status":"publish","type":"post","link":"https:\/\/firefang.net\/blog\/1829","title":{"rendered":"\u05d0\u05d9\u05da \u05dc\u05d4\u05d5\u05e8\u05d9\u05d3 \u05e1\u05e8\u05d8\u05d9 \u05d9\u05d5\u05d8\u05d9\u05d5\u05d1 \u05dc\u05e6\u05e4\u05d9\u05d4 \u05d0\u05d5\u05e4\u05dc\u05d9\u05d9\u05df \u05d1\u05d0\u05d9\u05d9\u05e4\u05d3\/\u05d0\u05d9\u05d9\u05e4\u05d5\u05df"},"content":{"rendered":"<p>\u05db\u05df, \u05d0\u05e0\u05d9 \u05d9\u05d5\u05d3\u05e2 \u05e9\u05de\u05d6\u05de\u05df \u05dc\u05d0 \u05d4\u05d9\u05d4 \u05e4\u05d4 \u05e4\u05d5\u05e1\u05d8, \u05ea\u05ea\u05d1\u05e2\u05d5 \u05d0\u05d5\u05ea\u05d9 ;).<\/p>\n<p>\u05d0\u05d7\u05d3 \u05d4\u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d0\u05e3 \u05e4\u05e2\u05dd \u05dc\u05d0 \u05e2\u05d5\u05d1\u05d3 \u05db\u05de\u05d5 \u05e9\u05e6\u05e8\u05d9\u05da \u05d1\u05d0\u05d9\u05d9\u05e4\u05d5\u05df \u05d5\u05d1\u05d0\u05d9\u05d9\u05e4\u05d3 (\u05d5\u05d1\u05d0\u05d9\u05d9\u05e4\u05d5\u05d3) \u05d6\u05d4 YouTube. \u05db\u05dc\u05d5\u05de\u05e8 &#8211; \u05d9\u05e9 \u05d9\u05e9\u05d5\u05dd \u05e9\u05dc \u05d0\u05e4\u05dc \u05dc\u05e6\u05d5\u05e8\u05da \u05d4\u05e2\u05e0\u05d9\u05d9\u05df, \u05d0\u05d1\u05dc \u05d4\u05d7\u05d5\u05d5\u05d9\u05d4 \u05dc\u05d0 \u05de\u05e8\u05e0\u05d9\u05e0\u05d4:<br \/>\n\u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05dc\u05d0 \u05ea\u05e6\u05dc\u05d9\u05d7\u05d5 \u05dc\u05e8\u05d0\u05d5\u05ea \u05e1\u05e8\u05d8\u05d5\u05df \u05d1\u05dc\u05d9 \u05d2\u05de\u05d2\u05d5\u05de\u05d9\u05dd, \u05d2\u05dd \u05d0\u05dd \u05d0\u05ea\u05dd \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1\u05e8\u05e9\u05ea \u05d0\u05dc\u05d7\u05d5\u05d8\u05d9\u05ea \u05de\u05d4\u05d9\u05e8\u05d4 \u05e2\u05dd \u05d7\u05d9\u05d1\u05d5\u05e8 \u05d0\u05d9\u05e0\u05d8\u05e8\u05e0\u05d8 \u05e9\u05de\u05df \u05d5\u05d8\u05d5\u05d1.<\/p>\n<p>\u05dc\u05d0\u05d7\u05e8\u05d5\u05e0\u05d4 \u05d0\u05e0\u05d9 \u05e6\u05d5\u05e4\u05d4 \u05d1\u05d3\u05d9 \u05d4\u05e8\u05d1\u05d4 \u05de\u05e9\u05d7\u05e7\u05d9 \u05e1\u05d8\u05d0\u05e8\u05e7\u05e8\u05e4\u05d8 \u05d1\u05d9\u05d5\u05d8\u05d9\u05d5\u05d1, \u05d5\u05d4\u05e4\u05e8\u05d9\u05e2 \u05dc\u05d9 \u05d7\u05d5\u05e1\u05e8 \u05d4\u05d9\u05db\u05d5\u05dc\u05ea \u05dc\u05e8\u05d0\u05d5\u05ea \u05d0\u05ea \u05d4\u05de\u05e9\u05d7\u05e7\u05d9\u05dd \u05e2\u05dc \u05d4\u05d0\u05d9\u05d9\u05e4\u05d3.<br \/>\n\u05d6\u05d4 \u05d4\u05d1\u05d9\u05d0 \u05dc\u05d9 \u05e8\u05e2\u05d9\u05d5\u05df:<br \/>\n\u05de\u05d4 \u05d0\u05dd \u05e0\u05d5\u05e8\u05d9\u05d3 \u05de\u05e8\u05d0\u05e9 \u05d0\u05ea \u05d4\u05e1\u05e8\u05d8\u05d5\u05e0\u05d9\u05dd, \u05d5\u05e0\u05d9\u05ea\u05df \u05d0\u05d5\u05ea\u05dd \u05dc\u05d0\u05d9\u05d9\u05e4\u05d3 \u05d1\u05e6\u05d5\u05e8\u05ea \u05e4\u05d9\u05d3 RSS &#8211; \u05de\u05de\u05e9 \u05db\u05de\u05d5 \u05e9\u05e6\u05d5\u05e4\u05d9\u05dd \u05d1\u05e4\u05d5\u05e7\u05e1\u05d8 \u05d5\u05d9\u05d3\u05d0\u05d5 &#8211; \u05db\u05db\u05d4 \u05e9\u05e0\u05d5\u05db\u05dc \u05dc\u05e8\u05d0\u05d5\u05ea \u05d0\u05d5\u05ea\u05dd \u05d1\u05dc\u05d9 \u05dc\u05d4\u05d9\u05d5\u05ea \u05ea\u05dc\u05d5\u05d9\u05d9\u05dd \u05d1\u05d7\u05e1\u05d3\u05d9 \u05de\u05d4\u05d9\u05e8\u05d5\u05ea \u05d4\u05ea\u05e7\u05e9\u05d5\u05e8\u05ea \u05dc\u05d9\u05d5\u05d8\u05d9\u05d5\u05d1?<\/p>\n<p>\u05d0\u05d6 \u05d1\u05ea\u05d5\u05e8 \u05d4\u05ea\u05d7\u05dc\u05d4, \u05d4\u05e6\u05e6\u05d4 \u05dc\u05de\u05d8\u05e8\u05d4 \u05e9\u05dc \u05db\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8 \u05d4\u05d6\u05d4:<br \/>\n<a href=\"http:\/\/youtube-rss.firefang.net\/feed.xml\">\u05d4\u05e0\u05d4<\/a> \u05e4\u05d9\u05d3 \u05d4\u05e8\u05e1\u05e1 \u05e9\u05dc \u05d4\u05e2\u05e8\u05d5\u05e6\u05d9\u05dd \u05e9\u05d0\u05e0\u05d9 \u05de\u05e0\u05d5\u05d9 \u05e2\u05dc\u05d4\u05dd \u05d1\u05d9\u05d5\u05d8\u05d9\u05d5\u05d1 (Subscriptions).<br \/>\n\u05d0\u05ea \u05d4\u05e4\u05d9\u05d3 \u05d4\u05d6\u05d4 \u05d4\u05d5\u05e1\u05e4\u05ea\u05d9 \u05dc\u05d0\u05d9\u05d9\u05d8\u05d5\u05e0\u05d6 (\u05db\u05e4\u05d5\u05d3\u05e7\u05d0\u05e1\u05d8), \u05d5\u05de\u05d0\u05d5\u05ea\u05d5 \u05e8\u05d2\u05e2 \u05d4\u05d5\u05d0 \u05de\u05d5\u05e8\u05d9\u05d3 \u05d0\u05ea \u05d4\u05e1\u05e8\u05d8\u05d5\u05e0\u05d9\u05dd \u05d5\u05de\u05e1\u05e0\u05db\u05e8\u05df \u05d0\u05d5\u05ea\u05dd \u05dc\u05d0\u05d9\u05d9\u05e4\u05d3.<\/p>\n<p>\u05d0\u05d6 \u05d0\u05d9\u05da \u05db\u05dc \u05d6\u05d4 \u05e7\u05d5\u05e8\u05d4?<\/p>\n<p>\u05d4\u05db\u05dc \u05de\u05ea\u05d7\u05d9\u05dc <a href=\"http:\/\/code.google.com\/apis\/youtube\/2.0\/reference.html\">\u05d1API \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05dc \u05d9\u05d5\u05d8\u05d9\u05d5\u05d1<\/a>, \u05e9\u05de\u05d0\u05e4\u05e9\u05e8 \u05e7\u05d1\u05dc\u05ea \u05e4\u05d9\u05d3\u05d9 RSS \u05e9\u05d5\u05e0\u05d9\u05dd \u05d5\u05de\u05e9\u05d5\u05e0\u05d9\u05dd, \u05db\u05e9\u05d4\u05e9\u05d9\u05de\u05d5\u05e9\u05d9 \u05e9\u05d1\u05d4\u05dd \u05de\u05d1\u05d7\u05d9\u05e0\u05ea\u05d9 \u05d4\u05d5\u05d0 \u05e4\u05d9\u05d3 \u05e9\u05de\u05d0\u05e4\u05e9\u05e8 \u05e7\u05d1\u05dc\u05ea \u05d4\u05e1\u05e8\u05d8\u05d5\u05e0\u05d9\u05dd \u05d4\u05d7\u05d3\u05e9\u05d9\u05dd \u05d1\u05e2\u05e8\u05d5\u05e6\u05d9\u05dd \u05e9\u05de\u05e9\u05ea\u05de\u05e9 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd \u05de\u05e0\u05d5\u05d9 \u05e2\u05dc\u05d9\u05d4\u05dd:<br \/>\n<a href=\"http:\/\/gdata.youtube.com\/feeds\/base\/users\/omryy\/newsubscriptionvideos\"><br \/>\nhttp:\/\/gdata.youtube.com\/feeds\/base\/users\/omryy\/newsubscriptionvideos<\/a><\/p>\n<p>\u05e9\u05d9\u05de\u05d5 \u05dc\u05d1 \u05e9\u05e9\u05dd \u05d4\u05de\u05e9\u05ea\u05de\u05e9 \u05e9\u05dc\u05d9 \u05d4\u05d5\u05d0 \u05d7\u05dc\u05e7 \u05de\u05d4URL.<br \/>\n\u05e7\u05dc \u05dc\u05de\u05d3\u05d9 \u05dc\u05d7\u05dc\u05e5 \u05de\u05e4\u05d4 \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4URL\u05d9\u05dd \u05dc\u05e1\u05e8\u05d8\u05d5\u05e0\u05d9\u05dd \u05e9\u05de\u05d5\u05e4\u05d9\u05e2\u05d9\u05dd \u05d1\u05e4\u05d9\u05d3, \u05dc\u05de\u05e9\u05dc \u05e2\u05dd \u05d4\u05e1\u05e7\u05e8\u05d9\u05e4\u05d8 \u05d4\u05d6\u05d4:<br \/>\n[CODE]<br \/>\nGET &quot;http:\/\/gdata.youtube.com\/feeds\/base\/users\/omryy\/newsubscriptionvideos&quot; | grep http:\/\/www.youtube.com\/watch?v=[a-zA-Z0-9_\\-]* -o | sort  -u<br \/>\n[\/CODE]<br \/>\n\u05d4\u05e1\u05e7\u05e8\u05d9\u05e4\u05d8, \u05d1\u05e4\u05e9\u05d8\u05d5\u05ea &#8211; \u05de\u05d5\u05e8\u05d9\u05d3 \u05d0\u05ea \u05d4\u05e4\u05d9\u05d3, \u05de\u05d7\u05e4\u05e9 \u05d1\u05ea\u05d5\u05db\u05d5 URL\u05d9\u05dd \u05e9\u05e0\u05e8\u05d0\u05d9\u05dd \u05db\u05de\u05d5 \u05dc\u05d9\u05e0\u05e7\u05d9\u05dd \u05dc\u05e1\u05e8\u05d8\u05d5\u05df \u05d1\u05d9\u05d5\u05d8\u05d9\u05d5\u05d1, \u05d5\u05de\u05d1\u05d8\u05dc \u05db\u05e4\u05d9\u05dc\u05d5\u05d9\u05d5\u05ea \u05e9\u05de\u05d5\u05e4\u05d9\u05e2\u05d5\u05ea \u05de\u05e1\u05d9\u05d1\u05d4 \u05dc\u05d0 \u05d7\u05e9\u05d5\u05d1\u05d4 \u05d1\u05e4\u05d9\u05d3.<\/p>\n<p>\u05d4\u05e6\u05e2\u05d3 \u05d4\u05d1\u05d0 \u05d4\u05d5\u05d0 \u05dc\u05d4\u05d5\u05e8\u05d9\u05d3 \u05d0\u05ea \u05d4\u05e1\u05e8\u05d8\u05d9\u05dd \u05e2\u05e6\u05de\u05dd (\u05d4\u05dc\u05d9\u05e0\u05e7\u05d9\u05dd \u05d1\u05e4\u05d9\u05d3 \u05d4\u05dd \u05dc\u05d9\u05e0\u05e7\u05d9\u05dd \u05dc\u05e6\u05e4\u05d9\u05d4 \u05d9\u05e9\u05d9\u05e8\u05d5\u05ea \u05d1\u05d9\u05d5\u05d8\u05d9\u05d5\u05d1).<br \/>\n\u05dc\u05e9\u05dd \u05db\u05da \u05e0\u05e9\u05ea\u05de\u05e9 \u05d1\u05db\u05dc\u05d9 \u05d4\u05d7\u05d1\u05d9\u05d1 \u05d1\u05de\u05d9\u05d5\u05d7\u05d3, <a href=\"http:\/\/rg3.github.com\/youtube-dl\/\">youtube-dl<\/a>,<\/p>\n<p>\u05d4\u05e4\u05e7\u05d5\u05d3\u05d4 \u05d4\u05d1\u05d0\u05d4 \u05ea\u05d5\u05e8\u05d9\u05d3 \u05d0\u05ea \u05d4\u05e1\u05e8\u05d8\u05d5\u05df \u05de\u05d4URL \u05d4\u05e0\u05ea\u05d5\u05df, \u05d5\u05ea\u05e9\u05de\u05d5\u05e8 \u05d0\u05d5\u05ea\u05d5 \u05d1\u05e4\u05d5\u05e8\u05de\u05d8 \u05e0\u05d7\u05de\u05d3 \u05d5\u05d1\u05e8\u05d5\u05e8 \u05e9\u05db\u05d5\u05dc\u05dc \u05d0\u05ea \u05d4\u05e9\u05dd \u05e9\u05dc \u05de\u05d9 \u05e9\u05d4\u05e2\u05dc\u05d4, \u05d5\u05db\u05df \u05e9\u05dd \u05e7\u05d5\u05d1\u05e5 \u05e9\u05dc \u05d4\u05db\u05d5\u05ea\u05e8\u05ea \u05e9\u05dc \u05d4\u05e1\u05e8\u05d8\u05d9\u05dd.<br \/>\n<strong>youtube-dl -w YOUTUBE_URL -o &quot;%\\(uploader\\)s-%\\(stitle\\)s.%\\(ext\\)s&quot;<\/strong><br \/>\n\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d7\u05d1\u05e8 \u05d0\u05ea \u05d4\u05e4\u05e7\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05dc\u05e4\u05e7\u05d5\u05d3\u05d4 \u05e9\u05de\u05d7\u05dc\u05e6\u05ea \u05d0\u05ea \u05d4URL\u05d9\u05dd \u05de\u05d4\u05e4\u05d9\u05d3 \u05ea\u05d5\u05da \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1xargs, \u05d0\u05d1\u05dc \u05d1\u05d7\u05e8\u05ea\u05d9 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1<a href=\"http:\/\/www.gnu.org\/software\/parallel\/\">GNU Parallel<\/a> \u05e9\u05de\u05d0\u05e4\u05e9\u05e8 \u05d4\u05e4\u05e2\u05dc\u05d4 \u05e9\u05dc \u05e4\u05e7\u05d5\u05d3\u05d4 \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea \u05db\u05de\u05d4 \u05e4\u05e2\u05de\u05d9\u05dd \u05d1\u05de\u05e7\u05d1\u05d9\u05dc (\u05d1\u05d3\u05d5\u05de\u05d4 \u05de\u05d0\u05d5\u05d3 \u05dcxargs, \u05e8\u05e7 \u05d1\u05de\u05e7\u05d1\u05d9\u05dc).<\/p>\n<p>\u05d0\u05d6 \u05d4\u05e4\u05e7\u05d5\u05d3\u05d4 \u05d4\u05e9\u05dc\u05de\u05d4 \u05dc\u05d4\u05d5\u05e8\u05d3\u05ea \u05d4\u05e1\u05e8\u05d8\u05d5\u05e0\u05d9\u05dd \u05e9\u05de\u05e2\u05e0\u05d9\u05d9\u05e0\u05d9\u05dd \u05d0\u05d5\u05ea\u05d9 \u05d4\u05d9\u05d0:<br \/>\n[CODE]<br \/>\n#!\/bin\/bash<br \/>\nsource conf<br \/>\npushd $YT_DOWNLOAD_DIR<br \/>\nGET &quot;http:\/\/gdata.youtube.com\/feeds\/base\/users\/omryy\/newsubscriptionvideos&quot; | grep http:\/\/www.youtube.com\/watch?v=[a-zA-Z0-9_\\-]* -o | sort  -u | $BIN_DIR\/parallel -j $CONCURRENT_DOWNLOADS $BIN_DIR\/youtube-dl -w {} -o &quot;%\\(uploader\\)s-%\\(stitle\\)s.%\\(ext\\)s&quot;<br \/>\npopd<br \/>\n[\/CODE]<\/p>\n<p>\u05d4\u05e1\u05e7\u05e8\u05d9\u05e4\u05d8 \u05d4\u05d6\u05d4 (\u05d5\u05d4\u05d1\u05d0\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05d5) \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05e7\u05d5\u05d1\u05e5 \u05d4\u05d4\u05d2\u05d3\u05e8\u05d5\u05ea \u05d4\u05d1\u05d0:<br \/>\n[CODE]<br \/>\nBIN_DIR=\/home\/omry\/youtube-rss\/bin<br \/>\nYT_DOWNLOAD_DIR=\/home\/omry\/youtube-rss\/download<br \/>\nCONCURRENT_DOWNLOADS=20<br \/>\nRSS_WEB_DIR=\/home\/omry\/www\/youtube-rss.firefang.net<br \/>\nRSS_BASE_URL=http:\/\/youtube-rss.firefang.net<\/p>\n<p># Delete older than X days<br \/>\nDELETE_OLDER=14<br \/>\n[\/CODE]<br \/>\n\u05e2\u05d3 \u05e4\u05d4, \u05d4\u05db\u05dc \u05d8\u05d5\u05d1.<br \/>\n\u05d4\u05e4\u05e7\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05ea\u05d5\u05e8\u05d9\u05d3 \u05e8\u05e7 \u05e7\u05d1\u05e6\u05d9\u05dd \u05d7\u05d3\u05e9\u05d9\u05dd \u05e9\u05dc\u05d0 \u05d4\u05d5\u05e8\u05d3\u05d5 \u05db\u05d1\u05e8 (\u05d4\u05d3\u05d2\u05dc -w).<\/p>\n<p>\u05db\u05e9\u05e0\u05d9\u05e1\u05d9\u05ea\u05d9 \u05dc\u05d4\u05e2\u05dc\u05d5\u05ea \u05dc\u05d0\u05d9\u05d9\u05e4\u05d3 \u05d0\u05ea \u05d4\u05e7\u05d1\u05e6\u05d9\u05dd \u05d4\u05d0\u05dc\u05d5, \u05e9\u05de\u05ea\u05d9 \u05dc\u05d1 \u05e9\u05d4\u05d5\u05d0 \u05d4\u05d7\u05dc\u05d9\u05d8 \u05dc\u05d3\u05dc\u05d2 \u05e2\u05dc \u05d7\u05dc\u05e7 \u05d2\u05d3\u05d5\u05dc \u05de\u05d4\u05dd.<br \/>\n\u05de\u05e1\u05ea\u05d1\u05e8 \u05e9\u05db\u05dc \u05d4\u05e7\u05d1\u05e6\u05d9\u05dd \u05e9\u05d3\u05d5\u05dc\u05d2\u05d5 \u05d4\u05d9\u05d5 \u05d1\u05e8\u05d6\u05d5\u05dc\u05d5\u05e6\u05d9\u05d4 \u05e9\u05dc HD \u05de\u05dc\u05d0 (1920X1080).<br \/>\n\u05d0\u05d5\u05e7\u05d9\u05d9, \u05d0\u05d6 \u05d6\u05d4 \u05d4\u05d3\u05d1\u05e8 \u05d4\u05d1\u05d0 \u05e9\u05e6\u05e8\u05d9\u05da \u05dc\u05ea\u05e7\u05df.<br \/>\n\u05d1\u05d4\u05ea\u05d7\u05dc\u05d4 \u05d7\u05e9\u05d1\u05ea\u05d9 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1ffmpeg &#8211; \u05e9\u05d4\u05d9\u05d0 \u05d4\u05e4\u05ea\u05e8\u05d5\u05df \u05d4\u05de\u05e7\u05d5\u05d1\u05dc \u05dc\u05e7\u05d9\u05d3\u05d5\u05d3 \u05e7\u05d1\u05e6\u05d9 \u05d5\u05d9\u05d3\u05d0\u05d5.<br \/>\n\u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05d9\u05d0 \u05e9\u05e6\u05e8\u05d9\u05da \u05dc\u05e7\u05de\u05e4\u05dc \u05d2\u05e8\u05e1\u05d0 \u05e9\u05dc\u05d4 \u05e9\u05ea\u05d5\u05de\u05db\u05ea \u05d1H264 (\u05d4\u05e7\u05d9\u05d3\u05d5\u05d3 \u05e9\u05de\u05ea\u05d0\u05d9\u05dd \u05dc\u05de\u05db\u05e9\u05d9\u05e8\u05d9 \u05d0\u05e4\u05dc), \u05d5\u05e9\u05d1\u05d0\u05d5\u05e4\u05df \u05db\u05dc\u05dc\u05d9 \u05d3\u05d9 \u05e7\u05e9\u05d4 \u05dc\u05d2\u05e8\u05d5\u05dd \u05dc\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05de\u05d4 \u05e9\u05d0\u05ea\u05dd \u05e8\u05d5\u05e6\u05d9\u05dd.<br \/>\n\u05d0\u05d7\u05e8\u05d9 \u05d4\u05de\u05e9\u05da \u05d7\u05e4\u05d9\u05e8\u05d5\u05ea \u05de\u05e6\u05d0\u05ea\u05d9 \u05d0\u05ea <a href=\"http:\/\/handbrake.fr\/\">Handbreak<\/a> \u05e9\u05d4\u05d9\u05d0 \u05ea\u05d5\u05db\u05e0\u05d4 (\u05d1\u05e7\u05d5\u05d3 \u05e4\u05ea\u05d5\u05d7 \u05db\u05de\u05d5 \u05db\u05dc \u05e9\u05d0\u05e8 \u05d4\u05d3\u05d1\u05e8\u05d9\u05dd \u05d1\u05e4\u05d5\u05e1\u05d8 \u05d4\u05d6\u05d4) \u05e9\u05ea\u05e4\u05e7\u05d9\u05d3\u05d4 \u05d1\u05d7\u05d9\u05d9\u05dd \u05d4\u05d5\u05d0 \u05dc\u05e7\u05d5\u05d3\u05d3 \u05e1\u05e8\u05d8\u05d5\u05e0\u05d9\u05dd \u05dc\u05d0\u05d9\u05d9\u05e4\u05d5\u05d3, \u05d0\u05d9\u05d9\u05e4\u05d5\u05df \u05d0\u05d9\u05d9\u05e4\u05d3 \u05d5\u05e9\u05d0\u05e8 \u05d7\u05d1\u05e8\u05d9\u05dd \u05d1\u05e6\u05d5\u05e8\u05d4 \u05de\u05d0\u05d5\u05d3 \u05e4\u05e9\u05d5\u05d8\u05d4.<br \/>\nHandbreak \u05de\u05d2\u05d9\u05e2\u05d4 \u05e2\u05dd \u05de\u05de\u05e9\u05e7 GTK \u05e9\u05dc\u05d0 \u05de\u05de\u05e9 \u05e2\u05e0\u05d9\u05d9\u05df \u05d0\u05d5\u05ea\u05d9, \u05d5\u05e2\u05dd \u05e9\u05d5\u05e8\u05ea \u05e4\u05e7\u05d5\u05d3\u05d4 \u05e9\u05de\u05d0\u05d5\u05d3 \u05e2\u05e0\u05d9\u05d9\u05e0\u05d4 \u05d0\u05d5\u05ea\u05d9.<br \/>\n\u05d0\u05d2\u05d1, \u05d4\u05d9\u05d0 \u05de\u05e9\u05ea\u05de\u05e9\u05ea \u05d1libavcodec \u05de\u05d1\u05d9\u05ea \u05d4\u05d9\u05d5\u05e6\u05e8 \u05e9\u05dc \u05de\u05e4\u05ea\u05d7\u05d9 ffmpeg.<br \/>\n\u05dc\u05e2\u05e0\u05d9\u05d9\u05e0\u05d9\u05e0\u05d5, \u05d4\u05e4\u05e7\u05d5\u05d3\u05d4 \u05dc\u05e7\u05d9\u05d3\u05d5\u05d3 \u05e1\u05e8\u05d8\u05d5\u05df \u05dc\u05e4\u05d5\u05e8\u05de\u05d8 \u05d0\u05d9\u05d9\u05e4\u05d3 \u05d4\u05d9\u05d0 :<br \/>\n[CODE]<br \/>\nHandBrakeCLI -Z iPad -i input_file -o output_file.mp4<br \/>\n[\/CODE]<br \/>\n\u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05d9\u05d5\u05ea\u05e8 \u05e4\u05e9\u05d5\u05d8 \u05de\u05d6\u05d4.<\/p>\n<p>\u05d4\u05ea\u05d4\u05dc\u05d9\u05da \u05e2\u05e6\u05de\u05d5 \u05d9\u05db\u05d5\u05dc \u05dc\u05e7\u05d7\u05ea \u05d3\u05d9 \u05d4\u05e8\u05d1\u05d4 \u05d6\u05de\u05df, \u05ea\u05dc\u05d5\u05d9 \u05d1\u05d0\u05d5\u05e8\u05da \u05d4\u05e1\u05e8\u05d8 \u05d5\u05d1\u05e2\u05d5\u05e6\u05de\u05ea \u05d4\u05e2\u05d9\u05d1\u05d5\u05d3 \u05e9\u05dc \u05d4\u05de\u05d7\u05e9\u05d1 \u05e9\u05dc\u05db\u05dd.<br \/>\nHandbreak \u05de\u05e1\u05e4\u05d9\u05e7 \u05de\u05d5\u05e6\u05dc\u05d7\u05ea \u05db\u05d3\u05d9 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05db\u05dc \u05d4\u05dc\u05d9\u05d1\u05d5\u05ea \u05e9\u05dc\u05db\u05dd (\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d5\u05de\u05e8 \u05dc\u05d4 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05de\u05e1\u05e4\u05e8 \u05de\u05e1\u05d5\u05d9\u05d9\u05dd \u05d0\u05dd \u05e8\u05d5\u05e6\u05d9\u05dd) \u05d5\u05dc\u05e8\u05d5\u05e5 \u05d1\u05e2\u05d3\u05d9\u05e4\u05d5\u05ea \u05e0\u05de\u05d5\u05db\u05d4 \u05db\u05d3\u05d9 \u05dc\u05d0 \u05dc\u05d7\u05e0\u05d5\u05e7 \u05ea\u05d4\u05dc\u05d9\u05db\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05dd.<\/p>\n<p>\u05d4\u05e9\u05ea\u05de\u05e9\u05ea\u05d9 \u05d1\u05ea\u05e1\u05e8\u05d9\u05d8 bash \u05e7\u05d8\u05df \u05db\u05d3\u05d9 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05d4\u05e7\u05d1\u05e6\u05d9\u05dd \u05e9\u05d9\u05e8\u05d3\u05d5, \u05d5\u05dc\u05e7\u05d5\u05d3\u05d3 \u05dc\u05e1\u05e4\u05e8\u05d9\u05d4 \u05d7\u05d3\u05e9\u05d4 \u05e7\u05d1\u05e6\u05d9\u05dd \u05e2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05e9\u05dd \u05d0\u05dd \u05d4\u05dd \u05db\u05d1\u05e8 \u05dc\u05d0 \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05e9\u05dd.<br \/>\n[CODE]<br \/>\n$ cat encode_new.sh<br \/>\n#!\/bin\/bash<br \/>\nsource conf<br \/>\nfor file in `ls -1 $YT_DOWNLOAD_DIR\/*.mp4 $YT_DOWNLOAD_DIR\/*.flv $YT_DOWNLOAD_DIR\/*.video`<br \/>\ndo<br \/>\nbase=`basename ${file%.*}`<br \/>\nipad=${RSS_WEB_DIR}\/${base}.mp4<br \/>\nif [ -f $ipad ]<br \/>\nthen<br \/>\necho &quot;Skipping $ipad&quot;<br \/>\nelse<br \/>\n$BIN_DIR\/HandBrakeCLI -Z iPad -i $file -o $ipad<br \/>\ntouch -c -r $file $ipad<br \/>\n.\/update_feed.sh<br \/>\nfi<br \/>\ndone<br \/>\n[\/CODE]<\/p>\n<p>\u05d0\u05d7\u05e8\u05d9 \u05db\u05dc \u05e7\u05d5\u05d1\u05e5 \u05e9\u05de\u05e7\u05d5\u05d3\u05d3, \u05d4\u05e1\u05e7\u05d9\u05e4\u05d8 update_feed.sh \u05e0\u05e7\u05e8\u05d0.<br \/>\n\u05e1\u05e7\u05e8\u05d9\u05e4\u05d8 \u05d6\u05d4 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d2'\u05d0\u05d5\u05d5\u05d4 \u05e7\u05d8\u05e0\u05d4 \u05e9\u05db\u05ea\u05d1\u05ea\u05d9 \u05e9\u05de\u05db\u05d9\u05e0\u05d4 \u05e7\u05d5\u05d1\u05e5 RSS \u05e2\u05dc \u05d1\u05e1\u05d9\u05e1 \u05e1\u05e4\u05e8\u05d9\u05d4 \u05e2\u05dd \u05e1\u05e8\u05d8\u05d5\u05e0\u05d9 \u05d5\u05d9\u05d3\u05d0\u05d5.<br \/>\n\u05dc\u05d1\u05e1\u05d5\u05e3, \u05e0\u05e9\u05d0\u05e8 \u05e8\u05e7 \u05dc\u05de\u05d7\u05d5\u05e7 \u05e7\u05d1\u05e6\u05d9\u05dd \u05d9\u05e9\u05e0\u05d9\u05dd \u05d9\u05d5\u05ea\u05e8 \u05de14 \u05d9\u05d5\u05dd \u05db\u05d3\u05d9 \u05dc\u05de\u05e0\u05d5\u05e2 \u05d4\u05ea\u05e4\u05d5\u05e6\u05e6\u05d5\u05ea, \u05d5\u05dc\u05d4\u05e8\u05d9\u05e5 \u05d0\u05ea \u05db\u05dc \u05d4\u05e2\u05e1\u05e7 \u05e4\u05e2\u05dd \u05d1\u05d9\u05d5\u05dd \u05d0\u05d5 \u05de\u05e9\u05d4\u05d5 \u05e2\u05dd CRON.<\/p>\n<p>[CODE]<br \/>\n$ cat delete_old.sh<br \/>\n#!\/bin\/bash<br \/>\nsource conf<br \/>\nfind  -mtime +$DELETE_OLDER -exec echo rm $YT_DOWNLOAD_DIR\/{} $RSS_WEB_DIR\/{} \\;<br \/>\n[\/CODE]<\/p>\n<p>\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d5\u05e8\u05d9\u05d3 \u05d0\u05ea \u05db\u05dc \u05d4\u05e2\u05e1\u05e7 <a href=\"http:\/\/files.firefang.net\/youtube-rss.zip\">\u05de\u05e4\u05d4<\/a>, \u05e9\u05d9\u05de\u05d5 \u05dc\u05d1 \u05e9\u05d6\u05d4 \u05db\u05d5\u05dc\u05dc \u05d0\u05ea HandBreak \u05d1\u05d2\u05e8\u05e1\u05d0\u05ea AMD64 \u05dc\u05dc\u05d9\u05e0\u05d5\u05e7\u05e1, \u05d0\u05d1\u05dc \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d5\u05e8\u05d9\u05d3 \u05de\u05d4\u05d0\u05ea\u05e8 \u05e9\u05dc\u05d4\u05dd \u05d2\u05e8\u05e1\u05d0\u05d5\u05ea \u05d0\u05d7\u05e8\u05d5\u05ea.<\/p>\n<p>\u05dc\u05e1\u05d9\u05d5\u05dd, \u05d4\u05e0\u05d4 \u05e1\u05e8\u05d8\u05d5\u05df \u05e1\u05d8\u05e8\u05e7\u05e8\u05d0\u05e4\u05d8 \u05de\u05e6\u05d7\u05d9\u05e7:<br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" width=\"640\" height=\"390\" src=\"http:\/\/www.youtube.com\/embed\/0mPGYeuU2Oc\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u05db\u05df, \u05d0\u05e0\u05d9 \u05d9\u05d5\u05d3\u05e2 \u05e9\u05de\u05d6\u05de\u05df \u05dc\u05d0 \u05d4\u05d9\u05d4 \u05e4\u05d4 \u05e4\u05d5\u05e1\u05d8, \u05ea\u05ea\u05d1\u05e2\u05d5 \u05d0\u05d5\u05ea\u05d9 ;). \u05d0\u05d7\u05d3 \u05d4\u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d0\u05e3 \u05e4\u05e2\u05dd \u05dc\u05d0 \u05e2\u05d5\u05d1\u05d3 \u05db\u05de\u05d5 \u05e9\u05e6\u05e8\u05d9\u05da \u05d1\u05d0\u05d9\u05d9\u05e4\u05d5\u05df \u05d5\u05d1\u05d0\u05d9\u05d9\u05e4\u05d3 (\u05d5\u05d1\u05d0\u05d9\u05d9\u05e4\u05d5\u05d3) \u05d6\u05d4 YouTube. \u05db\u05dc\u05d5\u05de\u05e8 &#8211; \u05d9\u05e9 \u05d9\u05e9\u05d5\u05dd \u05e9\u05dc \u05d0\u05e4\u05dc \u05dc\u05e6\u05d5\u05e8\u05da \u05d4\u05e2\u05e0\u05d9\u05d9\u05df, \u05d0\u05d1\u05dc \u05d4\u05d7\u05d5\u05d5\u05d9\u05d4 \u05dc\u05d0 \u05de\u05e8\u05e0\u05d9\u05e0\u05d4: \u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05dc\u05d0 \u05ea\u05e6\u05dc\u05d9\u05d7\u05d5 \u05dc\u05e8\u05d0\u05d5\u05ea \u05e1\u05e8\u05d8\u05d5\u05df \u05d1\u05dc\u05d9 \u05d2\u05de\u05d2\u05d5\u05de\u05d9\u05dd, \u05d2\u05dd \u05d0\u05dd \u05d0\u05ea\u05dd \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1\u05e8\u05e9\u05ea \u05d0\u05dc\u05d7\u05d5\u05d8\u05d9\u05ea \u05de\u05d4\u05d9\u05e8\u05d4 \u05e2\u05dd \u05d7\u05d9\u05d1\u05d5\u05e8 \u05d0\u05d9\u05e0\u05d8\u05e8\u05e0\u05d8 \u05e9\u05de\u05df &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/firefang.net\/blog\/1829\" class=\"more-link\">\u05dc\u05d4\u05de\u05e9\u05d9\u05da \u05dc\u05e7\u05e8\u05d5\u05d0<span class=\"screen-reader-text\"> \u05d0\u05d9\u05da \u05dc\u05d4\u05d5\u05e8\u05d9\u05d3 \u05e1\u05e8\u05d8\u05d9 \u05d9\u05d5\u05d8\u05d9\u05d5\u05d1 \u05dc\u05e6\u05e4\u05d9\u05d4 \u05d0\u05d5\u05e4\u05dc\u05d9\u05d9\u05df \u05d1\u05d0\u05d9\u05d9\u05e4\u05d3\/\u05d0\u05d9\u05d9\u05e4\u05d5\u05df<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,7],"tags":[],"class_list":["post-1829","post","type-post","status-publish","format-standard","hentry","category-linux","category-open-soruce","category-programming"],"_links":{"self":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts\/1829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/comments?post=1829"}],"version-history":[{"count":10,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts\/1829\/revisions"}],"predecessor-version":[{"id":1839,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts\/1829\/revisions\/1839"}],"wp:attachment":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/media?parent=1829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/categories?post=1829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/tags?post=1829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}