我用我的 GoPro Hero 8 拍了一段视频。当我用 VLC 播放器播放时,音频没问题,但屏幕是黑的。我发现这可能是由 HEVC 引起的,所以我从这里下载了 FFMPEG:https://www.gyan.dev/ffmpeg/builds/
我尝试使用这个问题的答案:如何将 10 位 H.265 视频转换为 H.264 且不损失质量?
ffmpeg.exe -i ..\..\100GOPRO\GH010194.MP4 -c:v libx264 -crf 18 -c:a copy ..\..\100GOPRO\GH010194_x264.MP4
ffmpeg.exe -i ..\..\100GOPRO\GH010194.MP4 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy ..\..\100GOPRO\GH010194_x264_8bit.MP4
ffmpeg.exe -i ..\..\100GOPRO\GH010194.MP4 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy ..\..\100GOPRO\GH010194_x264_8bit.mkv
我没有收到任何错误消息,计算机运行了合理的时间,并且我得到了大小合理的输出文件。但是,当我播放它们时,它们仍然是黑色的。
我尝试对该视频进行 ffprobe,并收到以下输出:
ffprobe version 2021-04-25-git-d98884be41-full_build-www.gyan.dev Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, 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-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --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 56. 74.100 / 56. 74.100
libavcodec 58.136.101 / 58.136.101
libavformat 58. 78.100 / 58. 78.100
libavdevice 58. 14.100 / 58. 14.100
libavfilter 7.111.100 / 7.111.100
libswscale 5. 10.100 / 5. 10.100
libswresample 3. 10.100 / 3. 10.100
libpostproc 55. 10.100 / 55. 10.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\..\100GOPRO\GH010194.MP4':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
creation_time : 2021-04-27T17:07:48.000000Z
firmware : HD8.01.01.60.00
Duration: 00:00:21.84, start: 0.000000, bitrate: 45431 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 45146 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
creation_time : 2021-04-27T17:07:48.000000Z
handler_name : GoPro AVC
vendor_id : [0][0][0][0]
encoder : GoPro AVC encoder
timecode : 17:06:46:33
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2021-04-27T17:07:48.000000Z
handler_name : GoPro AAC
vendor_id : [0][0][0][0]
timecode : 17:06:46:33
Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2021-04-27T17:07:48.000000Z
handler_name : GoPro TCD
timecode : 17:06:46:33
Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 57 kb/s (default)
Metadata:
creation_time : 2021-04-27T17:07:48.000000Z
handler_name : GoPro MET
Stream #0:4(eng): Data: none (fdsc / 0x63736466), 14 kb/s (default)
Metadata:
creation_time : 2021-04-27T17:07:48.000000Z
handler_name : GoPro SOS
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 100359 for input stream 3
Unsupported codec with id 0 for input stream 4
我如何才能将此视频转换为我可以观看的内容?我需要 Windows 10 吗?
更新:
我可以在 Linux 机器上完美地播放它。(但也想在 Win7 上播放。)