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
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
add a comment |
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
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
add a comment |
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
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
video compiling ffmpeg opencv gstreamer
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 2 '18 at 19:31
stalagmite7stalagmite7
262
262
add a comment |
add a comment |
So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?
add a comment |
So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?
add a comment |
So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?
So using gstreamer you were able to read and show video urls using cv2.VideoCapture() is that right ?
answered 25 mins ago
Purav ZumkhawalaPurav Zumkhawala
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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