I don't know the specific answer, but I imagine that if you run ffmpeg against a sample file with the switches above you should get information back from ffmpeg - like for example "error, this is not an mp4 file"
Try running this command and post the results here -
ffmpeg -i <yourfilename.ext>
Here's the result for one of my mp4 files showing stream 0:1 is h264/avc1 format -
ffmpeg -i 111_1e9d195cd474fec.mp4
- - - - results snipped - - - -
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '111_1e9d195cd474fec.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2015-02-17T08:00:31.000000Z
Duration: 00:00:12.91, start: 0.000000, bitrate: 10293 kb/s
Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1280x720, 9925 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 30 tbr, 90k tbn (default)
Metadata:
creation_time : 2015-02-17T08:00:31.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
encoder : MOTO
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2015-02-17T08:00:31.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]