Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

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

Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

Dark_Knight
Hello All,

I am currently working on adding elements *rtpulpfecenc* and *rtpulpfecdec
*to my sender and receiver pipelines respectively. The example program for
these were written in rust and uses *rtpvp8pay /depay* along with *vp8enc
*and *vp8dec *. Since my application is only compatible with
*rtph264pay/depay* ,I have used ,
*Sender:*
filesrc >> decodebin >> videoconvert >> queue >> rtph264pay >> Queue >>
rtpbin ( rtpulpfecenc > rtpsession ) >> udpsink
*Receiver :*
udpsrc>> netsim >>rtpbin ( funnel > rtpsession > rtpstorage > rtpssrcdemux >
rtpjitterbuffer > rtpptdemux > rtpulpfecdec ) >> rtph264depay >> h264parse
>> capsfilter >> *decodebin *>>videoconvert >> videoscale >> capsfilter >>
x264enc >> matroskamux >> filesink

I am setting the fec percentage as 10 on sender and drop as 1 % on receiver
side , I am getting the ratio of packets unrecovered : recovered , But Issue
is that decode bin at the receiver side uses *avdec_h264 *internally as
decoder , it is producing the following errors,

/0:00:09.053600607 26017 0x7f7f6c003230 ERROR libav :0:: {] Missing
reference picture, default is 0
0:00:09.053652680 26017 0x7f7f6c003230 ERROR libav :0:: {]
decode_slice_header error
0:00:09.118489816 26017 0x7f7f6c003230 ERROR libav :0:: {] Missing reference
picture, default is 2
0:00:09.641810087 26017 0x7f7f6c003230 ERROR libav :0:: {]
decode_slice_header error
0:00:09.657737341 26017 0x7f7f6c003230 ERROR libav :0:: {] Missing
reference/

Attached below is the logs related to the same :
log_with_decode_bin_ERROR_.txt
<http://gstreamer-devel.966125.n4.nabble.com/file/t378456/log_with_decode_bin_ERROR_.txt>  

The Dot diagram for the following is also attached :
*SERVER:*
<http://gstreamer-devel.966125.n4.nabble.com/file/t378456/server_h264.png>
*CLIENT:*
<http://gstreamer-devel.966125.n4.nabble.com/file/t378456/client_h264.png>

/
Is there any elements that I need to add when i use other pay/depay instead
of VP8 ,or is this because of any wrong configuration? /
Please Help me with this situation,
*Eagerly Waiting for a response.*

Regards,
/Nithin Pradeep./



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

Re: Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

Mathieu Duponchelle
On 08/08/2018 06:30 AM, Dark_Knight wrote:
> /
> Is there any elements that I need to add when i use other pay/depay instead
> of VP8 ,or is this because of any wrong configuration? /
> Please Help me with this situation,
> *Eagerly Waiting for a response.*

I think I already answered this, can you please open an issue in bugzilla,
with a program allowing to reproduce this? You shouldn't have to use
any other elements beyond the ones used in the example that uses vp8.

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

Re: Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

Dark_Knight
Mathieu,
The bug has been already raised , with bug id #796929 under gst-plugins-good
.
I dont use Vp8 in my original code, No example code is available on the
internet for the same . What change should i do in my code to make it work
with h264pay / depay loader, sampe is attached below :
Sender:
send.c <http://gstreamer-devel.966125.n4.nabble.com/file/t378476/send.c>  

Receiver :
recv.c <http://gstreamer-devel.966125.n4.nabble.com/file/t378476/recv.c>  



Thanks and Regards,
/Nithin Pradeep/



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

Re: Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

Dark_Knight
In reply to this post by Mathieu Duponchelle
I am getting error as that in the attachment.What might be the resolution for
this issue?
<http://gstreamer-devel.966125.n4.nabble.com/file/t378476/avdec_h264_error.jpg>





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

AW: Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

Thornton, Keith
Hi, looks to me like there is an error on the encoder side. If I interpret the messages correctly, the frames are referring to SPS and PPS which are referring to frames which are no longer (or never were) in the picture store


-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Dark_Knight
Gesendet: Donnerstag, 9. August 2018 12:55
An: [hidden email]
Betreff: Re: Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

I am getting error as that in the attachment.What might be the resolution for this issue?
<http://gstreamer-devel.966125.n4.nabble.com/file/t378476/avdec_h264_error.jpg>





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

Re: AW: Issue with h264depay and avdec_h264 when using rtpulpfecenc/dec !

Dark_Knight
Hello,

Does the fec work on multiplexed stream , ie like this
filesrc >> decodebin >> videoconvert >> queue >>x264enc >>mpegtsmux>>
rtpmp2tpay >> Queue >>
  rtpulpfecenc >> udpsink

or does it only work on elementary audio/video streams . In most of the
cases we used to send muxed streams.

Can we use rtpulpfecenc on sender side without using rtpbin?



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