Int.-Auskunft   Tel.-Analyse   Übersetzer    IP-Locator    Whois   ImageShack   TinyURL   Google
Homepage Scambaiter Deutschland Forum Romance-Scambaiter Scambaiter - Deutschland Antispam
Zum Seitenanfang Schritt hoch Schritt runter Zum Seitenende

youtube-video mit Firefox-Addon downloaden und Audio mit ffmpeg auf Kommandozeile in mp3 umwandeln

#1 von if6was9 , 10.11.2019 10:59

Auf youtube gibt es ein Interview (englisch) mit dem Scambaiter "Bard".

Das werden wir downloaden und in ein mp3 umwandeln, damit wir es zB auch unterwegs anhören können.

Link:
Das youtube-Video findet man hier: https://youtu.be/YqdEFRL4E50

1
 
https://youtu.be/YqdEFRL4E50
 




Für den download verwende ich das Firefox-Addon Easy Youtube Video Downloader Express

Zitat
Youtube Video Downloader for firefox web-browser with MP3 and Full-HD downloads. Instant, one-click Youtube video downloader with high-quality 256Kbps/128Kbps MP3 and Full-HD video downloading options.


website: https://www.yourvideofile.org/

1
 
https://www.yourvideofile.org/
 


Nach dem Installieren des Addons muß firefox geschlossen und neu gestartet werden.


Download:
Dann wieder auf die youtube-seite gehen. Dort gibt es jetzt unter dem Video-Vorschaubild einen grünen download-button.

Es gibt die Auswahl das Video downzuloaden als:
mp4 360p
mp4 720p
mp4 1080p
mp3 HQ256kb/s
mp3 HQ128kb/s

Der direkte download als mp3 ist aber wegen Änderungen bei youtube nur noch für Easy Youtube Video Downloader Pro Nutzer möglich.
Ich wähle daher den download als mp4 720p
Den download speichere ich zB im Ordner "Videos":

Bitte darauf achten daß der Dateiname keine Leerzeichen, keine Umlaute (ä ö ü) und auch keine Schrägstriche (/ \) enthält!


Für das Extrahieren der Tonspur aus dem mp4-Video werde ich das Kommandozeilen-Programm ffmpeg unter Lubuntu 1604 verwenden.

ffmpeg:
Projektseite: https://www.ffmpeg.org/

1
 
https://www.ffmpeg.org/
 

Zitat
A complete, cross-platform solution to record, convert and stream audio and video.


Das Programm ist für Windows, Linux und iOS verfügbar.
Downloads: https://www.ffmpeg.org/download.html

1
 
https://www.ffmpeg.org/download.html
 



Unter Ubuntu-Linux ist es auch in den Programmquellen verfügbar.
Installation in der Kommandozeile:

1
 
sudo apt-get install ffmpeg
 



Weitere Infos zu ffmpeg auch bei wikipedia: https://de.wikipedia.org/wiki/FFmpeg

1
 
https://de.wikipedia.org/wiki/FFmpeg
 


Zitat
FFmpeg wird unter Linux und anderen unixähnlichen Systemen (Unixoiden) entwickelt und wurde auch auf andere Betriebssysteme und Plattformen portiert.
Bekannte Programme, die FFmpeg verwenden, sind unter Unixoiden und Windows die Programme MPlayer, VLC, xine und HandBrake, unter Windows Mobile und Palm OS der TCPMP.




Wir haben jetzt also schon:
- das Firefox-Addon "Easy Youtube Video Downloader Express" installiert
- das youtube-Video als mp4 720p heruntergeladen
- ffmpeg unter (L)Ubuntu installiert

Jetzt öffnen wir ein Kommandozeilen (=Terminal)-Fenster, unter Lubuntu zB einfach mit der Tastenkombination Strg + Alt + t , und geben ein:

1
 
ffmpeg -h
 


Im Terminal werden jetzt Informationen über die installierte ffmpeg-Version und die einzelnen Programm-Optionen angezeigt.

Zitat

1
2
3
 
ffmpeg -h
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
 



Installationsinformationen:

configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100

Hyper fast Audio and Video encoder

usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Getting help:
-h -- print basic options
-h long -- print more options
-h full -- print all options (including all format and codec specific options, very long)
See man ffmpeg for detailed description of the options.

Print help / information / capabilities:
-L show license
-h topic show help
-? topic show help
-help topic show help
--help topic show help
-version show version
-buildconf show build configuration
-formats show available formats
-devices show available devices
-codecs show available codecs
-decoders show available decoders
-encoders show available encoders
-bsfs show available bit stream filters
-protocols show available protocols
-filters show available filters
-pix_fmts show available pixel formats
-layouts show standard channel layouts
-sample_fmts show available audio sample formats
-colors show available color names
-sources device list sources of the input device
-sinks device list sinks of the output device
-hwaccels show available HW acceleration methods

Global options (affect whole program instead of just one file:
-loglevel loglevel set logging level
-v loglevel set logging level
-report generate a report
-max_alloc bytes set maximum size of a single allocated block
-y overwrite output files
-n never overwrite output files
-ignore_unknown Ignore unknown stream types
-stats print progress report during encoding
-max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error maximum error rate
-bits_per_raw_sample number set the number of bits per raw sample
-vol volume change audio volume (256=normal)

Per-file main options:
-f fmt force format
-c codec codec name
-codec codec codec name
-pre preset preset name
-map_metadata outfile[,metadata]:infile[,metadata] set metadata information of outfile from infile
-t duration record or transcode "duration" seconds of audio/video
-to time_stop record or transcode stop time
-fs limit_size set the limit file size in bytes
-ss time_off set the start time offset
-sseof time_off set the start time offset relative to EOF
-seek_timestamp enable/disable seeking by timestamp with -ss
-timestamp time set the recording timestamp ('now' to set the current time)
-metadata string=string add metadata
-target type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")
-apad audio pad
-frames number set the number of frames to output
-filter filter_graph set stream filtergraph
-filter_script filename read stream filtergraph description from a file
-reinit_filter reinit filtergraph on input parameter changes
-discard discard
-disposition disposition

Video options:
-vframes number set the number of video frames to output
-r rate set frame rate (Hz value, fraction or abbreviation)
-s size set frame size (WxH or abbreviation)
-aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-bits_per_raw_sample number set the number of bits per raw sample
-vn disable video
-vcodec codec force video codec ('copy' to copy stream)
-timecode hh:mm:ss[:;.]ff set initial TimeCode value.
-pass n select the pass number (1 to 3)
-vf filter_graph set video filters
-ab bitrate audio bitrate (please use -b:a)
-b bitrate video bitrate (please use -b:v)
-dn disable data

Audio options:
-aframes number set the number of audio frames to output
-aq quality set audio quality (codec-specific)
-ar rate set audio sampling rate (in Hz)
-ac channels set number of audio channels
-an disable audio
-acodec codec force audio codec ('copy' to copy stream)
-vol volume change audio volume (256=normal)
-af filter_graph set audio filters

Subtitle options:
-s size set frame size (WxH or abbreviation)
-sn disable subtitle
-scodec codec force subtitle codec ('copy' to copy stream)
-stag fourcc/tag force subtitle tag/fourcc
-fix_sub_duration fix subtitles duration
-canvas_size size set canvas size (WxH or abbreviation)
-spre preset set the subtitle options to the indicated preset



Sieht also alles gut aus.
Jetzt wechsle ich in das Verzeichnis in dem der heruntergeladene Film liegt mit:

1
 
cd /home/BENUTZERNAME/Videos/
 


und lasse mir zur Kontrolle alle im Verzeichnis "Videos" angezeigten Dateien auflisten:

1
 
ls
 


Ausgabe im Terminal:

1
 
ScamBaitingRulesandEthics2019.mp4  
 



Jetzt kann es losgehen.
Entsprechend dem in der Hilfe vorgegebenen Benutzungshinweis

Zitat
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Getting help:
-h -- print basic options
-h long -- print more options
-h full -- print all options (including all format and codec specific options, very long)
See man ffmpeg for detailed description of the options.


kann man jetzt den entsprechenden vollständigen Befehl zusammenstellen.

1
 
ffmpeg -i ScamBaitingRulesandEthics2019.mp4 -acodec libmp3lame -ab 64k -metadata TITLE="scambaiting_rules_and_ethics__scambait-central2019" scambaiting_rules_and_ethics__scambaiting-central2019_ab=64.mp3
 



Zur Erklärung hier in verschiedene Zeilen aufgespalten:

Zitat
ffmpeg -i ScamBaitingRulesandEthics2019.mp4 -i xxxx.mp4 inputfile: Der Dateiname des heruntergeladenen mp4-Filmes

-acodec libmp3lame der verwendete Audio-codec ist libmp3lame

-ab 128k für das zu erstellende mp3-Audio wird eine Bitrate von 128kb/sec gewählt.

-metadata TITLE="scambaiting_rules_and_ethics__scambait-central2019" Titel, der zB von Musik-Playern angezeigt werden kann.

scambaiting_rules_and_ethics__scambait-central2019_ab=128.mp3 Beliebiger, selbst gewählter Dateiname für die neue mp3-Datei



Mit dem oben angebenenen Befehl ergibt sich ein mp3 mit der Dateigröße von 22,5MB


Setzt man die Bitrate herunter, leidet die Tonqualität, aber es ergibt sich eine geringere Dateigröße: 11,3MB


Wenn die hier gefundenen Informationen für dich hilfreich waren oder dich evtl sogar vor einem größeren finanziellen Schaden bewahrt haben, dann spende bitte einen Kleinbetrag an uns! Dazu gehst du bitte auf unsere Startseite scambaiter-forum.info und nutzt den Button "Spenden an Scambaiter" rechts oben.
Aktueller Spendenaufruf: Aufruf zu freiwilligen Spenden für unser Forum (3)

Dateianlage:
Aufgrund eingeschränkter Benutzerrechte werden nur die Namen und (falls vorhanden) Vorschau-Grafiken der Dateianhänge angezeigt Jetzt anmelden!
scambaiting_rules_and_ethics__scambait-central2019_ab=64.mp3

2 Mitglieder finden das Gut!
1 Mitglied hat sich bedankt!
 
if6was9
Administrator
Beiträge: 5.849
Registriert am: 01.09.2014

zuletzt bearbeitet 10.11.2019 | Top

RE: youtube-video mit Firefox-Addon downloaden und Audio mit ffmpeg auf Kommandozeile in mp3 umwandeln

#2 von schmubo , 15.11.2019 21:14

Zitat von if6was9 im Beitrag #1
Für das Extrahieren der Tonspur aus dem mp4-Video werde ich das Kommandozeilen-Programm ffmpeg unter Lubuntu 1604 verwenden.

Ich öffne das runtergeladene Video in Audacity und speichere die Datei im MP3-Format. Fertig.
Audacity ist Open Source und Freeware und für Windows, Linux und angebissenes Fallobst verfügbar.


Mugu vult decipi. Ergo decipiatur!   (frei nach Titio)


1 Mitglied findet das Gut!
1 Mitglied hat sich bedankt!
 
schmubo
baiting by software
Beiträge: 3.337
Registriert am: 21.11.2007


   

MRZ generieren
Firefox und seine Addons

Xobor Einfach ein eigenes Forum erstellen
Datenschutz