To exit h264 in an MP4 container, use:
ffmpeg -t 7200 -f lavfi -i color=c=black:s=640x480 -c:v libx264 -tune stillimage -pix_fmt yuv420p output.mp4
If you want to enable the soundtrack, just add arguments for audio input and encoding (if necessary). The output duration is determined by the shortest input, i.e. audio. For example:
ffmpeg -f lavfi -i color=c=black:s=640x480 -i audio.ogg -c:v libx264 -tune stillimage -pix_fmt yuv420p -shortest -c:a aac -b:a 128k output-with-audio.mp4
Andrzej
source share