MPEG TS not having proper audio video timestamps

adi4info adi4info at gmail.com
Mon Jan 6 21:08:23 PST 2014


I'm are trying to generate a MPEG TS using H264 video and AAC audio using the
following Gstreamer Pipeline:

gst-launch filesrc location=<Video.246> ! h264parse ! mux. filesrc
location=<Audio.aac> ! aacparse ! mux. mpegtsmux name=mux ! filesink
location=output.ts

The H264 video is being generated by TI’s encoder 720p H.264 Base Profile
Encoder on DM6467 based ARM board.

The output TS generated doesn’t play in VLC. On investigating the issue I
found that the output.ts doesn’t not have valid PTS and DTS values. 
On increasing the log-level of h264parse we see that it’s not able to
generate timestamps for its output buffers giving messages “unable to
compute timestamp: VUI not present” 

I'm using the Gstreamer version 1.2.0 on Ubuntu linux desktop. 

*Need to know is the VUI information a must for gstreamer h264parse to
generate proper timestamps ? If yes is there a way to create/correct the
timestamps in resulting MPEG-TS if the h264 data has no VUI information ?* 

Logs:
0:00:02.794395868 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:639:gst_h264_parse_collect_nal: parsing collected nal 
0:00:02.794416021 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:1386:gst_h264_parse_get_timestamp: *unable to compute
timestamp: VUI not present* 
0:00:02.794438692 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:166:gst_h264_parse_reset_frame: reset frame 
0:00:02.794524817 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:166:gst_h264_parse_reset_frame: reset frame 
0:00:02.794699444 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:814:gst_h264_parse_handle_frame: last parse position 0 
0:00:02.794719583 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:846:gst_h264_parse_handle_frame: complete nal (offset, size):
(4, 1930) 
0:00:02.794736285 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:902:gst_h264_parse_handle_frame: 0xb5404250 complete nal
found. Off: 4, Size: 1930 
0:00:02.794752962 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:483:gst_h264_parse_process_nal: processing nal of type 1
Slice, size 1930 
0:00:02.794769337 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:572:gst_h264_parse_process_nal: first_mb_in_slice = 0 
0:00:02.794784220 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:575:gst_h264_parse_process_nal: frame start: 1 
0:00:02.794800946 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:583:gst_h264_parse_process_nal: parse result 0, first MB: 0,
slice type: 5 
0:00:02.794891592 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:639:gst_h264_parse_collect_nal: parsing collected nal 
0:00:02.794911717 5862 0x8fc6af0 DEBUG h264parse
gsth264parse.c:1386:gst_h264_parse_get_timestamp: *unable to compute
timestamp: VUI not present*



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/MPEG-TS-not-having-proper-audio-video-timestamps-tp4664511.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list