• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Add support for .webm files (containing an opus audio stream)

    Scheduled Pinned Locked Moved Feature Suggestions
    6 Posts 5 Posters 2.9k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cedric
      last edited by

      I'm using yt-dlp to download youtube video's. These video's are saved as .webm files. Strawberry does not show these files in the collection.

      I suspect the backend can play this file, as ffprobe reports the matroska container to contain an opus audio stream:

      ffprobe Riton\ x\ Nightcrawlers\ -\ Friday\ \(Dopamine\ Re-Edit\)\ \[feat.\ Mufasa\ \&\ Hypeman\]\ \(It\'s\ Friday\ Then\ Song\)\ \[IHC1Ma6EBbE\].webm 
      ffprobe version n6.0 Copyright (c) 2007-2023 the FFmpeg developers
        built with gcc 13.1.1 (GCC) 20230429
        configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan
        libavutil      58.  2.100 / 58.  2.100
        libavcodec     60.  3.100 / 60.  3.100
        libavformat    60.  3.100 / 60.  3.100
        libavdevice    60.  1.100 / 60.  1.100
        libavfilter     9.  3.100 /  9.  3.100
        libswscale      7.  1.100 /  7.  1.100
        libswresample   4. 10.100 /  4. 10.100
        libpostproc    57.  1.100 / 57.  1.100
      Input #0, matroska,webm, from 'Riton x Nightcrawlers - Friday (Dopamine Re-Edit) [feat. Mufasa & Hypeman] (It's Friday Then Song) [IHC1Ma6EBbE].webm':
        Metadata:
          ENCODER         : Lavf60.3.100
        Duration: 00:02:49.19, start: 0.000000, bitrate: 4080 kb/s
        Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 1920x1080, SAR 1:1 DAR 16:9, 60 fps, 60 tbr, 1k tbn (default)
          Metadata:
            DURATION        : 00:02:49.149000000
        Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
          Metadata:
            DURATION        : 00:02:49.188000000
      

      My versions:
      $ strawberry --version
      Strawberry 1.0.18
      $ uname -a
      Linux cedric 6.4.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 11 Jul 2023 05:13:39 +0000 x86_64 GNU/Linux

      CherryStrawC P 2 Replies Last reply
      Reply Quote 0
      • CherryStrawC
        CherryStraw @cedric
        last edited by

        @cedric Wasn't the .webm format a video format? Strawberry is a music player, not a video player. If you're trying to download only audio, you should use another tool to download YouTube videos (MediaHuman for example, supports MP3 for downloads).

        1 Reply Last reply
        Reply Quote 0
        • rlkeeneyR
          rlkeeney
          last edited by

          WebM is an audiovisual media file format. It is primarily intended to offer a royalty-free alternative to use in the HTML5 video and the HTML5 audio elements. It has a sister project, WebP, for images. Wikipedia

          1 Reply Last reply
          Reply Quote 0
          • P
            PeterB @cedric
            last edited by

            @cedric
            You can try
            yt-dlp -x --audio-quality 0 --audio-format flac <URL>

            to download as an audio file

            1 Reply Last reply
            Reply Quote 0
            • P
              Pinky
              last edited by

              Just renaming the file from file.webm to file.mka make it work for me. Looks like the container (matroska) is supported by Strawberry, just the extension is the limit.

              P 1 Reply Last reply
              Reply Quote 0
              • P
                Pinky @Pinky
                last edited by

                FYI https://github.com/strawberrymusicplayer/strawberry/pull/1837

                1 Reply Last reply
                Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                Powered by NodeBB | Contributors