what's wrong with my mpeg2-ts pipeline

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

what's wrong with my mpeg2-ts pipeline

Zhao, Halley

Hi all:

For a mpeg2 TS stream, I can playback it by playbin:

gst-launch -v -v playbin uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg

 

but when I assemble the pipeline with specified elements, video freeze after show the first frame, an no audio out.

gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video ! ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec ! audioconvert ! audioresample ! autoaudiosink

 

Could you kindly tell me where is wrong for my second pipeline, Great thanks.

 

 

ZHAO, Halley (Aihua)

Email: halley.zhao[hidden email]

Tel: +86(21)61166476

iNet: 8821-6476

SSG/OTC/UMD 3W033

 


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Sumanth V
Use "mad" instead of "a52dec".


On Thu, Feb 12, 2009 at 11:05 AM, Zhao, Halley <[hidden email]> wrote:

Hi all:

For a mpeg2 TS stream, I can playback it by playbin:

gst-launch -v -v playbin uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg

 

but when I assemble the pipeline with specified elements, video freeze after show the first frame, an no audio out.

gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video ! ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec ! audioconvert ! audioresample ! autoaudiosink

 

Could you kindly tell me where is wrong for my second pipeline, Great thanks.

 

 

ZHAO, Halley (Aihua)

Email: halley.zhao[hidden email]

Tel: +86(21)61166476

iNet: 8821-6476

SSG/OTC/UMD 3W033

 


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Zhao, Halley

I don’t think so. And a quick try shows it doesn’t work.

 

Debug information from playbin shows it uses a52dec for AC3 decoder.

 

I guess there are some parameter like sync=false, push/pull. But doesn’t work.

 

 


From: Sumanth V [mailto:[hidden email]]
Sent: 2009
212 13:54
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] what's wrong with my mpeg2-ts pipeline

 

Use "mad" instead of "a52dec".

On Thu, Feb 12, 2009 at 11:05 AM, Zhao, Halley <[hidden email]> wrote:

Hi all:

For a mpeg2 TS stream, I can playback it by playbin:

gst-launch -v -v playbin uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg

 

but when I assemble the pipeline with specified elements, video freeze after show the first frame, an no audio out.

gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video ! ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec ! audioconvert ! audioresample ! autoaudiosink

 

Could you kindly tell me where is wrong for my second pipeline, Great thanks.

 

 

ZHAO, Halley (Aihua)

Email: halley.zhao[hidden email]

Tel: +86(21)61166476

iNet: 8821-6476

SSG/OTC/UMD 3W033

 


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

 


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Zaheer Merali-2
In reply to this post by Zhao, Halley
queue sizes are too small so change each queue to this:

queue max-size-buffers=0 max-size-time=0

On Thu, Feb 12, 2009 at 5:35 AM, Zhao, Halley <[hidden email]> wrote:

> Hi all:
>
> For a mpeg2 TS stream, I can playback it by playbin:
>
> gst-launch -v -v playbin
> uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg
>
>
>
> but when I assemble the pipeline with specified elements, video freeze after
> show the first frame, an no audio out.
>
> gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg
> ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video !
> ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec !
> audioconvert ! audioresample ! autoaudiosink
>
>
>
> Could you kindly tell me where is wrong for my second pipeline, Great
> thanks.
>
>
>
>
>
> ZHAO, Halley (Aihua)
>
> Email: [hidden email]
>
> Tel: +86(21)61166476
>
> iNet: 8821-6476
>
> SSG/OTC/UMD 3W033
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Sumanth V
I tried the following pipeline and it worked fine.

 gst-launch filesrc location=/home/Hellboy_small.ts ! mpegtsdemux name=dec dec. ! queue2 ! mpeg2dec ! ffmpegcolorspace ! xvimagesink force-aspect-ratio=TRUE dec. ! queue2 ! a52dec ! audioconvert ! alsasink

On Thu, Feb 12, 2009 at 4:13 PM, Zaheer Merali <[hidden email]> wrote:
queue sizes are too small so change each queue to this:

queue max-size-buffers=0 max-size-time=0

On Thu, Feb 12, 2009 at 5:35 AM, Zhao, Halley <[hidden email]> wrote:
> Hi all:
>
> For a mpeg2 TS stream, I can playback it by playbin:
>
> gst-launch -v -v playbin
> uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg
>
>
>
> but when I assemble the pipeline with specified elements, video freeze after
> show the first frame, an no audio out.
>
> gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg
> ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video !
> ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec !
> audioconvert ! audioresample ! autoaudiosink
>
>
>
> Could you kindly tell me where is wrong for my second pipeline, Great
> thanks.
>
>
>
>
>
> ZHAO, Halley (Aihua)
>
> Email: [hidden email]
>
> Tel: +86(21)61166476
>
> iNet: 8821-6476
>
> SSG/OTC/UMD 3W033
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Sumanth V

Use "queue2" in place of  "queue" it should work fine.

I tried with the pipeline which u are using and it worked fine for me
with following small changes.
* i used "mpegtsdemux" in place of "flutsdemux"
* "queue2" in place of "queue1"

gst-launch filesrc location=/home/MpegTSFile.ts ! mpegtsdemux name=demuxer demuxer.! queue2 ! ffdec_mpeg2video ! ffmpegcolorspace ! videoscale ! xvimagesink force-aspect-ratio=TRUE demuxer.! queue2 ! a52dec ! audioconvert ! audioresample ! autoaudiosink                           



On Thu, Feb 12, 2009 at 5:18 PM, Sumanth V <[hidden email]> wrote:
I tried the following pipeline and it worked fine.

 gst-launch filesrc location=/home/Hellboy_small.ts ! mpegtsdemux name=dec dec. ! queue2 ! mpeg2dec ! ffmpegcolorspace ! xvimagesink force-aspect-ratio=TRUE dec. ! queue2 ! a52dec ! audioconvert ! alsasink


On Thu, Feb 12, 2009 at 4:13 PM, Zaheer Merali <[hidden email]> wrote:
queue sizes are too small so change each queue to this:

queue max-size-buffers=0 max-size-time=0

On Thu, Feb 12, 2009 at 5:35 AM, Zhao, Halley <[hidden email]> wrote:
> Hi all:
>
> For a mpeg2 TS stream, I can playback it by playbin:
>
> gst-launch -v -v playbin
> uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg
>
>
>
> but when I assemble the pipeline with specified elements, video freeze after
> show the first frame, an no audio out.
>
> gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg
> ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video !
> ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec !
> audioconvert ! audioresample ! autoaudiosink
>
>
>
> Could you kindly tell me where is wrong for my second pipeline, Great
> thanks.
>
>
>
>
>
> ZHAO, Halley (Aihua)
>
> Email: [hidden email]
>
> Tel: +86(21)61166476
>
> iNet: 8821-6476
>
> SSG/OTC/UMD 3W033
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Zhao, Halley
In reply to this post by Zaheer Merali-2
  Great thanks.
  That works.
  
  
  >-----Original Message-----
  >From: Zaheer Merali [mailto:[hidden email]]
  >Sent: 2009年2月12日 18:44
  >To: Discussion of the development of GStreamer
  >Subject: Re: [gst-devel] what's wrong with my mpeg2-ts pipeline
  >
  >queue sizes are too small so change each queue to this:
  >
  >queue max-size-buffers=0 max-size-time=0
  >
  >On Thu, Feb 12, 2009 at 5:35 AM, Zhao, Halley <[hidden email]> wrote:
  >> Hi all:
  >>
  >> For a mpeg2 TS stream, I can playback it by playbin:
  >>
  >> gst-launch -v -v playbin
  >> uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg
  >>
  >>
  >>
  >> but when I assemble the pipeline with specified elements, video freeze
  >after
  >> show the first frame, an no audio out.
  >>
  >> gst-launch -v -v filesrc location=/home/halley/media/video/
  >mpeg2_ac3_ts.mpg
  >> ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video !
  >> ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec !
  >> audioconvert ! audioresample ! autoaudiosink
  >>
  >>
  >>
  >> Could you kindly tell me where is wrong for my second pipeline, Great
  >> thanks.
  >>
  >>
  >>
  >>
  >>
  >> ZHAO, Halley (Aihua)
  >>
  >> Email: [hidden email]
  >>
  >> Tel: +86(21)61166476
  >>
  >> iNet: 8821-6476
  >>
  >> SSG/OTC/UMD 3W033
  >>
  >>
  >>
  >>
  >-----------------------------------------------------------------------
  >-------
  >> Create and Deploy Rich Internet Apps outside the browser with
  >> Adobe(R)AIR(TM)
  >> software. With Adobe AIR, Ajax developers can use existing skills and code
  >> to
  >> build responsive, highly engaging applications that combine the power of
  >> local
  >> resources and data with the reach of the web. Download the Adobe AIR SDK
  >and
  >> Ajax docs to start building applications
  >today-http://p.sf.net/sfu/adobe-com
  >> _______________________________________________
  >> gstreamer-devel mailing list
  >> [hidden email]
  >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
  >>
  >>
  >
  >-----------------------------------------------------------------------
  >-------
  >Create and Deploy Rich Internet Apps outside the browser with
  >Adobe(R)AIR(TM)
  >software. With Adobe AIR, Ajax developers can use existing skills and code
  >to
  >build responsive, highly engaging applications that combine the power of
  >local
  >resources and data with the reach of the web. Download the Adobe AIR SDK
  >and
  >Ajax docs to start building applications
  >today-http://p.sf.net/sfu/adobe-com
  >_______________________________________________
  >gstreamer-devel mailing list
  >[hidden email]
  >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with my mpeg2-ts pipeline

Zhao, Halley
In reply to this post by Sumanth V

Thanks,

but queue2 still doesn’t work for my pipeline.

 

While  “queue max-size-buffers=0 max-size-time=0” works fine.

 

 


From: Sumanth V [mailto:[hidden email]]
Sent: 2009
212 20:41
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] what's wrong with my mpeg2-ts pipeline

 


Use "queue2" in place of  "queue" it should work fine.

I tried with the pipeline which u are using and it worked fine for me
with following small changes.
* i used "mpegtsdemux" in place of "flutsdemux"
* "queue2" in place of "queue1"

gst-launch filesrc location=/home/MpegTSFile.ts ! mpegtsdemux name=demuxer demuxer.! queue2 ! ffdec_mpeg2video ! ffmpegcolorspace ! videoscale ! xvimagesink force-aspect-ratio=TRUE demuxer.! queue2 ! a52dec ! audioconvert ! audioresample ! autoaudiosink                           


On Thu, Feb 12, 2009 at 5:18 PM, Sumanth V <[hidden email]> wrote:

I tried the following pipeline and it worked fine.

 gst-launch filesrc location=/home/Hellboy_small.ts ! mpegtsdemux name=dec dec. ! queue2 ! mpeg2dec ! ffmpegcolorspace ! xvimagesink force-aspect-ratio=TRUE dec. ! queue2 ! a52dec ! audioconvert ! alsasink

 

On Thu, Feb 12, 2009 at 4:13 PM, Zaheer Merali <[hidden email]> wrote:

queue sizes are too small so change each queue to this:

queue max-size-buffers=0 max-size-time=0


On Thu, Feb 12, 2009 at 5:35 AM, Zhao, Halley <[hidden email]> wrote:
> Hi all:
>
> For a mpeg2 TS stream, I can playback it by playbin:
>
> gst-launch -v -v playbin
> uri=file:///home/halley/media/video/mpeg2_ac3_ts.mpg
>
>
>
> but when I assemble the pipeline with specified elements, video freeze after
> show the first frame, an no audio out.
>
> gst-launch -v -v filesrc location=/home/halley/media/video/ mpeg2_ac3_ts.mpg
> ! flutsdemux name=demuxer demuxer.! queue ! ffdec_mpeg2video !
> ffmpegcolorspace ! videoscale ! autovideosink demuxer.! queue ! a52dec !
> audioconvert ! audioresample ! autoaudiosink
>
>
>
> Could you kindly tell me where is wrong for my second pipeline, Great
> thanks.
>
>
>
>
>
> ZHAO, Halley (Aihua)
>
> Email: [hidden email]
>
> Tel: +86(21)61166476
>
> iNet: 8821-6476
>
> SSG/OTC/UMD 3W033
>
>
>

> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

 

 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel