{"id":1963,"date":"2010-03-20T20:32:45","date_gmt":"2010-03-20T19:32:45","guid":{"rendered":"http:\/\/knsweb.net\/?page_id=1963"},"modified":"2021-01-29T20:03:11","modified_gmt":"2021-01-29T19:03:11","slug":"shell-script-liev","status":"publish","type":"page","link":"https:\/\/knsweb.net\/?page_id=1963","title":{"rendered":"Shell Script: LIEV"},"content":{"rendered":"<p>Cuando todav\u00eda no abundaban los conversores online de videos para Youtube (y sin flash para los Linux x86_64b) me hice un peque\u00f1o script para pasar los .FLV a .AVI (aunque modificandolo se podr\u00edan pasar a casi cualquier cosa). Lo dejo aqu\u00ed publicado para que la fuente est\u00e9 disponible y por si alguien quiere usarlo.<\/p>\n<p>LIEV es acr\u00f3nimo de Lo Importante Es Verlo.<\/p>\n<p>#!\/bin\/bash<\/p>\n<p>#Script LIEV 0.4 para ffmpeg (debes tener ffmpeg y Zenity instalado).<br \/>\n#By Kumo (http:\/\/www.knsweb.net\/) Marzo 2007.<br \/>\n#Teclea &#8220;man ffmpeg&#8221; para mas ayuda y funcionalidades.<br \/>\n#Utiliza este software bajo tu propia responsabilidad.<br \/>\n#Tipo de licencia: GPL.<br \/>\n#Gracias por la ayuda, Akira (http:\/\/debianizado.blogspot.com\/).<\/p>\n<p>#Instalacion: Copialo en [path]\/usr\/bin y dale permisos de ejecucion (747) si no los tiene.<br \/>\n#Ejecucion: Llama al script en una terminal; o haz click en el archivo para ejecutarlo.<\/p>\n<p>pid=$$<\/p>\n<p>INPUT=`zenity &#8211;file-selection &#8211;title=LIEV &#8211;text=&#8221;Selecciona el origen.&#8221;`<br \/>\nNAME=$(echo $input|cut -f1 -d &#8220;.&#8221;)<br \/>\nOUTPUT=`zenity &#8211;entry &#8211;title=LIEV &#8211;text=&#8221;Nombre del video de salida?&#8221; &#8211;entry-text=$NAME`<\/p>\n<p>if (`zenity &#8211;question &#8211;text=&#8221;Start \/ Stop&#8221; &#8211;title=LIEV`)<br \/>\nthen<\/p>\n<p>ffmpeg -sameq -i $INPUT $OUTPUT.avi|zenity &#8211;progress &#8211;title=LIEV &#8211;percentage=1 &#8211;text=&#8221;Rendering&#8230;&#8221; &#8211;auto-close &#038;<\/p>\n<p>else<br \/>\nkill $pid<br \/>\nfi<\/p>\n<p>exit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cuando todav\u00eda no abundaban los conversores online de videos para Youtube (y sin flash para los Linux x86_64b) me hice un peque\u00f1o script para pasar los .FLV a .AVI (aunque modificandolo se podr\u00edan pasar a casi cualquier cosa). Lo dejo aqu\u00ed publicado para que la fuente est\u00e9 disponible y por si alguien quiere usarlo. LIEV [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":260,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-1963","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/knsweb.net\/index.php?rest_route=\/wp\/v2\/pages\/1963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knsweb.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/knsweb.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/knsweb.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knsweb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1963"}],"version-history":[{"count":0,"href":"https:\/\/knsweb.net\/index.php?rest_route=\/wp\/v2\/pages\/1963\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/knsweb.net\/index.php?rest_route=\/wp\/v2\/pages\/260"}],"wp:attachment":[{"href":"https:\/\/knsweb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} 