GNOME Bugzilla – Bug 646266
rtptheora problem if stream with udp
Last modified: 2011-03-31 05:18:35 UTC
I have problem to stream theora. I use fallowing pipe: gst-launch -v videotestsrc ! theoraenc speed-level=2 ! rtptheorapay ! udpsink host=192.168.0.150 port=5555 gst-launch -v udpsrc port=5555 caps="application/x-rtp" ! identity ! queue ! rtptheoradepay ! theoradec ! autovideosink and i get error: Could not switch codebooks Could not decode stream. same pipeline with jpeg or vp8 working just fine. If i send direct, without udp.. stream is working: gst-launch -v videotestsrc ! theoraenc speed-level=2 ! rtptheorapay ! identity ! rtptheoradepay ! theoradec ! autovideosink if i send without rtp, only udp. stream is working too: gst-launch -v videotestsrc ! theoraenc speed-level=2 ! identity ! udpsink host=192.168.0.150 port=5555 gst-launch -v udpsrc port=5555 ! identity ! theoradec ! autovideosink Since other codecs (jpeg or vp8) are working, i assume there is a bug on rtptheoradepay side.
with Theora (and H.264), you have to reliably send a header before you can decode anything. You can get it from the caps after the payloaders. Or you can make the payloader resend it regularly with the "config-interval" property.
Thank you.