WD My Book Live로 EBS 라디오 녹음하기 (M4A 형식)
컨텐츠 정보
- 34,828 조회
- 10 댓글
- 0 추천
- 목록
본문
1. 시간 설정하기
설치하기 전 대시보드에서 위와 같이 시간을 정확하게 맞춥니다.
녹음이 될 시간을 정확하게 적용하기 위해서입니다.
2. 패키지 리스트 업데이트
Putty에 접속하여 (벌써 접속하고 계시죠? ^^;)
패키지 업데이트 먼저합니다. 혹시 모니터링 툴 설치하신 분은 안하셔도 됩니다.
apt-get update
위 명령어로 업데이트 합니다.
MyBookLive:~# apt-get update
Hit http://ftp.us.debian.org squeeze Release.gpg
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org squeeze Release
Hit http://ftp.us.debian.org wheezy Release
Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex
Ign http://ftp.us.debian.org wheezy/main Packages/DiffIndex
Hit http://ftp.us.debian.org squeeze/main Packages
Hit http://ftp.us.debian.org wheezy/main Packages
Reading package lists... Done
MyBookLive:~#
위와 같은 화면이 나오면 패키지 리스트 업데이트가 완료되었습니다.
이제 패키지들을 설치할 수 있습니다.
3. 녹음 패키지 설치하기
aptitude install rtmpdump libav-tools
apt-get install rtmpdump libav-tools ffmpeg
위 명령어로 패키지를 설치합니다.
aptitude로 인스톨을 하면 기존 패키지들이 삭제되는 불상사가 벌어지네요 ㅠㅠ
제일 먼저 물어보면 y, 그 다음 물어보면 y, 그 다음 yes 하면 알아서 설치합니다.
libcdio-cdda1{a} libcdio-paranoia1{a} libcdio13{a} libice6{a}
libjack-jackd2-0{a} libjson0{a} libmp3lame0{a} libopencv-core2.3{a}
libopencv-imgproc2.3{a} libpostproc52{a} libpulse0{a} librtmp0{a}
libsamplerate0{a} libsm6{a} libsndfile1{a} libswscale2{a} libva1{a}
libvpx1{a} libx11-xcb1{a} libx264-123{a} libxfixes3{a} libxi6{a}
libxtst6{a} libxvidcore4{a} rtmpdump
The following packages will be upgraded:
ffmpeg libstdc 6 libtheora0 libvorbis0a libx11-6
6 packages upgraded, 33 newly installed, 0 to remove and 302 not upgraded.
Need to get 12.8MB of archives. After unpacking 30.8MB will be used.
The following packages have unmet dependencies:
libxcb1: Breaks: libxcb-xlib0 but 1.1-1.2 is installed.
The following actions will resolve these dependencies:
Remove the following packages:
libxcb-xlib0
Score is 119
Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
gcc-4.7-base{a} libasyncns0{a} libav-tools libavcodec53{a}
libavdevice53{a} libavfilter2{a} libavformat53{a} libavutil51{a}
libcdio-cdda1{a} libcdio-paranoia1{a} libcdio13{a} libice6{a}
libjack-jackd2-0{a} libjson0{a} libmp3lame0{a} libopencv-core2.3{a}
libopencv-imgproc2.3{a} libpostproc52{a} libpulse0{a} librtmp0{a}
libsamplerate0{a} libsm6{a} libsndfile1{a} libswscale2{a} libva1{a}
libvpx1{a} libx11-xcb1{a} libx264-123{a} libxfixes3{a} libxi6{a}
libxtst6{a} libxvidcore4{a} rtmpdump
The following packages will be REMOVED:
libxcb-xlib0{a}
The following packages will be upgraded:
ffmpeg libstdc 6 libtheora0 libvorbis0a libx11-6 libxcb1
6 packages upgraded, 33 newly installed, 1 to remove and 302 not upgraded.
Need to get 12.8MB of archives. After unpacking 30.8MB will be used.
Do you want to continue? [Y/n/?] y
WARNING: untrusted versions of the following packages will be installed!
Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.
libswscale2 libstdc 6 libcdio13 libxfixes3 libavutil51 gcc-4.7-base
libxvidcore4 libx264-123 libopencv-imgproc2.3 libjack-jackd2-0
libav-tools libpostproc52 libx11-xcb1 libavformat53 libjson0 libxcb1
libmp3lame0 rtmpdump libcdio-cdda1 libvpx1 libtheora0 libice6
libopencv-core2.3 ffmpeg libsamplerate0 libavfilter2 libasyncns0
libcdio-paranoia1 libxtst6 libavcodec53 libx11-6 libsm6 libpulse0 libva1
librtmp0 libxi6 libvorbis0a libsndfile1 libavdevice53
Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": yes
Writing extended state information... Done
Get:1 http://ftp.us.debian.org wheezy/main libx11-6 2:1.5.0-1 deb7u1 [879kB]
Get:2 http://ftp.us.debian.org wheezy/main libxcb1 1.8.1-2 deb7u1 [45.6kB]
Get:3 http://ftp.us.debian.org wheezy/main gcc-4.7-base 4.7.2-5 [144kB]
Get:4 http://ftp.us.debian.org wheezy/main libstdc 6 4.7.2-5 [395kB]
Get:5 http://ftp.us.debian.org wheezy/main libasyncns0 0.8-4 [12.9kB]
Get:6 http://ftp.us.debian.org wheezy/main libavutil51 6:0.8.6-1 [104kB]
Get:7 http://ftp.us.debian.org wheezy/main libmp3lame0 3.99.5 repack1-3 [393kB]
Get:8 http://ftp.us.debian.org wheezy/main libtheora0 1.1.1 dfsg.1-3.1 [398kB]
Get:9 http://ftp.us.debian.org wheezy/main libva1 1.0.15-4 [40.1kB]
Get:10 http://ftp.us.debian.org wheezy/main libvorbis0a 1.3.2-1.3 [109kB]
Get:11 http://ftp.us.debian.org wheezy/main libvpx1 1.1.0-1 [275kB]
Get:12 http://ftp.us.debian.org wheezy/main libx264-123 2:0.123.2189 git35cf912-1 [901kB]
Get:13 http://ftp.us.debian.org wheezy/main libxvidcore4 2:1.3.2-9 [318kB]
Get:14 http://ftp.us.debian.org wheezy/main libavcodec53 6:0.8.6-1 [2981kB]
Get:15 http://ftp.us.debian.org wheezy/main librtmp0 2.4 20111222.git4e06e21-1 [61.7kB]
Get:16 http://ftp.us.debian.org wheezy/main libavformat53 6:0.8.6-1 [513kB]
Get:17 http://ftp.us.debian.org wheezy/main libcdio13 0.83-4 [177kB]
Get:18 http://ftp.us.debian.org wheezy/main libcdio-cdda1 0.83-4 [132kB]
Get:19 http://ftp.us.debian.org wheezy/main libcdio-paranoia1 0.83-4 [132kB]
Get:20 http://ftp.us.debian.org wheezy/main libsamplerate0 0.1.8-5 [1352kB]
Get:21 http://ftp.us.debian.org wheezy/main libjack-jackd2-0 1.9.8~dfsg.4 20120529git007cdc37-5 [226kB]
Get:22 http://ftp.us.debian.org wheezy/main libice6 2:1.0.8-2 [59.7kB]
Get:23 http://ftp.us.debian.org wheezy/main libjson0 0.10-1.2 [24.1kB]
Get:24 http://ftp.us.debian.org wheezy/main libsm6 2:1.2.1-2 [33.2kB]
Get:25 http://ftp.us.debian.org wheezy/main libsndfile1 1.0.25-5 [255kB]
Get:26 http://ftp.us.debian.org wheezy/main libx11-xcb1 2:1.5.0-1 deb7u1 [140kB]
Get:27 http://ftp.us.debian.org wheezy/main libxi6 2:1.6.1-1 deb7u1 [75.8kB]
Get:28 http://ftp.us.debian.org wheezy/main libxtst6 2:1.2.1-1 deb7u1 [26.4kB]
Get:29 http://ftp.us.debian.org wheezy/main libpulse0 2.0-6.1 [186kB]
Get:30 http://ftp.us.debian.org wheezy/main libxfixes3 1:5.0-4 deb7u1 [20.5kB]
Get:31 http://ftp.us.debian.org wheezy/main libavdevice53 6:0.8.6-1 [72.4kB]
Get:32 http://ftp.us.debian.org wheezy/main libopencv-core2.3 2.3.1-11 [746kB]
Get:33 http://ftp.us.debian.org wheezy/main libopencv-imgproc2.3 2.3.1-11 [707kB]
Get:34 http://ftp.us.debian.org wheezy/main libswscale2 6:0.8.6-1 [122kB]
Get:35 http://ftp.us.debian.org wheezy/main libavfilter2 6:0.8.6-1 [125kB]
Get:36 http://ftp.us.debian.org wheezy/main libpostproc52 6:0.8.6-1 [96.9kB]
Get:37 http://ftp.us.debian.org wheezy/main ffmpeg 6:0.8.6-1 [137kB]
Get:38 http://ftp.us.debian.org wheezy/main libav-tools 6:0.8.6-1 [355kB]
Get:39 http://ftp.us.debian.org wheezy/main rtmpdump 2.4 20111222.git4e06e21-1 [54.9kB]
Fetched 12.8MB in 5min3s (42.2kB/s)
Extracting templates from packages: 100%
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently
installed.
(Reading database ... 18755 files and directories currently installed.)
Preparing to replace libx11-6 2:1.1.5-2 (using .../libx11-6_2:1.5.0-1 deb7u1_powerpc.deb) ...
Unpacking replacement libx11-6 ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently
installed.
(Reading database ... 18756 files and directories currently installed.)
Removing libxcb-xlib0 ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently
installed.
(Reading database ... 18749 files and directories currently installed.)
Preparing to replace libxcb1 1.1-1.2 (using .../libxcb1_1.8.1-2 deb7u1_powerpc.deb) ...
Unpacking replacement libxcb1 ...
Selecting previously deselected package gcc-4.7-base.
Unpacking gcc-4.7-base (from .../gcc-4.7-base_4.7.2-5_powerpc.deb) ...
Setting up gcc-4.7-base (4.7.2-5) ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently
installed.
(Reading database ... 18758 files and directories currently installed.)
Preparing to replace libstdc 6 4.4.4-1 (using .../libstdc 6_4.7.2-5_powerpc.deb) ...
Unpacking replacement libstdc 6 ...
Setting up libstdc 6 (4.7.2-5) ...
Selecting previously deselected package libasyncns0.
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently
installed.
(Reading database ... 18758 files and directories currently installed.)
Unpacking libasyncns0 (from .../libasyncns0_0.8-4_powerpc.deb) ...
Selecting previously deselected package libavutil51.
Unpacking libavutil51 (from .../libavutil51_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libmp3lame0.
Unpacking libmp3lame0 (from .../libmp3lame0_3.99.5 repack1-3_powerpc.deb) ...
Preparing to replace libtheora0 1.0~beta3-1 (using .../libtheora0_1.1.1 dfsg.1-3.1_powerpc.deb) ...
Unpacking replacement libtheora0 ...
Selecting previously deselected package libva1.
Unpacking libva1 (from .../libva1_1.0.15-4_powerpc.deb) ...
Preparing to replace libvorbis0a 1.2.0.dfsg-3.1 lenny1 (using .../libvorbis0a_1.3.2-1.3_powerpc.deb) ...
Unpacking replacement libvorbis0a ...
Selecting previously deselected package libvpx1.
Unpacking libvpx1 (from .../libvpx1_1.1.0-1_powerpc.deb) ...
Selecting previously deselected package libx264-123.
Unpacking libx264-123 (from .../libx264-123_2:0.123.2189 git35cf912-1_powerpc.deb) ...
Selecting previously deselected package libxvidcore4.
Unpacking libxvidcore4 (from .../libxvidcore4_2:1.3.2-9_powerpc.deb) ...
Selecting previously deselected package libavcodec53.
Unpacking libavcodec53 (from .../libavcodec53_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package librtmp0.
Unpacking librtmp0 (from .../librtmp0_2.4 20111222.git4e06e21-1_powerpc.deb) ...
Selecting previously deselected package libavformat53.
Unpacking libavformat53 (from .../libavformat53_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libcdio13.
Unpacking libcdio13 (from .../libcdio13_0.83-4_powerpc.deb) ...
Selecting previously deselected package libcdio-cdda1.
Unpacking libcdio-cdda1 (from .../libcdio-cdda1_0.83-4_powerpc.deb) ...
Selecting previously deselected package libcdio-paranoia1.
Unpacking libcdio-paranoia1 (from .../libcdio-paranoia1_0.83-4_powerpc.deb) ...
Selecting previously deselected package libsamplerate0.
Unpacking libsamplerate0 (from .../libsamplerate0_0.1.8-5_powerpc.deb) ...
Selecting previously deselected package libjack-jackd2-0.
Unpacking libjack-jackd2-0 (from .../libjack-jackd2-0_1.9.8~dfsg.4 20120529git007cdc37-5_powerpc.deb) ...
Selecting previously deselected package libice6.
Unpacking libice6 (from .../libice6_2:1.0.8-2_powerpc.deb) ...
Selecting previously deselected package libjson0.
Unpacking libjson0 (from .../libjson0_0.10-1.2_powerpc.deb) ...
Selecting previously deselected package libsm6.
Unpacking libsm6 (from .../libsm6_2:1.2.1-2_powerpc.deb) ...
Selecting previously deselected package libsndfile1.
Unpacking libsndfile1 (from .../libsndfile1_1.0.25-5_powerpc.deb) ...
Selecting previously deselected package libx11-xcb1.
Unpacking libx11-xcb1 (from .../libx11-xcb1_2:1.5.0-1 deb7u1_powerpc.deb) ...
Selecting previously deselected package libxi6.
Unpacking libxi6 (from .../libxi6_2:1.6.1-1 deb7u1_powerpc.deb) ...
Selecting previously deselected package libxtst6.
Unpacking libxtst6 (from .../libxtst6_2:1.2.1-1 deb7u1_powerpc.deb) ...
Selecting previously deselected package libpulse0.
Unpacking libpulse0 (from .../libpulse0_2.0-6.1_powerpc.deb) ...
Selecting previously deselected package libxfixes3.
Unpacking libxfixes3 (from .../libxfixes3_1:5.0-4 deb7u1_powerpc.deb) ...
Selecting previously deselected package libavdevice53.
Unpacking libavdevice53 (from .../libavdevice53_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libopencv-core2.3.
Unpacking libopencv-core2.3 (from .../libopencv-core2.3_2.3.1-11_powerpc.deb) ...
Selecting previously deselected package libopencv-imgproc2.3.
Unpacking libopencv-imgproc2.3 (from .../libopencv-imgproc2.3_2.3.1-11_powerpc.deb) ...
Selecting previously deselected package libswscale2.
Unpacking libswscale2 (from .../libswscale2_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libavfilter2.
Unpacking libavfilter2 (from .../libavfilter2_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libpostproc52.
Unpacking libpostproc52 (from .../libpostproc52_6:0.8.6-1_powerpc.deb) ...
Preparing to replace ffmpeg 4:0.5.1-3 (using .../ffmpeg_6:0.8.6-1_powerpc.deb) ...
Unpacking replacement ffmpeg ...
Selecting previously deselected package libav-tools.
Unpacking libav-tools (from .../libav-tools_6:0.8.6-1_powerpc.deb) ...
Selecting previously deselected package rtmpdump.
Unpacking rtmpdump (from .../rtmpdump_2.4 20111222.git4e06e21-1_powerpc.deb) ...
Processing triggers for man-db ...
Setting up libxcb1 (1.8.1-2 deb7u1) ...
Setting up libx11-6 (2:1.5.0-1 deb7u1) ...
Setting up libasyncns0 (0.8-4) ...
Setting up libavutil51 (6:0.8.6-1) ...
Setting up libmp3lame0 (3.99.5 repack1-3) ...
Setting up libtheora0 (1.1.1 dfsg.1-3.1) ...
Setting up libva1 (1.0.15-4) ...
Setting up libvorbis0a (1.3.2-1.3) ...
Setting up libvpx1 (1.1.0-1) ...
Setting up libx264-123 (2:0.123.2189 git35cf912-1) ...
Setting up libxvidcore4 (2:1.3.2-9) ...
Setting up libavcodec53 (6:0.8.6-1) ...
Setting up librtmp0 (2.4 20111222.git4e06e21-1) ...
Setting up libavformat53 (6:0.8.6-1) ...
Setting up libcdio13 (0.83-4) ...
Setting up libcdio-cdda1 (0.83-4) ...
Setting up libcdio-paranoia1 (0.83-4) ...
Setting up libsamplerate0 (0.1.8-5) ...
Setting up libjack-jackd2-0 (1.9.8~dfsg.4 20120529git007cdc37-5) ...
Setting up libice6 (2:1.0.8-2) ...
Setting up libjson0 (0.10-1.2) ...
Setting up libsm6 (2:1.2.1-2) ...
Setting up libsndfile1 (1.0.25-5) ...
Setting up libx11-xcb1 (2:1.5.0-1 deb7u1) ...
Setting up libxi6 (2:1.6.1-1 deb7u1) ...
Setting up libxtst6 (2:1.2.1-1 deb7u1) ...
Setting up libpulse0 (2.0-6.1) ...
Setting up libxfixes3 (1:5.0-4 deb7u1) ...
Setting up libavdevice53 (6:0.8.6-1) ...
Setting up libopencv-core2.3 (2.3.1-11) ...
Setting up libopencv-imgproc2.3 (2.3.1-11) ...
Setting up libswscale2 (6:0.8.6-1) ...
Setting up libavfilter2 (6:0.8.6-1) ...
Setting up libpostproc52 (6:0.8.6-1) ...
Setting up libav-tools (6:0.8.6-1) ...
Setting up ffmpeg (6:0.8.6-1) ...
Setting up rtmpdump (2.4 20111222.git4e06e21-1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Current status: 302 updates [-6].
MyBookLive:~#
윗부분이 좀 짤렸는데, 밑에 부분에 Setting up rtmpdump 부분이 나오면 성공한 것입니다.
ffmpeg도 추가하여 관련 부분도 나와야 합니다.
3. 폴더 설정 및 EBS 녹음 스크립트 작성하기
EBS 녹음파일도 다른 계정이 접속할 수 없는 곳에 저장할 것입니다.
admin 계정의 FTP 폴더 확장하기를 먼저하셔야 진행 가능합니다. (http://www.wsgvet.com/bbs/board.php?bo_table=iomega&wr_id=166)
cd /DataVolume
위 명령어로 폴더를 이동합니다.
mkdir /DataVolume/EBSradio
위 명령어로 폴더를 만듭니다.
chmod 777 /DataVolume/EBSradio
위 명령어로 권한을 777로 줍니다.
nano /DataVolume/EBSradio/ebs_record.sh
위 명령어를 치면 빈 화면이 나오는데 거기에 밑의 내용을 그대로 붙여넣습니다.
#!/bin/bash
RADIO_ADDR="rtmp://ebsandroid.ebs.co.kr:1935/fmradiofamilypc/familypc1m"
RADIO_NAME="ebs_radio"
PROGRAM_NAME=$1
RECORD_MINS=$(($2 * 60))
DEST_DIR=$3
REC_DATE=`date +%Y%m%d-%H%M`
TEMP_FLV=/DataVolume/EBSradio/`date +%Y%m%d-%H%M`
M4A_FILE_NAME=$PROGRAM_NAME"_"$REC_DATE.m4a
rtmpdump -r $RADIO_ADDR -B $RECORD_MINS -o $TEMP_FLV > /dev/null 2>&1
ffmpeg -i $TEMP_FLV -vn -acodec copy $M4A_FILE_NAME > /dev/null 2>&1
rm $TEMP_FLV
mkdir -p $DEST_DIR
mv $M4A_FILE_NAME $DEST_DIR
chmod -R 777 $DEST_DIR
저장은 컨트롤 + O, 엔터, 컨트롤 + X 하면 됩니다.
chmod 755 /DataVolume/EBSradio/ebs_record.sh
위 명령어로 해당스크립트의 권한을 755로 줍니다.
이제 설정은 끝났습니다.
4. 테스트 해보기
/DataVolume/EBSradio/ebs_record.sh file_name 1 /DataVolume/EBSradio/data
위 명령어를 내리면 지금부터 1분간 file_name이라는 파일이름으로 data 폴더에 저장합니다.
MyBookLive:~# /DataVolume/EBSradio/ebs_record.sh file_name 1 /DataVolume/EBSradio/data
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
For duration: 60.000 sec
INFO: Metadata:
INFO: width 480.00
INFO: height 360.00
INFO: framerate 30.00
INFO: videodatarate 500.00
INFO: videocodecid avc1
INFO: audiodatarate 64.00
INFO: audiocodecid mp4a
4169.235 kB / 60.00 sec
Download complete
MyBookLive:~#
위와 같이 나오면 파일이 잘 생성이 된 것입니다.
파일 이름은 처음에 지정한 파일이름에 시작한 시간이 뒤에 붙습니다.
이제 파일질라로 admin 계정으로 들어가보면
위와 같이 파일이 잘 들어있음을 볼 수 있습니다.
5. 자동 녹음 스케쥴 입력하기
이제 시간별로 자동으로 녹음이 되게 설정할 것입니다.
우선 EBS 편성표부터 봅시다.
위처럼 월화수목금토가 스케쥴이 같은 것을 알 수 있습니다.
새벽에 중국어 같은 것도 있는데, 필요한 만큼 수정해서 쓰시면 됩니다.
crontab -e
위 명령어로 스케쥴을 설정화면에 들어갑니다.
# m h dom mon dow command
분, 시, 일, 월, 요일 실행할명령
위와 같이 규칙이 정해집니다.
간단하게 3개만 예를 들어드립니다.
월요일~토요일 매일 오전 05:50~06:00 에 진행하는 포켓 잉글리시를 녹음 하시려면
50 05 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Pocket_English 10 /DataVolume/EBSradio/data
월요일~토요일 매일 오전 06:00~06:20 에 진행하는 김대균 토익킹을 녹음 하시려면
00 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh KDG_Toeicking 20 /DataVolume/EBSradio/data
월요일~토요일 매일 오전 06:20~06:40 에 진행하는 Easy Writing을 녹음 하시려면
20 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Easy_Writing 20 /DataVolume/EBSradio/data
이런 식으로 적으면 됩니다.
대충 규칙을 아시겠죠?
분, 시, 일, 월, 요일 실행할명령어 저장될파일이름 녹음을원하는시간 저장할곳
위와 같이 규칙이 정해집니다.
위의 내용을 다 원한다면
# m h dom mon dow command
50 05 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Pocket_English 10 /DataVolume/EBSradio/data
00 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh KDG_Toeicking 20 /DataVolume/EBSradio/data
20 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Easy_Writing 20 /DataVolume/EBSradio/data
위와 같이 됩니다.
필요한만큼 넣고 컨트롤 O, 엔터, 컨트롤 X 하면 저장이 되고, 자동으로 녹음을 하게 됩니다.
혹시 각 프로그램마다 저장되는 폴더를 변경하시려면 제일 오른쪽 부분만 바꾸면, 알아서 폴더를 생성 후 받아집니다.
crontab -e
위 명령어를 넣고
# m h dom mon dow command
50 05 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Pocket_English 10 /DataVolume/EBSradio/Pocket_English
00 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh KDG_Toeicking 20 /DataVolume/EBSradio/KDG_Toeicking
20 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Easy_Writing 20 /DataVolume/EBSradio/Easy_Writing
위처럼 넣고 저장하면 해당하는 폴더로 들어갑니다.
다른 프로그램도 같은 방식으로 저장하면 잘 들어갑니다.
영어 공부 이제 원하는 시간에 공부하세요 ^^
관련링크에 참조한 사이트를 넣어뒀습니다.
※ 보물섬참다래님의 피드백으로 MP3 -> M4A 형식으로 수정하고, 임시폴더의 위치를 HDD 내로 지정하여 용량 제한을 없앴습니다.
테스트는 15분 정도 해봤는데 별 문제는 없습니다.
※ 현재 10분이 넘어가면 녹음이 짤리는 버그가 있습니다.
그래서 임시 해결방법으로 10분씩 끊어서 cron 등록하시길 바랍니다.
예를 들어
20 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Easy_Writing 20 /DataVolume/EBSradio/Easy_Writing
위 같은 경우 20분이기 때문에 10분씩 끊으면
20 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Easy_Writing 10 /DataVolume/EBSradio/Easy_Writing
30 06 * * 1-6 /DataVolume/EBSradio/ebs_record.sh Easy_Writing 10 /DataVolume/EBSradio/Easy_Writing
이렇게 하면 됩니다.
듣기는 좀 어려워도 녹음은 확실히 되니... 이렇게 쓰시면 되겠습니다.
※ 2014/01/10 10분 버그에 대한 피드백이 나와서 추가합니다.
http://www.ppomppu.co.kr/zboard/view.php?id=nas&no=458
위 링크에 있듯이
rtmpdump -r $RADIO_ADDR -B $RECORD_MINS -o $TEMP_FLV > /dev/null 2>&1
해당 부분 수정한 상태입니다. 한번 도전해보세요!
※ 2014/06/03 EBS 주소가 바껴서 수정했습니다!
-
등록일 2016.01.23
-
등록일 2015.12.23WD My Cloud 시놀로지OS 사용기댓글 102
-
등록일 2014.10.07
-
등록일 2014.10.06
관련자료
-
서명우성짱의 NAS를 운영하고 있습니다.
저의 즐거움이 여러분의 즐거움이면 좋겠습니다.
-
링크
구름님의 댓글
MyBookLive:~# apt-get install rtmpdump libav-tools ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
rtmpdump is already the newest version.
E: Couldn't find package libav-tools
이렇게 나오고 진행이 되질않습니다. 무엇이 문제인가요?
구름님의 댓글
#을 없었더니 제대로 설치가 되네요^^
그런데 1분 시험다운해보는게 않되더라구요
시간예약으로 20분 다운 해보니 그것도 되질않아요
다운받아진 파일 0바이트파일로 이름만 있고 내용은 없어서
처음부터 천천히 다시해보려고 apt-get update하니
MyBookLive:~# apt-get update
Hit http://ftp.us.debian.org squeeze Release.gpg
Get:1 http://ftp.us.debian.org wheezy Release.gpg [1672B]
Hit http://ftp.us.debian.org squeeze Release
Hit http://ftp.us.debian.org wheezy Release
Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex
Get:2 http://ftp.us.debian.org wheezy Release [168kB]
Ign http://ftp.us.debian.org wheezy Release
Hit http://ftp.us.debian.org squeeze/main Packages
Ign http://ftp.us.debian.org wheezy/main Packages/DiffIndex
Hit http://ftp.us.debian.org wheezy/main Packages
Fetched 170kB in 4s (35.6kB/s)
Reading package lists... Done
W: GPG error: http://ftp.us.debian.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 6FB2A1C265FFB764
W: You may want to run apt-get update to correct these problems
이렇게 나오는데 뭔말인지 정말 모르겠습니다.
어디서 잘못된걸까요?