LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2014, 11:03 AM   #1
kzo81
Member
 
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 198

Rep: Reputation: Disabled
Smile Qnap overrides Vivotek's settings


Hi,

I have the following set up:
a Qnap VS 2004 Pro+, and the video and audio comes from a Vivotek VS8102.
As I see Qnap's software looks like a linux os which uses ffmpeg, openvpn etc. and the whole thing have been put together nicely by the Qnap firm, by the way, Vivotek is is also a custom tailored linux.

If I set the audio bitrate to 128 kb/s in Vivotek, the audio recording happens to the Vivotek SD at this bitrate as long as the Qnap is not attached through a switch as a secondary recording space. Having attached the Viostor Qnap:
It simply overrides the Vivotek's audio settings and sets it back to 32 kb/s.
It should be untouched, this way it degragates the audio quality.
I tried to use dirrerent streams and different Qnap firmwares without any success I also created an additional user in Vivotek with only 'viewer' privilages but Qnap can only "see through" the Vivotek with root account.

Today I imaged the Qnap's internal flash with Clonezilla to a USB drive for examining and testing.

My goal would be to find a configuration file which is responsible for this override, and have the Qnap not to touch any settings in Vivotek.

The flash drive contains these files:

total 185335
-rw-r--r-- 1 root root 4645664 May 28 17:06 bzImage
-rw-r--r-- 1 root root 76 May 28 17:06 bzImage.cksum
-rw-r--r-- 1 root root 10031890 May 28 17:06 initrd.boot
-rw-r--r-- 1 root root 80 May 28 17:06 initrd.boot.cksum
-rw-r--r-- 1 root root 49141760 May 28 17:06 qpkg.tar
-rw-r--r-- 1 root root 78 May 28 17:06 qpkg.tar.cksum
-rw-r--r-- 1 root root 124824626 May 28 17:06 rootfs2.bz
-rw-r--r-- 1 root root 81 May 28 17:06 rootfs2.bz.cksum
-rw-r--r-- 1 root root 383574 May 28 17:06 rootfs_ext.tgz
-rw-r--r-- 1 root root 82 May 28 17:06 rootfs_ext.tgz.cksum

I don't know in which should I start searching for that configuration setting. I tried grep so far:
bzgrep '32' rootfs2.bz -- nothing

tar xvf qpkg.tar -O | grep "audio"
DS.tgz
ImageMagick.tgz
QCodecInst.exe
ffmpeg.tgz
jsLib.tgz
labeltools.tgz
language.tgz
libboost.tgz
mt-daapd.tgz
mtpBinary.tgz
php/
php/php
Binary file (standard input) matches

tar xvf qpkg.tar -O | grep "32"
DS.tgz
ImageMagick.tgz
Binary file (standard input) matches


Do you think my approach is OK? I use 32 and audio keywords. How could it be determined which file is responsible for having the QNAP forced to override Vivotek's audio settings? It's supposed to be in the Qnap's operating system preset somewhere, maybe among the init files, I suppose there is a daemon running which is using ffmpeg with such argument that touches the Vivotek's settings for some reason.

Do you have any suggestions, have any of you run into similar problem, please help me out.

Last edited by kzo81; 11-11-2014 at 06:44 AM.
 
Old 11-12-2014, 07:40 AM   #2
kzo81
Member
 
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 198

Original Poster
Rep: Reputation: Disabled
I've found a file in Qnap's imaged flash in the /usr/msb/vivotek3000.inf which might be interesting:

config
{
umsid
{
"00000005" "0000000A" LEVEL_ONE_VS8102 "LevelOne",
"00000001" "00190002" VS8102 "Vivotek"
}
capabilities
{
audio, motion, alarm1, rtsp, alarm_out1
}
events
{
motion duration;
alarm1 (hi *,lo);
}
VIDEO
{
video_size enum TResolution14 RESOLUTION,
video_quality enum TQuality6 QUALITY,
frame_rate enum TFrameRate2 FRAME_RATE,
rec_file_fmt enum TRecFileFmt2 REC_FILE_FMT
}
AUDIO
{
audio_enabled bool (false) AUDIO_ENABLED
}
constraint on video_quality where 'video_quality<=5' if 'rec_file_fmt==1';
}

These are the capabilities of VS8102. Do you think that minor change in the red line above would solve my problem?
 
Old 11-28-2014, 02:09 PM   #3
kzo81
Member
 
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 198

Original Poster
Rep: Reputation: Disabled
Having emailed Qnap, I was told that Viostor Qnap supports the Vivotek VS8102 videoserver in a way that the audio feature is only supported by a specific format ( G.711 , 32Kbps).

Which is sad, it results in a very poor sound quality.

I hope someone, who is more familiar in this field may expose a solution for this issue in future.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bash_profile overrides the settings in /etc/profile tomkoshy Linux - General 3 05-22-2013 08:47 PM
mimms problems on QNAP with 2.6.33.2 (armv5tel) jdebs Linux - Software 0 07-25-2012 08:38 AM
QNAP .. need log files and more Arning Linux - Newbie 0 01-28-2012 09:16 AM
GNOME overrides my Synaptics touchpad settings arielCo Linux - Software 6 11-03-2009 07:46 PM
QNAP NAS-server under Linux? ronald-be Linux - Hardware 2 09-16-2007 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration