ffmpeg

FFMPEG: seeking using a txt file

橙三吉。 提交于 2020-12-08 00:33:28
问题 I have 40 videos that I need to trim, so they would start at the 6th second and then combine them into a single video. I also have a list_of_movies.txt that contains the name of all the files I need to trim. This is my problem: When concatenating the videos to a single file, ffmpeg accepts: ffmpeg -f concat -i list_of_movies.txt -c copy output.mp4 but when trimming, it would not accept: ffmpeg -ss 00:00:06 -i list_of_movies.txt trimmed .mp4 What am I doing wrong? 回答1: If you want to trim each

FFMPEG: seeking using a txt file

我是研究僧i 提交于 2020-12-08 00:28:54
问题 I have 40 videos that I need to trim, so they would start at the 6th second and then combine them into a single video. I also have a list_of_movies.txt that contains the name of all the files I need to trim. This is my problem: When concatenating the videos to a single file, ffmpeg accepts: ffmpeg -f concat -i list_of_movies.txt -c copy output.mp4 but when trimming, it would not accept: ffmpeg -ss 00:00:06 -i list_of_movies.txt trimmed .mp4 What am I doing wrong? 回答1: If you want to trim each

FFmpeg - pts and dts not increasing properly for video, but does for audio

不羁的心 提交于 2020-12-07 17:47:11
问题 I am trying to take two videos and put them together into one video. However, when I run my code, I get this error when decoding/encoding the second video: Application provided invalid, non monotonically increasing dts to muxer in stream 0 When the code finishes, the first video is completely fine, but the second video is not. The best result that I have been able to produce is where the second half of the second video comes right after the first video. The funny thing is, the audio is

FFmpeg - pts and dts not increasing properly for video, but does for audio

坚强是说给别人听的谎言 提交于 2020-12-07 17:44:03
问题 I am trying to take two videos and put them together into one video. However, when I run my code, I get this error when decoding/encoding the second video: Application provided invalid, non monotonically increasing dts to muxer in stream 0 When the code finishes, the first video is completely fine, but the second video is not. The best result that I have been able to produce is where the second half of the second video comes right after the first video. The funny thing is, the audio is

Showing in-video visual progress bar with FFMPEG?

别等时光非礼了梦想. 提交于 2020-12-07 10:37:38
问题 As OBS Studio lacks a visual indicator to show how far a video has progressed (and when you need to advance to the next scene), I was wondering if there is a command-line option (or solution) to get FFMPEG to re-encode the video and show a progress bar at the bottom of the video that shows how long the video has been playing so far. Is there such a feature? 回答1: Here's a simple 3 second example using an animated overlay: ffmpeg -i input.mp4 -filter_complex "color=c=red:s=1280x10[bar];[0][bar

Showing in-video visual progress bar with FFMPEG?

戏子无情 提交于 2020-12-07 10:33:42
问题 As OBS Studio lacks a visual indicator to show how far a video has progressed (and when you need to advance to the next scene), I was wondering if there is a command-line option (or solution) to get FFMPEG to re-encode the video and show a progress bar at the bottom of the video that shows how long the video has been playing so far. Is there such a feature? 回答1: Here's a simple 3 second example using an animated overlay: ffmpeg -i input.mp4 -filter_complex "color=c=red:s=1280x10[bar];[0][bar

人工智能之语音合成,语音识别

落爺英雄遲暮 提交于 2020-12-07 02:44:55
人工智能 此篇是人工智能应用的重点,只用现成的技术不做底层算法,也是让初级程序员快速进入人工智能行业的捷径 目前市面上主流的AI技术提供公司有很多,比如百度,阿里,腾讯,主做语音的科大讯飞,做只能问答的图灵机器人等等 这些公司投入了很大一部分财力物力人力将底层封装,提供应用接口给我们,尤其是百度,完全免费的接口 既然百度这么仗义,咱们就不要浪费掉怎么好的资源,从百度AI入手,开启人工智能之旅 开启人工智能技术的大门 : http://ai.baidu.com/ 看看我大百度的AI大法,这些技术全部都是封装好的接口,看着就爽 接下来咱们就一步一步的操作一下 首先进入控制台,注册一个百度的账号(百度账号通用) 开通一下我们百度AI开放平台的授权 然后找到已开通服务中的百度语音 就可以创建应用了,回到应用列表我们可以看到已创建的应用了 安装百度的人工智能SDK: 首先咱们要 pip install baidu-aip 安装一个百度人工智能开放平台的Python SDK实在是太方便了,这也是为什么我们选择百度人工智能的最大原因 语音合成 其中参数: 这个时候audio.mp3就出来了,可以使用播放器播放,也可使用os模块调用os.steam(文件名)播放 语音识别: 哎,每次到这里,我都默默无语泪两行,声音这个东西格式太多样化了,如果要想让百度的SDK识别咱们的音频文件

ffmpeg常用命令

家住魔仙堡 提交于 2020-12-06 19:40:52
语法:ffmpeg [全局选项][输入文件选项] -i [输入文件]...[输出文件选项][输出文件] 主要选项 : -f 指定输入或者输出文件格式 -i 输入文件 -y 默认覆盖 -n 不覆盖,如果输出文件存在立即退出 -codec 指定编码格式 -t 限制输入或者输出时间 -ss 设置开始时间 -fiiter_complex 复合滤镜 -vf 单一滤镜 视频: -r 设置帧数 -s 设置输出尺寸(只能是偶数) -vn 禁止输出视频 -codec:v 设置视频编码格式 音频: -ar 设置采样频率 -ac 设置音频通道数 -an 禁止输出音频 -sn 禁止输出字幕 -ab 设置比特率 http://ffmpeg.org/ffmpeg-filters.html ; //FFmpeg滤镜官网 //将管道里的图片制作成视频 ffmpeg -f image2pipe -framerate 24 -i pipe:.png -s 1600x900 -y -vcodec libopenh264 out.mp4 //从视频里提取音频 ffmpeg -i 1.mp4 - vn - ar 44100 - ab 128k - ac 2 out.ts //制作空音频 ffmpeg - f lavfi -i aevalsrc=0 -t 15 -q:a 9 -ar 44100 -ab 128k -ac 2

How can I batch/sequentially download m3u8 files using ffmpeg?

元气小坏坏 提交于 2020-12-06 19:18:44
问题 I'm currently downloading m38u playlists individually using the following on Mac: ffmpeg -i <"URL with m3u8"> -codec copy output.ts If I want to do multiple files, I currently do it from separate Terminal windows. What I would like to do is, in a single instance, tell ffmpeg to e.g. take URLs from a .txt file and download them in sequence, with a sequential output name for each (fine for them to all go in same output folder). Sample code from m3u8 file: #EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA

ffmpeg常用命令(windows)

怎甘沉沦 提交于 2020-12-06 18:51:54
本文内容来自互联网 FFMPEG,windows相关命令 一款强大的音视频处理开源库。 相关概念 音/视频流 在音视频领域,一路音/视频成为一路流。 容器 一般把mp4、flv、mov等文件格式称之为容器。在这些常用格式文件中可以存放多路音视频文件。以mp4为例,可以存放一路视频流,多路音频流,多路字幕流。 channel channel是音频中的概念,称之为声道,在一路音频流中可以有单声道、双声道和立体声。 ffmpeg命令 基本命令格式 ffmpeg [global_options] {[input_file_options] -i input_url}... {[output_file_options] output_url}... windows下查看音视频设备 ffmpeg -list_devices true -f dshow -i dummy 音视频录制 screen-capture-recorder 下载地址https://github.com/rdp/screen-capture-recorder-to-video-windows-free/releases 桌面采集工具,可以用来录制桌面 自带虚拟音频捕获器,录制桌面的音频 需要安装javajre 它还包括一个免费的、通用的、开源的DirectShow桌面/屏幕源捕获过滤器。 配合ffmpeg录屏 ffmpeg