0 Mitglieder und 1 Gast betrachten dieses Thema.
Geht das auch wie du schreibst als *.mp3 oder ist es im jeweiligen Stream vorgegeben
// Convert aac/m4a/ogg files to mp3.// Trigger required: "A Download Stopped".// Requires ffmpeg/ffprobe. Uses JD ffmpeg/ffprobe settings if available.// Overwrites destination file (mp3) if it already exists.if (link.isFinished()) { var fileName = link.name.replace(/(.+)(\..+$)/, "$1"); var fileType = link.name.replace(/(.+)(\..+$)/, "$2"); var sourceFile = link.getDownloadPath(); var audioFile = /\.(aac|m4a|ogg)$/.test(sourceFile); if (audioFile) { var downloadFolder = package.getDownloadFolder(); var destFile = downloadFolder + "/" + fileName + ".mp3"; var ffmpeg = callAPI("config", "get", "org.jdownloader.controlling.ffmpeg.FFmpegSetup", null, "binarypath"); var ffprobe = callAPI("config", "get", "org.jdownloader.controlling.ffmpeg.FFmpegSetup", null, "binarypathprobe"); var data = JSON.parse(callSync(ffprobe, "-v", "quiet", "-print_format", "json", "-show_streams", "-show_format", sourceFile)); var streamsBitrate = data.streams[0].bit_rate ? data.streams[0].bit_rate : 0; var formatBitrate = data.format.bit_rate ? data.format.bit_rate : 0; var bitrate = Math.max(streamsBitrate, formatBitrate) / 1000; var deleteSourceFile = false; // Set this to true to delete source file after conversion. if (bitrate > 0) { callSync(ffmpeg, "-y", "-i", sourceFile, "-b:a", bitrate + "k", destFile); if (deleteSourceFile && getPath(destFile).exists()) deleteFile(sourceFile, false); } }}
hier kann man nochmal schauenhttps://board.jdownloader.org/showthread.php?t=70525&langid=5
Kannst du doch direkt herunterladen ...
thebookkeeper@Dell-DV051:~$ cd Downloadsthebookkeeper@Dell-DV051:~/Downloads$ echo '#!/usr/bin/env python' | cat - youtube-dl-master.zip > youtube-dlthebookkeeper@Dell-DV051:~/Downloads$ chmod +x youtube-dl
thebookkeeper@Dell-DV051:~/Downloads$ echo '#!/usr/bin/env python3' | cat - youtube-dl-master.zip > youtube-dlthebookkeeper@Dell-DV051:~/Downloads$ chmod 755 youtube-dl
... Since June 2012 youtube-dl is packed as an executable zipfile, simply unzip it (might need renaming to youtube-dl.zip first on some systems) or clone the git repository, as laid out above. If you modify the code, you can run it by executing the __main__.py file. To recompile the executable, run make youtube-dl ...
make
Wie muss denn nun der wget-Befehl tatsächlich lauten,
git clone https://github.com/l1ving/youtube-dl.git
cd youtube-dl
sudo cp youtube-dl /usr/local/bin
thebookkeeper@Dell-DV051:~$ git clone https://github.com/l1ving/youtube-dl.gitKlone nach 'youtube-dl' ...remote: Enumerating objects: 3, done.remote: Counting objects: 100% (3/3), done.remote: Compressing objects: 100% (3/3), done.remote: Total 147492 (delta 0), reused 1 (delta 0), pack-reused 147489Empfange Objekte: 100% (147492/147492), 162.23 MiB | 144.00 KiB/s, Fertig.Löse Unterschiede auf: 100% (108085/108085), Fertig.thebookkeeper@Dell-DV051:~$ cd youtube-dlthebookkeeper@Dell-DV051:~/youtube-dl$ makemkdir -p zipfor d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do \ mkdir -p zip/$d ;\ cp -pPR $d/*.py zip/$d/ ;\donetouch -t 200001010101 zip/youtube_dl/*.py zip/youtube_dl/*/*.pymv zip/youtube_dl/__main__.py zip/cd zip ; zip -q ../youtube-dl youtube_dl/*.py youtube_dl/*/*.py __main__.pyrm -rf zipecho '#!/usr/bin/env python' > youtube-dlcat youtube-dl.zip >> youtube-dlrm youtube-dl.zipchmod a+x youtube-dlCOLUMNS=80 /usr/bin/env python youtube_dl/__main__.py --help | /usr/bin/env python devscripts/make_readme.py/usr/bin/env python devscripts/make_contributing.py README.md CONTRIBUTING.md/bin/sh: 1: pandoc: not found/bin/sh: 1: [: =: unexpected operatorpandoc -f markdown -t plain README.md -o README.txtmake: pandoc: Command not foundMakefile:92: recipe for target 'README.txt' failedmake: *** [README.txt] Error 127thebookkeeper@Dell-DV051:~/youtube-dl$
162.23 MiB ?