gpt4 book ai didi

ffmpeg - 无法在 linux 中使用 ffmpeg 从网络摄像头多路复用两个实时流

转载 作者:行者123 更新时间:2023-12-04 23:30:03 25 4
gpt4 key购买 nike

我们正在尝试在 linux 中使用 ffmpeg 将来自网络摄像头的两个实时流多路复用到一个输出文件中,如下所示,

fmpeg -i "http://10.41.2.57:8090/webcam.asf" -i "http://10.41.2.49:8090/webcam.asf" -map 0:0 -map 1:0 -t 60 "/home/../MuxLiveStream1.flv" 

ffmpeg 在一段时间后停止响应,控制台显示以下输出,
FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 24 2013 19:42:59, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 2.00 (2/1)
Input #0, flv, from 'http:10.41.2.154:8090/webcam.flv':
Duration: 00:00:00.00, start: 1587016.579000, bitrate: 200 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 200 kb/s, 2 tbr, 1k tbn, 1k tbc

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 2.00 (2/1)
Input #1, flv, from 'http:10.41.2.57:8090/webcam.flv':
Duration: 00:00:00.00, start: 1587230.806000, bitrate: 200 kb/s
Stream #1.0: Video: flv, yuv420p, 320x240, 200 kb/s, 2 tbr, 1k tbn, 1k tbc
Number of stream maps must match number of output streams

命令中是否有错误,或者还有什么需要做的吗?

最佳答案

最近的构建显示:

[flv @ 0x28e4d40] at most one video stream is supported in flv

尝试更灵活的输出容器,例如 Matroska (.mkv) 并使用最近的构建,因为 0.5.9 是古老的。您可以简单地 download a Linux build of ffmpeg或者您可以关注 step-by-step guide to compile ffmpeg .

关于ffmpeg - 无法在 linux 中使用 ffmpeg 从网络摄像头多路复用两个实时流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19493263/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com