gpt4 book ai didi

ffmpeg - 在 Windows 上连接会抛出 "Invalid data found when processing input",而它适用于 Mac 和 Linux

转载 作者:行者123 更新时间:2023-12-04 23:13:09 28 4
gpt4 key购买 nike

我需要使用每晚构建的 FFMPEG 运行命令来报告 concat 上的错误。协议(protocol)。我发现在 Linux 上使用 libx264 支持从源代码编译很困难,并且我想节省我的 Mac 计算机,所以我使用来自 Zeranoe 的 Windows 上的夜间构建.

我调用这个命令来连接文件:

ffmpeg -safe 0 concat -i files_to_combine -vcodec libx264 show.mp4

在哪里 files_to_combine是:
file ./short_DSC_0013.MOV
file ./short_DSC_0014.MOV
file ./short_DSC_0015.MOV
file ./short_DSC_0016.MOV
file ./short_DSC_0017.MOV
file ./short_DSC_0018.MOV
file ./short_DSC_0019.MOV

我从包含视频文件和 files_to_combine 的目录中调用此命令。 .

在夜间构建的 Windows 上,我收到错误消息:
files_to_combine: Invalid data found when processing input

I changed file ./DSC_0013.MOV to these options, all with the same error:

file 'short_DSC_0013.MOV'
file '.\short_DSC_0013.MOV'
file 'F:\short_DSC_0013.MOV'

如何调试此错误,或者在 Windows 上使用夜间构建连接的语法是什么?

更新日志级别 48

我用 -v 48 运行了相同的命令并得到:
F:\brain squids>C:\Users\migue\Desktop\ffmpeg-20200211-f15007a-win64-static\bin\ffmpeg.exe -v 48 -i files_to_combine -vcodec libx264 show.mp4ffmpeg version git-2020-02-11-f15007a Copyright (c) 2000-2020 the FFmpeg developers  built with gcc 9.2.1 (GCC) 20200122  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf  libavutil      56. 39.100 / 56. 39.100  libavcodec     58. 68.102 / 58. 68.102  libavformat    58. 38.100 / 58. 38.100  libavdevice    58.  9.103 / 58.  9.103  libavfilter     7. 75.100 /  7. 75.100  libswscale      5.  6.100 /  5.  6.100  libswresample   3.  6.100 /  3.  6.100  libpostproc    55.  6.100 / 55.  6.100Splitting the commandline.Reading option '-v' ... matched as option 'v' (set logging level) with argument '48'.Reading option '-i' ... matched as input url with argument 'files_to_combine'.Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.Reading option 'show.mp4' ... matched as output url.Finished splitting the commandline.Parsing a group of options: global .Applying option v (set logging level) with argument 48.Successfully parsed a group of options.Parsing a group of options: input url files_to_combine.Successfully parsed a group of options.Opening an input file: files_to_combine.[NULL @ 0000021c781784c0] Opening 'files_to_combine' for reading[file @ 0000021c78179580] Setting default whitelist 'file,crypto,data'[AVIOContext @ 0000021c781817c0] Statistics: 182 bytes read, 0 seeksfiles_to_combine: Invalid data found when processing input

The contents of files_to_combine is:

file 'short_DSC_0013.MOV'file 'short_DSC_0014.MOV'file 'short_DSC_0015.MOV'file 'short_DSC_0016.MOV'file 'short_DSC_0017.MOV'file 'short_DSC_0018.MOV'file 'short_DSC_0019.MOV'

Update because of wrong command

I had mistyped the command. The right command has a -f in front of concat, which I found because the accepted answer was able to make the command work in a similar environment:

ffmpeg -safe 0 -f concat -i files_to_combine -vcodec libx264 show.mp4

最佳答案

我在 Windows 10 上测试成功:

(ffmpeg 版本 N-95216-ge6625ca41f )

  • 视频 01.mp4 , 02.mp4.txtC:\Users\drake7\Desktop\
  • files_to_combine.txt的内容:

  • _
    file 'C:\Users\drake7\Desktop\01.mp4'
    file 'C:\Users\drake7\Desktop\02.mp4'

    注: 02.mp401.mp4 的副本.对于这个快速测试,我想让它变得非常简单。
    .txt使用 right-click > New > Text Document 创建

    (使用我的 Windows 命令提示符,我在 C:\Users\drake7\Desktop\ffmpeg\bin 中)
    "ffmpeg.exe" -f concat -safe 0 -i "C:\Users\drake7\Desktop\files_to_combine.txt" -vcodec libx264 "C:\Users\drake7\Desktop\show.mp4"

    关于ffmpeg - 在 Windows 上连接会抛出 "Invalid data found when processing input",而它适用于 Mac 和 Linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60206368/

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