我使用 Kinect Azure DK 设备捕获了一段视频,可以使用 Azure Kinect Viewer (v.1.4.1) 播放该视频。但是,当我使用 FFmpeg 对视频进行编码时,命令如下。我无法使用 Azure Kinect Viewer 播放该视频。我收到一条消息:
无法打开录音
ffmpeg -i .\RGB.mkv -c:v libx264 -preset veryfast -crf 18 -c:a aac -b:a 128k RGG_Enc.mkv
ffmpeg -i .\RGB.mkv -c:v mjpeg -pix_fmt yuvj422p -q:v 2 output.mkv
我尝试了不同的编解码器和不同的设置,但无法在 Azure Kinect Viewer 中播放视频。有人可以建议我该怎么做吗?
这视频仅包含原始视频的一个通道 (RGB)。我可以使用 Azure Kinect Viewer 播放此视频。
以下是FFprobe
C:\Users\Ashutosh\Desktop\RGB_Encoding> ffprobe -i .\RGB.mkv
ffprobe version 6.0-full_build-www.gyan.dev Copyright (c) 2007-
2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --
disable-w32threads --disable-autodetect --enable-fontconfig --
enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --
enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --
enable-librist --enable-libsrt --enable-libssh --enable-libzmq --
enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2
--enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-
libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --
enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2
--enable-libxvid --enable-libaom --enable-libjxl --enable-
libopenjpeg --enable-libvpx --enable-mediafoundation --enable-
libass --enable-frei0r --enable-libfreetype --enable-libfribidi --
enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-
libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-
ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-
dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --
enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme
--enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb
--enable-libmp3lame --enable-libshine --enable-libtheora --enable-
libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-
libgsm --enable-libopencore-amrnb --enable-libopus --enable-
libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --
enable-libflite --enable-libmysofa --enable-librubberband --
enable-libsoxr --enable-chromaprint
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
[matroska,webm @ 0000018ef5f4e240] Could not find codec parameters
for stream 1 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
Input #0, matroska,webm, from '.\RGB.mkv':
Metadata:
title : Azure Kinect
encoder : libebml v1.4.4 + libmatroska v1.7.1
creation_time : 2023-08-04T11:52:43.000000Z
Duration: 00:00:40.03, start: 0.033000, bitrate: 126708 kb/s
Stream #0:0(eng): Video: mjpeg (Baseline) (MJPG / 0x47504A4D),
yuvj422p(pc, bt470bg/unknown/unknown), 2048x1536, SAR 1:1 DAR 4:3,
30 fps, 30 tbr, 1k tbn (default)
Metadata:
title : COLOR
BPS : 126696930
DURATION : 00:00:40.029000000
NUMBER_OF_FRAMES: 1201
NUMBER_OF_BYTES : 633943931
_STATISTICS_WRITING_APP: mkvmerge v76.0 ('Celebration') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-08-04 11:52:43
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Attachment: none
Metadata:
filename : calibration.json
mimetype : application/octet-stream
Unsupported codec with id 0 for input stream 1