![修复 Linux 上 Windows Movie Maker 的空白视频?](https://linux22.com/image/1472617/%E4%BF%AE%E5%A4%8D%20Linux%20%E4%B8%8A%20Windows%20Movie%20Maker%20%E7%9A%84%E7%A9%BA%E7%99%BD%E8%A7%86%E9%A2%91%EF%BC%9F.png)
我正在使用 Window Movie Maker 从微型 DV 摄像机导入 DV 素材,因为火线卡仅适用于 Windows。
我想在 Linux 上使用这些文件。不幸的是,它们似乎与 Linux 视频播放器不兼容?它们在 Windows Media Player 上播放得很好。音频播放得很好,但视频在播放过程中是空白的。当您暂停视频时,当前帧确实会显示出来,所以视频在那里,只是在播放时不显示视频。
文件命令显示:
MyVideo.avi: RIFF (little-endian) data, AVI, 0 x 0, ~30 fps,
那么它认为尺寸是 0x0 吗?
我尝试了许多不同的选项和mencoder
,ffmpeg
但我不知道使用正确的设置来修复导致播放时视频空白的原因。
更新:播放过程中的黑屏似乎只发生在尝试搜索时。如果我从头开始播放并且不暂停或快进,视频播放正常。
更新2:
因此我尝试使用以下命令重建索引:
mencoder -idx In.avi -ovc copy -oac copy -o Out.avi
它确实修复了索引,但 10 分钟的视频变成了 1 小时 10 分钟,并且以慢动作播放,没有音轨。但索引有效!
该命令的输出是:
MEncoder 1.1-4.8 (C) 2000-2012 MPlayer Team
success: format: 0 data: 0x0 - 0x68e1ba00
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
AVI file format detected.
AVI: ODML: Building ODML index (1 superindexchunks).
AVI_NI: No video stream found.
libavformat file format detected.
[lavf] stream 0: video (dvvideo), -vid 0
[lavf] stream 1: audio (pcm_s16le), -aid 0
VIDEO: [dvsd] 720x480 0bpp -nan fps 28771.2 kbps (3512.1 kbyte/s)
[V] filefmt:35 fourcc:0x64737664 size:720x480 fps: -nan ftime:= -nan
videocodec: framecopy (720x480 0bpp fourcc=64737664)
audiocodec: framecopy (format=1 chans=2 rate=48000 bits=16 B/s=192000 sample-0)
Pos: -nans 4095f (28%) 0.00fps Trem: 0min 0mb A-V: -nan [0:0]
Too many audio packets in the buffer: (4096 in 26236780 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
Pos: -nans 4096f (28%) 0.00fps Trem: 0min 0mb A-V: -nan [0:0]
Too many audio packets in the buffer: (4096 in 26236780 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: -nan kbit/s (-2147483648 B/s) size: 491520000 bytes -nan secs 4096 frames
Audio stream: -nan kbit/s (-2147483648 B/s) size: 0 bytes 0.000 secs