免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2142 | 回复: 0
打印 上一主题 下一主题

[应用] 关于gstreamer录像管道设计 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-02-25 17:40 |只看该作者 |倒序浏览
求大神帮帮忙啊,avi存放本地可以实现,但是mp4就有问题了
gst-launch-1.0 v4l2src num-buffers=250 norm=255 ! 'video/x-raw,width=320,height=240,framerate=(fraction)15/1' ! queue ! mux. audiotestsrc num-buffers=440 ! audioconvert ! queue ! faac ! mux. avimux name=mux ! filesink location=test.avi(测试可行)

gst-launch-1.0 v4l2src num-buffers=250 norm=255 ! 'video/x-raw,width=320,height=240,framerate=(fraction)15/1' ! queue ! mux. audiotestsrc num-buffers=440 ! audioconvert ! queue ! faac ! mux. avimux name=mux ! filesink location=test.avi(会报以下两种错误)

设置暂停管道 ...
管道正在使用且不需要 PREROLL ...
设置播放管道 ...
New clock: GstSystemClock
Caught SIGSEGV
Spinning.  Please run 'gdb gst-launch-1.0 9595' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
错误:来自组件 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:内部数据流错误。
额外的调试信息:
gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-linked (-1)
Execution ended after 0:00:00.903066825
设置暂停管道 ...
设置备用管道 ...

设置暂停管道 ...
管道正在使用且不需要 PREROLL ...
设置播放管道 ...
New clock: GstSystemClock
错误:来自组件 /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:Device '/dev/video0' is busy
额外的调试信息:
gstv4l2object.c(3224): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:
Call to S_FMT failed for YUYV @ 320x240: 设备或资源忙
Execution ended after 0:00:00.575136508
设置暂停管道 ...
设置备用管道 ...
设置 NULL 管道 ...
释放管道资源 ...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP