UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Has video/media playback improved?

    Scheduled Pinned Locked Moved Lenovo
    16 Posts 7 Posters 2.0k Views 3 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.
    • G Offline
      gpatel-fr @gpatel-fr
      last edited by

      hmm, for lack of an answer, via matroska.org; I found 8 .mkv test files; 5 are playing fine on UT, 2 are failing because of a missing mpeg4 codec - I think that it is the same bug as this one in fact, the fix that is known in principle just needs to find a bit of storage space, and the test4.mkv has a broken structure - vlc can play it because it papers over the problem, but gstreamer on a standard Ubuntu workstation can't; it's a gstreamer limitation.
      So Halium has very probably no relationship with problems reading .mkv files. That's entirely a linux level matter.

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Charly @gpatel-fr
        last edited by

        Hello,

        the native video player is not optimal. As a solution that actually always works I use mpv in liberline on the shell.

        greetings
        Charly

        Greetings
        Charly

        UT 24.04 on Volla X23

        G H 2 Replies Last reply Reply Quote 0
        • G Offline
          gpatel-fr @Charly
          last edited by

          @Charly

          mpv can also be installed via snap.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hlbkv @Charly
            last edited by

            @gpatel-fr it was about a year ago, I didn't do extensive testing, but none of the .mkv I tried worked, and .mp4 were very hit-and-miss. Good to know it isn't Hallium-related, perhaps there's hope to fix it on this device.

            @Charly the issue w/ that is that, AFAIK, Libertine apps aren't hardware-accelerated, and video playback often gets choppy (it was one of the workarounds I tried). Didn't try the snap version though.

            1 Reply Last reply Reply Quote 0
            • H Offline
              hlbkv
              last edited by

              So noone who owns this device can provide any feedback on media playback? I'm planning to reinstall UT anyway, but would rather avoid running into this issue.

              F 1 Reply Last reply Reply Quote 0
              • F Offline
                floem7 @hlbkv
                last edited by floem7

                @hlbkv Hi, I have fresh tablet with UTouch (24.04). I've verified that: mp4 (checked 2 files), m4v and mkv plays without problems in default app. However ts2 file don't work.

                G H 2 Replies Last reply Reply Quote 0
                • G Offline
                  gpatel-fr @floem7
                  last edited by

                  @floem7 said in Has video/media playback improved?:

                  mkv plays without problems in default app

                  a .mkv file is a container format, so the ability of UT mediaplayer to play these files depends on what is exactly the format of media tracks in the file. If the video track is "standard" mp4 or theora or h264 and sound track is mp3 or ogg/vorbis, there will be no problem. If for example the sound is amr or video is 'microsoft' mp4, it will probably not work.

                  It's not obvious to check on the format of a .mkv file under Ubuntu Touch, it's much easier under a PC running Linux where you can easily install mkvinfo (ffplay or gst-discoverer-1.0 will also be able to interpret the files to some extent).

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    hlbkv @floem7
                    last edited by

                    @gpatel-fr said:

                    @floem7 said in Has video/media playback improved?:

                    mkv plays without problems in default app

                    a .mkv file is a container format, so the ability of UT mediaplayer to play these files depends on what is exactly the format of media tracks in the file. If the video track is "standard" mp4 or theora or h264 and sound track is mp3 or ogg/vorbis, there will be no problem. If for example the sound is amr or video is 'microsoft' mp4, it will probably not work.

                    It's not obvious to check on the format of a .mkv file under Ubuntu Touch, it's much easier under a PC running Linux where you can easily install mkvinfo (ffplay or gst-discoverer-1.0 will also be able to interpret the files to some extent).

                    Indeed none of my .mkv files work. I've tried converting to .mp4 using ffmpeg, but it still doesn't play.
                    What target (that we're sure it's supported) video and audio format/encoding should I use?

                    H 1 Reply Last reply Reply Quote 0
                    • H Offline
                      hlbkv @hlbkv
                      last edited by

                      Looking into this with a bit more care, the issue seems to be high definition video such as 10-bit H.264, converting to 8-bit seems to allow playback to work. I'm not sure if it's an hardware limitation, because it works on android roms (at least on custom A14).

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        gpatel-fr @hlbkv
                        last edited by

                        @hlbkv

                        UT system is based on QT, whose graphic support on Linux is based on gstreamer libraries. Unfortunately by itself while wide, gstreamer support for advanced formats is not limitless.

                        You can find mkv sample files here

                        On Ubuntu 24.04 all files can be played by ffplay, even the invalid ones test4 and test7, while the standard gstreamer player (gst-play-1.0) can play 4 of them (2,3,5,7) if ffmpeg support (ffmpeg itself and the link library gstreamer1.0-libav) are not installed, and can play test1 and test6 if this support is enabled.

                        Ubuntu Touch can play 4 of these sample files (the same as desktop Ubuntu can play if ffmpeg support is not enabled)

                        gst-discoverer-1.0 test1.mkv 
                        (...)
                        Properties:
                          Duration: 0:01:27.336000000
                          Seekable: yes
                          Live: no
                          container #0: Matroska
                            video #1: Microsoft MPEG-4 4.2
                        

                        this 'Microsoft MPEG-4 4.2' is probably the same thing as your '10 bit support'.

                        You can install mpv with snap, it can probably play your mkv files.

                        Note that hardware support is not involved except when it comes to performance of course.

                        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