No audio on archives videos

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

No audio on archives videos

Postby mauricioesilva » Sun Jul 20, 2014 11:29 pm

I'm running Xeoma 14.6.23 on a Debian machine and I'm having lots of troubles, one of them is the recording of the videos without sound. I have this problem in all my IP cameras, I can ear in real time but the audio is not recorded in the archives. I will explain in detail only one camera.

The camera is a TP-Link SC3230, the universal camera input module is using 2 streams, 1 low quality with no sound for the multiview window and a second one in higher resolution with sound. The URLs are:

Preview: rtsp://<user>:<passwd>@<ip>/media.amp?streamprofile=Profile5&audio=0
Store: rtsp://<user>:<passwd>@<ip>/media.amp?streamprofile=Profile1&audio=1

I have selected the options "Enable H264 recording without conversion" and "Use H264 Stream (from archive) in single camera mode". So instead the .xem files in the archives i found .mp4 files. When i reproduce those files i found no audio stream. When i say reproduce I mean copy and play I don't export them because I have a lots of problem with that (wait for future post on that problem).

After testing different configuration, options, adding the audio stream URL (that i can't make it work, but may be the camera), I found that Xeoma is spawning (or forking) 2 FFMPEG process for each camera that I have using 2 streams. This are:

Preview
/usr/local/Xeoma/Additional/ffmpeg_213c -loglevel quiet -probesize 100000 -analyzeduration 10000000 -i rtsp://<user>:<passwd>@<camera IP>:554/media.amp?audio=0&streamprofile=Profile5 -f fsimstream -vcodec fsim -an fssmem:58957732418446744072392849060


Archive
/usr/local/Xeoma/Additional/ffmpeg_213c -loglevel quiet -probesize 100000 -analyzeduration 10000000 -i rtsp://<user>:<passwd>@<camera IP>/media.amp?audio=1&streamprofile=Profile1 -map 0 -dn -f fssegment -segment_format mp4 -vcodec copy -acodec aac -strict experimental -b:a 32K /usr/local/Xeoma/XeomaArchive/Preview+Archive.20/2014-07-20/h264/1173_53.mp4 -f switchablefsimstream -map 0 -dn -vcodec copy -an -r 15.000000 fssmem:58956519918446744072365759244


Both process (and all other FFMPEG process) have the parameter "-an" in it. And it mean DISABLE AUDIO in the FFMEG documentation. It shouldn't be on the archive process. Or am I wrong?.
mauricioesilva
 
Posts: 17
Joined: Sun Jun 15, 2014 2:15 am
Location: Argentina

Re: No audio on archives videos

Postby Admin_J » Thu Jul 24, 2014 2:27 pm

Hello!

Please try to play this URL with no sound in VLC media player. Do you hear any sound in VLC?

Also, try to put 1 instead of 0, and 0 instead of 1 in these URL's:

Preview: rtsp://<user>:<passwd>@<ip>/media.amp?streamprofile=Profile5&audio=0
Store: rtsp://<user>:<passwd>@<ip>/media.amp?streamprofile=Profile1&audio=1
Admin_J
 
Posts: 111
Joined: Tue Aug 13, 2013 12:19 pm

Re: No audio on archives videos

Postby mauricioesilva » Fri Jul 25, 2014 3:03 pm

Yes, I hear sound in VLC, I hear sound if I use the the included ffmpeg. Also hear sound in single camera view from inside Xeoma.

Tested ffmpeg command:
/usr/local/Xeoma/Additional/ffmpeg_213c -i "rtsp://<user>:<passwd>@<ip>/media.amp?streamprofile=Profile1&audio=1" test.avi

Partial output of the command:

Input #0, rtsp, from 'rtsp://<bla bla bla>/media.amp?streamprofile=Profile1&audio=1':
Metadata:
title : Video Server Session
Duration: N/A, start: 0.040000, bitrate: 32 kb/s
Stream #0:0: Video: h264 (Baseline), yuvj420p(pc), 1280x1024, 30 fps, 54.08 tbr, 90k tbn, 60 tbc
Stream #0:1: Audio: adpcm_g726, 8000 Hz, mono, s16, 32 kb/s
Output #0, avi, to 'test.avi':
Metadata:
INAM : Video Server Session
ISFT : Lavf55.19.104
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x1024, q=2-31, 200 kb/s, 30 tbn, 30 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 8000 Hz, mono, fltp, 96 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg4)
Stream #0:1 -> #0:1 (g726 -> ac3)


Note:

If i redirect the output of FFMPEG to an MP4 insted of an AVI it will fail with this message:
[aac @ 0x99f4280] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
mauricioesilva
 
Posts: 17
Joined: Sun Jun 15, 2014 2:15 am
Location: Argentina

Re: No audio on archives videos

Postby Admin_N » Thu Sep 18, 2014 2:33 pm

The issue is solved via TechSupport. The to be released version of Xeoma should fix the problem from now on.
Admin_N
 
Posts: 799
Joined: Thu Mar 01, 2012 4:43 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron