GNOME Bugzilla – Bug 647739
Streaming H264 encoded RTSP stream to disk results in video file with no timecode data
Last modified: 2011-05-31 23:46:51 UTC
I am using gstreamer to capture an H264 encoded RTSP stream from a Sanyo IP video to disk. The resulting video file does not play in Windows Media Player, but it displays fine in VLC. This would be fine, but the video files in VLC (8hr each) seem to be lacking all time code data. That is, VLC shows the length as 00:00 and the current position is always 00:00. The command line I use to capture the stream is: gst-launch.exe rtspsrc location=rtspt://<user>:<pass>@<ip_addr>/VideoInput/1/h264/1 name=d ! queue ! fakesink d. ! queue ! rtph264depay ! h264parse access-unit=true output-format=sample ! mpegtsmux ! filesink location="output.mp4" To be clear, I'm not expecting the timecode to match the camera's date/time stamp... I'm just expecting that if I capture 10min worth of video and I watch to the 3 minute 40 second point, VLC should show something like "03:40 / 10:00".
First of all, you created an MPEG-TS file, not mp4. Which is why Windows Media Player won't play it. Second, the output file *does* contain timing information. If VLC can't figure out the duration, that's not a GStreamer bug. (Well, it could be, but it isn't in this particular case.)