• LostXOR@fedia.io
    link
    fedilink
    arrow-up
    130
    ·
    7 months ago

    Me opening /dev/urandom as a raw video stream to watch some nice relaxing RGB static.

      • Robin@lemmy.world
        link
        fedilink
        English
        arrow-up
        47
        ·
        7 months ago

        I thought it was libvlc that covers that but no, it is indeed libavcodec which is part of the ffmpeg project. Does anyone here know the relationship between libvlc and libavcodec?

        • WolfLink@lemmy.ml
          link
          fedilink
          arrow-up
          37
          ·
          7 months ago

          libvlc uses libavcodec

          VLC relays on ffmpeg for a lot of video decoding, as do lots of other media programs. Go look up the legal notice on your TV and there’s a good chance the ffmpeg licensing information is in there.

          • lud@lemm.ee
            link
            fedilink
            arrow-up
            13
            ·
            7 months ago

            If you look up the dependencies or legal notices for anything that does anything related to video, audio or maybe even images, it’s very likely that it uses ffmpeg in some way.

        • uis@lemm.ee
          link
          fedilink
          arrow-up
          11
          ·
          7 months ago

          FFmpeg is one of libvlc’s backends. A lot of stuff vlc can decode without calling ffmpeg.

      • sag@lemm.eeOP
        link
        fedilink
        arrow-up
        21
        ·
        7 months ago

        Whenever someone ask me media player for Linux I suggest MPV but for Binbows I suggest VLC. I don’t know why?

        • zurohki@aussie.zone
          link
          fedilink
          English
          arrow-up
          15
          ·
          7 months ago

          IIRC VLC on Windows uses it’s own included ffmpeg libraries for decoding so you don’t need to mess around with Windows codecs.

        • BehindTheBarrier@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          7 months ago

          I’m in the MPC-HC gang on Windows. Just so much more practical than other players. The main selling point was that full-screen the controls go away once you move the cursor off them, it was amazing. And no waiting for subs to be processed like VLC had to back then, never turned back so don’t know if that is still a thing.

          • Dudewitbow@lemmy.zip
            link
            fedilink
            arrow-up
            5
            ·
            7 months ago

            the main selling point of mpchc is madvr. there’s basically no other competitors that utilize the GPU to make the media your watching better on the same level as madvr.

        • Bye@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          7 months ago

          I use mpv but the configuration is a big pain. Just try overriding a subtitle font in mpv, there are config files to change that don’t even exist by default and they live in different places depending on mpv version and it’s a huge mess.

          I still do it because it’s lightweight and for some reason has better performance for me than VLC.

        • monoboy@lemmy.zip
          link
          fedilink
          arrow-up
          2
          ·
          7 months ago

          I do the same because VLC has an installer on Windows while MPV you have to manually extract from a compressed folder and then run the install script from command line

  • Buttons@programming.dev
    link
    fedilink
    English
    arrow-up
    92
    arrow-down
    1
    ·
    7 months ago

    I once thought of a movie while coughing into a microphone. I opened the recorded cough with VLC and it played the movie.

    • ReversalHatchery@beehaw.org
      link
      fedilink
      English
      arrow-up
      13
      ·
      7 months ago

      You don’t even need to cough with the right setting on. That’s just a safety feature for the uninitiated, so that they don’t submit freaked out bug reports.

  • lud@lemm.ee
    link
    fedilink
    arrow-up
    57
    ·
    edit-2
    7 months ago

    I just discovered something that VLC REALLY didn’t like to play. A 4K50fps JPEG2000 YUV444 12bit lossless ~48 GB video that was only 1 minute long.

    To be fair the bitrate of the video is insane at ~5700 Mbit/s. The bitrate is so insane that you should really consider using an NVME drive for playback.

    MPC-HC could kinda play it but only with extreme stutter and lag. My CPU (Ryzen 9 5900x) was completely maxed out.

    I think you need hardware acceleration for a video like this.

    • AVincentInSpace
      link
      fedilink
      English
      arrow-up
      40
      ·
      edit-2
      7 months ago

      Forget playback. How was that video file recorded? How do you even store data that fast, let alone encode it?

      • lud@lemm.ee
        link
        fedilink
        arrow-up
        18
        ·
        edit-2
        7 months ago

        You can read more about why and how it was made here: https://www.svt.se/open/en/content/

        The only place I could find where I could kinda play the video is inside Davinci resolve, but it doesn’t look how I would like it to. Probably due to the apparent lack of HDR support in Resolve on Windows (unless you have a separate TV connected to the PC somehow.

        • AVincentInSpace
          link
          fedilink
          English
          arrow-up
          20
          ·
          7 months ago

          Ohhhhhh. It’s a video decoder torture test. “If your app can play this it can play anything” sort of deal. That makes sense.

          Also makes sense that VLC puked.

          • lud@lemm.ee
            link
            fedilink
            arrow-up
            6
            ·
            7 months ago

            I think it’s more of a test for encoding, not sure if you are really supposed to try and play it in an app.

        • AVincentInSpace
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          7 months ago

          It’d have to be computer generated, obviously, either that or filmed on one of those 1 morbillion FPS cameras. Humanity does not possess the technology to generate that much data in realtime. But that only raises further questions: what would you need to render in quality that high? And why spend however many datacenter compute-years to render it?

          OP what was the video? I NEED ANSWERS!

    • DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      29
      ·
      edit-2
      7 months ago

      Vlc has hardware acceleration afaik. I think its more a case of the ffmpeg codec not supporting it yet because what the actual fuck haha

        • lud@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          7 months ago

          I get similar results with ffplay compared to MPC-HC. I unfortunately haven’t been able to get proper hardware acceleration to work anywhere.

          Or maybe it does work and it’s still bottlenecked by the CPU somehow.

    • stebo@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      23
      ·
      7 months ago

      I think you need hardware acceleration for a video like this.

      ok but why would anyone have a video like that

        • notthebees@reddthat.com
          link
          fedilink
          arrow-up
          1
          ·
          7 months ago

          Certain programs can do multithreaded downloads on ftp servers. Winscp is one that can do it. Idk about other software

  • Andrew@mander.xyz
    link
    fedilink
    arrow-up
    47
    ·
    edit-2
    7 months ago

    VLC is not script-frendly. mpv is the goat. You can even watch videos from YouTube and maybe from somewhere else.

  • Ascend910@lemmy.ml
    link
    fedilink
    English
    arrow-up
    36
    ·
    7 months ago

    The cool part is vlc can act like a video downloader, screen recorder, and media converter. It can also stream a video over the internet

    • Stitch0815@feddit.de
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      He is also an extremly annoyed french guy who has no fucks left to give. One of the maintainers is on an episode of the FOSSPOD and it was glorious

    • ඞmir@lemmy.ml
      link
      fedilink
      arrow-up
      8
      ·
      7 months ago

      Is there an updated fork with security patches? Android disclosed so many media vulnerabilities in the last 5 years that I don’t trust unupdated media players anymore

    • net00@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 months ago

      Same, I’d take it any day over VLC because of native dark mode. VLC’s themes are janky and weird-looking.

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      7 months ago

      Also MPC-BE because of nice support with dolby digital stuff lol

    • slazer2au@lemmy.world
      link
      fedilink
      English
      arrow-up
      25
      ·
      7 months ago

      Is it vlc struggling or your entire PC?

      I has one boss who wanted to stream 2 4K60 cctv feeds to his laptop while in the office. Needless to say his laptop struggles with a single 4K I didn’t even bother setting up the second feed.

    • thedirtyknapkin@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      7 months ago

      what are you watching that’s uhd and high ftamerate? is is something you made? I’ve never heard of anything releasing like that because yeah, most people can’t play that lol.

  • AVincentInSpace
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    edit-2
    7 months ago

    There are people who like VLC, but for me personally, MPV has a much cleaner interface, better configuration options, and when it comes to streaming video, MPV absolutely destroys VLC (especially when changing playback speed while the video is playing – VLC has the audio cut out for several seconds and MPV doesn’t, and that’s to say nothing of the MPEG glitches)

  • Nick@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    7 months ago

    I was missing Codecs in my Linux install. VLC couldn’t play a single file