If you are looking for the FFMPEG command line for this, try the following:
ffmpeg -i "source.h264" -c:v copy -f mp4 "myOutputFile.mp4"
If you have a separate audio file, you can also add it:
ffmpeg -i "source.h264" -i "myAudio" -c:v copy -c:a copy -f mp4 "myOutputFile.mp4"
If your sound should also be encoded (e.g. AAC-LC codec, 256-bit / s bit-bit):
ffmpeg -i "source.h264" -i "myAudio" -c:v copy -c:a aac -b:a 256k -strict -2 -f mp4 "myOutputFile.mp4"
If this helps, mark this as a good answer. Thanks!
source share