Mpeg Ts MUxer and Its header

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Mpeg Ts MUxer and Its header

Shrishty Deorari
Hi,

I am unsing mpegtsmux element for Ts muxing of H264 video data. I realized that MpegTsMux is actually appending the 188 Byte header after every 3 frames before while muxing,
I was wondering if Somehow I can change this and append/add Ts header for every frame or every I frame.
Is this possible?


With Warm Regards,

Shrishty Deorari



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mpeg Ts MUxer and Its header

Mikl
Reply | Threaded
Open this post in threaded view
|

Re: Mpeg Ts MUxer and Its header

Sebastian Dröge-3
In reply to this post by Shrishty Deorari
On Thu, 2016-10-20 at 18:30 +0530, Shrishty Deorari wrote:
> Hi,
>
> I am unsing mpegtsmux element for Ts muxing of H264 video data. I
> realized that MpegTsMux is actually appending the 188 Byte header
> after every 3 frames before while muxing, 
> I was wondering if Somehow I can change this and append/add Ts header
> for every frame or every I frame. 
> Is this possible?

Can you provide some testcase that shows the problem you're seeing?

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mpeg Ts MUxer and Its header

Shrishty Deorari
Hi,
Here is the sample pipeline  which we are using:
/gst-launch-1.0 rtspsrc location=rtsp://URL ! rtph264depay ! h264parse ! mpegtsmux ! filesink location="/tmp/tmp15.ts"

and attached is the ts file created. The Ts header is coming randomly and not for every I frame.


With Warm Regards,

Shrishty Deorari

VVDN Technologies Pvt Ltd

Cell : +91 7773980237 | Skype : shrishty_vvdn



On Mon, Oct 24, 2016 at 12:23 PM, Sebastian Dröge <[hidden email]> wrote:
On Thu, 2016-10-20 at 18:30 +0530, Shrishty Deorari wrote:
> Hi,
>
> I am unsing mpegtsmux element for Ts muxing of H264 video data. I
> realized that MpegTsMux is actually appending the 188 Byte header
> after every 3 frames before while muxing, 
> I was wondering if Somehow I can change this and append/add Ts header
> for every frame or every I frame. 
> Is this possible?

Can you provide some testcase that shows the problem you're seeing?

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

tmp15.ts (559K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mpeg Ts MUxer and Its header

knorr
What do you mean by 188 byte TS header?

The file you shared has a MPEG-TS header for each 188 byte packet. Normally the header is 4 byte.
Occasionally, the header will include a adaptation field with PCR timestamps etc. Perhaps this is what you are referring to by header?

On Mon, Oct 24, 2016 at 12:40 PM, Shrishty Deorari <[hidden email]> wrote:
Hi,
Here is the sample pipeline  which we are using:
/gst-launch-1.0 rtspsrc location=rtsp://URL ! rtph264depay ! h264parse ! mpegtsmux ! filesink location="/tmp/tmp15.ts"

and attached is the ts file created. The Ts header is coming randomly and not for every I frame.


With Warm Regards,

Shrishty Deorari

VVDN Technologies Pvt Ltd

Cell : +91 7773980237 | Skype : shrishty_vvdn



On Mon, Oct 24, 2016 at 12:23 PM, Sebastian Dröge <[hidden email]> wrote:
On Thu, 2016-10-20 at 18:30 +0530, Shrishty Deorari wrote:
> Hi,
>
> I am unsing mpegtsmux element for Ts muxing of H264 video data. I
> realized that MpegTsMux is actually appending the 188 Byte header
> after every 3 frames before while muxing, 
> I was wondering if Somehow I can change this and append/add Ts header
> for every frame or every I frame. 
> Is this possible?

Can you provide some testcase that shows the problem you're seeing?

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel