ffmpeg播放实时视频流时出现错误

dbhlln 2008-09-23 03:28:03
开发板已运行ffserver程序,当运行./ffmpeg http://localhost:8090/fedd1.ffm 时,在PC机上用VLC打开网络串流来实时播放录像,此时提示: access_mms access error: failed to open a connection (tcp)和
access_mms access error: cannot connect to server当只提示第二条信息时仍然可以播放一小段实时视频,然后就停在那里黑屏了。找了很久,不知道问题出在哪里,请牛人指点!谢谢!E-mail: liu_wenbin@126.com
...全文
1925 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dbhlln 2008-09-25
  • 打赏
  • 举报
回复
在linux下使用ffmpeg开发,系统中FC6,用VLC播放实时流时提示:无法连接服务器,还有 late picture skipped。
dbhlln 2008-09-25
  • 打赏
  • 举报
回复
vlc 输出的信息:
main debug: `mms://192.168.0.126:8090/test.asf' successfully opened
ffmpeg warning: Error, header damaged or not MPEG4 header (f_code=0)
(mpeg4@0x9bc8e70)
ffmpeg warning: header damaged
(mpeg4@0x9bc8e70)
ffmpeg warning: cannot decode one frame (4050 bytes)
ffmpeg warning: hmm, seems the headers are not complete, trying to guess time_increment_bits
(mpeg4@0x9bc8e70)
ffmpeg warning: my guess is 1 bits ;)
(mpeg4@0x9bc8e70)
ffmpeg warning: looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
(mpeg4@0x9bc8e70)
main debug: no usable vout present, spawning one
main debug: window size: 640x480
main debug: looking for video output module: 9 candidates
xvideo debug: adaptor 0, port 73, format 0x32315659 (YV12) planar
main debug: Registering subpicture channel, ID: 2
main debug: Registering subpicture channel, ID: 3
main debug: Registering subpicture channel, ID: 4
main debug: Registering subpicture channel, ID: 5
到这里后就停了,先是花屏然后是黑屏。
dbhlln 2008-09-24
  • 打赏
  • 举报
回复
自已顶一下,
跟踪调试时发现以下代码中if条件判断中的四个值分别为:0 1 0 0,是否说明是在ffmpeg.c中写入时候出的问题而不是在ffserver.c中读取时出的问题。

AVStream *sf, *ss;
sf = feed->streams[i];
ss = s->streams[i];
if (sf->index != ss->index || sf->id != ss->id)
{
printf("Index & Id do not match for stream % d\n", i);
}
其中index 和 id :
typedef struct AVStream {
int index; /* stream index in AVFormatContext */
int id; /* format specific stream id */
.............
};
CSDN里没有做过FFMPEG的吗?
SoftSoftSoft2008 2008-09-24
  • 打赏
  • 举报
回复
你在什么环境下使用 ffmpeg ?

2,553

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧