views:

845

answers:

4
+1  A: 

If you're reasonably close to a modern Linux system, try the file command. It's pretty well-educated:

~> file foo.mov
foo.mov: ISO Media, Apple QuickTime movie
~> mv foo.mov whatever
~> file whatever
whatever: ISO Media, Apple QuickTime movie

As you can see, it checks the contents of the file, it doesn't just test the filename. Not implying that the tool you tried was reliant on the filename, just trying to illustrate that it can be a powerful tool.

unwind
gspot doesn't check the filename neither
Shay Erlichmen
@Shay: I wasn't trying to imply a limitation in gspot, I was trying to describe file to people who might not be familiar with it. Updated my wording to hopefully reflect that.
unwind
+1  A: 

Try mplayer in console mode. It prints file info if it detects it. This question should be posted in superuser i guess...

Quamis
+1  A: 

You can use ffpmeg (Windows builds here) with the -i switch:

ffmpeg -i myfile.avi

FFmpeg version SVN-r19159-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et al.
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.30. 2 / 52.30. 2
libavformat 52.34. 0 / 52.34. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 0. 5. 0 / 0. 5. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jun 12 2009 04:25:02, gcc: 4.5.0 20090517 (experimental)
Input #0, avi, from 'myfile.avi':
Duration: 00:00:00.41, start: 0.000000, bitrate: 363 kb/s
Stream #0.0: Video: rawvideo, pal8, 60x49, 12 tbr, 12 tbn, 12 tbc
At least one output file must be specified

Shay Erlichmen
Yes, seems like it is a h264 file. Thanks.Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)-> 25.00 (50/2)Input #0, h264, from 'record2.avi': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 25 tbr, 1200k tbn, 50 tbcAt least one output file must be specified
KenC
It only shows the codec. Is there a way I can see the container it uses? Thanks
KenC
it does say: h264 "raw H.264 video format"
Shay Erlichmen
KenC: If you want to quickly wrap the raw h264 in a container using ffmpeg, use "ffmpeg -i myfile.avi -vcodec copy myfile_wrapped.avi" and you should get an AVI file with a single H.264 stream. This wrapping is also very fast as it is a simple stream mux.
AKX
A: 

try mediainfo it is a great tool and gives a much more detailed info than ffmpeg or gspot