Hi, I'm recording videos of an Axis M 1031 camera with openRTSP, saving the output to a mov file, in some cases I can't play the video with mplayer or VLC, or convert it with ffmpeg, because none of them can get the resolution of the mov file.<div>

<br>openRTSP syntax used is<br>./openRTSP -q -w 320 -h 240 -f 10 -d N -u UUUU PPPP rtsp://<hostname>/mpeg4/media.amp?videocodec=h264<br><br>Checked video information with mplayer<br>$ mplayer -identify video.mov -ao null -vo null -frames 0 2>&1 | grep ^ID_<br>

ID_AUDIO_ID=0<br>ID_AID_0_LANG=eng<br>ID_VIDEO_ID=0<br>ID_FILENAME=video.mov<br>ID_DEMUXER=lavfpref<br>ID_VIDEO_FORMAT=MP4V<br>ID_VIDEO_BITRATE=0<br><b>ID_VIDEO_WIDTH=0<br>ID_VIDEO_HEIGHT=0</b><br>ID_VIDEO_FPS=600.000<br>

ID_VIDEO_ASPECT=-nan<br>ID_AUDIO_FORMAT=MP4A<br>ID_AUDIO_BITRATE=15560<br>ID_AUDIO_RATE=8000<br>ID_AUDIO_NCH=1<br>ID_START_TIME=0.00<br>ID_LENGTH=12.16<br>ID_SEEKABLE=1<br>ID_CHAPTERS=0<br>ID_VIDEO_CODEC=ffodivx<br>ID_AUDIO_BITRATE=15560<br>

ID_AUDIO_RATE=16000<br>ID_AUDIO_NCH=2<br>ID_AUDIO_CODEC=faad<br>ID_EXIT=EOF<div><br></div><div>I check the code of QuickTimeFileSink.cpp, and compared what addAtom(mp4v) should write with the file in an hex editor, and found that 0x 01 40 00 F0 was before 0x 00 48 00 00 00 48 00 00, just as expected:</div>

<div><br></div><div>QuickTimeFileSink.cpp line 1915</div><div><div>  unsigned const widthAndHeight = (fMovieWidth<<16)|fMovieHeight;</div><div>  size += addWord(widthAndHeight); // Width+height</div><div>  size += addWord(0x00480000); // Horizontal resolution</div>

<div>  size += addWord(0x00480000); // Vertical resolution</div></div><div><br></div><div>The same for the code generated by addAtom(tkhd)</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br>
</div>
</div><div>The video in question can be found in</div><div><br></div><div><a href="http://dl.dropbox.com/u/23705394/video.mov">http://dl.dropbox.com/u/23705394/video.mov</a></div><div><br></div><div>Thanks in advance.</div>

<div><br></div><div>Regards,</div><div><br></div><div>Manuel</div>