'Programming > perl' 카테고리의 다른 글
| perl array sort 하기 (0) | 2014.09.24 |
|---|
| perl array sort 하기 (0) | 2014.09.24 |
|---|
| perl tutorial (0) | 2014.09.24 |
|---|
#!/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 |
| -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.
|
| 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 |
| 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 |
vmware player에 64bit OS(Ubuntu 14.04 64bit Desktop edition)을
설치 하려는데 오류가 나서 찾아보니..
| virtualbox도 64bit 지원에는 VT-D AMD-V 필요 (0) | 2014.09.30 |
|---|---|
| virtualbox의 네트워크모드는.. 이상해? (0) | 2014.09.30 |
| virtualbox / vmware 물리하드 연결하기 (1) | 2014.09.22 |
| vmware / virtualbox 성능비교 (0) | 2014.08.31 |
| virtualbox 포트포워딩 설정하기 (0) | 2014.08.29 |
| 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 |
| 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] |
| 5TEJ ARMv5 with Thumb, interworking, DSP multiply, double-word instructions, and Jazelle® extensions ARM926EJ-S, ARM1026EJ-S, SC200 |
| 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.
|
| 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 |
$ sudo apt-get install mdadm
$ mount /dev/md0 /mnt/test $ mdadm --assemble --run /dev/md0 /dev/sdc1 |
| 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 |
| 삼바 휴지통 vfs_object (0) | 2015.12.08 |
|---|---|
| samba - nfs - samba 0x80070021 오류 (0) | 2015.11.09 |
| SMB2 (0) | 2013.09.13 |
| samba 폴터 생성시 퍼미션 (0) | 2012.12.14 |
| winXP에서 삼바접속이 느릴경우 (0) | 2012.12.10 |
| win7 리소스 모니터 - 최대 사용 빈도 ?? (2) | 2015.04.09 |
|---|---|
| 윈도우에서 다중 네트워크 사용하기 (0) | 2014.11.07 |
| Vista 32bit/64bit 하드 디스크 요구사항 (0) | 2014.06.14 |
| win7 / vista usb 설치 (1) | 2014.06.14 |
| Visual C++ Runtime / Buffer overrun detected (0) | 2014.05.18 |