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

How to play wmv video files?

Scheduled Pinned Locked Moved Support
32 Posts 4 Posters 8.0k Views 2 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.
    • H Offline
      halucigenia @tupp
      last edited by 22 Jan 2018, 21:45

      @tupp My explanation is about how to transcode a video to play on a UT device, not about getting ffmpeg to run on a UT device.
      But I get your point, if you could install ffmpeg, mplayer etc. on a UT device then you could play the file from those applications. You would still need have the the codecs on the UT device to play the file though.

      Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

      1 Reply Last reply Reply Quote 0
      • D Offline
        dtarrant @halucigenia
        last edited by 22 Jan 2018, 22:24

        @halucigenia Many thanks for that advice. (I tried using ffmpeg help but got errors due to aac being experimental. It advised adding "-strict -2" but then said it didn't recognize the "2".) I'll let you know how I get on with your recommended command.

        1 Reply Last reply Reply Quote 0
        • D Offline
          dtarrant @halucigenia
          last edited by 22 Jan 2018, 23:04

          @halucigenia I just tried your command and got the following error message:

          Unknown encoder 'libfdk_aac'

          I'm using Ubuntu 16.04 and installed ffmpeg using synaptic. I'll look to see if it's listed in synaptic

          1 Reply Last reply Reply Quote 0
          • D Offline
            dtarrant @halucigenia
            last edited by 22 Jan 2018, 23:39

            @halucigenia Seems I need to compile ffmpeg in order to add libfdk_aac. That's going to drag me right out of my comfort zone. I became suspicious when you provided me with a link on how to compile ffmpeg. Enough for tonight, maybe I'll feel braver tomorrow.

            1 Reply Last reply Reply Quote 0
            • H Offline
              halucigenia
              last edited by 23 Jan 2018, 07:39

              dtarrant it looks like you are trying to use ffmpeg native AAC vbr so the parameters should be -c:a aac -q:a 2

              Try:-

              ffmpeg -i [input path/filename.WMV] -c:v libx264 -preset slow -tune film -crf 23 -c:a aac -q:a 2 [output path/filename.mp4]

              That should work, it works for me but native AAC vbr is experimental in ffmpeg so may not give good quality audio.

              Try cbr instead if the audio is not good enough:-

              ffmpeg -i [input path/filename.WMV] -c:v libx264 -preset slow -tune film -crf 23 -c:a aac -b:a 160k [output path/filename.mp4]

              You should not need to go to the extent of compiling ffmpeg yourself to get an acceptable result. I just meant that if you wanted to get the best out of ffmpeg you should compile.
              Sorry for originally giving you parameters that would require ffmpeg to be compiled with libfdk_aac, that's just what I regularly use and I didn't think about the fact that you would not be able to use it without compiling it, my bad!

              Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

              D 4 Replies Last reply 23 Jan 2018, 09:21 Reply Quote 0
              • D Offline
                dtarrant @halucigenia
                last edited by 23 Jan 2018, 09:21

                @halucigenia Many thanks for your latest input. I will certainly give it a try. In the meantime I found another recommendation with a Google search. I tried it and it appears to have worked fine (no audio/video sync problem). The command line I used was as follows:

                ffmpeg -i input.wmf -c:v libx264 -crf 23 -c:a -strict -2 -q:a 100 output.mp4

                This was from Jeremy Tammik. I've little understanding of what it all means, but I can play the resulting mp4 on my laptop with both videos and VLC. Now I need to try it on my tablet.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dtarrant @halucigenia
                  last edited by 23 Jan 2018, 10:23

                  @halucigenia Good news, the mp4 file mentioned in my previous post plays nicely on my tablet. I'll try your command line tonight and let you know how I get on. Once again, many thanks for all your support.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dtarrant @halucigenia
                    last edited by 23 Jan 2018, 15:26

                    @halucigenia I just tried your command line and got a message to warn aac is experimental. It advised adding "-strict -2". After adding that tweak, the conversion is ticking away nicely. I'll keep you posted.

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      halucigenia
                      last edited by 23 Jan 2018, 16:20

                      Another tip, while testing you might want to only transcode a portion of the source file to stop it ticking away nicely for too long before you can test it out.
                      You can use
                      -ss starttime in HH:MM:SS.xxx
                      -t endtime in HH:MM:SS.xxx

                      Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

                      D 1 Reply Last reply 23 Jan 2018, 19:44 Reply Quote 0
                      • H Offline
                        halucigenia
                        last edited by 23 Jan 2018, 16:25

                        @dtarrant Just seen your remark about using handbrake for transcoding in the other thread.
                        Did you know that hanbrake has a command line too - you could use that instead of ffmpeg.
                        I am sure that if you prefer the handbrake GUI you could batch up a number of transcodes using the same parameters quite easily too.

                        Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          dtarrant @halucigenia
                          last edited by 23 Jan 2018, 18:09

                          @halucigenia Well I'm pleased to report that your command line produced an mp4 file that plays fine on my laptop. Many thanks for all your help.

                          H 1 Reply Last reply 23 Jan 2018, 19:19 Reply Quote 0
                          • H Offline
                            halucigenia @dtarrant
                            last edited by 23 Jan 2018, 19:19

                            @dtarrant I am pleased for you. Do you need help with a script to process all the files one after the other?

                            Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

                            D 1 Reply Last reply 23 Jan 2018, 19:48 Reply Quote 0
                            • D Offline
                              dtarrant @halucigenia
                              last edited by 23 Jan 2018, 19:44

                              @halucigenia Great tip. That could save a lot of time.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                dtarrant @halucigenia
                                last edited by 23 Jan 2018, 19:48

                                @halucigenia Thanks for the offer. Could well be. Not ready yet though. I've only downloaded 3 of the 39 wmv files so far.

                                H 1 Reply Last reply 23 Jan 2018, 19:51 Reply Quote 0
                                • H Offline
                                  halucigenia @dtarrant
                                  last edited by 23 Jan 2018, 19:51

                                  @dtarrant Just let me know, I am still working on a script that could come in handy for me if I ever need to batch convert several files after figuring out why I can't play my mkv files in UT video player.

                                  Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

                                  1 Reply Last reply Reply Quote 0
                                  27 out of 32
                                  • First post
                                    27/32
                                    Last post