Encapsulating VC1 content in MPEG-TS

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

Encapsulating VC1 content in MPEG-TS

gimmeamilk
I want to convert a VC1 video stream in a .asf container into mpeg transport stream, in the format specified in SMPTE RP227 (draft here: http://read.pudn.com/downloads50/doc/fileformat/172350/vc1%20encoding.pdf)

I assume I need to do the following:

1. Create a vc1parse plugin, similar to h264parse. This will accept raw VC1 payloads from eg asfdemux and insert the appropriate frame/sequence startcodes and PES headers.

2. Modify mpegtsmux to accept video/x-wmv caps and add a suitable PMT entry and descriptors for the VC1 type.

Then I should be able to create a pipeline along the lines of: filesrc ! asfdemux ! vc1parse ! mpegtsmux ! filesink

Does this sound like a sensible approach? I'm assuming there isn't already a standalone vc1 parsing plugin (I couldn't find one, only parser code within a decoder).
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Encapsulating VC1 content in MPEG-TS

Tim-Philipp Müller-2
On Mon, 2012-11-19 at 08:33 -0800, gimmeamilk wrote:

> I want to convert a VC1 video stream in a .asf container into mpeg transport
> stream, in the format specified in SMPTE RP227 (draft here:
> http://read.pudn.com/downloads50/doc/fileformat/172350/vc1%20encoding.pdf)
>
> I assume I need to do the following:
>
> 1. Create a vc1parse plugin, similar to h264parse. This will accept raw VC1
> payloads from eg asfdemux and insert the appropriate frame/sequence
> startcodes and PES headers.
>
> 2. Modify mpegtsmux to accept video/x-wmv caps and add a suitable PMT entry
> and descriptors for the VC1 type.
>
> Then I should be able to create a pipeline along the lines of: filesrc !
> asfdemux ! vc1parse ! mpegtsmux ! filesink
>
> Does this sound like a sensible approach? I'm assuming there isn't already a
> standalone vc1 parsing plugin (I couldn't find one, only parser code within
> a decoder).

There is one in gst-plugins-bad/gst/videoparsers/gstvc1parse.c in git
master.

Cheers
 -Tim

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

Re: Encapsulating VC1 content in MPEG-TS

gimmeamilk
Thanks for that, should've checked master!

This parser does not yet support conversion from one stream format to another, eg ASF to BDU with startcodes, so I guess I'll have to add that still.

Reply | Threaded
Open this post in threaded view
|

Re: Encapsulating VC1 content in MPEG-TS

Tim-Philipp Müller-2
On Mon, 2012-11-19 at 13:23 -0800, gimmeamilk wrote:

> This parser does not yet support conversion from one stream format to
> another, eg ASF to BDU with startcodes, so I guess I'll have to add that
> still.

That would be great!

 Cheers
  -Tim

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