Cannot play MTS file with gstreamer

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

Cannot play MTS file with gstreamer

Albert Costa
Hi,
I have a file generated by a video recorder that I play with VLC but not with gstreamer.
This is a mts file, and I try:
gst-launch filesrc=myfile.mts ! decodebin ! ffmpegcolorspace ! directdrawsink, 

I get the following error:

Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, layer=(int)1
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1, layer=(int)1
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0: Failed to parse stream
Additional debug info:
..\..\..\..\..\Source\gst-plugins-ugly\gst\mpegaudioparse\gstmpegaudioparse.c(1541): gst_mp3parse_handle_data (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = NULL
Freeing pipeline ...

Ouput of VLC gives for audio:
Codec A52Audio (aka AC3)(a52), stereo, 48000Hz, 256kb/s

Does this mean that gstreamer cannot handle the decoding of AC3 audio?

Regards,
Al



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cannot play MTS file with gstreamer

Tim-Philipp Müller-2
On Fri, 2010-07-02 at 08:47 +0000, Albert Costa wrote:

Hi,

> I have a file generated by a video recorder that I play with VLC but
> not with gstreamer.

Maybe you could file a bug and make the file available somewhere (and/or
attach the first 1MB to the bug in bugzilla using 'head --bytes=1000k
foo.mts > head.mts') ?


> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, layer=(int)1

Looks like a typefinding problem


> Does this mean that gstreamer cannot handle the decoding of AC3 audio?

No.


Cheers
 -Tim



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cannot play MTS file with gstreamer

Kapil Agrawal
Sure it could be a typefind issue.

Also this seems to be a ts file with 192 packet size which is .mts.
You could try using

gst-launch filesrc location=test.mts ! mpegtsdemux ! decodebin ! pulsesink ....

Best
Kapil

On Fri, Jul 2, 2010 at 2:39 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Fri, 2010-07-02 at 08:47 +0000, Albert Costa wrote:

Hi,

> I have a file generated by a video recorder that I play with VLC but
> not with gstreamer.

Maybe you could file a bug and make the file available somewhere (and/or
attach the first 1MB to the bug in bugzilla using 'head --bytes=1000k
foo.mts > head.mts') ?


> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, layer=(int)1

Looks like a typefinding problem


> Does this mean that gstreamer cannot handle the decoding of AC3 audio?

No.


Cheers
 -Tim



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re : Cannot play MTS file with gstreamer

Albert Costa
Great, that works !
Thanks a lot,
Regards,
Al


De : Kapil Agrawal <[hidden email]>
À : Discussion of the development of GStreamer <[hidden email]>
Envoyé le : Ven 2 juillet 2010, 11h 58min 56s
Objet : Re: [gst-devel] Cannot play MTS file with gstreamer

Sure it could be a typefind issue.

Also this seems to be a ts file with 192 packet size which is .mts.
You could try using

gst-launch filesrc location=test.mts ! mpegtsdemux ! decodebin ! pulsesink ....

Best
Kapil

On Fri, Jul 2, 2010 at 2:39 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Fri, 2010-07-02 at 08:47 +0000, Albert Costa wrote:

Hi,

> I have a file generated by a video recorder that I play with VLC but
> not with gstreamer.

Maybe you could file a bug and make the file available somewhere (and/or
attach the first 1MB to the bug in bugzilla using 'head --bytes=1000k
foo.mts > head.mts') ?


> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, layer=(int)1

Looks like a typefinding problem


> Does this mean that gstreamer cannot handle the decoding of AC3 audio?

No.


Cheers
 -Tim



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re : Cannot play MTS file with gstreamer

Tim-Philipp Müller-2
On Fri, 2010-07-02 at 10:51 +0000, Albert Costa wrote:

> Great, that works !

Please still file a bug, the typefind issue needs to be fixed. Thanks!

Cheers
 -Tim




------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel