Trying to convert youtube videos to mp3 files on my phone, the website I had been doing it on is down and all the alternatives are scam sites and virus links. Any alts you know?

Edit: i have an iPhone, I would prefer a browser based converter if possible.

  • ExtremeDullard@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    16 hours ago

    If it wasn’t on your phone, I would point to yt-dlp: simply type yt-dlp -F <Youtube URL> to list the available formats, then yt-dsp -f <format ID> <Youtube URL> to download the audio in the format of your choice:

    E.g.:

    $ yt-dlp -F https://youtu.be/xWUCsE4IM_c
    [youtube] Extracting URL: https://youtu.be/xWUCsE4IM_c
    [youtube] xWUCsE4IM_c: Downloading webpage
    [youtube] xWUCsE4IM_c: Downloading ios player API JSON
    [youtube] xWUCsE4IM_c: Downloading android player API JSON
    [youtube] xWUCsE4IM_c: Downloading player 6e1dd460
    WARNING: [youtube] xWUCsE4IM_c: Signature extraction failed: Some formats may be missing
    [youtube] xWUCsE4IM_c: Downloading m3u8 information
    [info] Available formats for xWUCsE4IM_c:
    ID  EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
    ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
    sb2 mhtml 48x27        0    │                  mhtml │ images                                  storyboard
    sb1 mhtml 80x45        0    │                  mhtml │ images                                  storyboard
    sb0 mhtml 160x90       0    │                  mhtml │ images                                  storyboard
    233 mp4   audio only        │                  m3u8  │ audio only          unknown             Default
    234 mp4   audio only        │                  m3u8  │ audio only          unknown             Default
    139 m4a   audio only      23.16MiB   49k https │ audio only          mp4a.40.5   49k 22k low, m4a_dash
    140 m4a   audio only      28.38MiB  129k https │ audio only          mp4a.40.2  129k 44k medium, m4a_dash
    269 mp4   256x144     25    │ ~ 11.11MiB  172k m3u8  │ avc1.4D400C    172k video only
    160 mp4   256x144     254.08MiB   63k https │ avc1.4D400C     63k video only          144p, mp4_dash
    230 mp4   640x360     25    │ ~ 51.95MiB  803k m3u8  │ avc1.4D401E    803k video only
    134 mp4   640x360     2513.88MiB  215k https │ avc1.4D401E    215k video only          360p, mp4_dash
    605 mp4   640x360     25    │ ~ 37.67MiB  582k m3u8  │ vp09.00.21.08  582k video only
    232 mp4   1280x720    25    │ ~166.26MiB 2569k m3u8  │ avc1.4D401F   2569k video only
    136 mp4   1280x720    2552.13MiB  806k https │ avc1.4D401F    806k video only          720p, mp4_dash
    270 mp4   1920x1080   25    │ ~306.16MiB 4730k m3u8  │ avc1.640028   4730k video only
    137 mp4   1920x1080   25159.35MiB 2462k https │ avc1.640028   2462k video only          1080p, mp4_dash
    
    $ yt-dlp -f 140 https://youtu.be/xWUCsE4IM_c
    [youtube] Extracting URL: https://youtu.be/xWUCsE4IM_c
    [youtube] xWUCsE4IM_c: Downloading webpage
    [youtube] xWUCsE4IM_c: Downloading ios player API JSON
    [youtube] xWUCsE4IM_c: Downloading android player API JSON
    [youtube] xWUCsE4IM_c: Downloading player 6e1dd460
    WARNING: [youtube] xWUCsE4IM_c: Signature extraction failed: Some formats may be missing
    [youtube] xWUCsE4IM_c: Downloading m3u8 information
    [info] xWUCsE4IM_c: Downloading 1 format(s): 140
    
    • adarza
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      15 hours ago

      interactive mode is nice and basically combines those steps, and i tend to use it for one-off downloads of a single url. that way i get to see what i’m gonna get (filesize, resolution, codec, etc), before i get it.

      yt-dlp -f - https://youtu.be/xWUCsE4IM_c

      then at the prompt here in your example, i’d input 140 for audio only.