I would like to convert it to mp4 when I upload the mov file.
Would it be okay to upload the video file uploaded in php from a.mov to a.mp4?
After a lot of research, it seems that it is common to use ffmpeg?, but I would like to do it simply, so could you please let me know if there is any problem with the above method?
Thank you for your cooperation.
php
Unless the server to be uploaded is well determined, I think it is necessary to re-encode it beforehand.
拡張Not only are extensions different, but the format (codec) of metadata and video data itself is different.
ffmpeg is a program that can be used to perform this re-encoding task, which requires you to work on the command line alone, but there are also programs that can be easily manipulated by the GUI.
For example, HandBrake is famous.
https://handbrake.fr/
It will be an English UI, but if you just convert it, you can leave the default setting, so please try it.
By default, the extension is probably mp4 and the video codec is H.264.H.264 is widely used in videos distributed on the Web such as YouTube and Facebook, so if it's for the web, I think it's okay to use it as it is.
© 2024 OneMinuteCode. All rights reserved.