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.
openRTSP syntax used is ./openRTSP -q -w 320 -h 240 -f 10 -d N -u UUUU PPPP rtsp://<hostname>/mpeg4/media.amp?videocodec=h264 Checked video information with mplayer $ mplayer -identify video.mov -ao null -vo null -frames 0 2>&1 | grep ^ID_ ID_AUDIO_ID=0 ID_AID_0_LANG=eng ID_VIDEO_ID=0 ID_FILENAME=video.mov ID_DEMUXER=lavfpref ID_VIDEO_FORMAT=MP4V ID_VIDEO_BITRATE=0 *ID_VIDEO_WIDTH=0 ID_VIDEO_HEIGHT=0* ID_VIDEO_FPS=600.000 ID_VIDEO_ASPECT=-nan ID_AUDIO_FORMAT=MP4A ID_AUDIO_BITRATE=15560 ID_AUDIO_RATE=8000 ID_AUDIO_NCH=1 ID_START_TIME=0.00 ID_LENGTH=12.16 ID_SEEKABLE=1 ID_CHAPTERS=0 ID_VIDEO_CODEC=ffodivx ID_AUDIO_BITRATE=15560 ID_AUDIO_RATE=16000 ID_AUDIO_NCH=2 ID_AUDIO_CODEC=faad ID_EXIT=EOF 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: QuickTimeFileSink.cpp line 1915 unsigned const widthAndHeight = (fMovieWidth<<16)|fMovieHeight; size += addWord(widthAndHeight); // Width+height size += addWord(0x00480000); // Horizontal resolution size += addWord(0x00480000); // Vertical resolution The same for the code generated by addAtom(tkhd) The video in question can be found in http://dl.dropbox.com/u/23705394/video.mov Thanks in advance. Regards, Manuel
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel