{"action":"created","issue":{"url":"https://api.github.com/repos/Freescale/gstreamer-imx/issues/89","repository_url":"https://api.github.com/repos/Freescale/gstreamer-imx","labels_url":"https://api.github.com/repos/Freescale/gstreamer-imx/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/Freescale/gstreamer-imx/issues/89/comments","events_url":"https://api.github.com/repos/Freescale/gstreamer-imx/issues/89/events","html_url":"https://github.com/Freescale/gstreamer-imx/issues/89","id":141352958,"number":89,"title":"appsrc  with  imxvpuenc_h264  pipline fails with reason:  not-negotiated (-4)","user":{"login":"hannesharms","id":3028996,"avatar_url":"https://avatars.githubusercontent.com/u/3028996?v=3","gravatar_id":"","url":"https://api.github.com/users/hannesharms","html_url":"https://github.com/hannesharms","followers_url":"https://api.github.com/users/hannesharms/followers","following_url":"https://api.github.com/users/hannesharms/following{/other_user}","gists_url":"https://api.github.com/users/hannesharms/gists{/gist_id}","starred_url":"https://api.github.com/users/hannesharms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannesharms/subscriptions","organizations_url":"https://api.github.com/users/hannesharms/orgs","repos_url":"https://api.github.com/users/hannesharms/repos","events_url":"https://api.github.com/users/hannesharms/events{/privacy}","received_events_url":"https://api.github.com/users/hannesharms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T17:56:31Z","updated_at":"2016-03-16T18:46:56Z","closed_at":null,"body":"I am trying to start the following pipeline:\r\n\r\n`appsrc name=my_src ! immxipuvideotransform ! imxvpuenc_h264 bitrate=1000 ! rtph264pay ! fakesink`\r\n \r\nThe appsrc caps is set inside the application with:\r\n\r\n`gst_caps_new_simple(\"video/x-raw\",\r\n            \"format\", G_TYPE_STRING, \"BGR\",\r\n            \"width\", G_TYPE_INT, 640,\r\n            \"height\", G_TYPE_INT, 480,\r\n            \"interlace-mode\", G_TYPE_STRING, \"progressiv\",\r\n            \"framerate\", GST_TYPE_FRACTION, 10, 1, \r\n            \"pixel-aspect-ratio\", GST_TYPE_FRACTION, 1, 1,\r\n            nullptr);`\r\n\r\nWhen calling `gst_app_src_push_sample(GST_APP_SRC_CAST(appsrc_), sample);`\r\nI get the following error:\r\n\r\n`GST: bus: Internal data flow error.\r\n GST: debug: gstreamer1.0/1.6.3-r0/gstreamer-1.6.3/libs/gst/base/gstbasesrc.c(2943):  gst_base_src_loop (): /GstPipeline:pipeline0/GstAppSrc:source:\r\nstreaming task paused, reason not-negotiated (-4)`\r\n\r\nWhen changing the pipeline to a CPU version like this:\r\n\r\n`appsrc name=my_src ! videoconvert !  x264enc !  video/x-h264, profile=baseline ! rtph264pay ! fakesink` the stream is working.\r\n\r\nAre there any special requirements I missed to link appsrc with imx-plugins ?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Freescale/gstreamer-imx/issues/comments/197482403","html_url":"https://github.com/Freescale/gstreamer-imx/issues/89#issuecomment-197482403","issue_url":"https://api.github.com/repos/Freescale/gstreamer-imx/issues/89","id":197482403,"user":{"login":"nrmmota","id":4120514,"avatar_url":"https://avatars.githubusercontent.com/u/4120514?v=3","gravatar_id":"","url":"https://api.github.com/users/nrmmota","html_url":"https://github.com/nrmmota","followers_url":"https://api.github.com/users/nrmmota/followers","following_url":"https://api.github.com/users/nrmmota/following{/other_user}","gists_url":"https://api.github.com/users/nrmmota/gists{/gist_id}","starred_url":"https://api.github.com/users/nrmmota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrmmota/subscriptions","organizations_url":"https://api.github.com/users/nrmmota/orgs","repos_url":"https://api.github.com/users/nrmmota/repos","events_url":"https://api.github.com/users/nrmmota/events{/privacy}","received_events_url":"https://api.github.com/users/nrmmota/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T18:46:56Z","updated_at":"2016-03-16T18:46:56Z","body":"I recently came across a similar error. The error was due to a audio or\nvideo codec from a buck bunny stream that was not being linked somewhere.\nTry using GST_DEBUG=\"*:2\" to get more debug log.\n\n2016-03-16 17:56 GMT+00:00 hannesharms <notifications@github.com>:\n\n> I am trying to start the following pipeline:\n>\n> appsrc name=my_src ! immxipuvideotransform ! imxvpuenc_h264 bitrate=1000 !\n> rtph264pay ! fakesink\n>\n> The appsrc caps is set inside the application with:\n>\n> gst_caps_new_simple(\"video/x-raw\",\n> \"format\", G_TYPE_STRING, \"BGR\",\n> \"width\", G_TYPE_INT, 640,\n> \"height\", G_TYPE_INT, 480,\n> \"interlace-mode\", G_TYPE_STRING, \"progressiv\",\n> \"framerate\", GST_TYPE_FRACTION, 10, 1,\n> \"pixel-aspect-ratio\", GST_TYPE_FRACTION, 1, 1,\n> nullptr);\n>\n> When calling gst_app_src_push_sample(GST_APP_SRC_CAST(appsrc_), sample);\n> I get the following error:\n>\n> GST: bus: Internal data flow error.\n> GST: debug:\n> gstreamer1.0/1.6.3-r0/gstreamer-1.6.3/libs/gst/base/gstbasesrc.c(2943):\n> gst_base_src_loop (): /GstPipeline:pipeline0/GstAppSrc:source:\n> streaming task paused, reason not-negotiated (-4)\n>\n> When changing the pipeline to a CPU version like this:\n>\n> appsrc name=my_src ! videoconvert ! x264enc ! video/x-h264,\n> profile=baseline ! rtph264pay ! fakesink the stream is working.\n>\n> Are there any special requirements I missed to link appsrc with\n> imx-plugins ?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Freescale/gstreamer-imx/issues/89>\n>\n"}}