sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
makke
Post subject:   PostPosted: Dec 14, 2007 - 12:59 PM



Joined: Nov 26, 2006
Posts: 171
Location: Hagen
Status: Offline
Mach dich einfach etwas mit ffmpeg vertraut.
 
 View user's profile Send private message  
Reply with quote Back to top
michaa
Post subject:   PostPosted: Dec 18, 2007 - 09:40 AM



Joined: Dec 02, 2006
Posts: 1704
Location: Germany / NRW
Status: Offline
Danke zulu, schönes script.

Gab es da nicht ne möglichkeit zwischen ogg-audio und ogg-video zu unterscheiden? Derzeit ist xmms als standart zum abspielen von *.ogg eingestellt, was bei videos nicht so prikelnd ist.

Zudem, wer die qualität stärker ausreizen will sollte es mal mit diesen settings versuchen:

ffmpeg2theora -v 10 -a 10 --optimize -C 0.9 -S 0 *.flv

Kann man sich ja ggf ins script kopieren und je nachdem auskommentieren.

EDIT://

Vllt wäre es besser für ogg videos "*.ogv" zu verwenden und dies so im script voreinzustellen, siehe:

http://wiki.xiph.org/index.php/MIME_Typ ... Extensions
 
 View user's profile Send private message  
Reply with quote Back to top
joeda
Post subject:   PostPosted: Feb 21, 2008 - 03:55 PM



Joined: Nov 26, 2007
Posts: 60

Status: Offline
Hallo

Tolles Skript, danke zulu Very Happy

greetz joe

_________________
Quote:
Gentoo can only trigger explosions if you set -O6 or greater in your make options. This is because the resulting binaries run so fast that the CPU melts too rapidly for any gas to escape, and then, BAM


von slashdot.org
 
 View user's profile Send private message  
Reply with quote Back to top
reddark
Post subject:   PostPosted: Jun 30, 2008 - 10:16 PM



Joined: Mar 24, 2008
Posts: 29

Status: Offline
Hab neuerdings ein problem mit dem script, siehe:

Code:
      0:05:14.35 audio: 49kbps video: 343kbps, time elapsed: 00:01:44
mv: Aufruf von stat für »*.ogg« nicht möglich: Datei oder Verzeichnis nicht gefunden


woran kann das liegen? Ogg ist installiert.

_________________
http://www.die-gruppe-md.de & http://news-die-gruppe-md.de
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9
Post subject: Neue Version  PostPosted: Jun 30, 2008 - 10:45 PM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
youtube2theora.sh v2:

Achtung! Auf eigene Gefahr! Bei mir funktionierts und der Rechner ist nicht implodiert Wink

Abhängigkeiten (über apt installierbar)
ffmpeg2theora
youtube-dl

Code
Code:
#!/bin/bash
#make working dir
TMP="$(mktemp -dp /tmp/ youtube2theora.XXXXXX || exit 1)"
cd $TMP
#download video
youtube-dl -t $1
#convert
ffmpeg2theora -v 10 -a 10 --optimize -C 0.9 -S 0 *.flv
#move video to Desktop
mv *.ogv ~/Desktop
#clean-up
rm -rf $TMP


Änderungen:
* Neue Methode für das temporäre Verzeichnis (thx slh!)
* Bessere ffmpeg-Parameter (thx michaa)
* ogv als Dateiendung (thx michaa), wurde eh nötig, da ffmpeg2theora nun .auch ogv verwendet. Das löst auch das Problem von reddark
* Das fertige Video landet nun automatisch auf dem Desktop des Users

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
reddark
Post subject: Re: Neue Version  PostPosted: Jun 30, 2008 - 11:12 PM



Joined: Mar 24, 2008
Posts: 29

Status: Offline
zulu9 wrote:
Achtung! Auf eigene Gefahr! Bei mir funktionierts und der Rechner ist nicht implodiert Wink


Bei mir klappt es jetzt auch wieder Wink

Danke & wink

_________________
http://www.die-gruppe-md.de & http://news-die-gruppe-md.de
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9
Post subject: Debian-Pakete  PostPosted: Jul 01, 2008 - 12:08 AM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
Ich versuch mich gerade daran, das ganze schonmal in Debian-Paketform zu packen.
Hier meine ersten Ergebnisse.
Die Copyright-Datei ist noch sehr rudimentär, nutzt das veraltete Format und würdigt die Beiträge von michaa, slh und den anderen noch nicht ausreichend. Auch manpage und description sind sicher verbesserungswürdig.

EDIT: Neue Version. Siehe letzten Post von mir

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog


Last edited by zulu9 on Jul 01, 2008 - 01:27 AM; edited 1 time in total
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
zulu9
Post subject: Version 2.1  PostPosted: Jul 01, 2008 - 01:13 AM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
Heute läufts aber auch Wink
Version 2.1 hat jetzt support für mehrere URLs.

Code:
#!/bin/bash
#make working dir
TMP="$(mktemp -d -p /tmp/ youtube2theora.XXXXXX || exit 1)"
cd $TMP
#download video(s)
for URL in $*; do
        youtube-dl -t $URL
done
#convert
for VIDEO in *.flv; do
        OUTPUT=$VIDEO".ogv"
        ffmpeg2theora -v 10 -a 10 –optimize -C 0.9 -S 0 -o $OUTPUT $VIDEO
done
#move video to Desktop
mv *.ogv ~/Desktop
#clean-up
rm -rf $TMP


Im attachement das ganze als debian-paket.

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
reddark
Post subject: RE: Version 2.1  PostPosted: Jul 02, 2008 - 08:11 PM



Joined: Mar 24, 2008
Posts: 29

Status: Offline
Nett, wäre noch ein 64bit-deb-version mit gui Wink
Aber so, als einfaches script gehts auch supa.

wink

_________________
http://www.die-gruppe-md.de & http://news-die-gruppe-md.de
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9
Post subject: RE: Version 2.1  PostPosted: Jul 02, 2008 - 08:34 PM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
das script geht auch unter 64 bit, ist ja nur ein fetzen bash.
gui wirds nicht geben, jedenfalls nicht von mir. kann ich nicht schlicht und einfach nicht Wink

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
michaa
Post subject: RE: Version 2.1  PostPosted: Jul 19, 2008 - 05:09 PM



Joined: Dec 02, 2006
Posts: 1704
Location: Germany / NRW
Status: Offline
nicht 100% on topic, aber passt schon irgendwie:

Wohin kopiere ich dieses (ausführbar gemachte) script, so dass (der) user es ohne weitere pfadangabe überall nutzen kann/können? Gleiche frage gilt auch für andere scripte, zum beispiel das von mir verwendete ape2flac. Wie mache ich generell scripte für alle ohne pfadtipperei verfügbar ohne die allgemeine rechnersicherheit zu gefährden?


Last edited by michaa on Jul 19, 2008 - 05:14 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject: RE: Version 2.1  PostPosted: Jul 19, 2008 - 05:14 PM



Joined: Nov 30, 2006
Posts: 3465
Location: Budapest
Status: Offline
michaa,

/usr/local/bin/

hubi

_________________
Bonitas stultitiaque sodales sunt.


Last edited by hubi on Jul 19, 2008 - 05:14 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
michaa
Post subject: RE: Version 2.1  PostPosted: Jul 19, 2008 - 05:14 PM



Joined: Dec 02, 2006
Posts: 1704
Location: Germany / NRW
Status: Offline
merci
 
 View user's profile Send private message  
Reply with quote Back to top
ModestUser
Post subject:   PostPosted: Jul 19, 2008 - 05:18 PM



Joined: Jan 07, 2008
Posts: 297

Status: Offline
Auszug aus Die Debian GNU/Linux-FAQ
Kapitel 4 - Kompatibilitätsfragen (http://www.debian.org/doc/manuals/debian-faq/ch-compat.de.html)

Quote:
4.5 Wie soll ich ein nicht-Debian-Programm installieren?

Dateien unterhalb des Verzeichnisses /usr/local/ befinden sich nicht unter Kontrolle des Debian-Paketverwaltungssystems. Deswegen ist es üblich, den Quellcode eigener Programme in /usr/local/src/ abzulegen. Sie könnten zum Beispiel die Dateien eines Paketes namens foo.tar in das Verzeichnis /usr/local/src/foo/ extrahieren. Nachdem Sie es kompiliert haben, legen Sie die Binärprogramme in /usr/local/bin/, die Bibliotheken in /usr/local/lib/ und die Konfigurationsdateien in /usr/local/etc/ ab.


Auch smxi, sgfxi liegen dewegen in /usr/local/bin. Das ist normalerweise auch in PATH enthalten.
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9
Post subject:   PostPosted: Sep 19, 2008 - 12:46 AM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
http://sidux.com/index.php?module=pnWik ... g=zulu91EN

ich hab inzwischen auch eine version, die in mp3 umwandelt (zweiteres). klappt auch mit mehreren urls.

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio