Skip to content

ffmpeg 설치 및 활용

조회 수 35511 추천 수 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/fd6/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
347 SSL 패스워드 삭제 하기 ADMINPLAY 2014-04-27 5374
346 SCM - 캐시 서버 구축 (Squid in Linux) ADMINPLAY 2014-04-27 8256
345 CentOS Linux Remote Desktop 에서 로그인 화면보기 ADMINPLAY 2014-04-14 7827
344 CentOS 자동로그인 설정 ADMINPLAY 2014-04-14 8850
343 Linux Command 로 Mysql table drop 방법 ADMINPLAY 2014-04-07 5719
342 gcc Library 경로 지정 ADMINPLAY 2014-04-07 6033
341 CentOS 5.6 + NginX 0.8.54 + Django 1.3 (FastCGI) + Pyt... ADMINPLAY 2014-03-28 6187
340 CentOS 6.5 + Python2.7 + MySQL_Python-1.2.3 ADMINPLAY 2014-03-28 7967
339 python과 mysql 연동시 libmysqlclient_r.so.* 에러가 날 ... ADMINPLAY 2014-03-27 5543
338 python mysql connector 설치 및 SQLAachemy 연동 ADMINPLAY 2014-03-27 7896
337 SVN 클라이언트 명령어 ADMINPLAY 2014-03-18 7452
336 CentOS 6.X GUI 로그인 화면에서 로그인 했던 계정 리스트... ADMINPLAY 2014-03-05 16672
335 OS X 매버릭스가 NAS, 윈도우 PC 등 SMB 장비에 연결하지 ... ADMINPLAY 2014-03-04 6756
334 OS X 10.9 매버릭스의 기본 파일공유 프로토콜은 AFP가 아... ADMINPLAY 2014-03-04 11060
333 telnet 과 ssh 의 차이점 ADMINPLAY 2014-03-01 6478
332 vimrc 설정 file ADMINPLAY 2014-03-01 6110
331 Linux 마우스 휠 방향 바꾸기 (mac 처럼 마우스 휠 바꾸기) ADMINPLAY 2014-02-27 11864
330 디스크 UUID 변경후 하드부팅정보 수정하기 ADMINPLAY 2014-02-26 21028
329 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648247
328 Strace - 시스템콜과 신호 추적 file ADMINPLAY 2014-02-25 6053

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234