不知道是要创建新帖子还是在现有帖子中发帖。决定选择第一个选项,因为我的情况似乎有点不同,因为我没有一个视频损坏,但有很多。
我的问题是,我有 30 多个 MP4 视频(来自小米 Yi 运动相机)在 60fps 录制过程中相机出现故障后损坏。以前它们都很好。所以情况是:之前可播放,现在损坏了。我尝试使用 ffmpeg 使用以下命令:
e.g. ffmpeg -i YDXJ0690c.mp4 -c:a copy -c:v copy YDXJ0690c_rescue.mp4
但我明白
ffmpeg version N-74645-g4c39892 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 58.100 / 56. 58.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 37.100 / 5. 37.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[adp @ 0000000004888360] Format adp detected only with low score of 25, misdetection possible!
Input #0, adp, from 'YDXJ0690c.mp4':
Duration: 02:16:17.66, start: 0.000000, bitrate: 438 kb/s
Stream #0:0: Audio: adpcm_dtk, 48000 Hz, stereo, s16p
[mp4 @ 0000000004cb15e0] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0000000004cb15e0] Could not find tag for codec adpcm_dtk in stream #0, codec not currently supported in container
Output #0, mp4, to 'YDXJ0690c_rescue.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Audio: adpcm_dtk, 48000 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
有人能帮我使用 ffmpeg 修复我的视频吗?