personal log: make my own media center

本文记录了作者在修改ffserver源代码过程中遇到的问题及解决办法,包括配置文件依赖问题、视频播放不流畅、使用摄像头作为视频源时的调试经验等。

rcd my own path , on building my own media center. Use ffserver ,ffmpeg;  May not be helpful for u . It's nothing but the bugs i'v meet & tasks I'v made.


------------------------------------------CONTENT-----------------------------------------------------

1, TASK: MODIFY ffserver.c , to free it from config file;

......

1), done. BUT NOT WORK;
>>>>>>>>>>>>>>>>>>>>>>>


2,TASK: FIND BUG, MAKE IT WORK;

test one:
1) i have type ffserver -/home/carlyle/Documents/prvt/pro/thsuus.wmv
not work;
reason: i have installed ffser globally ;

use : ./ffserver <Path > ;  to call the one i made;

BUG FIXED:  [see log , "http_server called"]

2)BUG: video cant play: log on server: Unspecified feed file for stream

read source file , found!
reason: stream->feed_filename[0] : though stream , feed_filename not assigned ;
file_name is the short name  of file;
feed_filename : is the abs path of the file;

3)BUG: cant play mp4;
reason: stream format set wrong :[i didn't load config file , stream format used [guess format ], this stream format was set to 'mp4';]
I set format as rtp [for mpg ]
it works on UBUNTU player;

4)i tested it on Nexus 5 (5.0 OS); Use videoView for simple , cost long time for preparing video . when played, only sound can be heard;

[LOG:

Though, my server is running ,& my palyer rcvd RTSP packet ,VIDEO PLAYS  NOT SMOOTHLY. 

]


TODO: Y & HOW?


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.


3,TASK : USE CAM AS THE VIDEO SOURCE;

i use origin ffserver & ffmpeg on another pc; [thus i need to config the server]

bug:

1) ffmpeg no not work :[warning : rate || wd || ht wrong ]

I use cam outout wd,ht to set the config feed.

DONE: ffmpeg works, cam on;

2: UBUNTU player cant read the cam stream; [tested a file stream , not work either.]

trying to use my modified ffserver.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

TASK 4: MODIFY ffserver for cam;

bug 1):["No streams to mux were specified"]

reason : [feed . nb_streams ==0];

found: parse config for ffserver stream [</stream>], handles feed stream , here assigned new proper codec & feed . nb_streams is figured out.

bug 2) [RTSP/1.0 505 RTSP Version not Supported];
RESON : USE RONG PORT NUMB;
handle: change to http port number;

bug3: 404 not found;
reason : feed will also add to config.first stream;[i dind't add]

bug4:Value 0.000000 for parameter 'bt' out of range
reason: build_feed_streams>>avformat_open_input>>av_opt_set_defaults>>av_opt_set_defaults2>>write_number
[oops , not finished today!]

first launch:  no such bug;
bug 5:Missing audio stream which is required by this ffm
reason :  i Audio info is not assigned;
fix: add NoAudio


bug 6:[Either both buffer size and max rate or neither must be specified]
fix:  i blocked config "buffer size"
done, cam started;


bug7:404 NOT FOUND
use rtp ;fail
use http: viedo cant be read;
change: stream config to [format mp4 & rtp]
fixed;

SUCCESS!

BUT THE VIDEO IS NOT CLEARLY ENOUGH.









-----------------------------------END--------------------------------------

转载于:https://my.oschina.net/u/592116/blog/376504

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值