简体   繁体   English

将 Quicktime (.mov) 从 iPhone 转换为 mp4

[英]Converting Quicktime (.mov ) from iPhone to mp4

On iPhones running iOS 11, if a video is pre-recorded and uploaded I get the following errors:- ( ie, the video is recoded on the iPhone and then uploaded as an attachment ).在运行 iOS 11 的 iPhone 上,如果视频是预先录制并上传的,我会收到以下错误:-(即,视频在 iPhone 上重新编码,然后作为附件上传)。

$ ./ffmpeg -i <input-file>.mov -vcodec h264 -acodec mp4 test-output.mp4
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
  configuration:  --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264 
  libavutil version: 49.0.0
  libavcodec version: 51.9.0
  libavformat version: 50.4.0
  built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5597b8]mov: header not found !!! (err:0, moov:0, mdat:0) pos:3189455560
<input-file>.mov: Error while opening file
$

If the video is recorded and then transferred to a Desktop uploaded and then converted it works OK.如果视频被录制然后传输到桌面上传然后转换它工作正常。

If I use a 'live' recording then all is OK.如果我使用“现场”录音,则一切正常。

I found this…我找到了这个…

https://www.howtogeek.com/327689/how-to-make-your-iphone-use-jpg-and-mp4-files-instead-of-heif-and-hevc/ https://www.howtogeek.com/327689/how-to-make-your-iphone-use-jpg-and-mp4-files-instead-of-heif-and-hevc/

Which seems to suggest iOS 11 will use different formats, but this appears to make no difference whatever the settings are for 'High Efficiency / Most Compatible'.这似乎表明 iOS 11 将使用不同的格式,但这似乎与“高效/最兼容”的设置无关。

Any ideas ?有任何想法吗 ?

Your ffmpeg is from 2004. Absolutely ancient.您的ffmpeg来自 2004 年。绝对古老。

Get a new one via Homebrew , or zeranoe.com , or evermeet.cx .通过Homebrewzeranoe.comevermeet.cx获得一个新的。

Remove your old version and put the new one in /usr/local/bin , re-log in, and it should work.删除旧版本并将新版本放入/usr/local/bin ,重新登录,它应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM