After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647739 - Streaming H264 encoded RTSP stream to disk results in video file with no timecode data
Streaming H264 encoded RTSP stream to disk results in video file with no time...
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: dont know
0.10.6
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-04-14 06:26 UTC by Shaun
Modified: 2011-05-31 23:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Shaun 2011-04-14 06:26:35 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".
Comment 1 David Schleef 2011-05-31 23:46:51 UTC
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.)