Skip to content

ffmpeg 설치 및 활용

조회 수 35568 추천 수 0 2012.02.07 17:49:02

ffmpeg 설치방법 :

 

ffmpeg.org 에서

ffmpeg-checkout-snapshot.tar.bz2 다운받아

tar -xvjf ffmpeg-checkout-snapshot.tar.bz2 압축풀고

cd ffmpeg ~

./configure

make && make install

 

사용법 :

$tmp_file= $_FILES['files']['tmp_name'];
$filename = $_FILES['files']['name'];
$size = $_FILES['files']['size'];
$ym = date("ymd_his", $g4[server_time]);

$botable_path=$g4['path'] . "/data/file/$bo_table";
$upload_path=$g4['path'] . "/data/file/$bo_table/move";

$dest_file= $upload_path."/".$ym.".flv";
$encode = "/usr/local/bin/ffmpeg -i ".$tmp_file." -vol 10 -ar 44100 -ab 64 -vcodec flv -f flv -s 320*240 .$dest_file;
exec($encode); //파일 업로드

$picatr=$ym.".png";
$encode = "/usr/local/bin/ffmpeg -i ".$dest_file." -vframes 10 -ss 1 -an -vcodec png -f rawvideo -s 160*120 ".$upload_path."/".$picatr;
exec($encode); //파일 이미지 얻기

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/77050/13f/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
27 CentOS 5.6 + NginX 0.8.54 + Django 1.3 (FastCGI) + Pyt... ADMINPLAY 2014-03-28 6226
26 gcc Library 경로 지정 ADMINPLAY 2014-04-07 6072
25 Linux Command 로 Mysql table drop 방법 ADMINPLAY 2014-04-07 5774
24 CentOS 자동로그인 설정 ADMINPLAY 2014-04-14 8897
23 CentOS Linux Remote Desktop 에서 로그인 화면보기 ADMINPLAY 2014-04-14 7874
22 SCM - 캐시 서버 구축 (Squid in Linux) ADMINPLAY 2014-04-27 8311
21 SSL 패스워드 삭제 하기 ADMINPLAY 2014-04-27 5443
20 vi 이미 읽은 파일의 인코딩 변경하기 ( euc-kr 로 encodi... ADMINPLAY 2014-05-31 6999
19 How to Enable EPEL Repository for RHEL/CentOS 6/5 ADMINPLAY 2014-06-13 9611
18 [Linux] Proxy 서버 설정하기 ADMINPLAY 2014-06-17 17205
17 Zabbix 웹서비스 모니터링 ADMINPLAY 2014-07-07 8347
16 Hamlet 은 “웹서버 모니터링 오픈소스 솔루션” 입니다. ADMINPLAY 2014-07-07 6790
15 cacti plugin thold 설치 ADMINPLAY 2014-07-07 8170
14 원격데스크톱(RDP) 클라이언트 접속기록(Log) 삭제하기 file ADMINPLAY 2014-07-14 7710
13 [우분투] 노하드 서버 설정하기 ADMINPLAY 2014-08-05 20247
12 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 51464
11 [CentOS] sshfs - 리눅스 윈도우간 데이터 전송을 편리하게 file ADMINPLAY 2014-09-21 9509
10 Install 3ware (LSI) 9690SA SCSI RAID Controller VIB On... file ADMINPLAY 2014-10-09 7092
9 [맥] 커맨드 라인에서 CD/DVD 꺼내기 ADMINPLAY 2014-10-14 7151
8 [linux][명령어 백그라운드 실행] ADMINPLAY 2015-05-20 14831

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234