Skip to main content
Inspiring
November 9, 2011
Answered

live streaming with DVR on 64-bit linux platform

  • November 9, 2011
  • 1 reply
  • 961 views

hello, everyone. I deployed FMS 4.0 enterprise edition on my  64-bit linux platform. in the applications folder of FMS, i create a "dvr" subfolder and at the same time create a dvr.asc. the code is as the following :

application.onAppStart = function()

{

trace("app fme started!");

};

application.onConnect = function(p_c)

{

        p_c.disconnectClient = function() {

  trace("---disconnectClient " + application.clients.length + "---");

         application.disconnect(p_c);

     }

this.acceptConnection(p_c);

};

application.onPublish = function (p_c, p_stream)

{

trace("onPublish stream: "+p_stream.name);

p_stream.record();

};

application.onUnpublish = function(p_c, p_stream)

{

trace("onUnpublish stream: "+p_stream.name);

p_stream.record(false);

};

i expect the live stream will be recorded on the FMS server , but unfortunately nothing happened .

But if i use my pc ( 32-bit windows xp platform) , everything works well. when i connect to my win_xp pc,

the fms server automatically created a streams\_definst_\myVideo.flv file under the dvr folder.

then the fms server on 64-bit linux cannot create the myVideo.flv file ?

can any one here give me some advice?

    This topic has been closed for replies.
    Correct answer peixd_fms

    thank you for your answer. i'm a new linux learner, so i have a lot to learn the linux technologies. your answer referred the "permissions", then i logon the linux server and use the cmd "chmod " to make the dvr directory writable for the video publisher.

    1 reply

    peixd_fmsAuthor
    Inspiring
    November 9, 2011

    i will make an explanation : if i do the same thing on my xp platform (deployed the fms 4 development edition on the pc), everything works well. BTW, i use the vmware to virtulize a 64-bit linux platform.

    November 10, 2011

    Sounds like permissions to me. Have you checked the core.00.log file in fms/logs. Might be worth checking the access.00.log file and /var/log/messages log file.

    peixd_fmsAuthorCorrect answer
    Inspiring
    November 11, 2011

    thank you for your answer. i'm a new linux learner, so i have a lot to learn the linux technologies. your answer referred the "permissions", then i logon the linux server and use the cmd "chmod " to make the dvr directory writable for the video publisher.