GNOME Bugzilla – Bug 762855
nvenc failed with filesrc
Last modified: 2016-03-01 00:32:24 UTC
Created attachment 322630 [details] gstreamer log for filesrc Hello, We are trying to use the nvenc plugin of 1.7.2. But it failed when the source was from a file with an internal data flow error. We were using the example YUV video from NVIDIA Video Encoder SDK. gst-launch-1.0 filesrc location=/sources/nvenc_sdk/Samples/YUV/1080p/HeavyHandIdiot.3sec.yuv ! videoconvert ! nvh264enc ! fakesink Setting pipeline to PAUSED ... ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0: streaming task paused, reason not-negotiated (-4) ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ... The nvenc works with videotestsrc. gst-launch-1.0 vidieotestsrc num-buffers=4000 ! videoconvert ! nvh264enc ! fakesink
Please see the attachment for the debug log. https://bugzilla.gnome.org/attachment.cgi?id=322630
This is expected behaviour in this case. Try adding a videoparse element after filesrc (and make sure to configure it properly via properties).
Thanks for the instruction. Try with videoparse and it works.