我有一个带有此元数据的mjpeg编码视频:
{ filename: './public/uploads/f8cca1dfff2558e22d83c1b1c7766d0d.mov',
title: '',
artist: '',
album: '',
track: '',
date: '',
synched: true,
duration: { raw: '00:00:06.01', seconds: 6 },
video:
{ container: 'mov',
bitrate: 858336,
stream: 0,
codec: 'mjpeg',
resolution: { w: 4096, h: 2160 },
resolutionSquare: { w: 4096, h: 2160 },
aspect: { x: 256, y: 135, string: '256:135', value: 1.8962962962962964 },
rotate: 0,
fps: 23.98,
pixelString: '72:72',
pixel: 1 },
audio:
{ codec: 'pcm_s16le',
bitrate: '1536',
sample_rate: 48000,
stream: 0,
channels: { raw: 'stereo', value: 2 } } }
我想使用以下命令将其转换为mp4容器中编码的h264:
ffmpeg -i,./public/uploads/f8cca1dfff2558e22d83c1b1c7766d0d.mov,-strict -2 -f mp4 -vcodec h264,./public/uploads/result.mp4
执行转换时没有任何错误,但是生成的文件的元数据仍然表明容器是mov并且文件没有播放