x265enc: problem with framerate=0/1 when re-encoding from rtp
Submitted by jav..@..il.com
Link to original bug (#765549)
Description
Hello!
I'm receiving a raw RTP stream as an input and I wanted to encode it and streaming it again through RTP.
I was using this command to do it encoding to h264 and it was working just great:
gst-launch-1.0 udpsrc port=9001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)1280, height=(string)960, framerate=25/1, payload=(int)111" ! rtpvrawdepay ! x264enc bitrate=16384 ! rtph264pay ! udpsink host=127.0.0.1 port=1234
Now, i'm trying to encode to h265 and everything just stopped working. The command i'm using is:
gst-launch-1.0 udpsrc port=9001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)4096, height=(string)2048, framerate=30/1, payload=(int)111" ! rtpvrawdepay ! x265enc bitrate=16384 ! rtph265pay ! udpsink host=127.0.0.1 port=1234
But now everything just stopped working and it returns:
"Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0.GstPad:src: caps = "application/x-rtp,\ media=(string)video,\ clock-rate=(int)90000,\ encoding-name=(string)RAW,\ sampling=(string)YCbCr-4:2:0,\ depth=(string)8,\ width=(string)4096,\ height=(string)2048,\ framerate=(fraction)30/1,\ payload=(int)111"
Setting pipeline to PLAYING ...
/GstPipeline:pipeline0/GstRtpVRawDepay:rtpvrawdepay0.GstPad:src: caps = "video/x-raw,\ format=(string)I420,\ width=(int)4096,\ height=(int)2048,\ interlace-mode=(string)progressive,\ pixel-aspect-ratio=(fraction)1/1,\ chroma-site=(string)mpeg2,\ colorimetry=(string)bt709,\ framerate=(fraction)0/1"
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstX265Enc:x265enc0: Can not initialize x265 encoder.
Additional debug info:
gstx265enc.c(700): gst_x265_enc_init_encoder (): /GstPipeline:pipeline0/GstX265Enc:x265enc0
Execution ended after 0:00:00.000055373
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ..."
Everything looks okay appart the framerate that is set to 0 (variable). Do you have any idea of what could be happening?
Thanks.
Version: 1.8.1