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.ide
------------------------------------------CONTENT-----------------------------------------------------oop
1, TASK: MODIFY ffserver.c , to free it from config file;ui
......
this
1), done. BUT NOT WORK;
>>>>>>>>>>>>>>>>>>>>>>>code
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 streamorm
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;
server
[LOG:ci
Though, my server is running ,& my palyer rcvd RTSP packet ,VIDEO PLAYS NOT SMOOTHLY.
input
]it
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--------------------------------------