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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-10-2014, 11:03 AM
|
#1
|
Member
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 207
Rep: 
|
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.
|
|
|
11-12-2014, 07:40 AM
|
#2
|
Member
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 207
Original Poster
Rep: 
|
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?
|
|
|
11-28-2014, 02:09 PM
|
#3
|
Member
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 207
Original Poster
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 05:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|