大家好:
现在、我们使用 am5728 gstreamer 来解码 mp4文件。
但失败了。
我们使用以下命令保存 mp4文件
gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=4! 'video/x-raw、format=(string) YUY2、width=(int) 1280、height=(int) 720、framerate=(fraction) 60/1'! VPE num-input-buffers=8! 'video/x-raw、format=(string) NV12、width=(int) 1280、height=(int) 720、framerate=(fraction) 60/1'! 排队! ducatih264enc bitrate = 4000 level=51 profile=100! 排队! h264parse! 真棒! 文件链接位置= test.mp4
我们确保 test.mp4正常、因为我们可以在 Windows 10和 Ubuntu 14.04中成功解码它
当我们使用下面的命令来解码 mp4文件时,它将会报告错误
gst-launch-1.0 -e 文件 rc location=test.mp4! qtdemux! 排队! h264parse! ducatih264dec! 排队! 陆上接收机
错误是
正在将管道设置为暂停...
管道是 PREROLLING ...
管道是 PREROLLED...
正在将管道设置为正在播放...
新时钟:GstSystemClock
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_CAPS_GET_structure:断言"GST_is_CAPS (CAP)"失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_structure_HAS_field:断言'Structure!= NULL'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_CAPs_ise_绝密:断言"GST_is_CAPS (caps1)"失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_MINI_OBJECT_UNREF:断言"(g_atural_int_get (&MINI_OBJECT->lockstate)& LOCK_MASK)< 4'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_MINI_OBJECT_UNREF:断言'mini_object->refcount >0'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_CAPS_GET_structure:断言"GST_is_CAPS (CAP)"失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_structure_HAS_field:断言'Structure!= NULL'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_CAPs_ise_绝密:断言"GST_is_CAPS (caps1)"失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_MINI_OBJECT_UNREF:断言"(g_atural_int_get (&MINI_OBJECT->lockstate)& LOCK_MASK)< 4'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_MINI_OBJECT_UNREF:断言'mini_object->refcount >0'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_CAPS_GET_structure:断言"GST_is_CAPS (CAP)"失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_structure_HAS_field:断言'Structure!= NULL'失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_CAPs_ise_绝密:断言"GST_is_CAPS (caps1)"失败
(GST-LAUNCH-1.0:1428):Gstreamer-critical **:GST_MINI_OBJECT_UNREF:断言'mini_object->refcount >0'失败
捕获到 SIGSEGV
#0 b6b45e50 in poll () at ./sysdeps/unix/syscall-template.S:81
??中的#1 bb6c789f8 ()来自/usr/lib/libglib-2.0.so.0
旋转。 请运行'gdb GST-launch-1.0 1428'以继续调试、按 Ctrl-C 退出、或按 Ctrl-\转储内核。
我的处理器 SDK 是 Processor SDK RT_Linux 3.3
该板是定制的 am5728板。
那么 、还有其他人遇到了这个问题吗?
谢谢
此致