如何将 Luowice IP 摄像机提供的原始 264 文件转换为 MP4?

如何将 Luowice IP 摄像机提供的原始 264 文件转换为 MP4?

我最近买了一个 Luowice 的 IP 摄像头,型号LWS-R8-2MP。相机提供一项功能,即在检测到运动时将视频上传到 FTP 服务器。相机上传.264文件。我的计划是一旦文件上传就触发一个脚本,将文件转换为.mp4并通过即时消息服务进行传送。但是我无法转换文件,因为它似乎是一种不常见或专有的格式。我尝试了提到的解决方案这里但是当我跑的时候

ffmpeg -framerate 24 -i A180126_222057_222111.264 -c copy output.mp4

我收到以下错误输出(这是在 macOS 上,但目标系统是 Linux):

ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[h264 @ 0x7f8678801200] SEI type 128 size 576 truncated at 128
[h264 @ 0x7f8678801200] SEI type 128 size 576 truncated at 95
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] SEI type 128 size 576 truncated at 128
[h264 @ 0x7f8678801200] SEI type 128 size 576 truncated at 95
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] SEI type 128 size 576 truncated at 128
[h264 @ 0x7f8678801200] SEI type 128 size 576 truncated at 95
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8678801200] non-existing PPS 0 referenced
[h264 @ 0x7f8678801200] decode_slice_header error
[h264 @ 0x7f8678801200] no frame!
[h264 @ 0x7f8677004200] decoding for stream 0 failed
[h264 @ 0x7f8677004200] Could not find codec parameters for stream 0 (Video: h264 (Main), none(progressive)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, h264, from 'A180126_222057_222111.264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (Main), none(progressive), 24 fps, 24 tbr, 1200k tbn, 48 tbc
[mp4 @ 0x7f867608aa00] dimensions not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
    Last message repeated 1 times

我已经联系了 Luowice 支持,但他们只提供了 Windows 应用程序下载网站用于转换文件。他们也没有解释他们的文件格式有什么特别之处。我正在寻找一种适用于 Linux 的解决方案。

有人成功转换过.264此相机型号提供的文件吗?可以下载示例文件这里

更新:

我联系了 Luowice 的支持人员,他们说这些.264文件已被额外“压缩”,以节省相机 SD 卡上的存储空间。遗憾的是,由于“公司政策”,他们无法解释他们如何压缩这些文件。

更新 2:

我编译了文章Alain.fr 提到的并让它在示例文件上运行。它输出一个.mp4文件。不幸的是,这个文件仍然无法通过 VLC 播放当我跑步的时候

ffmpeg -framerate 25 -i A180126_222057_222111.mp4 -c copy output.mp4

转换器应用程序生成的文件最终生成了可播放的视频:)

结论:

与 Luowice 所声称的额外压缩不同,实际上 H.264 流中添加了一些需要剥离的垃圾。

更新 3:

基于转换器应用程序拉尔夫·斯皮茨纳,用 C 语言编写,我创建了一个Node.js 端口因为我的应用程序是用 Node.js 编写的;)

答案1

找到有关专有格式的解释这里使用一个小软件将其转换为 mp4。如果它能帮助

相关内容