I use this pipeline:
gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,width=1280,height=720,framerate=15/1" ! videoconvert ! omxh264enc control-rate=1 target-bitrate=4000000 periodicty-idr=15 ! "video/x-h264, profile=high" ! h264parse config-interval=-1 ! mpegtsmux alignment=7 ! filesink location=test.ts When I play test.ts in mplayer I get these errors and I see a lot of artifacts: If I set the -fps option to 15 in mplayer the errors and the artifacts are gone. When I use an udpsink and stream to another computer I also see a lot of artifacts. Does anyone know what the problem is? By the way, when there is a lot depth of field in the video then the errors appear. If I point the camera at a white wall the errors (except "Error while decoding frame") and artifacts are also gone. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
The errors weren't posted in the first post:
mplayer test.ts MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing test.ts. libavformat version 56.40.101 (external) TS file format detected. VIDEO H264(pid=65) NO AUDIO! (try increasing -tsprobe) NO SUBS (yet)! PROGRAM N. 1 FPS not specified in the header or invalid, use the -fps option. Load subtitles in ./ Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory [vdpau] Error when calling vdp_device_create_x11: 1 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 56.60.100 (external) Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Audio: no sound Starting playback... [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]non-existing PPS 0 referenced [h264 @ 0x7fe79a7cd560]decode_slice_header error [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [xv] 1280x720 => 1280x720 Planar YV12 V:3602.3 0/ 0 13% 1% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3603.3 0/ 0 13% 1% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3604.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3605.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3606.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3607.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3608.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3609.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3610.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3611.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3612.3 0/ 0 12% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3613.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3614.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3615.3 0/ 0 12% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3616.0 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]error while decoding MB 18 6, bytestream -26 [h264 @ 0x7fe79a7cd560]concealing 3151 DC, 3151 AC, 3151 MV errors in P frame V:3616.0 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3616.3 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 57 15, bytestream -16 [h264 @ 0x7fe79a7cd560]concealing 2392 DC, 2392 AC, 2392 MV errors in I frame V:3616.4 0/ 0 13% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3617.3 0/ 0 14% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 9 18, bytestream -14 [h264 @ 0x7fe79a7cd560]concealing 2200 DC, 2200 AC, 2200 MV errors in I frame V:3617.4 0/ 0 14% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3618.3 0/ 0 15% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 66 16, bytestream -6 [h264 @ 0x7fe79a7cd560]concealing 2303 DC, 2303 AC, 2303 MV errors in I frame V:3618.4 0/ 0 15% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3619.3 0/ 0 16% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 33 16, bytestream -9 [h264 @ 0x7fe79a7cd560]concealing 2336 DC, 2336 AC, 2336 MV errors in I frame V:3619.4 0/ 0 16% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3620.3 0/ 0 17% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 49 16, bytestream -7 [h264 @ 0x7fe79a7cd560]concealing 2320 DC, 2320 AC, 2320 MV errors in I frame V:3620.4 0/ 0 17% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3621.3 0/ 0 18% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 32 16, bytestream -5 [h264 @ 0x7fe79a7cd560]concealing 2337 DC, 2337 AC, 2337 MV errors in I frame V:3621.4 0/ 0 18% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3622.3 0/ 0 18% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 39 16, bytestream -19 [h264 @ 0x7fe79a7cd560]concealing 2330 DC, 2330 AC, 2330 MV errors in I frame V:3622.4 0/ 0 18% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3623.3 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 16 16, bytestream -31 [h264 @ 0x7fe79a7cd560]concealing 2353 DC, 2353 AC, 2353 MV errors in I frame V:3623.4 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3624.3 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 23 16, bytestream -9 [h264 @ 0x7fe79a7cd560]concealing 2346 DC, 2346 AC, 2346 MV errors in I frame V:3624.4 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3625.3 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 25 16, bytestream -7 [h264 @ 0x7fe79a7cd560]concealing 2344 DC, 2344 AC, 2344 MV errors in I frame V:3625.4 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3626.3 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! [h264 @ 0x7fe79a7cd560]error while decoding MB 26 16, bytestream -29 [h264 @ 0x7fe79a7cd560]concealing 2343 DC, 2343 AC, 2343 MV errors in I frame V:3626.4 0/ 0 21% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3627.3 0/ 0 21% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3628.3 0/ 0 21% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3629.3 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3630.3 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3631.7 0/ 0 20% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3632.7 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3633.7 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3634.7 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3635.7 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3636.7 0/ 0 19% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3637.7 0/ 0 18% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3638.7 0/ 0 18% 0% 0.0% 0 0 [h264 @ 0x7fe79a7cd560]no frame! Error while decoding frame! V:3638.8 0/ 0 18% 0% 0.0% 0 0 Exiting... (End of file) I forgot to mention the platform: Raspberry Pi 3 Model B. Gstreamer version: 1.10.4 (on Raspbian) It seems it has something to do with the bitrate. If it's higher, like 6000kb/s, there are more errors. At 2000kb/s the artifacts are almost gone. I've also tried this pipeline on a normal PC: gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,width=1280,height=720,framerate=15/1" ! videoconvert ! x264enc bitrate=6000 ! h264parse config-interval=-1 ! mpegtsmux alignment=7 ! filesink location=test.ts When I play this file in mplayer, one line is interesting: /FPS seems to be: 15.000000/ because when I play the omxh264enc file in mplayer it says: /FPS not specified in the header or invalid, use the -fps option./ So I think some headers are missing.. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |