Opencv 3.1 compiled with FFMPEG, but won't open https urlsFFmpeg converting to flv but with 0 file sizeOpenCV...

Gravity magic - How does it work?

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

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

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

Creature kill and resurrect effects on the stack interaction?

Who is flying the vertibirds?

Are ETF trackers fundamentally better than individual stocks?

How to create the Curved texte?

Dice rolling probability game

Brexit - No Deal Rejection

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

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

Why one should not leave fingerprints on bulbs and plugs?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

Professor being mistaken for a grad student

Why would a flight no longer considered airworthy be redirected like this?

Recruiter wants very extensive technical details about all of my previous work

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?

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

Gantt Chart like rectangles with log scale

Is it possible to upcast ritual spells?

Do I need to be arrogant to get ahead?

How to explain that I do not want to visit a country due to personal safety concern?

How to deal with a cynical class?



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

261




261













  • 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

          261




          261

























              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 12 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

                      Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                      Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                      Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...