GNOME Bugzilla – Bug 602429
Cannot capture, encode and stream Theora via RTP at 640x480 from 2 Meg Pixel webcam
Last modified: 2009-11-19 18:53:47 UTC
If I try to capture at 320x240 from my webcam and as encode as Theora then all is fine. However, if I try to capture 640x480 from the same webcam and encode as Theora, the RTP payloader for theora fails (see below). Shouldn't the encoder and RTP payloader handle this situation? ;-) Capturing at 640x480 with the same webcam and streaming using all of the same components but of MPEG4 Part 2 flavor yeilds good results. However, I want to use Theora since it is legal. [root@am2mm examples]# ./test-launch --gst-debug=2 "( v4l2src device=/dev/video0 ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=640,height=480,framerate=30/1 ! theoraenc quality=40 bitrate=6000000 ! rtptheorapay pt=96 name=pay0 )" ** Message: listening on port 8554 ** Message: added new client 0xaa80360 ip 192.168.1.211:34497 ** Message: attaching to context 0xaa7a880 RTSP request message 0xabfbe18 request line: method: 'OPTIONS' uri: 'rtsp://192.168.1.178:8554/test' version: '1.0' headers: key: 'CSeq', value: '1' key: 'User-Agent', value: 'WMPlayer/9.0.0.3250 guid/3300AD50-2C39-46C0-AE0A-9CC9FF7765D1' key: 'User-Agent', value: 'RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)' key: 'ClientChallenge', value: '9e26d33f2984236010ef6253fb1887f7' key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw==' key: 'GUID', value: '00000000-0000-0000-0000-000000000000' key: 'RegionData', value: '0' key: 'PlayerStarttime', value: '[28/03/2003:22:50:23 00:00]' key: 'ClientID', value: 'Linux_2.4_6.0.9.1235_play32_RN01_EN_586' key: 'Date', value: 'Fri, 20 Nov 2009 01:18:43 GMT' body: ** Message: client 0xaa80360: received a request RTSP response message 0x7fff381f9e50 status line: code: '200' reason: 'OK' version: '1.0' headers: key: 'CSeq', value: '1' key: 'Public', value: 'OPTIONS, DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN' key: 'Server', value: 'GStreamer RTSP server' body: length 0 RTSP request message 0xabfbe18 request line: method: 'DESCRIBE' uri: 'rtsp://192.168.1.178:8554/test' version: '1.0' headers: key: 'CSeq', value: '2' key: 'Accept', value: 'application/sdp' key: 'Date', value: 'Fri, 20 Nov 2009 01:18:43 GMT' body: ** Message: client 0xaa80360: received a request ** Message: found media 0xabcc300 for url abspath /test ** Message: found stream 0 with payloader 0xac3c160 ** Message: enter mainloop ** Message: constructed media 0xac48810 for url /test ** Message: preparing media 0xac48810 ** Message: live media 0xac48810 0:00:02.339343000 19559 0xaa77010 WARN bin gstbin.c:2312:gst_bin_do_latency_func:<media-pipeline> failed to query latency ** Message: 0xac48810: got message type new-clock 0:00:03.529567000 19559 0xac85300 WARN basetransform gstbasetransform.c:1049:gst_base_transform_acceptcaps:<videoscale0> transform could not transform video/x-raw-yuv, format=(fourcc)YUY2, framerate=(fraction)30/1, width=(int)640, height=(int)480 in anything we support 0:00:03.810375000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 103472 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 103472 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:03.985398000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100716 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100716 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.160011000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100990 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100990 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.331078000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 98555 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 98555 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.499258000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 93580 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 93580 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.668312000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100485 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100485 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.736502000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100619 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100619 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.804563000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100438 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100438 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.872642000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100525 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100525 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:04.940794000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100391 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100391 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.008836000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100510 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100510 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.077100000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100680 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100680 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.145303000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100619 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100619 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.213456000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100653 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100653 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.281650000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100558 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100558 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.349908000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100687 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100687 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.418233000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100667 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100667 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.486462000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100459 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100459 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.554782000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100463 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100463 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.623072000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100429 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100429 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.691379000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100567 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100567 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.759525000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100578 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100578 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.827839000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100505 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100505 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.896053000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100767 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100767 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:05.964204000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100704 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100704 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.032418000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100604 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100604 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.100528000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100509 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100509 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.168395000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100271 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100271 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.236480000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100420 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100420 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.304577000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100659 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100659 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.372649000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100566 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100566 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.440828000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100573 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100573 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.509042000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100367 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100367 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.577112000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100548 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100548 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.645322000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100531 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100531 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.713451000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100363 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100363 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.781521000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100325 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100325 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.849655000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100446 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100446 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.917755000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100519 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100519 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:06.986039000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100731 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100731 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:07.054164000 19559 0xac85300 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 100578 <= 0xffff) ** (lt-test-launch:19559): WARNING **: 0xac48810: got warning Invalid packet size (1 < 100578 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) [root@am2mm examples]# [root@am2mm examples]#
You need to lower the theora quality and/or bitrate. The max packet size for theora RTP is 64K. I don't think there is anything we can do about that... Closing.
When I lower the bitrate to 4000000 and go from 320x240 to 640x480 I see video quality degrade significantly and the following error messages. Is this an underrun condition? Also, I understand the 16 bit size issue for RTP. However, can't the Theora encoded data be divided up to span multiple RTP packets so that there is no "size" issue? Maybe I don't understand the problem. ;-) ./test-launch --gst-debug=2 "( v4l2src device=/dev/video0 ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=640,height=480,framerate=30/1 ! theoraenc quality=40 bitrate=4000000 ! rtptheorapay pt=96 name=pay0 alsasrc device="hw:0" ! audioconvert ! vorbisenc ! rtpvorbispay pt=97 name=pay1 )" ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:34.969828000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.001864000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.033812000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.069849000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.101759000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.133816000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.169818000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff) ** (lt-test-launch:20552): WARNING **: 0x1b6b010: got warning Invalid packet size (1 < 0 <= 0xffff) (gstrtptheorapay.c(634): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:media-pipeline/GstBin:bin0/GstRtpTheoraPay:pay0) 0:00:35.201747000 20552 0x1baa490 WARN rtptheorapay gstrtptheorapay.c:634:gst_rtp_theora_pay_handle_buffer:<pay0> warning: Invalid packet size (1 < 0 <= 0xffff)