News for hackers. Stuff that matters.
Re:Downloading a video should be “fair use” as recording a s... by mdaniel on Sunday August 13, 2023 @06:37PM (#37115339)
> --audio-format mp3

Of course, up to you, but most youtube videos are actually an AAC (m4a) codec and thus by asking for mp3 you're going to get a transcoding ffmpeg subprocess in between the bytes and the file in your directory. I would be stunned if whatever your ultimate consuming player is doesn't support aac/m4a/mp4 playback

    $ yt-dlp -F https://www.youtube.com/watch?v=k...
    139 m4a   audio only      2 |     1.47MiB   49k https | audio only          mp4a.40.5   49k 22k low, IOS, m4a_dash
    140 m4a   audio only      2 |     3.90MiB  129k https | audio only          mp4a.40.2  129k 44k medium, IOS, m4a_dash
    249 webm  audio only      2 |     1.54MiB   51k https | audio only          opus        51k 48k low, ANDR, webm_dash
    250 webm  audio only      2 |     2.02MiB   67k https | audio only          opus        67k 48k low, ANDR, webm_dash
    251 webm  audio only      2 |     3.95MiB  131k https | audio only          opus       131k 48k medium, ANDR, webm_dash
    599 m4a   audio only      2 |   950.46KiB   31k https | audio only          mp4a.40.5   31k 22k ultralow, ANDR, m4a_dash
    600 webm  audio only      2 |     1.06MiB   35k https | audio only          opus        35k 48k ultralow, ANDR, webm_dash
Re:Downloading a video should be “fair use” as recording a s... by GhostWhisperer on Monday August 14, 2023 @02:27AM (#37118087)
just sideloaded with m4a and it works

thanks for the tip

    function sideload() {
      mv $1 "$HOME/Library/Mobile Documents/iCloud~co~supertop~castro/Documents/Sideloads/"
      echo "Sideloaded $1 to Castro; should be available soon."
    }