Opencv with video backend GStreamer issue












0















I am completely new with OpenCV and Gstreamer. I am getting an error which I cannot find a answer anywhere.



I have setup Opencv manually with Gstreamer as videoIO backend. On creating videowriter i get the error. Please check my code and logs below.



fourcc = cv2.VideoWriter_fourcc(*'H264')


video = cv2.VideoWriter('/tmp/15.mp4', fourcc, 5.0, (width, height))



I get the error 'no source element for URI "/tmp/15.mp4"'




0:00:00.012708461 2161 0x7f95bc091e00 INFO GST_PIPELINE
gstparse.c:323:gst_parse_launch_full: parsing pipeline description
'/tmp/15.mp4



(python:2161): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion 'gst_uri_is_valid (uri)' failed



0:00:00.012818671 2161 0x7f95bc091e00 ERROR GST_PIPELINE
grammar.y:869:priv_gst_parse_yyparse: no source element for URI
"/tmp/15.mp4"




Here is the full debug info in the screenshot:



Debug info










share|improve this question

























  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:15
















0















I am completely new with OpenCV and Gstreamer. I am getting an error which I cannot find a answer anywhere.



I have setup Opencv manually with Gstreamer as videoIO backend. On creating videowriter i get the error. Please check my code and logs below.



fourcc = cv2.VideoWriter_fourcc(*'H264')


video = cv2.VideoWriter('/tmp/15.mp4', fourcc, 5.0, (width, height))



I get the error 'no source element for URI "/tmp/15.mp4"'




0:00:00.012708461 2161 0x7f95bc091e00 INFO GST_PIPELINE
gstparse.c:323:gst_parse_launch_full: parsing pipeline description
'/tmp/15.mp4



(python:2161): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion 'gst_uri_is_valid (uri)' failed



0:00:00.012818671 2161 0x7f95bc091e00 ERROR GST_PIPELINE
grammar.y:869:priv_gst_parse_yyparse: no source element for URI
"/tmp/15.mp4"




Here is the full debug info in the screenshot:



Debug info










share|improve this question

























  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:15














0












0








0








I am completely new with OpenCV and Gstreamer. I am getting an error which I cannot find a answer anywhere.



I have setup Opencv manually with Gstreamer as videoIO backend. On creating videowriter i get the error. Please check my code and logs below.



fourcc = cv2.VideoWriter_fourcc(*'H264')


video = cv2.VideoWriter('/tmp/15.mp4', fourcc, 5.0, (width, height))



I get the error 'no source element for URI "/tmp/15.mp4"'




0:00:00.012708461 2161 0x7f95bc091e00 INFO GST_PIPELINE
gstparse.c:323:gst_parse_launch_full: parsing pipeline description
'/tmp/15.mp4



(python:2161): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion 'gst_uri_is_valid (uri)' failed



0:00:00.012818671 2161 0x7f95bc091e00 ERROR GST_PIPELINE
grammar.y:869:priv_gst_parse_yyparse: no source element for URI
"/tmp/15.mp4"




Here is the full debug info in the screenshot:



Debug info










share|improve this question
















I am completely new with OpenCV and Gstreamer. I am getting an error which I cannot find a answer anywhere.



I have setup Opencv manually with Gstreamer as videoIO backend. On creating videowriter i get the error. Please check my code and logs below.



fourcc = cv2.VideoWriter_fourcc(*'H264')


video = cv2.VideoWriter('/tmp/15.mp4', fourcc, 5.0, (width, height))



I get the error 'no source element for URI "/tmp/15.mp4"'




0:00:00.012708461 2161 0x7f95bc091e00 INFO GST_PIPELINE
gstparse.c:323:gst_parse_launch_full: parsing pipeline description
'/tmp/15.mp4



(python:2161): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion 'gst_uri_is_valid (uri)' failed



0:00:00.012818671 2161 0x7f95bc091e00 ERROR GST_PIPELINE
grammar.y:869:priv_gst_parse_yyparse: no source element for URI
"/tmp/15.mp4"




Here is the full debug info in the screenshot:



Debug info







opencv gstreamer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 22:15









halfer

14.6k758112




14.6k758112










asked Nov 24 '18 at 6:47









HarshadHarshad

43




43













  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:15



















  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:15

















Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

– halfer
Nov 25 '18 at 22:15





Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

– halfer
Nov 25 '18 at 22:15












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f53455858%2fopencv-with-video-backend-gstreamer-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f53455858%2fopencv-with-video-backend-gstreamer-issue%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

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'