<div dir="ltr"><div><div><div><div>I am using GStreamer 0.10.30 and trying to transcode/scale/transmux a video stream. The pipeline seems to link but fails with about the first video frame due to a pad/caps not negotiated. My pipeline is:<br>
<br></div>udpsrc->mpegtsdemux->decodebin2->videorate->videoscale->queue->x264enc->RTPh264pay->udpsink<br><br></div>I link the videorate using gst_element_link_filtered with video/x-raw-yuv, framerate=15<br>
</div>I link the videoscale using gst_element_link_filtered with video/x-raw-yuv, width=320, height=240<br></div><div>The original source is 640x480.<br><br></div><div>If I take the videoscale filter out the pipeline works, so that is somehow causing my error.<br>
<br></div><div>I would greatly appreciate any help.<br></div><div><br></div><div>Here is a snippet of the log at failure.<br><br>Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.444469457 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m ffmpeg gstffmpegdec.c:1209:gst_ffmpegdec_negotiate:<ffdec_h2640>[00m Renegotiating video from 0x0@ -1:0 PAR -1/-1 fps to 640x480@ 1:1 PAR -1/0 fps<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.444490819 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m ffmpeg gstffmpegcodecmap.c:1735:gst_ffmpeg_pixfmt_to_caps:[00m caps for pix_fmt=0: video/x-raw-yuv, width=(int)640, height=(int)480, framerate=(fraction)15/1, format=(fourcc)I420<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.444523831 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m ffmpeg gstffmpegdec.c:1128:gst_ffmpegdec_add_pixel_aspect_ratio:<ffdec_h2640>[00m Decoder PAR: 1:1<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.444532875 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m ffmpeg gstffmpegdec.c:1158:gst_ffmpegdec_add_pixel_aspect_ratio:<ffdec_h2640>[00m Setting decoder provided pixel-aspect-ratio of 1:1<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.444658310 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m videoscale gstvideoscale.c:311:gst_video_scale_transform_caps:<VideoScaler>[00m returning caps: video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 32767 ], height=(int)[ 16, 32767 ]; video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ]<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.444702786 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m videoscale gstvideoscale.c:311:gst_video_scale_transform_caps:<VideoScaler>[00m returning caps: video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 32767 ], height=(int)[ 16, 32767 ]; video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ]<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.445001091 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m ffmpeg gstffmpegdec.c:926:alloc_output_buffer:<ffdec_h2640>[00m Downstream can't allocate aligned buffers.<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.445357292 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m ffmpeg gstffmpegdec.c:1996:gst_ffmpegdec_video_frame:<ffdec_h2640>[00m return flow 0, out 0xa1606d0, len 31549<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.445423101 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m videoscale gstvideoscale.c:311:gst_video_scale_transform_caps:<VideoScaler>[00m returning caps: video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 32767 ], height=(int)[ 16, 32767 ]; video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ]<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.445463445 [336m36455[00m 0xf6810980 [36mDEBUG [00m [00m videoscale gstvideoscale.c:311:gst_video_scale_transform_caps:<VideoScaler>[00m returning caps: video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 32767 ], height=(int)[ 16, 32767 ]; video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ]<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.508003202 [336m36455[00m 0xa15dfd8 [32;01mINFO [00m [00m basesrc gstbasesrc.c:2490:gst_base_src_loop:<VideoSrc>[00m pausing after gst_pad_push() = not-negotiated<br>
Jan 3 12:01:44 imsvcctl[36455]: 0:00:03.508043119 [336m36455[00m 0xa15dfd8 [33;01mWARN [00m [00m basesrc gstbasesrc.c:2550:gst_base_src_loop:<VideoSrc>[00m error: Internal data flow error.<br><br>
</div><div>Thank you,<br></div><div>Chuck Crisler<br></div></div>