Opencv 3.1 compiled with FFMPEG, but won't open https urlsFFmpeg converting to flv but with 0 file sizeOpenCV Build Error: “Cannot open options file specified with @”ffmpeg & ffprobe & libfdk-aac on Ubuntu 14.10 serverHow to compile ffmpeg with https supportVLC won't play most of my file formatsMP3 encoding problems caused by gstreamer1.0 lamemp3enc not working (for me) in Ubuntu Xenial 16.04Building static ffmpeg libraries on amd64 where libc isn't compiled with -fPICRunning caffe gives error Check failed: error == cudaSuccess (30 vs. 0) unknown errorVideos application doesn't actually show video, just audiobuild opencv with ffmpeg support

How to change two letters closest to a string and one letter immediately after a string using notepad++

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?

What should tie a collection of short-stories together?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Are ETF trackers fundamentally better than individual stocks?

Min function accepting varying number of arguments in C++17

Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is

How could a scammer know the apps on my phone / iTunes account?

how to write formula in word in latex

What's the meaning of “spike” in the context of “adrenaline spike”?

A Cautionary Suggestion

Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?

Sailing the cryptic seas

If the DM rolls initiative once for a group of monsters, how do end-of-turn effects work?

What options are left, if Britain cannot decide?

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

How to use deus ex machina safely?

Can I use USB data pins as power source

How to create the Curved texte?

Employee lack of ownership

Knife as defense against stray dogs

If I can solve Sudoku can I solve Travelling Salesman Problem(TSP)? If yes, how?

How Could an Airship Be Repaired Mid-Flight

What are substitutions for coconut in curry?



Opencv 3.1 compiled with FFMPEG, but won't open https urls


FFmpeg converting to flv but with 0 file sizeOpenCV Build Error: “Cannot open options file specified with @”ffmpeg & ffprobe & libfdk-aac on Ubuntu 14.10 serverHow to compile ffmpeg with https supportVLC won't play most of my file formatsMP3 encoding problems caused by gstreamer1.0 lamemp3enc not working (for me) in Ubuntu Xenial 16.04Building static ffmpeg libraries on amd64 where libc isn't compiled with -fPICRunning caffe gives error Check failed: error == cudaSuccess (30 vs. 0) unknown errorVideos application doesn't actually show video, just audiobuild opencv with ffmpeg support













1















I work on a 16.04 system, and have successfully installed opencv 3.1 with FFMPEG flags enabled. I double checked this was actually the case by cv2.getBuildInformation() and I got FFMPEG = YES.



I am trying to open a video that is hostel on a private server by my workplace (I am logged in to the VPN, in case thats a concern) and I can access this video over the browser. But videocapture with cv2 fails.



>>> cap = cv2.VideoCapture("https://xxx.mp4", cv2.CAP_ANY) #dummy url
>>> cap
<VideoCapture 0x7f63300fa4b0>
>>> cap.isOpened()
False


This is always the case for https urls. It seems to be able to work with local videos just fine.
I have tried a bunch of different thing: initially thought it was a gstreamer problem so I checked my plugins, had some gst-bad versions (ref: https://github.com/GStreamer/gst-plugins-ugly), removed those and replaced with good versions, no joy.
Also tried to explicitly tell videoCapture to use cv2.CAP_ANY and cv2.CAP_FFMPEG flags while reading the video, still no luck.



I disabled the Gstreamer flag while compiling opencv, but even with it set to ON, there was no difference in my problem.



I haven't been able to find a solution to this issue and have been looking and trying different things for days now! Any ideas?










share|improve this question






















  • Is it documented anywhere that it should work with a URI string? I only see mention of local files or video devices

    – steeldriver
    Mar 2 '18 at 0:58











  • Good point. But all my other colleagues at work are able to do this, so I can only assume that it is meant to work. I had been checking against their opencv builds to push mine towards working, which is what led me to the gstreamer and ffmpeg changes, but no luck there either.

    – stalagmite7
    Mar 2 '18 at 4:35















1















I work on a 16.04 system, and have successfully installed opencv 3.1 with FFMPEG flags enabled. I double checked this was actually the case by cv2.getBuildInformation() and I got FFMPEG = YES.



I am trying to open a video that is hostel on a private server by my workplace (I am logged in to the VPN, in case thats a concern) and I can access this video over the browser. But videocapture with cv2 fails.



>>> cap = cv2.VideoCapture("https://xxx.mp4", cv2.CAP_ANY) #dummy url
>>> cap
<VideoCapture 0x7f63300fa4b0>
>>> cap.isOpened()
False


This is always the case for https urls. It seems to be able to work with local videos just fine.
I have tried a bunch of different thing: initially thought it was a gstreamer problem so I checked my plugins, had some gst-bad versions (ref: https://github.com/GStreamer/gst-plugins-ugly), removed those and replaced with good versions, no joy.
Also tried to explicitly tell videoCapture to use cv2.CAP_ANY and cv2.CAP_FFMPEG flags while reading the video, still no luck.



I disabled the Gstreamer flag while compiling opencv, but even with it set to ON, there was no difference in my problem.



I haven't been able to find a solution to this issue and have been looking and trying different things for days now! Any ideas?










share|improve this question






















  • Is it documented anywhere that it should work with a URI string? I only see mention of local files or video devices

    – steeldriver
    Mar 2 '18 at 0:58











  • Good point. But all my other colleagues at work are able to do this, so I can only assume that it is meant to work. I had been checking against their opencv builds to push mine towards working, which is what led me to the gstreamer and ffmpeg changes, but no luck there either.

    – stalagmite7
    Mar 2 '18 at 4:35













1












1








1








I work on a 16.04 system, and have successfully installed opencv 3.1 with FFMPEG flags enabled. I double checked this was actually the case by cv2.getBuildInformation() and I got FFMPEG = YES.



I am trying to open a video that is hostel on a private server by my workplace (I am logged in to the VPN, in case thats a concern) and I can access this video over the browser. But videocapture with cv2 fails.



>>> cap = cv2.VideoCapture("https://xxx.mp4", cv2.CAP_ANY) #dummy url
>>> cap
<VideoCapture 0x7f63300fa4b0>
>>> cap.isOpened()
False


This is always the case for https urls. It seems to be able to work with local videos just fine.
I have tried a bunch of different thing: initially thought it was a gstreamer problem so I checked my plugins, had some gst-bad versions (ref: https://github.com/GStreamer/gst-plugins-ugly), removed those and replaced with good versions, no joy.
Also tried to explicitly tell videoCapture to use cv2.CAP_ANY and cv2.CAP_FFMPEG flags while reading the video, still no luck.



I disabled the Gstreamer flag while compiling opencv, but even with it set to ON, there was no difference in my problem.



I haven't been able to find a solution to this issue and have been looking and trying different things for days now! Any ideas?










share|improve this question














I work on a 16.04 system, and have successfully installed opencv 3.1 with FFMPEG flags enabled. I double checked this was actually the case by cv2.getBuildInformation() and I got FFMPEG = YES.



I am trying to open a video that is hostel on a private server by my workplace (I am logged in to the VPN, in case thats a concern) and I can access this video over the browser. But videocapture with cv2 fails.



>>> cap = cv2.VideoCapture("https://xxx.mp4", cv2.CAP_ANY) #dummy url
>>> cap
<VideoCapture 0x7f63300fa4b0>
>>> cap.isOpened()
False


This is always the case for https urls. It seems to be able to work with local videos just fine.
I have tried a bunch of different thing: initially thought it was a gstreamer problem so I checked my plugins, had some gst-bad versions (ref: https://github.com/GStreamer/gst-plugins-ugly), removed those and replaced with good versions, no joy.
Also tried to explicitly tell videoCapture to use cv2.CAP_ANY and cv2.CAP_FFMPEG flags while reading the video, still no luck.



I disabled the Gstreamer flag while compiling opencv, but even with it set to ON, there was no difference in my problem.



I haven't been able to find a solution to this issue and have been looking and trying different things for days now! Any ideas?







video compiling ffmpeg opencv gstreamer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 2 '18 at 0:42









stalagmite7stalagmite7

262




262












  • Is it documented anywhere that it should work with a URI string? I only see mention of local files or video devices

    – steeldriver
    Mar 2 '18 at 0:58











  • Good point. But all my other colleagues at work are able to do this, so I can only assume that it is meant to work. I had been checking against their opencv builds to push mine towards working, which is what led me to the gstreamer and ffmpeg changes, but no luck there either.

    – stalagmite7
    Mar 2 '18 at 4:35

















  • Is it documented anywhere that it should work with a URI string? I only see mention of local files or video devices

    – steeldriver
    Mar 2 '18 at 0:58











  • Good point. But all my other colleagues at work are able to do this, so I can only assume that it is meant to work. I had been checking against their opencv builds to push mine towards working, which is what led me to the gstreamer and ffmpeg changes, but no luck there either.

    – stalagmite7
    Mar 2 '18 at 4:35
















Is it documented anywhere that it should work with a URI string? I only see mention of local files or video devices

– steeldriver
Mar 2 '18 at 0:58





Is it documented anywhere that it should work with a URI string? I only see mention of local files or video devices

– steeldriver
Mar 2 '18 at 0:58













Good point. But all my other colleagues at work are able to do this, so I can only assume that it is meant to work. I had been checking against their opencv builds to push mine towards working, which is what led me to the gstreamer and ffmpeg changes, but no luck there either.

– stalagmite7
Mar 2 '18 at 4:35





Good point. But all my other colleagues at work are able to do this, so I can only assume that it is meant to work. I had been checking against their opencv builds to push mine towards working, which is what led me to the gstreamer and ffmpeg changes, but no luck there either.

– stalagmite7
Mar 2 '18 at 4:35










2 Answers
2






active

oldest

votes


















1














Eventually, I gave up on trying to install and reinstall opencv3.1, and switched to opencv 3.4.1. With that, and my current (as original question post) configuration for gstreamer and ffmpeg, I only had to create symlinks for libopencv_core.so.2.4 that gstreamer was looking for, and the rest of it worked fine.
Hope this helps someone!
I haven't managed to figure out what exactly was the issue with opencv3.1 (like I mentioned, that is the configuration my other colleagues have, and the functionality works just fine for them) but this is what I ended up doing after spending days on the issue.






share|improve this answer






























    0














    So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?






    share|improve this answer






















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011164%2fopencv-3-1-compiled-with-ffmpeg-but-wont-open-https-urls%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Eventually, I gave up on trying to install and reinstall opencv3.1, and switched to opencv 3.4.1. With that, and my current (as original question post) configuration for gstreamer and ffmpeg, I only had to create symlinks for libopencv_core.so.2.4 that gstreamer was looking for, and the rest of it worked fine.
      Hope this helps someone!
      I haven't managed to figure out what exactly was the issue with opencv3.1 (like I mentioned, that is the configuration my other colleagues have, and the functionality works just fine for them) but this is what I ended up doing after spending days on the issue.






      share|improve this answer



























        1














        Eventually, I gave up on trying to install and reinstall opencv3.1, and switched to opencv 3.4.1. With that, and my current (as original question post) configuration for gstreamer and ffmpeg, I only had to create symlinks for libopencv_core.so.2.4 that gstreamer was looking for, and the rest of it worked fine.
        Hope this helps someone!
        I haven't managed to figure out what exactly was the issue with opencv3.1 (like I mentioned, that is the configuration my other colleagues have, and the functionality works just fine for them) but this is what I ended up doing after spending days on the issue.






        share|improve this answer

























          1












          1








          1







          Eventually, I gave up on trying to install and reinstall opencv3.1, and switched to opencv 3.4.1. With that, and my current (as original question post) configuration for gstreamer and ffmpeg, I only had to create symlinks for libopencv_core.so.2.4 that gstreamer was looking for, and the rest of it worked fine.
          Hope this helps someone!
          I haven't managed to figure out what exactly was the issue with opencv3.1 (like I mentioned, that is the configuration my other colleagues have, and the functionality works just fine for them) but this is what I ended up doing after spending days on the issue.






          share|improve this answer













          Eventually, I gave up on trying to install and reinstall opencv3.1, and switched to opencv 3.4.1. With that, and my current (as original question post) configuration for gstreamer and ffmpeg, I only had to create symlinks for libopencv_core.so.2.4 that gstreamer was looking for, and the rest of it worked fine.
          Hope this helps someone!
          I haven't managed to figure out what exactly was the issue with opencv3.1 (like I mentioned, that is the configuration my other colleagues have, and the functionality works just fine for them) but this is what I ended up doing after spending days on the issue.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 2 '18 at 19:31









          stalagmite7stalagmite7

          262




          262























              0














              So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?






              share|improve this answer



























                0














                So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?






                share|improve this answer

























                  0












                  0








                  0







                  So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?






                  share|improve this answer













                  So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 25 mins ago









                  Purav ZumkhawalaPurav Zumkhawala

                  1




                  1



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011164%2fopencv-3-1-compiled-with-ffmpeg-but-wont-open-https-urls%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                      Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                      Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»