<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hi Wim;<br>
Thx for your reply.&nbsp; Onto newer things now... again any help
appreciated.<br>
<br>
(this is more for those who may be traveling down the path i am than
for informing you specifically)<br>
<ul>
  <li>Got libmpeg2 code, built it;&nbsp; BTW: libmpeg2 must be built in
Multithreaded mode if you are using VisualStudio 2005 - otherwise
linking the lib with mpeg2dec will give a link error on libcd.lib.<br>
  </li>
  <li>then (after much searching) found mpeg2dec in the ext folder
under gst-plugins-ugly.&nbsp; Built that as Win32 DLL and</li>
  <li>&nbsp;copied it to GST_PLUGIN_PATH folder; <br>
  </li>
  <li>removed the registry file and ran inspect to verify that mpeg2dec
was available.</li>
</ul>
Then i tried the playbin using:<br>
<blockquote><tt>gst-launch-0.10.exe playbin
uri=<a class="moz-txt-link-rfc2396E" href="file:///c:/dvds/Aeon_Flux.mpg">"file:///c:/dvds/Aeon_Flux.mpg"</a></tt><br>
</blockquote>
This worked.&nbsp;&nbsp; However the CPU Usage oscillated between 40% to 60%+.&nbsp; <br>
<br>
One of my reasons for looking at gstreamer was to cut down the cpu
utilization on software decoding.&nbsp; Any hints on how to do this??&nbsp; The
machine is a Intel Dual Core 2CPU, 2.00GHz, with 2GB RAM.<br>
<br>
BTW: Aeon_Flux.mpg is Mpeg-2 ts with MP2 audio -- its not h.264 or
other formats; its the trailer to Aeon Flux the movie.<br>
<br>
Thinking that it maybe due to queues/buffers, i tried the following
pipelines and none work.<br>
<br>
BTW: i did copy the old pipelines with the { and tried to embelish
them... as I reported, a) they were on the man pages -- which did not
mention specific 0.10 or 0.8 version) and b) 'cause Julien recommended
it, c) 'cause all/any pipeline examples on devel have them.<br>
<br>
Pipelines that don't work:<br>
<blockquote><tt>C:\downloads\gstreamer&gt;gst-launch-0.10.exe filesrc
location="c:/dvds/Aeon_flux.mpg" ! flutsdemux name="d" .video_00 !mpe</tt><tt>gvideoparse
! mpeg2dec! ffmpegcolorspace ! directdrawsink ! d.audio_00 !queue !
mp3parse ! dshowadec_mpeg1 ! autoaudiosi</tt><tt>nk</tt><br>
  <br>
  <tt>** (gst-launch-0.10:5212): WARNING **: error while parsing</tt><br>
  <tt>WARNING: erroneous pipeline: link without source element</tt><br>
</blockquote>
Guess the problem with the above pipeline is that i was trying to link
directdrawsink to d.audio_00, sooo..... (removed the ! 'tween
directdrawsink and d.audio_00)<br>
<blockquote><tt>C:\downloads\gstreamer&gt;gst-launch-0.10.exe filesrc
location="c:/dvds/Aeon_flux.mpg" ! flutsdemux name="d" .video_00 !mpe</tt><tt>gvideoparse
! mpeg2dec! ffmpegcolorspace ! directdrawsink&nbsp; d.audio_00 !queue !
mp3parse ! dshowadec_mpeg1 ! autoaudiosin</tt><tt>k</tt><br>
  <tt>Setting pipeline to PAUSED ...</tt><br>
  <tt>Pipeline is PREROLLING ...</tt><br>
  <tt>^C</tt><br>
  <tt>C:\downloads\gstreamer&gt;gst-launch-0.10.exe filesrc
location="c:/dvds/Aeon_flux.mpg" ! flutsdemux name="d" .video_00 ! qu</tt><tt>eue
! mpegvideoparse ! mpeg2dec! ffmpegcolorspace ! directdrawsink&nbsp;
d.audio_00 !queue ! mp3parse ! dshowadec_mpeg1 ! aut</tt><tt>oaudiosink</tt><br>
  <tt>Setting pipeline to PAUSED ...</tt><br>
  <tt>Pipeline is PREROLLING ...</tt><br>
  <tt>^C<br>
  </tt></blockquote>
That helped with the error, but it did not render either audio or video.<br>
<blockquote><tt>C:\downloads\gstreamer&gt;gst-launch-0.10.exe filesrc
location="c:/dvds/Aeon_flux.mpg" ! flutsdemux name="d" .video_00 ! qu</tt><tt>eue
! mpegvideoparse ! mpeg2dec! ffmpegcolorspace ! directdrawsink</tt><br>
  <tt>Setting pipeline to PAUSED ...</tt><br>
  <tt>Pipeline is PREROLLING ...</tt><br>
  <tt>^C<br>
  </tt></blockquote>
your email reply says to use single quotes instead of double quotes...
so altered to that... but " seems to be what works in Win32.<br>
<blockquote><tt>C:\downloads\gstreamer&gt;gst-launch-0.10.exe filesrc
location="c:/dvds/Aeon_flux.mpg" ! flutsdemux name='d' .video_00 ! qu</tt><tt>eue
! mpegvideoparse ! mpeg2dec! ffmpegcolorspace ! directdrawsink&nbsp;
d.audio_00 !queue ! mp3parse ! dshowadec_mpeg1 ! aut</tt><tt>oaudiosink</tt><br>
  <tt>WARNING: erroneous pipeline: No element named "d" - omitting link</tt><br>
</blockquote>
Well... trying with just video... and nada!<br>
<blockquote><tt>C:\downloads\gstreamer&gt;gst-launch-0.10.exe filesrc
location="c:/dvds/Aeon_flux.mpg" ! flutsdemux name="d" .video_00 ! qu</tt><tt>eue
! mpegvideoparse ! mpeg2dec! ffmpegcolorspace ! directdrawsink</tt><br>
  <tt>Setting pipeline to PAUSED ...</tt><br>
  <tt>Pipeline is PREROLLING ...</tt><br>
  <tt>^C</tt><br>
</blockquote>
This pipeline specification on command line, the lack of correct
documentation of 10.x etc. makes adoption of gstreamer quite
challenging!&nbsp; <br>
<br>
I'm glad for the devel assistance and at times feel that basics are
missing... its not that i want "hand-holding", not understanding the
impl begs for much trial and error, lost time and perhaps PITA q's on
devel to those who are in "the Know".<br>
<br>
Unless I'm able to get the CPU usage down drastically, i can't see
myself using gstreamer... since i want a win32 solution, maybe i'll go
with directx.&nbsp; will see... hoping that there are some silver bullet
answers ;-)<br>
<br>
kindest regards,<br>
s-<br>
<br>
Wim Taymans wrote:
<blockquote cite="mid:1203673254.7179.41.camel@metal" type="cite">
  <pre wrap="">On Thu, 2008-02-21 at 17:42 -0700, Sheshadri Mantha wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">OK here is what I've tried.
      * Using simply playbin as: gst-launch-0.10.exe playbin
        uri=<a class="moz-txt-link-rfc2396E" href="file:///c:/dvds/Aeon_Flux.mpg">"file:///c:/dvds/Aeon_Flux.mpg"</a>.  This plays the audio but
        is not able to play video.  The output log is as follows:
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        playbin uri=<a class="moz-txt-link-rfc2396E" href="file:///c:/dvds/Aeon_Flux.mpg">"file:///c:/dvds/Aeon_Flux.mpg"</a>
        Setting pipeline to PAUSED ...
        Pipeline is PREROLLING ...
        ** Message: don't know how to handle video/mpeg,
        systemstream=(boolean)false, parsed=(boolean)true,
        mpegversion=(int)2,
        width=(int)720, height=(int)576, framerate=(fraction)25/1,
        pixel-aspect-ratio=(fraction)16/15, codec_data=(buffer)00000
        b32d0240230ea62380000001b5148200010000
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You need an mpeg2 video decoder. We currently only have mpeg2dec in
gst-plugins-ugly, which depends on libmpeg2.

  </pre>
  <blockquote type="cite">
    <pre wrap="">        OIL: ERROR liboilcpu.c 282:
        oil_cpu_i386_kernel_restrict_flags(): Operating system is not
        known to support SSE.  Assumi
        g it does, which might cause problems
        Pipeline is PREROLLED ...
        Setting pipeline to PLAYING ...
        New clock: GstAudioSinkClock
      * So i set the debug level to 3 and deciphered which plugins
        playbin tries to use. and then tried to create a chain of
        plugins which will play video (only).  This pipeline plays
        only video (as expected)... NOTE: 1st 2 tries don't work.
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux !
        queue !mpegvideoparse ! directdrawsink
        WARNING: erroneous pipeline: could not link mpegvideoparse0 to
        directdrawsink0
    </pre>
  </blockquote>
  <pre wrap=""><!---->
mpegvideoparse outputs raw mpeg video data, which is not somthing
directdrawsink can handle.

  </pre>
  <blockquote type="cite">
    <pre wrap="">        
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux !
        queue !mpegvideoparse ! ffmpegcolorspace ! directdrawsink
        WARNING: erroneous pipeline: could not link mpegvideoparse0 to
        ffmpegcsp0
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Same here, you need a decoder...

  </pre>
  <blockquote type="cite">
    <pre wrap="">        
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux !
        queue !mpegvideoparse ! ffdec_mpeg2video! ffmpegcolorspace !
        directdrawsink
        Setting pipeline to PAUSED ...
        Pipeline is PREROLLING ...
        Pipeline is PREROLLED ...
        Setting pipeline to PLAYING ...
        New clock: GstSystemClock
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Nice try, but avoid using ffmpeg as much as you can.

  </pre>
  <blockquote type="cite">
    <pre wrap="">      * So then i tried to do both audio and video ... w/o success.
        i've tried the following pipelines; none of them work.
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux.video_%
        04x  ! {queue !mpegvideoparse ! ffdec_mpeg2video!
        ffmpegcolorspace ! directdrawsink } flutsdemux.audio_%04x !
        { queue ! mp3parse ! dshowadec_mpeg1 ! autoaudiosink}
    </pre>
  </blockquote>
  <pre wrap=""><!---->
curly braces are 0.8 syntax and do nothing in 0.10, I suspect you
blindly copied this from somewhere.

  </pre>
  <blockquote type="cite">
    <pre wrap="">        ** (gst-launch-0.10:5852): WARNING **: error while parsing
        ** (gst-launch-0.10:5852): WARNING **: error while parsing
        WARNING: erroneous pipeline: link without source element
    </pre>
  </blockquote>
  <pre wrap=""><!---->
flutsdemux.video_%04x means the 'video_%04x' padtemplate of an element
named 'flutsdemux'. An element with that name is however never defined
in the above pipeline and so the next element cannot be linked. 

  </pre>
  <blockquote type="cite">
    <pre wrap="">        
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux
        name="d" {d.video_%04x ! queue !mpegvideoparse !
        ffdec_mpeg2video! ffmpegcolorspace ! directdrawsink }
        {d.audio_%04x !  queue ! mp3parse ! dshowadec_mpeg1 !
        autoaudiosink}
        Setting pipeline to PAUSED ...
        Pipeline is PREROLLING ...
        ^C -- I Had to break out 'cause nothing was playing
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Above pipeline would be a possible working pipeline if only there was a
working mpeg video decoder in the pipeline. It's also possible that the
mpeg file simply doesn't contain mpeg2 video but, say, h264 or mpeg4.

  </pre>
  <blockquote type="cite">
    <pre wrap="">        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux.video_%
        04x! {queue !mpegvideoparse ! ffdec_mpeg2video!
        ffmpegcolorspace ! directdrawsink } flutsdemux.audio_%04x !
        { queue ! mp3parse ! dshowadec_mpeg1 ! autoaudiosink}
        
        ** (gst-launch-0.10:3660): WARNING **: error while parsing
        ** (gst-launch-0.10:3660): WARNING **: error while parsing
        WARNING: erroneous pipeline: link without source element
    </pre>
  </blockquote>
  <pre wrap=""><!---->
See 2 comments higher.

  </pre>
  <blockquote type="cite">
    <pre wrap="">        
        C:\Documents and Settings\sheshadri&gt;gst-launch-0.10.exe
        filesrc location="c:/dvds/Aeon_flux.mpg" ! flutsdemux.video_%
        04x! {queue !mpegvideoparse ! ffdec_mpeg2video!
        ffmpegcolorspace ! directdrawsink } flutsdemux.audio_%04x !
        { queue ! mp3parse ! dshowadec_mpeg1 ! autoaudiosink}
        
        ** (gst-launch-0.10:4692): WARNING **: error while parsing
        ** (gst-launch-0.10:4692): WARNING **: error while parsing
        WARNING: erroneous pipeline: link without source element
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Same.
  </pre>
  <blockquote type="cite">
    <pre wrap="">        
        C:\Documents and Settings\sheshadri&gt;
I've looked at the linux man pages and can' seem to uniquely identify
the syntax when creating different threads... the man pages seem to
add !src but add that causes pipeline errors.

So would appreciate some definitive guide/man page to specifying
pipeline.  For instance if I name an element, then can the video pad
of that element begin immediately?  When do i use . and when not?
    </pre>
  </blockquote>
  <pre wrap=""><!---->Define an element and give it a name:

.. ! flutsdemux name='myelem' ! ...

Refer to a specific pad(template) of the nearest element:

 .. ! flutsdemux  .video_00 !..

Refer to a specific pad(template) of a named element (which requires you
to name an element as well):

 .. ! flutsdemux name='myelem' ! ...  myelem.video_00 ! ..

These are about all the possible combinations.

Regards,
Wim

  </pre>
  <blockquote type="cite">
    <pre wrap="">Any working examples would help.

Kindest regards,
Sheshadri
<a class="moz-txt-link-abbreviated" href="mailto:Julien.Isorce@alumni.enseeiht.fr">Julien.Isorce@alumni.enseeiht.fr</a> wrote: 
    </pre>
    <blockquote type="cite">
      <pre wrap="">something like that :

gst-launch-0.10 ..... ! ffdemux_mpegts video_%02d! { queue !
ffdec_mpeg2video ! ffmpegcolorspace ! directdrawsink }
ffdemux_mpegts.audio_%02d! { queue ! ..... ! directsoundsink }

You should send us the commandline you tried ?
And the source stream or a link to get it.

  
      </pre>
      <blockquote type="cite">
        <pre wrap="">OK Julien;
i've uninstalled everything, and then started from scratch -- i've got
your test working.

i'll try with mpegts filters...

do you know what the sink for video_%02d could be ??

Thanks,
sheshadri

<a class="moz-txt-link-abbreviated" href="mailto:Julien.Isorce@alumni.enseeiht.fr">Julien.Isorce@alumni.enseeiht.fr</a> wrote:
    
        </pre>
        <blockquote type="cite">
          <pre wrap="">Hi

Fisrt try this command line :
gst-launch-0.10 videotestsrc num_buffers=150 ! ffmpegcolorspace !
ffenc_mpeg4 ! avimux ! filesink location=file.avi

Then try to play the generated file.avi with your best player.

If it works I cannot help your.

If not, CLEAN YOUR ENVIRONEMENT ABOUT CODECS !
So uninstall all your codecs, then reboot :P
Then install ffdshow codecs from:
<a class="moz-txt-link-freetext" href="ftp://clubicvisiteur26463:1203038229@ftpclubic44.clubic.com/temp-clubic-rx184/logiciel/ffdshow_ffdshow_20071215_anglais_11020.zip">ftp://clubicvisiteur26463:1203038229@ftpclubic44.clubic.com/temp-clubic-rx184/logiciel/ffdshow_ffdshow_20071215_anglais_11020.zip</a>
or install k-lite-codec-pack_k-lite_codec_pack_3.7.0 codecs.

It resolved the problem on my computer.


My gstreamer configuration :

gstreamer-core   -&gt; release 0.17 february 2008
gstreamer-base   -&gt; release 0.17 february 2008
gstreamer-good   -&gt; cvs february 2008
gstreamer-bad    -&gt; cvs february 2008
gstreamer-ffmpeg -&gt; cvs october 2007

release binaries :
<a class="moz-txt-link-freetext" href="http://gstreamer.freedesktop.org/pkg/windows/releases/">http://gstreamer.freedesktop.org/pkg/windows/releases/</a>
cvs binaries : <a class="moz-txt-link-freetext" href="http://gstreamer.freedesktop.org/pkg/windows/cvs/">http://gstreamer.freedesktop.org/pkg/windows/cvs/</a>

Sincerely,

Julien Isorce



      
          </pre>
          <blockquote type="cite">
            <pre wrap="">hi;
i wish to play a mpegts file.

i've tried multiple combinations of playbin, decodebin, ffmpegdemuxts,
flutsdemux and trying to render video onto directdrawsink but none of
it
works.

my guess is that i don't know how to chain the pipeline.

Questions;

    * what can video_%02d sink into ??
    * what element do i place in between say flutsdemux or
      ffmpeg_demuxts and directdrawsink ??

I'm able to play wmv and avi (funnily only the audio plays no video)
and
mov (again strangely enough the video plays but no audio).

I'm also finding it difficult to understand how to figure out which
element to link with which one... working with the gst-inspect and
launch is tedious.... and i could not get gst-editor to compile
successfuly (could not satisfy the config to generate makefiles).

any help is appreciated.

Kindest regards,
sheshadri
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
<a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________</a>
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>


        
            </pre>
          </blockquote>
          <pre wrap="">      
          </pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
  
      </pre>
    </blockquote>
    <pre wrap="">-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
<a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a>
_______________________________________________ gstreamer-devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>