Soft_Job 板


LINE

※ 引述《gn00618777 (非常念旧)》之铭言: : 我的目的是在自己的板子安装 camera,利用 ffmpeg 将抓到的影像传到ffserver,然後 : 在另一台电脑接收影像。 : 目前可以在板子上录制影像然後在板子上播放,藉以下指令 : # ffserver -f /etc/ffserver --- 启动 avserver : # ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 cam1.asf : #ffplay cam1.asf : 现在要传送到 avserver : #ffserver -f /etc/ffserver.conf : # ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 http://127.0.0.1:8090/cam1.ffm : 出现以下讯息(我省略了一些) :    Stream mapping: : Stream #0.0 -> #0.0 : Error while opening encoder for output stream #0.0 - maybe incorrect : parameters such as bit_rate, rate, width or height : Sat Jan 1 03:58:39 2000 127.0.0.1 - - [POST] "/cam1.ffm HTTP/1.1" 200 0 : *** glibc detected *** ffmpeg: free(): invalid pointer: 0x0002d2a0 *** : Aborted : 上网爬文了,我认为非常有可能是 ffmpeg 参数没设定完全。。也不清楚320x240这解析 : 度是否合法,我该如何用完整的参数搭配?谢谢。 若问题po在这不合适会自删。 我的 ffserver.conf ======================================= Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 30 MaxClients 20 MaxBandwidth 2000 CustomLog - <Feed cam1.ffm> File /tmp/cam1.ffm FileMaxSize 10000K ACL allow 127.0.0.1 </Feed> #----- # Windows Media Player #----- <Stream cam1.asf> Feed cam1.ffm Format asf VideoCodec msmpeg4v2 VideoFrameRate 15 VideoSize 320x240 VideoBitRate 256 VideoBufferSize 40 VideoGopSize 15 NoAudio StartSendOnKey </Stream> <Stream stat.html> Format status ACL allow 172.16.51.26 localhost </Stream> ============================================= 回上一篇K大,output 跟 config 设的一样。 且最後我针对上一篇以下错误讯息修改指令 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height 改成 ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 -b 100k h ttp://127.0.0.1:8090/cam1.ffm 上一篇的错误讯息消失,变成 Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 24300.069612, bitrate: 36864 kb/s Stream #0.0: Video: rawvideo, yuyv422, 320x240, 36864 kb/s, 30 tbr, 1000k tbn, 30 tbc Sat Jan 1 07:09:07 2000 127.0.0.1 - - [GET] "/cam1.ffm HTTP/1.1" 200 4149 [buffer @ 0x2f1a0] w:320 h:240 pixfmt:yuyv422 [avsink @ 0x2f7e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x2ea60] w:320 h:240 fmt:yuyv422 -> w:320 h:240 fmt:yuv420p flags:0x4 Sat Jan 1 07:09:07 2000 127.0.0.1 - - [POST] "/cam1.ffm HTTP/1.1" 200 0 Segmentation fault "Segmentation fault" google 过 ,目前还没有一个解决方案... --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.136.159.42
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Soft_Job/M.1403096323.A.667.html ※ 编辑: gn00618777 (220.136.159.42), 06/18/2014 21:02:03
1F:→ gn00618777:补上我的环境, AM335X(ubuntu filesystem) 06/18 21:45
2F:推 Dickon:试试看简单点的,把-s和-b的参数都拿掉 06/19 12:56







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BabyMother站内搜寻

TOP