ffmpeg

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

大城市里の小女人 提交于 2020-12-02 05:56:59
问题 When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly transcoding due to seeking. So in essence: MP4 cannot be piped through ffmpeg, which kind of makes sense. But I do not have a contiguous mpegts stream, I have chunks of 5 seconds. So it's really just like: Here is my 1 mb *.ts file Please read it

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

喜你入骨 提交于 2020-12-02 05:56:39
问题 When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly transcoding due to seeking. So in essence: MP4 cannot be piped through ffmpeg, which kind of makes sense. But I do not have a contiguous mpegts stream, I have chunks of 5 seconds. So it's really just like: Here is my 1 mb *.ts file Please read it

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

人盡茶涼 提交于 2020-12-02 05:55:59
问题 When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly transcoding due to seeking. So in essence: MP4 cannot be piped through ffmpeg, which kind of makes sense. But I do not have a contiguous mpegts stream, I have chunks of 5 seconds. So it's really just like: Here is my 1 mb *.ts file Please read it

华为鲲鹏上安装rtpengine

走远了吗. 提交于 2020-12-02 00:30:12
前言 华为上安装rtpengine,遇到的问题主要有2点 安装rtpengine很多的依赖不支持arm,需要源代码编译 rtpengine使用内核态运行不了,改为用户态运行 安装依赖 yum install pkg-config yum install nasm yum install libgnomeui-devel yum install openssl-devel yum install libevent2-devel yum install pcre-devel yum install xmlrpc-c-devel yum install iptables-devel yum install epel-release.noarch yum install json-glib-devel yum install libpcap-devel yum install flex yum install bison 安装ffmpeg codec libraries 从https://www.ffmpeg.org获取源码 从官网或者git clone git://git.videolan.org/x264.git获取x264源码 从 http://www.tortall.net/projects/yasm/releases/ 获取yasm 安装yasm ./configure make

python converting video to audio

假装没事ソ 提交于 2020-12-01 10:44:29
问题 We are working on a project to convert video to audio, and this is the sample code: from converter import Converter from moviepy.editor import * c = Converter() clipv = 'g.mp4' clipc = VideoFileClip(clipv).subclip(0,20) conv = c.convert(clipc, 'clip5.mp3', {'format':'mp3','audio':{'codec': 'mp3','bitrate':'22050','channels':1}}) for timecode in conv: pass However, it gives me this error Traceback (most recent call last) File "del.py", line 7, in <module> for timecode in conv: File "/usr/local

python converting video to audio

荒凉一梦 提交于 2020-12-01 10:44:19
问题 We are working on a project to convert video to audio, and this is the sample code: from converter import Converter from moviepy.editor import * c = Converter() clipv = 'g.mp4' clipc = VideoFileClip(clipv).subclip(0,20) conv = c.convert(clipc, 'clip5.mp3', {'format':'mp3','audio':{'codec': 'mp3','bitrate':'22050','channels':1}}) for timecode in conv: pass However, it gives me this error Traceback (most recent call last) File "del.py", line 7, in <module> for timecode in conv: File "/usr/local

WebAssembly 在 Web 端视频的应用

寵の児 提交于 2020-11-30 20:33:11
WebAssembly 从诞生起,赋予了前端更宽阔的应用想象。绘图视频渲染,剪辑,编解码,游戏都有可能基于 WebAssembly 在浏览器端推出相关的产品。 什么是 WebAssembly WebAssembly(wasm) 是一种二进制代码格式, 具有高效,跨平台性,包含这种格式的二进制文件,可以被各个平台的浏览器高效的加载,解析执行。 只要浏览器支持 wasm, 用户便可以使用 wasm 所提供的功能,也就是说 wasm 的跨平台性其实是基于浏览器的跨平台性。上层用户编译 wasm 时, 不需要关注底层架构是什么,只要编译出来正确的二进制文件,就可以在各个支持的浏览器运行。 wasm 增强了 js 的能力,js 不擅长做的事情,比如绘图,编码,解码,数学计算等,都可以在 wasm 中实现,然后 js 就可以使用wasm所提供的能力。 现阶段已经有很多 WebAssembly 的应用,比如 ffmpeg 的编解码应用, unity 3d, unreal engine, google earth等都相继支持了 wasm。 如何使用 WebAssembly 现在支持从 C/C++, go, rust 编译成 wasm 模块。使用 emscripten sdk, 可以从 C/C++ 源码直接编译成 wasm 文件,然后在网页中 直接加载使用。 参考 https:/

Use Google Fonts In ffmpeg fontfile

不想你离开。 提交于 2020-11-30 01:38:57
问题 I am wanting to use Google Fonts in my ffmpeg video creations for text. Here is what I have and it's not working at all. $font = "//fonts.googleapis.com/css?family=Aclonica"; $cmd .= "drawtext=enable='between(t,".$fi.",".$li.")':fontfile=".$font.":fontsize=".$fontsize.":fontcolor=".$color.":x=(w-text_w)/2:y=(h/2)+".$n.":text='".$arr[$j]."',"; Of course, this works with .ttf fonts but I really want to use Google Fonts. I have also tried $font = "https://fonts.googleapis.com/css?family=Aclonica

Use Google Fonts In ffmpeg fontfile

旧城冷巷雨未停 提交于 2020-11-30 01:38:22
问题 I am wanting to use Google Fonts in my ffmpeg video creations for text. Here is what I have and it's not working at all. $font = "//fonts.googleapis.com/css?family=Aclonica"; $cmd .= "drawtext=enable='between(t,".$fi.",".$li.")':fontfile=".$font.":fontsize=".$fontsize.":fontcolor=".$color.":x=(w-text_w)/2:y=(h/2)+".$n.":text='".$arr[$j]."',"; Of course, this works with .ttf fonts but I really want to use Google Fonts. I have also tried $font = "https://fonts.googleapis.com/css?family=Aclonica