Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

testcamera not working

Answered

Comments

6 comments

  • Norman
    • Network Optix team

    Hi @...,

    Did you touch nx_utils.ini and nx_network.ini in the mentioned directory?
    If so, did you use the testcamera application of the same version and build as the Nx Mediaserver application as you use?

    0
  • Permanently deleted user

    Hello Norman

    Thanks for your help

    I just did the touch command but seems the error is not solved.

    the testcamera version should be correct since I am using the testcamera which is in Nx Meta directory 

    cd /opt/networkoptix-metavms/mediaserver/bin/

    or could it be a problem to run in a ec2 (aws ubuntu 18.04) ? 

    when I last run the command:

    ubuntu@ip-172-31-10-172:/opt/networkoptix-metavms/mediaserver/bin$ ./testcamera -I 127.0.0.1 "files=hq1.mkv;secondary-files=lq1.mkv;count=100"
    nx_utils.ini [/home/ubuntu/.config/nx_ini/nx_utils.ini]
    mutexImplementation="qt"
    assertCrash=false
    assertHeavyCondition=false
    printStackTraceOnAssert=true
    logLevelReducerPassLimit=100
    logLevelReducerWindowSizeS=600
    valueHistoryAgeDelimiter=1
    loadFactor=1
    debugTimeRepresentation="dd.MM.yyyy HH:mm:ss.zzz UTC"
    test_camera.ini [/home/ubuntu/.config/nx_ini/test_camera.ini]
    discoveryPort=4984
    mediaPort=4985
    discoveryMessage="Network Optix Camera Emulator 3.0 discovery"
    discoveryResponseMessagePrefix="Network Optix Camera Emulator 3.0 discovery response"
    printOptions=false
    stopStreamingOnErrors=true
    obtainFramePtsFromTimestampField=true
    warnIfFramePtsDiffersFromTimestamp=true
    discoveryMessageTimeoutMs=100
    logReceivingDiscoveryMessageErrorAsVerbose=true
    declareTwoWayAudio=false

    Nx Meta Test Camera version 5.0.0.33560

    nx_network.ini [/home/ubuntu/.config/nx_ini/nx_network.ini]
    verifySslCertificates=true
    verifyVmsSslCertificates=true
    httpClientTraffic=false
    disableHosts=""
    minSocketSendDurationUs=10000000
    traceAsyncClientLifetime=false
    2021-10-27 08:24:43.412 10140 ERROR FileCache: Cannot open file. File #0 hq1.mkv
    Unable to load files or add cameras; see the logged error.
    Finished with exit status 1.

     

     

    0
  • Norman
    • Network Optix team

    Hi @...,

    Were the hq1.mkv and lq1.mkv files present in the /opt/networkoptix-metavms/mediaserver/bin directory?

    Can you try it with the samples we link to in the Testcamera support article?

    0
  • Permanently deleted user

    Hello Norman,

    Thanks for your support

    it works fine now!

    Thanks

    0
  • Norman
    • Network Optix team

    Great news @...!

    How did you resolve it? By adding the files to the correct directory or using the other files?

     

    0
  • Permanently deleted user

    Yes, as you have suggest, solved it by using correct directory of the video file

    Thanks :) 

    0

Please sign in to leave a comment.