You can play .h264 in most media players if you don’t need to skip through the file.
The other option is to just use FFMpeg directly either by calling ffmpeg
ffmpeg -i input.h264 -c:v copy output.mp4
or using the libs to place it in a container.