跳转到帖子
在APP中访问

A better way to browse. Learn more.

乾坤堂社区

主屏幕上的APP,包含推送通知、徽章等。

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • 网站管理

1.应用场景:

FFmpeg简介:(简而言之一句话底层处理音视频流的框架
FFmpeg是一个开源免费跨平台的视频和音频流方案,
属于自由软件,采用LGPL或GPL许可证(依据你选择的组件)。
它提供了录制、转换以及流化音视频的完整解决方案。
它包含了非常先进的音频/视频编解码库libavcodec,
为了保证高可移植性和编解码质量,
libavcodec里很多codec都是从头开发的。

2.准备软件:ffmpeg-4.1.tar.gz、yasm-1.3.0.tar.gz

使用yum安装编译工具 gcc cc cl
yum -y install gcc cc cl
1.安装ffmpeg时需要提前安装yasm插件
1)下载
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
2)解压
tar -xvf yasm-1.3.0.tar.gz
3)进入解压后的文件夹路径下,执行安装
cd yasm-1.3.0/
./configure && make && make install

3.安装FFmpeg

1)下载
wget http://www.ffmpeg.org/releases/ffmpeg-4.1.tar.gz
2)解压
tar -xvf ffmpeg-4.1.tar.gz
3)进入解压后的文件夹路径下,执行安装
cd ffmpeg-4.1/
./configure && make && make install
耗时相对长些...耐心等待ING...~~~

4.查看安装结果

ffmpeg -version
出现如下类似结果,则安装OK
ffmpeg version 4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
configuration: 
libavutil      55. 78.100 / 55. 78.100
libavcodec     57.107.100 / 57.107.100
libavformat    57. 83.100 / 57. 83.100
libavdevice    57. 10.100 / 57. 10.100
libavfilter     6.107.100 /  6.107.100
libswscale      4.  8.100 /  4.  8.100
libswresample   2.  9.100 /  2.  9.100

5.FFmpeg常见命令...(可长篇大论...相当之多...)

ffmpeg -i test.avi test.flv(将avi格式转换为flv格式)
ffmpeg -i test.avi -i testNext.mp3 -vcodec copy -acodec copy composed.avi (将视频test.avi 与 音频testNext.mp3合并成composed.avi)
-i 表示输入文件 
-vcodec copy 表示 force video codec (‘copy’ to copy stream) 视频拷贝 
-acodec copy 音频拷贝
-an:表示 disable audio 估计是audio no 之类的缩写,表示去掉video.avi 原有的音频
ffmpeg -i "concat:test1.mp3|test2.mp3|test3.mp3" -c copy outputComposed.mp3 (合成音频,test1的尾+test2的

成长就是不断打破并重建三观

  • 查看数 108
  • 已创建
  • 最后回复

创建帐户或登录后发表意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.