timestamp issue during save h265 encoded into file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

timestamp issue during save h265 encoded into file

bronstein87
I'm sending video using next pipeline:
appsrc name=vsrc ! videoconvert ! video/x-raw,format=I420,width=1920,height=1080,framerate=60/1 ! omxh265enc bitrate=20000000 control-rate=2 iframeinterval=30 preset-level=3 ! rtph265pay name=pay0 pt=96

to receive i use this pipeline:

rtspsrc location=rtsp://10.20.66.1:5000/vd latency=0 protocols=GST_RTSP_LOWER_TRANS_TCP
! application/x-rtp,encoding-name=H265,payload=96 ! rtph265depay ! h265parse ! queue 
! omxh265dec ! videoconvert ! appsink sync = false

and everything works ok, but sometimes i need to save raw h265 without decode it
for this purpose i try to use next pipeline:

gst-launch-1.0 --gst-debug-level=3 rtspsrc 
location=rtsp://10.20.55.68:4510/vd 
latency=0 protocols=GST_RTSP_LOWER_TRANS_TCP ! 
application/x-rtp,encoding-name=H265,payload=96 
! rtph265depay ! h265parse ! queue ! matroskamux ! filesink 
location=test.mkv -e sync=false async=false

but it gives me something terrible in result (watch video below):
https://drive.google.com/open?id=1GsLW9WEWi619YRDZw7ndmd43Nlyq4QSm

during stream i getting next warnings:

0:00:12.295262969 25141   0x7f7c045990 FIXME           rtph265depay gstrtph265depay.c:1150:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:12.295914963 25141   0x7f7c045990 FIXME              h265parse gsth265parse.c:1639:gst_h265_parse_parse_frame:<h265parse0> Implement timestamp/duration interpolation based on SEI message

and it seems to me that video corrupted due to this warnings, but i don't understand
how to set correct timestamp, now for this purpose i use:
    g_object_set (appsrc, "do-timestamp", true, NULL);
but is i can see, it's incorrect approach, so how can i fix this issue?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: timestamp issue during save h265 encoded into file

rrazavi
Hi,
try this on your server side :
appsrc name=vsrc ! videoconvert !
video/x-raw,format=I420,width=1920,height=1080,framerate=60/1 ! omxh265enc
bitrate=20000000 control-rate=2 iframeinterval=30 preset-level=3 ! h265parse
config-interval=-1 ! video/x-h265, stream-format=hvc1 ! rtph265pay name=pay0
pt=96



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel