linux - 使用转码将 MOV 转换为 mp4

标签 linux ffmpeg transcode

我想使用转码将 MOV 从我的 Casio cam 转换为 mp4。为什么要转码?因为我也想在同一步骤中对视频进行去抖。

当我使用

ffmpeg -i in.MOV out.mp4

它有效。使用时

转码-J稳定-i in.MOV

转码-J transform -i in.MOV -y ffmpeg -F mpeg4 -o out.mp4

我遇到了数百个这样的错误:

[ffmpeg_audio] Error: avcodec_open2 failed
[adpcm_ima_wav @ 0x1f7f180] Only 4-bit ADPCM IMA WAV files are supported

在我看来,转码似乎在内部使用了 ffmpeg。

我可以先使用 ffmpeg 将其制作成 mp4,然后使用转码来稳定视频,但之后它会被重新编码两次,我想避免这种情况。

这是 mplayer 对我的 MOV 文件的评价:

MPlayer2 2.0-701-gd4c5b7f-2ubuntu2 (C) 2000-2012 MPlayer Team
Cannot open file '/home/koem/.mplayer/input.conf': No such file or directory
Failed to open /home/koem/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing 1-original.MOV.
Detected file format: QuickTime / MOV (libavformat)
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (adpcm_ima_wav), -aid 0, -alang eng
Clip info:
 major_brand: qt  
 minor_version: 537921536
 compatible_brands: qt  caqv
 creation_time: 2017-01-02 23:31:38
Load subtitles in .
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: ADPCM IMA WAV [libavcodec]
AUDIO: 44100 Hz, 2 ch, s16le, 352.8 kbit/25.00% (ratio: 44100->176400)
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VIDEO:  1920x1080  29.970 fps  15940.0 kbps (1992.5 kB/s)
VO: [xv] 1920x1080 => 1920x1080 Planar YV12 
Colorspace details not fully supported by selected vo.
A:   1.1 V:   1.1 A-V: -0.000 ct:  0.000   0/  0 16%  8%  1.6% 0 0 

Exiting... (Quit)

如何在不先使用 ffmpeg 的情况下使用转码?

最佳答案

FFmpeg 有一个 deshake以及 stabilization筛选。获取新的 binary如果你的没有。

要继续使用现有的二进制文件,请运行

ffmpeg -i in.MOV -vcodec copy out.mp4

这将跳过视频重新编码。

关于linux - 使用转码将 MOV 转换为 mp4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41434441/

相关文章:

linux - 缺少换行符?

linux - 内核如何确定进程优先级

c# - 在 c# 中使用 ffmpeg 时遇到问题如何正确格式化字符串以升级视频?

audio - 如何使用 ffmpeg 将新音频(不混合)添加到视频中?

audio - 从 AAC 转换后 FFmpeg 播放音频缓慢

ios - iPhone慢动作视频转码

c++ - 哪个客户在说话?

FFMpeg 命令输出显示 'green pixelated' 视频

c - 捕获对地址范围的所有访问 (Linux)