Jump to ID:
Multimedia

Project Home

Documents

Discussions

Wiki

Project Info
Forum Topic - Get Axis network camera working: (4 Items)
   
 
 
Get Axis network camera working  
Hi,

We are evaluating the Multimedia Aviage Core 1.2.
Our main goal is getting the suite working with an Axis 223M network camera. But we got stuck on playing video.

I’ve added the following lines to ‘/db/mme_data.sql’
INSERT INTO outputdevices(type, permanent, name, devicepath) VALUES(2, 1, 'outputvideo', 'gf:8086,27ae,0?dsth=240&dstw=
320&dstx=1&dsty=1');
INSERT INTO slots(path, zoneid, name, slottype) VALUES('/dev/socket', 1, 'INTERNET', 10);

The resources are stated as described in the MME Quickstart Guide.
Some queries with qdbc showed me that ‘Internet’ is added to the mediastores and ‘socket’ is added to the slots.

Then I follow the commands of page 145 from the dev guide to play some video.
# mmecli newtrksession f "SELECT fid FROM library WHERE ftype=5 AND msid=1"
# mmecli settrksession 1
# mmecli trksessionview_append_file 1 1 rtsp://192.168.0.91/mpeg4/media.amp
# mmecli play

The output from sloginfo showed the following lines

Mar 08 02:46:24    5    27   200 MDP:mdp_mgr_init(264): Starting metadata plug-in initialization.
Mar 08 02:46:24    5    27     0 MME:dbs_init(561): Starting database synchronizer initialization.
Mar 08 02:46:33    2    27     0 MME:_play(3147): Could not create a graph
Mar 08 02:46:33    2    27     0 MME:_setgenericvalue(860): Send Error for request=2, value=0.  errno 61

I see in the sloginfo there is something wrong with the graphs. 

Does someone have example graph for a network camera so I can compare it against my graph or have some ideas to get the 
network camera working?

My config for io-media-generic is attached to this post.
Attachment: Text io-media-generic.cfg 9.12 KB
Re: Get Axis network camera working  
Can you confirm the path that you're sending to the camera? The last time I had worked with this
I saw the following path:
"rtsp://10.42.101.206:554/mpeg4/1/media.amp"


The steps that I followed appeared to pretty much match yours:

# mmecli newtrksession f "select fid from library where msid=1"
(rc=0,errno=0) new trksessionid=1.  Execution Time=0.220
# mmecli settrksession 1
(rc=0,errno=0) Set trksessionid=1.  Execution Time=0.263
# mmecli trksessionview_append_file 1 1 "rtsp://10.42.101.206:554/mpeg4/1/media.amp"
(rc=0,errno=0) Appended file=rtsp://10.42.101.206:554/mpeg4/1/media.amp. Execution Time=0.072
# mmecli play
(rc=0,errno=0) Playing from tracksession fid/bid = 0.  Execution Time=2.481

(msid 1 for me is /dev/socket)

Peter
Re: Get Axis network camera working  
Below the outputs of the mmecli commands
# mmecli newtrksession f "SELECT fid FROM library WHERE ftype=5 and msid=1"
(rc=0,errno=0) new trksessionid=1.  Execution Time=0.005

# mmecli settrksession 1
(rc=0,errno=0) Set trksessionid=1.  Execution Time=0.006

# mmecli trksessionview_append_file 1 1 rtsp://192.168.0.91:554/mpeg4/1/media.amp
(rc=0,errno=0) Appended file=rtsp://192.168.0.91:554/mpeg4/1/media.amp.  Execution Time=0.000

# mmecli play 
(rc=-1,errno=61) Playing from tracksession fid/bid = 0.  Execution Time=0.008

I do not see a difference when changing the URL to rtsp://192.168.0.91:554/mpeg4/1/media.amp 

Also I’ve changed the video graph in the io-media-generic.cfg to
format {
	url = “*.m4v”
	parser = “mp4_parser”
	decoder = “ipp_video_decoder”
}

The previous graph didn't have a parser, but result with the mp4_parser is the same as without parser.

Jasper
Re: Get Axis network camera working  
I got one of these back and had to tweak a setting on the board. On the camera setup utility, 

Under system options/security/users I had to enable 
anonymous viewer login. 

After that, the target could connect and display the video stream.

Peter