Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML video element and UNC paths
QtWS25 Last Chance

QML video element and UNC paths

Scheduled Pinned Locked Moved QML and Qt Quick
19 Posts 5 Posters 19.1k Views
  • 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.
  • F Offline
    F Offline
    fas.ysk
    wrote on 13 Jun 2011, 18:20 last edited by
    #1

    Is it possible to use UNC paths in QML video element (like //servername/folder/clip.mp4) ?
    I try:
    @source: "//nas/films/some_clip.mp4"@

    but got next error:
    @DirectShowPlayerService::doSetUrlSource: Unresolved error code 80040216@

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrew.den-exter
      wrote on 15 Jun 2011, 14:37 last edited by
      #2

      The source property takes a URL. Try:

      @source: "file://nas/films/some_clip.mp4"@

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fas.ysk
        wrote on 15 Jun 2011, 15:26 last edited by
        #3

        does not work: (
        !http://fastman.org/foto/unc_fail.png(fail)!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mattlc
          wrote on 20 Jul 2011, 12:33 last edited by
          #4

          Hi,

          I manage to make it work with a local file but not with a remote one.

          I get the "DirectShowPlayerService::doSetUrlSource: Unresolved error code 80070003". It seems that the problem is different here.

          I have a windows 7 compiled version of QtMobility. And I have to read videos over http.
          I tried with remote files over samba (like you) and I got the same error code.

          Has anyone ever managed to play video over Internet with the QML video player ?

          Any help ?

          Mat

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fas.ysk
            wrote on 20 Jul 2011, 12:50 last edited by
            #5

            Hi, I found solution(someone helped me in qml email list):
            Use:
            source: "file:////\\Server\share_folder\100028383.mp4"

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mattlc
              wrote on 20 Jul 2011, 13:03 last edited by
              #6

              Thanks a lot ! Now we have some other errors, but not related to this one.

              Do you know if Qml video player works with http videos ?

              thank you.

              1 Reply Last reply
              0
              • F Offline
                F Offline
                fas.ysk
                wrote on 20 Jul 2011, 13:08 last edited by
                #7

                [quote author="mattlc" date="1311166984"]Thanks a lot ! Now we have some other errors, but not related to this one.
                Do you know if Qml video player works with http videos ?
                thank you.[/quote]
                Try this for example:
                source: "http://pseudo01.hddn.com/vod/demo.flowplayervod/Extremists.flv"

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mattlc
                  wrote on 20 Jul 2011, 13:56 last edited by
                  #8

                  This is OK for flv and ts files. Thank you !

                  I tried ".mp4" =>

                  • local playing : OK
                  • remote over http : KO "DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005"

                  Any idea ?

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    fas.ysk
                    wrote on 20 Jul 2011, 14:14 last edited by
                    #9

                    [quote author="mattlc" date="1311170179"]This is OK for flv and ts files. Thank you !

                    I tried ".mp4" =>

                    • local playing : OK
                    • remote over http : KO "DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005"

                    Any idea ?[/quote]

                    I'm not sure, but probably you need the following:

                    • Your HTTP server must be able psevdostriming h264

                    • Your MP4 clips should be "hinted"

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mattlc
                      wrote on 21 Jul 2011, 10:52 last edited by
                      #10

                      [quote author="fas.ysk" date="1311171240"][quote author="mattlc" date="1311170179"]This is OK for flv and ts files. Thank you !

                      I tried ".mp4" =>

                      • local playing : OK
                      • remote over http : KO "DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005"

                      Any idea ?[/quote]

                      I'm not sure, but probably you need the following:

                      • Your HTTP server must be able psevdostriming h264

                      • Your MP4 clips should be "hinted"

                      [/quote]

                      We tried with tomcat which automatically make pseudostreaming stuff, but it ends with another issue. Here the problem is that there aren't any error code.

                      It seams to be related to DirectShow with H264 over http... And I have not found anywhere a working example or anyone who tried this with QtMobility player on Windows.

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        fas.ysk
                        wrote on 21 Jul 2011, 11:19 last edited by
                        #11

                        PseudoStreaming h264 works fine.
                        You can see it:
                        !http://fastman.org/foto/h264_pstr.png(pseudostreaming h264)!

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mattlc
                          wrote on 21 Jul 2011, 11:49 last edited by
                          #12

                          Excellent! So this is possible !

                          The video you use doesn't work on my app. For QtMobility windows buid, did you do any custom config ?
                          I just followed the nokia guidelines :

                          @configure -prefix %QTDIR%
                          mingw32-make
                          mingw32-make install@

                          The result is this one :

                          !http://my-v.fr/sites/default/files/directShowPb.png(Not working test)!

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            fas.ysk
                            wrote on 21 Jul 2011, 12:08 last edited by
                            #13

                            I use default configuration. But I do not use mingw32. For windows I always use nmake/cl from MSVS.
                            Qt 4.7.2 I compiled from sources with my own configuration.

                            configure -shared -debug-and-release -phonon -multimedia -audio-backend -mp -plugin-sql-odbc -declarative -webkit -qt-libpng -qt-libtiff -qt-libjpeg -qt-style-windowsvista -qt-style-windowsxp -platform win32-msvc2010

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mattlc
                              wrote on 21 Jul 2011, 13:50 last edited by
                              #14

                              OK. Thanks a lot for that.

                              I think that is the point. We are currently rebuilding with the same command and I'll give you some feedback about it.

                              Just a question, why didn't you use mingw32 ?

                              1 Reply Last reply
                              0
                              • F Offline
                                F Offline
                                fas.ysk
                                wrote on 21 Jul 2011, 14:01 last edited by
                                #15

                                Because it's native tools to develop :)
                                It is convenient and requires no additional tools (such as mingw32)

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mattlc
                                  wrote on 3 Aug 2011, 12:41 last edited by
                                  #16

                                  Hi,

                                  After many different codec tests, I still have a problem but I can focus on it much more precisely.

                                  I installed MPC in order to have a stable directshow player.

                                  With the codec tweak tools, I disabled all third part codecs and I was able to play a local mp4 file by using native DTV/DVD windows codec on MPC and Qt Player.

                                  I also tried q remote http mp4 file :

                                  • on MPC : OK (using quartz.dll = DirectShow Source Filters for remote files and haali splitter.ax splitter for mp4)
                                  • on Qt Player : KO.

                                  QtMultimedia fail to find a DirectShow source filter.
                                  Here is the line which fails in DirectShow Qt Plugin class (DirectShowPlayerService):
                                  @hr = m_graph->AddSourceFilter(
                                  reinterpret_cast<const OLECHAR *>(url.toString().utf16()), L"Source", &source);@

                                  "m_graph" is a IFilterGraph2 implementation created by the DirectShow "CoCreateInstance" function.

                                  This class (DirectShowPlayerService) use static GUIDs for building both the graph and the source filter. I didn't managed to find any of these GUID in my available codecs and in directshow api reference.

                                  Can you or anyone tell me if this sound like a Qt bug or a wrong codec environment ?

                                  Thanks a lot.

                                  @fas.ysk : thanks for all of your help

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    michael.goddard
                                    wrote on 4 Aug 2011, 02:52 last edited by
                                    #17

                                    I guess this is https://bugreports.qt.nokia.com/browse/QTMOBILITY-1802

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mattlc
                                      wrote on 4 Aug 2011, 07:34 last edited by
                                      #18

                                      Excactly.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        madil
                                        wrote on 3 Oct 2011, 10:10 last edited by
                                        #19

                                        i am using QML and i want to play video from http://www.youtube.com so any one of you help me resolve this issue.
                                        video link like =http://www.youtube.com/watch?v=rdNdmc83xe4

                                        1 Reply Last reply
                                        0

                                        • Login

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Users
                                        • Groups
                                        • Search
                                        • Get Qt Extensions
                                        • Unsolved