MPEG TS not having proper audio video timestamps

Jesper Larsen jesper.larsen at ixonos.com
Mon Jan 6 23:08:50 PST 2014


On Tue, Jan 7, 2014 at 6:08 AM, adi4info <adi4info at gmail.com> wrote:

> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

Hi

I have used the DM8148 to generate H264 video that contains VUI and SPS/PPS
info, and subsequently mux it into a MPEG TS stream, that plays well in VLC.

I don't know if VUI, SPS, PPS is supported on the DM6467 platform. The way
to activate VUI,SPS,PPS info using OMX on the EZSDK is discussed in the FAQ
(5) on this page http://processors.wiki.ti.com/index.php/OMX_VENC

You could also try to set the caps for the h264, maybe something along the
way of
video/x-h264,framerate=30/1,width=1280,height=720


- Jesper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140107/08c967ad/attachment-0001.html>


More information about the gstreamer-devel mailing list