This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 IPNC APPRO - AVSERVER Streaming only Audio?



Hi,

 

I'm using DM365 APPRO IPNC. 

How to stream only audio from AVSERVER.  By disabling the video capturing tasks is it possible to capture only audio, encode it and stream. What are the changes to be made in wis-stream to add only audio sessions?

With The below changes,

 

 OSA_tskSendMsg(&gVIDEO_ctrl.captureTsk, pTsk,AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK);
 OSA_tskSendMsg(&gVIDEO_ctrl.ldcTsk, pTsk, AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK); 
 OSA_tskSendMsg(&gVIDEO_ctrl.vnfTsk, pTsk,AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK); 
 OSA_tskSendMsg(&gVIDEO_ctrl.resizeTsk, pTsk, AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK); 
 OSA_tskSendMsg(&gVIDEO_ctrl.encodeTsk, pTsk,AVSERVER_MAIN_CMD_STOP,, NULL, OSA_MBX_WAIT_ACK);
 OSA_tskSendMsg(&gVIDEO_ctrl.encryptTsk, pTsk,AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK); 
   
  OSA_tskSendMsg(&gVIDEO_ctrl.streamTsk, pTsk, AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK);
 
  OSA_tskSendMsg(&gVIDEO_ctrl.fdTsk, pTsk, AVSERVER_MAIN_CMD_STOP,NULL, OSA_MBX_WAIT_ACK);
 
  OSA_tskSendMsg(&gVIDEO_ctrl.displayTsk, pTsk, AVSERVER_MAIN_CMD_STOP,, NULL, OSA_MBX_WAIT_ACK);
 
  OSA_tskSendMsg(&gVIDEO_ctrl.vsTsk, pTsk, AVSERVER_MAIN_CMD_STOP,, OSA_MBX_WAIT_ACK);
 
  OSA_tskSendMsg(&gVIDEO_ctrl.aewbTsk, pTsk,AVSERVER_MAIN_CMD_STOP,, NULL, OSA_MBX_WAIT_ACK);
 
  OSA_tskSendMsg(&gAUDIO_ctrl.audioTsk, pTsk, AVSERVER_CMD_CREATE, NULL, OSA_MBX_WAIT_ACK); 
   
  OSA_tskSendMsg(&gVIDEO_ctrl.motionTsk, pTsk,AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK);
 
  OSA_tskSendMsg(&gVIDEO_ctrl.swosdTsk, pTsk,AVSERVER_MAIN_CMD_STOP,, NULL, OSA_MBX_WAIT_ACK);
 
  status = AVSERVER_bufAlloc();
 
  OSA_tskSendMsg(&gVIDEO_ctrl.aewbTsk, pTsk, AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK);

    OSA_tskSendMsg(&gVIDEO_ctrl.vsTsk, pTsk, AVSERVER_MAIN_CMD_STOP, NULL, OSA_MBX_WAIT_ACK); 

 

With the above changes, Though I could see the messages as below, At the client side no streaming happens and a message "Resource file could not be open to write" appears. And at the target no error messages are appeared.

 

AUDIO_GetSampleRate = 8000
AUDIO : period size = 1000 frames dir = 0
AUDIO : period time = 125000 us dir = 0
queue id:32769

Initializing...
...done initializing
Play this stream using the URL:
    rtsp://192.168.1.133/mpeg4
Initializing...
...done initializing
Play this stream using the URL:
    rtsp://192.168.1.133:8554/mpeg4
Initializing...
...done initializing
Play this stream using the URL:
    rtsp://192.168.1.133:8556/h264
Initializing...
...done initializing
Play this stream using the URL:
    rtsp://192.168.1.133:8557/h264
Initializing...
...done initializing
Play this stream using the URL:
    rtsp://192.168.1.133:8555/mjpeg

Please let me know the correct way to disable the video and stream only audio.

 

Thanks and Regards,

 

Nandhakumar

 

 

 

  • Hi,

    There are two parts to this question:

    1. Changing av_server to capture, encode and output only audio data

    2. Changing wis-streamer (LIVE555 streaiming) to support only audio.

     

    I can help you with item #1 and would suggest to directly contact Appro for #2. I will anyways forward your question to them as well.

    For # 1, we have not full tested audio only option. But your approach of closing other threads should be fine. Did you get audio samples in the audio task and audio encoder working on these samples? Or did you get the system stuck at some place due to messed up messaging and queues?

    Regards,

    Anshuman