i just have h.264 encoded video stream and i want to make mp4 file.
/* find output format for mp4 */
m_pOutputFormat= av_guess_format("mp4", NULL, NULL);
if (!m_pOutputFormat) return FALSE; // could not find suitable output format(mp4).
on this code, i get mpeg for video codec not h264, i think that's because i build ffmpeg without libx264. (and i dont want to build ffmpeg with libx264 for license)
m_pOutputFormat->video_codec= CODEC_ID_H264;
when i change its video_codec to CODEC_ID_H264, it works fine some player(kmplayer). but it's not work on ipod, QuickTime.
this code maybe wrong because it could not change codec_tag value(this variable has const property).
1. how can i get other result for av_guess_format("mp4",NULL,NULL) without recompile libav+libx264?
2. how can i make mp4 file properly?