ffmpeg

Default ffmpeg codec when nothing is specified

不羁的心 提交于 2020-12-29 12:01:25
问题 If I import a file to use with ffmpeg but dont specify anything about the codecs of any of the streams, will ffmpeg do anything? Is the default action to just copy the codecs? Or will ffmpeg encode the input file using some default codec? Would the following two commands be the same? Or will the second re-encode and take ages? ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 ffmpeg -i input.mkv output.mp4 回答1: If I import a file to use with ffmpeg but dont specify anything about the codecs

Default ffmpeg codec when nothing is specified

*爱你&永不变心* 提交于 2020-12-29 11:57:25
问题 If I import a file to use with ffmpeg but dont specify anything about the codecs of any of the streams, will ffmpeg do anything? Is the default action to just copy the codecs? Or will ffmpeg encode the input file using some default codec? Would the following two commands be the same? Or will the second re-encode and take ages? ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 ffmpeg -i input.mkv output.mp4 回答1: If I import a file to use with ffmpeg but dont specify anything about the codecs

Add multiple images to video fluent-ffmpeg

空扰寡人 提交于 2020-12-29 08:44:26
问题 I manage to add a single image to a video starting at a certain time and ending at a certain time, but I cannot find a way to do this for multiple images. I use fluent-ffmpeg. This is the code I have: ffmpeg('../videos/testklein.mp4') .input('../src/test.png') .input('../src/0.png') .input('../src/1.png') .addOptions([ "-strict -2" ]) .complexFilter([ { filter: 'overlay', options: { x: 200, y: 200, enable: 'between(t,1,3)', }}, { filter: 'overlay', options: { x: 200, y: 200, enable: 'between

Add multiple images to video fluent-ffmpeg

心不动则不痛 提交于 2020-12-29 08:42:38
问题 I manage to add a single image to a video starting at a certain time and ending at a certain time, but I cannot find a way to do this for multiple images. I use fluent-ffmpeg. This is the code I have: ffmpeg('../videos/testklein.mp4') .input('../src/test.png') .input('../src/0.png') .input('../src/1.png') .addOptions([ "-strict -2" ]) .complexFilter([ { filter: 'overlay', options: { x: 200, y: 200, enable: 'between(t,1,3)', }}, { filter: 'overlay', options: { x: 200, y: 200, enable: 'between

抓取腾讯视频MP4文件

女生的网名这么多〃 提交于 2020-12-29 05:17:38
1. 获取视频播放页地址,如:https://v.qq.com/x/page/g0921owmtc0.html 2. 视频正片开播后,在H5播放器的右键菜单中选择“复制调试信息”。 注意,一定要是H5播放器!不是Flash播放器! 复制出来的信息如下: {"pid":"dac552a0ecf204cded02a7aca790645f","url":"https%3A%2F%2Fv.qq.com%2Fx%2Fpage%2Fg0921owmtc0.html","vid":"g0921owmtc0","version":"3.5.57","platform":"10201","playtype":1,"emsg2":"%7B%22flow%22%3A%5B%221577759284764%20getinfo%20ok%20603%22%5D%7D","id":"","action":"//btrace.qq.com/kvcollect?BossId=4372&Pwd=967411786","getinfo":"%2F%2Fvd.l.qq.com%2Fproxyhttp%2Fvinfoad%26charge%3D0%26defaultfmt%3Dauto%26otype%3Dojson%26guid%3D98d3c0469a9101f5abc5aa6b5dded4b4%26flowid

工具---《.264视频 转成 MP4视频》

*爱你&永不变心* 提交于 2020-12-29 03:17:01
《.264 视频 转成 MP4 视频》 安装了“爱奇艺万能播放器”可以打开.264视频,但是opencv却不能直接读取.264视频,还是需要想办法“.264视频 转成 MP4/avi视频”。 折腾大半天,装了卸载,卸载的再装,尝试了各种转换器,都不好使。.264视频 转成 MP4视频,转不成MP4,转成avi也行啊。终于,有了突破,记录一下。 (1)这篇《mp4v2再学习 -- H264视频编码成MP4文件》蛮好,可以在VS下编译使用,也方便以后工作,可惜折腾一圈上不去G网络,放弃。mp4v2在VS2010下的编译与在项目中的使用。 @ https://blog.csdn.net/qq_29350001/article/details/73742075 @ https://blog.csdn.net/ybsun2010/article/details/16336033 (2)也尝试想用FFmpeg,有点复杂。有文档说明,转换效率不高,所以没有直接尝试。 (3)尝试各种转换器:枫叶H.264格式转换器、视频转换大师、极速H.264视频编码器、VideoConver、格式工厂等等。 (4)在吾爱破解上看到一条:( https://www.52pojie.cn/thread-719145-1-1.html ) “ MP4内部,现在全是h.264。 h.264是编码格式,MP4是封装格式

如何把设备实时推送过来的帧图片流转成直播流进行直播?【hls】【帧图片】【直播】【udp】

偶尔善良 提交于 2020-12-28 22:39:49
如何把设备实时推送过来的帧图片流转成直播流进行直播? 非互动直播流(帧图片转直播流) 背景: 因种种原因,android设备仅做到了通过udp把摄像头帧图片实时推送到了服务器。 业务要求在手机h5,或pc电脑浏览器上都能观看实时直播(仅画面)。 实现思虑: 1、参考https://blog.csdn.net/redfoxtao/article/details/78080924 可以把图片生成rtmp直播流。使用了FrameRecorder 2、参考https://blog.csdn.net/ldddd_/article/details/105855414 使用DatagramSocket启动udp端口监听接收图片报文。 3、将图片报文替换第一步中的固定图片(BufferedImage)。 4、安装部署windows版的nginx-rtmp服务器 直接从https://github.com/illuspas/nginx-rtmp-win32/tree/dev 下载的配置好rtmp的完整nginx服务包。 5、下载ffmpeg验证nginx-rtmp服务是否正常。 ffmpeg下载地址:https://github.com/BtbN/FFmpeg-Builds/releases 我下载的ffmpeg-N-100471-gbff6fbead8-win64-gpl.zip 这个版本。

海康威视使用FFmpeg+Nginx-rmtp进行按需推流(web端播放)

懵懂的女人 提交于 2020-12-28 01:21:09
海康威视使用FFmpeg+Nginx-rmtp进行按需推流 1.简介 很多朋友不太理解海康威视的官方sdk的使用方法博主也是,因为官方提供的是C/S版的,提供的web开发包,对浏览器的兼容性也是极差,还有一种办法是使用ffmpeg进行视频推流, 但是缺陷也是比较明显的,同时推三到四个流出来的视频也是相当卡顿对服务器资源消耗极大 所以博主另辟稀路,可不可以进行按需推流(傻瓜式监控视频对接) (点击视频先关流再推流做到按需播放)呢? 主要思路: 利用FFmpeg推流软件进行视频RTSP转RTMP流 再利用video-player播放rtmp流, 点击播放时,判断ffmpeg进程是否存在,存在则获取进程的pid号 利用进程号关闭进程以达到关流的的效果 RTSP格式详见 https://blog.csdn.net/zhouyongku/article/details/45073443?ops_request_misc=%25257B FFmpeg推流命令 ffmpeg - i "rtsp://USERNAME:PASSWORD@IP:PROT/Streaming/Channels/<通道ID>" - b 4096k - f flv - r 25 - s 1920x1080 - an "rtmp: / / 127 . 0 . 0 . 1:1935 / live / 自定义名称 JAVA

ffmpeg version 2.6.8 : Stream specifier ':a' in filtergraph description matches no streams

我是研究僧i 提交于 2020-12-26 10:35:07
问题 I am not getting why this isn't working.. I have tried to get the video streams with [0:v]/[0:1]/[0:v:0] & the audio streams with [0:a]/[0:0]/[0:0:0]. nothing worked. Explaining the inputs: 1.1st input stream is a video that can be of varying resolution on which the filter adds a padding on to make it 600:480. 2.2nd input is an overlay png which is already at 5:4 ratio.. just making it 600:480 before it gets overlaid in the filter. 3.3rd & 4th ones are also videos which I don't care if they

ffmpeg version 2.6.8 : Stream specifier ':a' in filtergraph description matches no streams

坚强是说给别人听的谎言 提交于 2020-12-26 10:30:44
问题 I am not getting why this isn't working.. I have tried to get the video streams with [0:v]/[0:1]/[0:v:0] & the audio streams with [0:a]/[0:0]/[0:0:0]. nothing worked. Explaining the inputs: 1.1st input stream is a video that can be of varying resolution on which the filter adds a padding on to make it 600:480. 2.2nd input is an overlay png which is already at 5:4 ratio.. just making it 600:480 before it gets overlaid in the filter. 3.3rd & 4th ones are also videos which I don't care if they