问题标签 [avconv]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
226 浏览

mp4 - JW Player 中的渲染错误(使用 avconv 完成转码,由 wowza 完成流式传输)

我在 JW Player 中出现渲染错误的问题。当我单击播放按钮然后单击进度条上的某处以倒带流时,它们会发生(例如:我单击播放,然后单击进度条以跳过 20 秒的流)。

我想补充一点,我正在从 TS 容器中的 MPEG2 转码为 mp4 容器中的 h264。

这是我使用 avconv 的方法:

转码后,Wowza 将文件作为 HLS VOD 服务以默认配置文件流式传输,并在 JW Player 上观看

据我所知,当我开始观看 P 或 B 帧时可能会发生渲染错误,而当我开始观看 I 帧时则不会。Wowza 或 JW Player 是否可以等待 IDR 帧?

编辑:由 VLC 转码的文件工作正常。我猜avconv有问题。我怎样才能解决这个问题?

0 投票
0 回答
2256 浏览

video - 使用 avconv 和分段录制 RTSP-Stream:编解码器参数不正确

我正在尝试使用工具 avconv(版本 v10_alpha2-128-g77bb000)从 PoE IP 摄像机(Lupusnet LE932)记录 RTSP-Stream。使用 VLC 媒体播放器 2.1.4,此 RTSP 流可以正常工作。我可以查看并记录它。现在我想使用分段(将视频记录在拆分文件中,例如每小时一个文件),所以我切换到 avconv。

这是我正在使用的命令:

在网络摄像头用户界面中,我可以将视频格式从 H.264 更改为 MP4,但这并没有帮助。

所以这些是产生的错误消息:

和:

我的问题:为什么流的录制可以使用 VLC 而不是 avconv?这些错误消息是什么意思?(我是一个完整的初学者)

0 投票
1 回答
8525 浏览

linux - Avconv 广播视频流

我正在做一些广播视频流的测试。

我尝试:

从“destinationIP”我可以播放流。

但是,如何指定IP 范围而不是单个 IP?

0 投票
1 回答
611 浏览

django - 3gp audio to ogg conversion does not work

I have a django app and use a call to subprocess.call('avconv -i ' + fileName + ' ' + fileNew, shell=True). The input file is a .3gp file which has only aac mono audio stream converted to an .ogg file. Conversion succeeds, but the new file seems to be damaged and audio will not play.

Here is what I got after trying to get information for one of the input files:

Here is the successful convert:

Here is one of the sample files: link

The following usage strings also return me an error : audio.3gp: Invalid data found when processing input::

Could the input files be broken, I think they are recorded on a Nexus 7?

0 投票
0 回答
841 浏览

avconv - dvswitch、v4l2loopback 和 gst-launch 到 v4l2sink 的帧率太高

我正在使用 dvswitch 测试两个网络摄像头:

使用 avconv 生成 dv 流,将它们传送到 dvsource-file:

(仅用于一个网络摄像头的命令,使用缓冲区命令,因为命名管道会产生错误的结果)

我可以用 dvswitch gui 中的两个源查看和画中画,完全没有问题。我还可以使用 dvsink-command 来捕获 dvswitch 生成的流并将其通过 v4l2sink 输出通过管道传输到 gst-launch 管道:

(也尝试使用“v4l2sink sync=true device=/dev/video2”...)

并用 vlc 打开 /dev/video2 显示 dvswitch 生成的视频:

但是当他们尝试打开 video2 环回设备时,ekiga、skype 和 xawtv 崩溃了!

使用vlc“工具->编解码器信息”菜单,我看到“packed yuv 4:2:2 (yuy2)”具有正确的分辨率,但帧速率超过 4.200(超过 1.000 的 4 倍......),即使视频以正常速度出现。

我认为 vlc 和 (xvimagesink of gst-launch) 可以显示来自这个虚拟设备的视频,但是 ekiga 等人不能这样做,因为帧率非常大而且数字很奇怪......

关于将帧速率降低到 15 或 30 fps 的任何想法?我尝试了一些带有 videorate 的 gst-launch 管道,但没有运气。

非常感谢,

弗朗切斯科

0 投票
1 回答
600 浏览

php - avconv 在 php 中生成帧

我正在尝试使用以下代码在我的本地主机服务器上生成一些帧(目前):

我收到以下消息:

问题是如果我在终端中运行这个命令,它就可以工作。有谁知道是什么问题?是因为许可还是其他原因?

0 投票
0 回答
270 浏览

php - ffmpeg not converting via PHP script

Essentially, I have this code:

Ultimately, my goal is to convert files and show a live progress of the conversion (or at least something that updates every few seconds), and running in the background, so that the same page can be used to convert further files.

Now I'm already stuck, because the conversion just isn't working. I know that the preceding code should be fine, since it makes it all the way to this if statement above, and no errors are being throw up by the PHP. However, my log output shows:

Which also leads me to another question: If ffmpeg is deprecated, and avconv is the way to do, can I still use the exec code in my PHP as is (replacing the ffmpeg bit with avconv)? From what I've seen so far on the avconv page, it looks similar, but I can't be certain that it's exactly the same.

So my two questions: Why isn't the file being converted, and is there any change in the syntax between avconv and ffmpeg?

0 投票
0 回答
142 浏览

video - avconv 比 ffmpeg 长得多

我正在使用 ffmpeg 从视频中生成一些图像。现在我读到我不应该再使用 ffmpeg 而是使用 libav 中的 avconv 。所以我尝试用 avconv 做同样的事情。

ffmpeg 看起来像这样:

与 avconv 相同:

ffmpeg 需要不到一秒的时间来完成。相同任务的 Avconv 大约需要 90 秒。这是常见的还是我需要更改一些东西才能使用 avconv?

0 投票
1 回答
2975 浏览

ffmpeg - FFmpeg/Libav 音频解码示例

我试图通过使用代码将 MP2 文件转换为原始 PCM 来获得与 ffmpeg/avconv 相同的输出。我使用了FFmpeg/Libav 文档中包含的教程中的 audio_decode_example 函数,但输出不同。

我需要将 ffmpeg/avconv 命令执行哪些步骤添加到我的程序中以获得相同的输出?

编辑:这是来自的输出avconv -v debug -i test.mp2 test.sw

0 投票
1 回答
6976 浏览

ubuntu - 处理输入时发现 ubuntu 上的 ffmpeg / avconv 无效数据

我的 ubuntu 上有一个 .mp4 (h264) 文件,并尝试使用 avconv (或 ffmpeg,结果相同)旋转它。实际上,无论我试图对文件执行什么操作,我都会得到“文件名:处理输入时发现无效数据”

有趣的是,当我尝试在 Windows 上使用 ffmpeg 库旋转同一个文件时,它运行顺畅。下面是在 Windows 上运行但不在 ubuntu 上运行的实际命令

任何帮助表示赞赏,

谢谢

伊利亚