i.mx283 / armv5te 아키텍쳐의
dsp enchancement 명령을 사용하기 위한 컴파일 옵션

--cpu=armv5te --enable-armv5te 

코덱마다 다르고 시간마다 달라 정형화하기 힘들지만
classic channel 인터넷 방송은 정상재생이냐 끊어지냐 수준
80% vs 13% 급이고

mbc fm 은
거의 차이가 없는 78% 이나
load average가 5.0 vs 4.8 정도로 유의미하게 나진 않는다

[링크 : http://ffmpeg.org/pipermail/ffmpeg-user/2011-May/000833.html]

'프로그램 사용 > ffmpeg & ffserver' 카테고리의 다른 글

ASLA 입출력 - mplayer / ffmpeg  (0) 2014.09.29
ffmpeg armv5te performance  (0) 2014.09.26
lame을 이용한 mp3 포맷변경  (0) 2014.09.24
ubuntu에서 ffmpeg 컴파일하기  (0) 2010.01.14
ffserver.conf 때려잡기  (0) 2009.11.24
Posted by 구차니
Programming/php2014. 9. 25. 15:22

'Programming > php' 카테고리의 다른 글

php - register_globals  (0) 2014.10.07
php EGPCS  (0) 2014.10.07
xcache apc  (0) 2014.09.23
lighthttpd / php / FastCGI  (0) 2014.08.28
php5 class / object oriented programming  (4) 2014.07.07
Posted by 구차니
Programming/perl2014. 9. 24. 18:18

'Programming > perl' 카테고리의 다른 글

perl array sort 하기  (0) 2014.09.24
Posted by 구차니
Programming/perl2014. 9. 24. 17:52

'Programming > perl' 카테고리의 다른 글

perl tutorial  (0) 2014.09.24
Posted by 구차니
테스트용으로
channel  / samping rate / bitrate  등을 변경하기 위한 방법

#!/bin/sh

# CBR - channel / bitrate / resample
# VBR - channel / quality / resample

# bitrate - CBR
# MPEG1 - 320 256 224 192 160 128 118 96 80 64 56 48 40 32
# MPEG2 - 160 144 128 112 96 80 64 56 48 40 32 24 16 8

# bitrate - VBR
# 9 8 7 6 5 4 3 2 1 0

# sampling
# mpeg1-3 48 44.1 32
# mpeg2-3 24 22.05 16
# mpeg2.5-3 12 11.025 8

for rate in 48 44.1 32
do
        for bps in 320 256 224 192 160 128 118 96 80 64 56 48 40 32
        do
                lame -b ${bps} -m s --resample ${rate} $1 C${bps}bps_${rate}KH_2ch.mp3
                lame -b ${bps} -m m --resample ${rate} $1 C${bps}bps_${rate}KH_1ch.mp3
        done
done

for rate in 48 44.1 32
do
        for bps in 9 8 7 6 5 4 3 2 1 0
        do
                lame -V ${bps} -m s --resample ${rate} $1 V${bps}bps_${rate}KH_2ch.mp3
                lame -V ${bps} -m m --resample ${rate} $1 V${bps}bps_${rate}KH_1ch.mp3
        done
done 

위와 같이 변경하니. 320kbps가 
---
mp3가 mpeg1 layer3인데.
mpeg2 layer3 와
mpeg2.5 layer3는 도무지 뭔지 ㅠㅠ

       -m mode
              mode = s, j, f, d, m

              Joint-stereo is the default mode for stereo files with VBR  when  -V  is  more  than  4  or  fixed
              bitrates  of  160kbs  or  less.   At  higher fixed bitrates or higher VBR settings, the default is
              stereo.

              (s)imple stereo
              In this mode, the encoder makes no use of potentially existing correlations between the two  input
              channels.   It  can, however, negotiate the bit demand between both channel, i.e. give one channel
              more bits if the other contains silence or needs less bits because of a lower complexity.

              (j)oint stereo
              In this mode, the encoder will make use of a correlation between both channels.  The  signal  will
              be  matrixed into a sum ("mid"), computed by L+R, and difference ("side") signal, computed by L-R,
              and more bits are allocated to the mid channel.  This will effectively increase the  bandwidth  if
              the  signal  does  not have too much stereo separation, thus giving a significant gain in encoding
              quality.

              Using mid/side stereo inappropriately can  result  in  audible  compression  artifacts.   To  much
              switching  between mid/side and regular stereo can also sound bad.  To determine when to switch to
              mid/side stereo, LAME uses a much more sophisticated algorithm than that described in the ISO doc‐
              umentation, and thus is safe to use in joint stereo mode.

              (f)orced MS stereo
              This  mode  will  force  MS stereo on all frames.  It is slightly faster than joint stereo, but it
              should be used only if you are sure that every frame of the input file has very little stereo sep‐
              aration.

              (d)ual mono
              In  this  mode,  the  2  channels  will  be totally independently encoded.  Each channel will have
              exactly half of the bitrate.  This mode is designed for applications like dual languages  encoding
              (for example: English in one channel and French in the other).  Using this encoding mode for regu‐
              lar stereo files will result in a lower quality encoding.

              (m)ono
              The input will be encoded as a mono signal.  If it was a stereo signal, it will be downsampled  to
              mono.  The downmix is calculated as the sum of the left and right channel, attenuated by 6 dB. 

       --resample sfreq
              sfreq = 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48
              Select output sampling frequency (only supported for encoding).
              If not specified, LAME will automatically resample the input when using high compression ratios. 

       CBR (constant bitrate, the default) options:

       -b n   For MPEG1 (sampling frequencies of 32, 44.1 and 48 kHz)
              n = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320

              For MPEG2 (sampling frequencies of 16, 22.05 and 24 kHz)
              n = 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160

              Default is 128 for MPEG1 and 64 for MPEG2.

       --cbr  enforce use of constant bitrate

       ABR (average bitrate) options:

       --abr n
              Turns  on encoding with a targeted average bitrate of n kbits, allowing to use frames of different
              sizes.  The allowed range of n is 8 - 310, you can use any integer value within that range.

              It can be combined with the -b and -B switches like: lame --abr 123 -b 64 -B 192 a.wav a.mp3 which
              would limit the allowed frame sizes between 64 and 192 kbits.

              The  use  of  -B  is NOT RECOMMENDED.  A 128 kbps CBR bitstream, because of the bit reservoir, can
              actually have frames which use as many bits as a 320 kbps frame.  VBR modes minimize  the  use  of
              the  bit  reservoir,  and  thus  need  to allow 320 kbps frames to get the same flexibility as CBR
              streams.

       VBR (variable bitrate) options:

       -v     use variable bitrate (--vbr-old)

       --vbr-old
              Invokes the oldest, most tested VBR algorithm.  It produces very good quality files, though is not
              very fast.  This has, up through v3.89, been considered the "workhorse" VBR algorithm.

       --vbr-new
              Invokes the newest VBR algorithm.  During the development of version 3.90, considerable tuning was
              done on this algorithm, and it is now considered to be on par with the original --vbr-old.  It has
              the added advantage of being very fast (over twice as fast as --vbr-old).

       -V n   0 <= n <= 9
              Enable  VBR  (Variable BitRate) and specifies the value of VBR quality (default = 4).  0 = highest
              quality.

[링크 : http://tuxtweaks.com/2008/08/how-to-resample-mp3-audio-files-on-linux-using-lame/

'프로그램 사용 > ffmpeg & ffserver' 카테고리의 다른 글

ffmpeg armv5te performance  (0) 2014.09.26
ffmpeg armv5te 옵션  (0) 2014.09.25
ubuntu에서 ffmpeg 컴파일하기  (0) 2010.01.14
ffserver.conf 때려잡기  (0) 2009.11.24
ffserver의 상태페이지 (stat.html)  (0) 2009.11.05
Posted by 구차니
Programming/php2014. 9. 23. 18:33
xcache - ubuntu 14.04 기준
/etc/php5/mods-available/xcache.ini
/usr/lib/php5/20121212/xcache.so

$ vi /etc/php5/fpm/php.ini
extension=xcache.so

$ vi /etc/php5/mod-available/xcache.ini
[xcache.admin]
;xcache.admin.enable_auth = On
xcache.admin.enable_auth = Off
 

[링크 : http://xcache.lighttpd.net]
[링크 : http://www.tecmint.com/install-xcache-to-accelerate-and-optimize-php-performance/] xcache 설치 / 최적화


[링크 : http://blog.pages.kr/217]
[링크 : http://php.net/manual/en/book.apc.php]



[링크 : http://en.m.wikipedia.org/wiki/List_of_PHP_accelerators]

'Programming > php' 카테고리의 다른 글

php EGPCS  (0) 2014.10.07
php-fpm관련  (0) 2014.09.25
lighthttpd / php / FastCGI  (0) 2014.08.28
php5 class / object oriented programming  (4) 2014.07.07
웹소켓 (websocket)  (0) 2014.07.03
Posted by 구차니

vmware player에 64bit OS(Ubuntu 14.04 64bit Desktop edition)을
설치 하려는데 오류가 나서 찾아보니..


BIOS에서 가상화 옵션을 켜라고 한다 -_-
일단 기본값이 꺼져있어서 켜주니 문제없이 된다 -_-a
(그럼.. Vmware Host가 32bit인데 Guest 가 64bit 된다는건 순 개 뻥이었나?) 

Posted by 구차니
하드웨어2014. 9. 23. 10:08
<- -> 버튼 동시 누르고 전원 on!
찹 쉽죠잉

(왜 메뉴얼에서는 도무지 찾지를 못하니 ㅠㅠ)

[링크 : http://forum.nas-central.org/viewtopic.php?f=259&t=6125]
[링크 : http://www.lg.com/us/data-storage/lg-N2R1DD2]

'하드웨어' 카테고리의 다른 글

HBA - Host Bus Adaptor  (0) 2015.03.19
LG NAS N2R1 + Mediawiki 성능  (0) 2014.10.10
자전거 속도계 센서  (0) 2013.12.14
OV7725  (0) 2013.06.20
80GB 구형 삼성 하드 분해  (2) 2012.10.13
Posted by 구차니
embeded/ARM2014. 9. 22. 14:38
i.mx283 뒤지다가 영 스펙이 제대로 안나와서 헤매느중..
아무튼 검색을 하다보니 DSP & SIMD로
ARMv5TE 계열에 지원하는 DSP Enchancement 로 몇가지 명령어를 지원하는 것으로 보이지만...
컴파일 옵션에 DSP multiply 정도로 밖에 안나오는것 봐서는
ARMv6 계열의 SIMD에 비하면 정말 미미한 수준의 DSP/멀티미디어 확장일 것으로 보인다.

ARMv5TE 계열인 ARM946의 DSP enhancement instruction
느낌으로는.. 32bit 짜리로 8bit 씩 4개의 데이터에 대한 확장 명령이 존재할 것으로 보여진다.

[링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dvi0022a/ar01s02s14.html]

QADD, QSUB, QDADD, and QDSUB
Signed Add, Subtract, Double and Add, Double and Subtract, saturating the result to the signed range -2^31 ≤ x ≤ 2^31-1.

Syntax
op{cond} {Rd}, Rm, Rn

where:
op        is one of QADD, QSUB, QDADD, or QDSUB.
cond     is an optional condition code.
Rd         is the destination register.
Rm, Rn  are the registers holding the operands.
[링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489e/Cihidceh.html

[링크 : http://www.arm.com/products/processors/technologies/dsp-simd.php]

5TEJ ARMv5 with Thumb, interworking, DSP multiply, double-word instructions, and Jazelle® extensions ARM926EJ-S, ARM1026EJ-S, SC200 
[링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0491g/CIHGEBDH.html]

DSP enhancement instructions
To improve the ARM architecture for digital signal processing and multimedia applications, DSP instructions were added to the set. These are signified by an "E" in the name of the ARMv5TE and ARMv5TEJ architectures. E-variants also imply T, D, M and I.

The new instructions are common in digital signal processor architectures. They include variations on signed multiply–accumulate, saturated add and subtract, and count leading zeros. 

'embeded > ARM' 카테고리의 다른 글

iWMMX / iWMMXt - Intel XScale SIMD instructions  (0) 2014.10.08
thumb의 장단점?  (0) 2014.09.29
Freescale Multimedia framwork  (0) 2014.09.17
freescale i.mx283 / i.mx515  (0) 2014.08.19
ARM thumb과 Jazelle  (0) 2014.04.19
Posted by 구차니
Linux2014. 9. 22. 13:53
LG NAS N2R1DDR2인가..
아무튼 회사에서 굴러 다니는 NAS가 있어서 살려보겠다고 하드 뽑아서
데탑에 연결하고 사용해보려는데!!!

mount 하니 에러! 폭풍 발생!
$ sudo mount /dev/sdc1 /mnt/test
mount: unknown filesystem type 'linux_raid_member

fdisk -l 해서 보니 linux raid auto 라고 파티션에 뜬다.

이게 뭐시여 하고 검색해보니
linux sw raid 구성방법으로 mdadm을 이용하면 된다고 한다

$ sudo apt-get install mdadm
$ mdadm --assemble --run /dev/md0 /dev/sdc1
$ mount /dev/md0 /mnt/test 

아무튼.. RAID 라고 해도 이렇게 마운트 하는걸로는 하드에 데이터 변경이 없기 때문에
원래대로 NAS에 연결해도 문제없이 인식을 한다.
그런데.. 파일을 변경하거나 삭제하면 어떻게 될려나....

+ 2014.09.23 추가
하드 하나를 뽑아서 수정하고 연결하니 원복된다 -_-
한개씩 뽑아 둘다 수정하고 넣던가 두개를 뽑아 수정하고 넣어야 하나?
+

[링크 : http://serverfault.com/questions/383362/mount-unknown-filesystem-type-linux-raid-member]
[링크 : http://ubuntuforums.org/showthread.php?t=2191753]
[링크 : http://linux.die.net/man/8/mdadm

'Linux' 카테고리의 다른 글

linux kernel panic 자동복구  (0) 2014.11.13
avahi  (0) 2014.11.10
ps / top 차이점?  (0) 2014.09.17
rdate / ntp  (0) 2014.09.17
nice  (0) 2014.09.16
Posted by 구차니