Bug 69134 - [gst-vaapi-master]Transcoding from H.264 to MPEG2 failed
Summary: [gst-vaapi-master]Transcoding from H.264 to MPEG2 failed
Status: VERIFIED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Guangxin.Xu
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-09 09:02 UTC by zhenxiang.li
Modified: 2013-09-16 06:50 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description zhenxiang.li 2013-09-09 09:02:44 UTC
Environment:
--------------
platform:ivb
libva: 9afa699796c1221ee0c188f490d844af4105b447
intel-driver: 42bb613e72d235bcbe141c906dec9431e4c29661
Gstreamer:
(1.0)1125b9a924f4c03fa3c6770c244200213dd6dd84
gst-plugins-base:
(1.0)2dd3f028c1e6dea799d7496639f53220818b20b1
gst-plugins-bad:
(1.0)9f9f2ce9af43390e5f09d43b774d3d347f6ed7be
gst-plugins-good:
(1.0)ef88d5486fa9c05eaa26a7b9eb63db6b691d3bee
gst-plugins-ugly:
(1.0)c7c911b8320576429e4a4234a1e29ec7436e6814
Gst-vaapi:
(master)7b57d70425acf2636287fa0de3e1b16936a240fe

Reproduce steps:
--------------
gst-launch-1.0 filesrc location= /root/media_tools/Mux_Stream/H264_640x368_frame300.MP4 ! qtdemux ! vaapidecode ! vaapiencodempeg2 ! tsdemux ! filesink location=new.ts

Log info:
--------------
WARNING: erroneous pipeline: could not link vaapiencodempeg2-0 to tsdemux0
Comment 1 zhenxiang.li 2013-09-09 09:24:53 UTC
It can create new.ts through changing parameter(changed it to "mpegpsmux") of the executing command as above, but the new.ts file can not be played by gst. 

Log info are as follow:

ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal data stream error.
Additional debug info:
mpegtsbase.c(1620): mpegts_base_loop (): /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
stream stopped, reason error
ERROR: pipeline doesn't want to preroll.
(cmd: gst-launch-1.0 filesrc location=new.ts ! tsdemux !  vaapidecode ! vaapisink sync=false)
Comment 2 Guangxin.Xu 2013-09-10 06:41:37 UTC
(In reply to comment #0)
> Environment:
> --------------
> platform:ivb
> libva: 9afa699796c1221ee0c188f490d844af4105b447
> intel-driver: 42bb613e72d235bcbe141c906dec9431e4c29661
> Gstreamer:
> (1.0)1125b9a924f4c03fa3c6770c244200213dd6dd84
> gst-plugins-base:
> (1.0)2dd3f028c1e6dea799d7496639f53220818b20b1
> gst-plugins-bad:
> (1.0)9f9f2ce9af43390e5f09d43b774d3d347f6ed7be
> gst-plugins-good:
> (1.0)ef88d5486fa9c05eaa26a7b9eb63db6b691d3bee
> gst-plugins-ugly:
> (1.0)c7c911b8320576429e4a4234a1e29ec7436e6814
> Gst-vaapi:
> (master)7b57d70425acf2636287fa0de3e1b16936a240fe
> 
> Reproduce steps:
> --------------
> gst-launch-1.0 filesrc location=
> /root/media_tools/Mux_Stream/H264_640x368_frame300.MP4 ! qtdemux !
> vaapidecode ! vaapiencodempeg2 ! tsdemux ! filesink location=new.ts
> 
> Log info:
> --------------
> WARNING: erroneous pipeline: could not link vaapiencodempeg2-0 to tsdemux0

demux is for decoder, you need change tsdemux to mpeg2tsmux.
Comment 3 Guangxin.Xu 2013-09-10 06:43:14 UTC
(In reply to comment #1)
> It can create new.ts through changing parameter(changed it to "mpegpsmux")
> of the executing command as above, but the new.ts file can not be played by
> gst. 
> 
> Log info are as follow:
> 
> ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal
> data stream error.
> Additional debug info:
> mpegtsbase.c(1620): mpegts_base_loop ():
> /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
> stream stopped, reason error
> ERROR: pipeline doesn't want to preroll.
> (cmd: gst-launch-1.0 filesrc location=new.ts ! tsdemux !  vaapidecode !
> vaapisink sync=false)

ps muxed bit stream need a ps demuxer. you need change tsdemux to mpegpsdemux if your bitstream is a ps stream
Comment 4 zhenxiang.li 2013-09-16 06:50:33 UTC
Thanks. This has been fixed with change mpegpsmux to mpegtsmux. Close it.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.