After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762855 - nvenc failed with filesrc
nvenc failed with filesrc
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.7.2
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-29 08:59 UTC by mingtotti
Modified: 2016-03-01 00:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstreamer log for filesrc (293.43 KB, application/x-gzip)
2016-02-29 08:59 UTC, mingtotti
Details

Description mingtotti 2016-02-29 08:59:31 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
Comment 1 mingtotti 2016-02-29 09:00:35 UTC
Please see the attachment for the debug log.

https://bugzilla.gnome.org/attachment.cgi?id=322630
Comment 2 Tim-Philipp Müller 2016-02-29 09:01:25 UTC
This is expected behaviour in this case.

Try adding a videoparse element after filesrc (and make sure to configure it properly via properties).
Comment 3 mingtotti 2016-03-01 00:32:24 UTC
Thanks for the instruction. Try with videoparse and it works.