youtube-dl

happyfalke

Lt. Commander
Registriert
März 2013
Beiträge
1.081
Hallo

Ich möchte beim Download (mp3) eine Abtastrate von 44100 Hz. Momentan komme ich immer auf 48000 Hz.

Was muss ich in der Kommandozeile eingeben um das zu erreichen?

LG Andi
 
Mit "man youtube-dl" kannst du dir alle Optionen ansehen.

Gruß Jens
 
wesch2000 schrieb:
Funktionieren Downloads von YouTube momentan überhaupt?
Konnte keine Probleme beim Download eben feststellen.
 
@wesch2000: Mit youtube-dl und der neuen youtube-dl.exe vom 21.062019 geht es.

Bekomme das leider nicht hin das mp3's in 44100 Hz heruntergeladen werden.
 
@wesch2000
Mein 4k Downloader geht auch problemlos
 
  • Gefällt mir
Reaktionen: piepenkorn
@happyfalke
Danke für Deine Tipps. Bei Deinem Probleme kann ich Dir leider nicht helfen, da ich nur gelegentlich Reparaturanleitungen herunterlade.
 
lädt die audiospur (vorher mit "youtube-dl -F" bestimmt) runter und wandelt in 44kHz mp3 um:

Code:
youtube-dl -f 251 -x --audio-format mp3 --postprocessor-args "-ar 44100" https://www.youtube.com/watch?v=O9K1spnjqA8
 
@0x8100: Danke. Klappt aber leider nicht bei jedem Lied.

youtube-dl --extract-audio --audio-quality 0 --audio-format mp3 URL

lädt wohl so runter wie es hochgeladen wurde.
 
zum umwandeln muss ffmpeg verfügbar sein. ist das bei dir der fall?
 
Ja ist der Fall.

So klappt es einwandfrei:

youtube-dl --extract-audio --audio-quality 0 --audio-format mp3 URL

Wohl in der Qualität wie es hochgeladen wurde.
 
Komisch.
Jetzt gehen alle mit:

youtube-dl -f 251 -x --audio-format mp3 --postprocessor-args "-ar 44100" URL

Wer weiß was das war.
Ergänzung ()

Hab hier doch noch eins gefunden was so nicht geht.
 
Zuletzt bearbeitet:
dieses video hat keine opus audiospur, daher geht "-f 251" nicht:
Code:
$ youtube-dl -F https://youtu.be/5myP14TdnFU
[youtube] 5myP14TdnFU: Downloading webpage
[youtube] 5myP14TdnFU: Downloading video info webpage
[info] Available formats for 5myP14TdnFU:
format code  extension  resolution note
140          m4a        audio only DASH audio  128k , m4a_dash container, mp4a.40.2@128k, 2.92MiB
160          mp4        144x144    144p   79k , avc1.42c00c, 15fps, video only, 1.27MiB
133          mp4        242x240    240p  189k , avc1.4d400d, 30fps, video only, 2.36MiB
134          mp4        362x360    360p  279k , avc1.4d4015, 30fps, video only, 3.50MiB
18           mp4        362x360    medium , avc1.42001E, mp4a.40.2@ 96k, 5.08MiB (best)

entweder selbst richtig setzen oder youtube-dl wählen lassen:
Code:
$ youtube-dl -f 140 -x --audio-format mp3 --postprocessor-args "-ar 44100" https://youtu.be/5myP14TdnFU
$ youtube-dl -x --audio-format mp3 --postprocessor-args "-ar 44100" https://youtu.be/5myP14TdnFU
 
Zuletzt bearbeitet:
youtube bietet ein video mit verschiedenen codecs an:

Code:
$ youtube-dl -F https://www.youtube.com/watch?v=O9K1spnjqA8
[youtube] O9K1spnjqA8: Downloading webpage
[youtube] O9K1spnjqA8: Downloading video info webpage
[info] Available formats for O9K1spnjqA8:
format code  extension  resolution note
249          webm       audio only DASH audio   76k , opus @ 50k, 23.42MiB
250          webm       audio only DASH audio  102k , opus @ 70k, 31.14MiB
140          m4a        audio only DASH audio  133k , m4a_dash container, mp4a.40.2@128k, 58.47MiB
171          webm       audio only DASH audio  173k , vorbis@128k, 59.42MiB
251          webm       audio only DASH audio  205k , opus @160k, 61.71MiB
278          webm       256x144    144p  108k , webm container, vp9, 30fps, video only, 19.92MiB
160          mp4        256x144    144p  127k , avc1.4d400c, 30fps, video only, 17.24MiB
242          webm       426x240    240p  210k , vp9, 30fps, video only, 30.04MiB
133          mp4        426x240    240p  270k , avc1.4d4015, 30fps, video only, 34.32MiB
243          webm       640x360    360p  332k , vp9, 30fps, video only, 50.23MiB
244          webm       854x480    480p  522k , vp9, 30fps, video only, 66.48MiB
134          mp4        640x360    360p  612k , avc1.4d401e, 30fps, video only, 54.24MiB
247          webm       1280x720   720p  882k , vp9, 30fps, video only, 134.88MiB
135          mp4        854x480    480p 1115k , avc1.4d401f, 30fps, video only, 110.57MiB
136          mp4        1280x720   720p 2067k , avc1.4d401f, 30fps, video only, 196.46MiB
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k, 161.78MiB (best)

mit "-f 251" wähle ich hier z.b. die audiospur mit der besten qualität -> opus@160k. die anderen audiospuren haben alle eine geringere bitrate.

edit: wenn ich z.b. diese opus audiospur und 720p avc video haben möchte, dann ist es
Code:
youtube-dl -f 136+251 https://www.youtube.com/watch?v=O9K1spnjqA8
 
Danke. Weil du mich nach ffmpeg gefragt hast. Wozu sind eigentlich die exe Dateien?

ffmpeg.exe
ffplay.exe
ffprobe.exe
 
ffmpeg ist das eigentliche tool zum umwandeln von dateien in einem format in ein anderes. ffplay kann zum abspielen benutzt werden. ffprobe analysiert, welche streams mit welchen codecs in einer datei sind.

youtube-dl kümmert sich nur um das herunterladen von dateien von verschiedenen hostern wie youtube. wenn diese dateien umgewandelt werden sollen, wird das mit ffmpeg gemacht.
 
Zurück
Oben