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
zulu9
Post subject: mein erstes script: download from youtube and encode to ogg  PostPosted: Sep 29, 2007 - 12:15 AM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
UPDATE 01.07.08:
http://sidux.com/index.php?name=PNphpBB ... 7335#87335

Veraltet:
Mein erstes Script Very Happy
Es braucht youtube-dl und ffmpeg2theora:

Code:

apt-get install youtube-dl ffmpeg2theora


Hier das Script. Es lädt das Video von youtube, kodiert es als ogg/theora und löscht danach die .flv datei. D.h. man ruft es einfach mit der youtube-URL als Parameter auf und bekommt ein fertiges .ogg.

Code:

#!/bin/bash
#make working dir
mkdir ./youtube2theora-tmp
cd youtube2theora-tmp
#download video
youtube-dl -t $1
#convert
ffmpeg2theora -a 5 *.flv
#move video to original dir
mv *.ogg ..
#clean-up
cd ..
rm -rf ./youtube2theora-tmp


Kommentare (auch böse) / Erweiterungen erwünscht.

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


Last edited by zulu9 on Jun 30, 2008 - 10:46 PM; edited 4 times in total
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
etorix
Post subject: RE: mein erstes script: download from youtube and encode to   PostPosted: Sep 29, 2007 - 12:22 AM



Joined: Dec 02, 2006
Posts: 265

Status: Offline
thats all slightly in german

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9
Post subject: RE: mein erstes script: download from youtube and encode to  PostPosted: Sep 29, 2007 - 12:25 AM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
added en translation
http://sidux.com/index.php?name=PNphpBB ... mp;p=47206

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
RoEn
Post subject: RE: mein erstes script: download from youtube and encode to  PostPosted: Sep 29, 2007 - 06:26 AM



Joined: Nov 26, 2006
Posts: 357

Status: Offline
Danke zulu9,

ich habe alles schon mal archiviert http://sidux.com/index.php?module=pnWik ... tag=zulu91

Bitte aktualisiere das Wiki selbst Very Happy

_________________
So long
RoEn

"Lesen gefährdet die Dummheit"
"Was unserer Welt fehlt, ist nicht Öl, sondern mehr Toleranz"
 
 View user's profile Send private message  
Reply with quote Back to top
BlueShadow
Post subject: RE: mein erstes script: download from youtube and encode to  PostPosted: Sep 29, 2007 - 08:09 AM



Joined: Jan 10, 2007
Posts: 765

Status: Offline
Oh ein Skript-Forum im englischen Teil, sowas hab ich schon vor ein paar Tagen vergeblich gesucht. Dann poste ich da doch glatt noch mal meinen pdf-konverter Smile

zulu9, nettes Skript, die beiden Pakete kannte ich noch gar nicht.
 
 View user's profile Send private message  
Reply with quote Back to top
RoEn
Post subject: RE: mein erstes script: download from youtube and encode to  PostPosted: Sep 29, 2007 - 08:12 AM



Joined: Nov 26, 2006
Posts: 357

Status: Offline
BlueShadow,

kein Prob, ich passe das englische Wiki gerade an das deutsche an.

_________________
So long
RoEn

"Lesen gefährdet die Dummheit"
"Was unserer Welt fehlt, ist nicht Öl, sondern mehr Toleranz"
 
 View user's profile Send private message  
Reply with quote Back to top
makke
Post subject: RE: mein erstes script: download from youtube and encode to  PostPosted: Sep 29, 2007 - 08:41 AM



Joined: Nov 26, 2006
Posts: 171
Location: Hagen
Status: Offline
Naja, es wäre vielleicht schlauer statt youtube2theora-tmp irgendetwas mit $RANDOM zu nehmen.
 
 View user's profile Send private message  
Reply with quote Back to top
goodduff
Post subject:   PostPosted: Sep 29, 2007 - 09:34 AM



Joined: Sep 16, 2007
Posts: 20

Status: Offline
eine anregungen für dein gutes skrit:

als dateiname könntes du den titel verwenden. ist mit youtube-dl möglich.

ps: wie wandelt man eigentlich flv nach mp3
 
 View user's profile Send private message  
Reply with quote Back to top
slh
Post subject: Re: RE: mein erstes script: download from youtube and encode  PostPosted: Sep 29, 2007 - 09:46 AM



Joined: Nov 25, 2006
Posts: 2570

Status: Offline
makke wrote:
Naja, es wäre vielleicht schlauer statt youtube2theora-tmp irgendetwas mit $RANDOM zu nehmen.
eher
Code:
TMP="$(mktemp -dp /tmp/ $0.XXXXXX || exit 1)"
 
 View user's profile Send private message  
Reply with quote Back to top
zulu9
Post subject:   PostPosted: Sep 29, 2007 - 12:23 PM



Joined: Nov 30, 2006
Posts: 775
Location: Germany
Status: Offline
danke für die vielen kommentare und anregungen. das mit dem zufallsnamen für das working dir werde ich bald versuchen umzusetzen Very Happy

goodduff wrote:
eine anregungen für dein gutes skrit:
als dateiname könntes du den titel verwenden. ist mit youtube-dl möglich.


macht es schon. dafür ist die -t option bei youtube-dl.

danke auch für die wiki seite(n) Very Happy

_________________
http://sidux.wordpress.com/ inoffizielles sidux-Blog
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
LouisRitter
Post subject:   PostPosted: Oct 28, 2007 - 01:21 PM



Joined: Feb 25, 2007
Posts: 85

Status: Offline
In fänd es gut wenn man auch videos von myvideo und clipfisih und goole dowloaden könnte wie zb www.tubedown.dl.am abver bei der seite sind die videos immer im flv dswegen wäre das ne gute idde ansonten supi

_________________
sidux 4 ever!!!!!!
 
 View user's profile Send private message  
Reply with quote Back to top
geoback
Post subject:   PostPosted: Dec 13, 2007 - 07:29 PM



Joined: Dec 31, 2006
Posts: 78

Status: Offline
hi zulu9 und Freunde,
genau dieses script habe ich schon lange gesucht bzw. wie ich überhaupt von youtube was auf meine Harddisk bringe. Danke für die Info. Nur wie kann ich nach .mpeg konvertieren? das kann dann auch mein handy abspielen.

geoback
 
 View user's profile Send private message  
Reply with quote Back to top
makke
Post subject:   PostPosted: Dec 13, 2007 - 07:38 PM



Joined: Nov 26, 2006
Posts: 171
Location: Hagen
Status: Offline
apt-get update
apt-get install clive ffmpeg

clive --ffmpeg="/usr/bin/ffmpeg -y -i %i %o" --re-encode=mpg URL
 
 View user's profile Send private message  
Reply with quote Back to top
sjar
Post subject:   PostPosted: Dec 13, 2007 - 08:09 PM



Joined: Dec 03, 2006
Posts: 48

Status: Offline
http://www.kde-apps.org/content/show.php?content=33973

Dependences
===========

* Kommander - http://kommander.kdewebdev.org/
* Konqueror - http://www.konqueror.org/
* FFmpeg - http://ffmpeg.sourceforge.net/
 
 View user's profile Send private message  
Reply with quote Back to top
geoback
Post subject:   PostPosted: Dec 14, 2007 - 11:44 AM



Joined: Dec 31, 2006
Posts: 78

Status: Offline
Ah, okay. Das sieht auch super aus. Werde ich versuchen. Geht denn der Export auch nach .mp3 (also ohne Videodaten)?
 
 View user's profile Send private message  
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