鱼虾蟹游戏下载

?

E啟學網校系統解決本地切片的問題的步驟詳解

2019-07-17

一、服務器安裝ffmpeg必須安裝x264解碼安裝檢測  ffmpeg -v,具體的步驟如下


鱼虾蟹游戏下载 FFmpegSHIYITAOKEYIYONGLAIJILU、ZHUANHUANSHUZIYINPIN、SHIPIN,BINGNENGJIANGQIZHUANHUAWEILIUDEKAIYUANJISUANJICHENGXU。CAIYONGLGPLHUOGPLXUKEZHENG。TATIGONGLELUZHI、ZHUANHUANYIJILIUHUAYINSHIPINDEWANZHENGJIEJUEFANGAN。XIAMIANJILUZAI 7.5XIAFFmpegANZHUANG、JIANDANSHIYONGDEZONGJIE,XIWANGDUIDAJIAYOUSUOBANGZHU。

鱼虾蟹游戏下载 FFmpeg HUANSHIFEICHANGHAOYONGDE,JIANDANYIDIANDEKEYIJINXINGSHIPINDECAIJIANYUYASUO。GAOJIXIEDEHUANKEYIHEBINGSHIPINDENG。

1、Linux系統

CentOS 7.5

2、安裝

ANZHUANGEPEL Release,YINWEIANZHUANGXUYAOSHIYONGQITADErepoYUAN,SUOYIXUYAOEPELZHICHI

[linuxidc@localhost www.linuxidc.com]$ sudo yum install -y epel-release rpm

CentOS 7.5下FFmpeg安裝、簡單使用總結

[linuxidc@localhost www.linuxidc.com]$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 //如果出現缺少Code提示,就執行此條命令
[linuxidc@localhost www.linuxidc.com]$ yum repolist //安裝完成之后,可以查看是否安裝成功

CentOS 7.5下FFmpeg安裝、簡單使用總結

安裝Nux-Dextop源

[linuxidc@localhost www.linuxidc.com]$ sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro //導入一個Code
[linuxidc@localhost www.linuxidc.com]$ sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm //安裝nux-dextop 源
[linuxidc@localhost www.linuxidc.com]$ sudo yum repolist鱼虾蟹游戏下载 #查看repo源是否安裝成功

CentOS 7.5下FFmpeg安裝、簡單使用總結

安裝ffmpeg

[linuxidc@localhost www.linuxidc.com]$ sudo yum install -y ffmpeg

CentOS 7.5下FFmpeg安裝、簡單使用總結

[linuxidc@localhost www.linuxidc.com]$ ffmpeg -version
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 ( 4.8.5-28)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil      54. 31.100 / 54. 31.100
libavcodec    56. 60.100 / 56. 60.100
libavformat    56. 40.101 / 56. 40.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter    5. 40.101 /  5. 40.101
libavresample  2.  1.  0 /  2.  1.  0
libswscale      3.  1.101 /  3.  1.101
libswresample  1.  2.101 /  1.  2.101
libpostproc    53.  3.100 / 53.  3.100

CentOS 7.5下FFmpeg安裝、簡單使用總結

3、應用

格式轉換

BAaviGESHIZHUANHUANWEImp4GESHI,SHURUYASUODECHICUN,SHIYONGh264JINXINGYASUO。

ffmpeg –i linuxidc.mp4 –vcodec h264 –s 1280*720 -acodec copy –f mp4 linuxidc.com.mp4

ZHUANHUANJIEGUO

JIANGYIZHANGjpgTUPIANZHUANWEIMP4GESHISHIPIN

[linuxidc@localhost www.linuxidc.com]$ ffmpeg -r 25 -loop 1 -i linuxidc.jpg -pix_fmt yuv420p -vcodec libx264 -b:v 600k -r:v 25 -preset medium -crf 30 -s 1024x768 -vframes 250 -r 25 -t 10 ~/linuxidc.com.mp4

CentOS 7.5下FFmpeg安裝、簡單使用總結

CentOS 7.5下FFmpeg安裝、簡單使用總結

【FFmpeg】FFmpeg常用基本命令

1.FENLISHIPINYINPINLIU

鱼虾蟹游戏下载 ffmpeg -i linuxidc_file -vcodec copy -an linuxdc_file_video  //FENLISHIPINLIU

鱼虾蟹游戏下载 ffmpeg -i linuxidc_file -acodec copy -vn linuxdc_file_audio  //FENLIYINPINLIU

2.SHIPINJIEFUYONG

ffmpeg –i linuxidc.mp4 –vcodec copy –an –f m4v linuxidc.264

鱼虾蟹游戏下载 ffmpeg –i linuxidc.avi –vcodec copy –an –f m4v linuxidc.264

鱼虾蟹游戏下载 3.SHIPINZHUANMA

ffmpeg –i linuxidc.mp4 –vcodec h264 –s 352*278 –an –f m4v linuxidc.264              //ZHUANMAWEIMALIUYUANSHIWENJIAN

ffmpeg –i linuxidc.mp4 –vcodec h264 –bf 0 –g 25 –s 352*278 –an –f m4v linuxidc.264  //ZHUANMAWEIMALIUYUANSHIWENJIAN

ffmpeg –i linuxidc.avi -vcodec mpeg4 –vtag xvid –qsame linuxidc_xvid.avi            //ZHUANMAWEIFENGZHUANGWENJIAN

鱼虾蟹游戏下载 //-bf BZHENSHUMUKONGZHI,-g GUANJIANZHENJIANGEKONGZHI,-s FENBIANLVKONGZHI

4.SHIPINFENGZHUANG

ffmpeg –i video_file –i audio_file –vcodec copy –acodec copy linuxdc_file

5.SHIPINJIANQIE

鱼虾蟹游戏下载 ffmpeg –i linuxidc.avi –r 1 –f image2 image-%3d.jpeg        //TIQUTUPIAN

ffmpeg -ss 0:1:30 -t 0:0:20 -i linuxidc.avi -vcodec copy -acodec copy linuxdc.avi    //JIANQIESHIPIN

鱼虾蟹游戏下载 //-r TIQUTUXIANGDEPINLV,-ss KAISHISHIJIAN,-t CHIXUSHIJIAN

6.SHIPINLUZHI

ffmpeg –i rtsp://192.168.3.205:5555/linuxidc –vcodec copy linuxdc.avi

鱼虾蟹游戏下载 7.YUVXULIEBOFANG

ffplay -f rawvideo -video_size 1920x1080 linuxidc.yuv

鱼虾蟹游戏下载 8.YUVXULIEZHUANAVI

鱼虾蟹游戏下载 ffmpeg –s w*h –pix_fmt yuv420p –i linuxidc.yuv –vcodec mpeg4 linuxdc.avi

CHANGYONGCANSHUSHUOMING:

ZHUYAOCANSHU: -i SHEDINGSHURULIU -f SHEDINGSHUCHUGESHI -ss KAISHISHIJIAN SHIPINCANSHU: -b SHEDINGSHIPINLIULIANG,MORENWEI200Kbit/s -r SHEDINGZHENSULV,MORENWEI25 -s SHEDINGHUAMIANDEKUANYUGAO -aspect SHEDINGHUAMIANDEBILI -vn BUCHULISHIPIN -vcodec SHEDINGSHIPINBIANJIEMAQI,WEISHEDINGSHIZESHIYONGYUSHURULIUXIANGTONGDEBIANJIEMAQI YINPINCANSHU: -ar SHEDINGCAIYANGLV -ac SHEDINGSHENGYINDEChannelSHU -acodec SHEDINGSHENGYINBIANJIEMAQI,WEISHEDINGSHIZESHIYONGYUSHURULIUXIANGTONGDEBIANJIEMAQI -an BUCHULIYINPIN

------------------------------------------------------------------------

0.YASUOZHUANMAmp4WENJIAN

鱼虾蟹游戏下载 ffmpeg -i linuxidc.avi -s 640x480 linuxdc.avi

ffmpeg -i linuxidc.avi -strict -2 -s vga linuxdc.avi

1、JIANGWENJIANDANGZUOZHIBOSONGZHIlive

ffmpeg -re -i localFile.mp4 -c copy -f flv rtmp://server/live/streamName

鱼虾蟹游戏下载 2、JIANGZHIBOMEITIBAOCUNZHIBENDIWENJIAN

ffmpeg -i rtmp://server/live/streamName -c copy linuxidc.flv

3、JIANGQIZHONGYIGEZHIBOLIU,SHIPINGAIYONGh264YASUO,YINPINBUBIAN,SONGZHILINGWAIYIGEZHIBOFUWULIU

ffmpeg -i rtmp://server/live/originalStream -c:a copy -c:v libx264 -vpre slow -f flv rtmp://server/live/h264Stream

4、JIANGQIZHONGYIGEZHIBOLIU,SHIPINGAIYONGh264YASUO,YINPINGAIYONGfaacYASUO,SONGZHILINGWAIYIGEZHIBOFUWULIU

ffmpeg -i rtmp://server/live/originalStream -c:a libfaac -ar 44100 -ab 48k -c:v libx264 -vpre slow -vpre baseline -f flv rtmp://server/live/h264Stream

5、JIANGQIZHONGYIGEZHIBOLIU,SHIPINBUBIAN,YINPINGAIYONGfaacYASUO,SONGZHILINGWAIYIGEZHIBOFUWULIU

ffmpeg -i rtmp://server/live/originalStream -acodec libfaac -ar 44100 -ab 48k -vcodec copy -f flv rtmp://server/live/h264_AAC_Stream

6、JIANGYIGEGAOQINGLIU,FUZHIWEIJIGEBUTONGSHIPINQINGXIDUDELIUZHONGXINFABU,QIZHONGYINPINBUBIAN

ffmpeg -re -i rtmp://server/live/high_FMLE_stream -acodec copy -vcodec x264lib -s 640×360 -b 500k -vpre medium -vpre baseline rtmp://server/live/baseline_500k -acodec copy -vcodec x264lib -s 480×272 -b 300k -vpre medium -vpre baseline rtmp://server/live/baseline_300k -acodec copy -vcodec x264lib -s 320×200 -b 150k -vpre medium -vpre baseline rtmp://server/live/baseline_150k -acodec libfaac -vn -ab 48k rtmp://server/live/audio_only_AAC_48k

7、GONGNENGYIYANG,ZHISHICAIYONG-x264optsXUANXIANG

ffmpeg -re -i rtmp://server/live/high_FMLE_stream -c:a copy -c:v x264lib -s 640×360 -x264opts bitrate=500:profile=baseline:preset=slow rtmp://server/live/baseline_500k -c:a copy -c:v x264lib -s 480×272 -x264opts bitrate=300:profile=baseline:preset=slow rtmp://server/live/baseline_300k -c:a copy -c:v x264lib -s 320×200 -x264opts bitrate=150:profile=baseline:preset=slow rtmp://server/live/baseline_150k -c:a libfaac -vn -b:a 48k rtmp://server/live/audio_only_AAC_48k

8、JIANGDANGQIANSHEXIANGTOUJIYINPINTONGGUODSSHOWCAIJI,SHIPINh264、YINPINfaacYASUOHOUFABU

ffmpeg -r 25 -f dshow -s 640×480 -i video=”video source name”:audio=”audio source name” -vcodec libx264 -b 600k -vpre slow -acodec libfaac -ab 128k -f flv rtmp://server/application/stream_name

鱼虾蟹游戏下载 9、JIANGYIGEJPGTUPIANJINGGUOh264YASUOXUNHUANSHUCHUWEImp4SHIPIN

ffmpeg.exe -i linuxidc.jpg -an -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -subq 10 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -flags2 +dct8x8 -trellis 2 -partitions +parti8x8+parti4x4 -crf 24 -threads 0 -r 25 -g 25 -y linuxdc.mp4

鱼虾蟹游戏下载 10、JIANGPUTONGLIUSHIPINGAIYONGh264YASUO,YINPINBUBIAN,SONGZHIGAOQINGLIUFUWU(XINBANBENFMS live=1)

ffmpeg -i rtmp://server/live/originalStream -c:a copy -c:v libx264 -vpre slow -f flv “rtmp://server/live/h264Stream live=1〃

鱼虾蟹游戏下载 ------------------------------------------------------------------------

1.CAIJIusbSHEXIANGTOUSHIPINMINGLING:

ffmpeg -t 20 -f vfwcap -i 0 -r 8 -f mp4 linuxidc.mp4

鱼虾蟹游戏下载 ./ffmpeg -t 10 -f vfwcap -i 0 -r 8 -f mp4 linuxidc.mp4

鱼虾蟹游戏下载 JUTISHUOMINGRUXIA:WOMENCAIJI10MIAO,CAIJISHEBEIWEIvfwcapLEIXINGSHEBEI,DI0GEvfwcapCAIJISHEBEI(RUGUOXITONGYOUDUOGEvfwDESHIPINCAIJISHEBEI,KEYITONGGUO-i numLAIXUANZE),MEIMIAO8ZHEN,SHUCHUFANGSHIWEIWENJIAN,GESHIWEImp4。

鱼虾蟹游戏下载 2.ZUIJIANDANDEZHUAPING:

鱼虾蟹游戏下载 ffmpeg -f gdigrab -i desktop out.mpg

3.CONGPINGMUDE(10,20)DIANCHUKAISHI,ZHUAQU640x480DEPINGMU,SHEDINGZHENLVWEI5 :

鱼虾蟹游戏下载 ffmpeg -f gdigrab -framerate 5 -offset_x 10 -offset_y 20 -video_size 640x480 -i desktop out.mpg

4.ffmpegCONGSHIPINZHONGSHENGCHENGgifTUPIAN:

鱼虾蟹游戏下载 ffmpeg -i linuxidc.mp4 -t 10 -s 320x240 -pix_fmt rgb24 linuxidc.gif


二、 根目錄執行  php -v 執行不了 請添加命令進環境變量

三、進入項目根目錄  執行 sh crond.sh (如操作系統ubuntu  直接   crond.sh )  開啟偵聽 ps  a  查看有沒php  ..... listen 進程



如需要了解更多 網校系統切片問題可以聯系我們的客服  QQ 740367106

上海快3 上海快3 大河彩票APP 幸运赛车官网 广东11选5 七星彩票网 广东11选5 广东11选5