Playback Midi Synchronous to Video

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Oct 8 09:28:59 PDT 2013


Hello,

Le mardi 08 octobre 2013 à 10:26 +0200, Lucas Wendel a écrit : 
> Hello everyone,
> 
> does anyone of you can give me a hint how it would be possible to
> Record, and play back a Midi file synchronous to a Video? All products
> which already solve this are for Windows witch I found. I would prefer a
> Console based solution so that I can write my own interface around it.

I just tested it and should work with PiTiVi/GES, though writing xges
file manually is not that easy, neither it is highly documented. GES
comes with ges-launch-1.0 that let you playback a project file produced
by hand, or using PiTiVi. To help you out, I have attached a simplified
to the simplier form xges file that do what you are trying to to. Note
that timing is in nanosecond.

Nicolas

p.s. currently the best way to build everything is through this,
http://wiki.pitivi.org/wiki/Building_with_GES
-------------- next part --------------
<ges version='0.1'>
  <project>
    <ressources>
      <asset id='file:///home/nicolas/Videos/Test/audio.mp3' extractable-type-name='GESUriClip'/>
      <asset id='file:///home/nicolas/Videos/Test/video.mp4' extractable-type-name='GESUriClip'/>
    </ressources>
    <timeline>
      <track caps='video/x-raw' track-type='4' track-id='0'/>
      <track caps='audio/x-raw' track-type='2' track-id='1'/>
      <layer priority='0'>
        <clip id='0' asset-id='file:///home/nicolas/Videos/Test/video.mp4' type-name='GESUriClip' layer-priority='0' track-types='4' start='0' duration='-1' inpoint='0' rate='0'>
        </clip>
      </layer>
      <layer priority='1'>
        <clip id='1' asset-id='file:///home/nicolas/Videos/Test/audio.mp3' type-name='GESUriClip' layer-priority='1' track-types='2' start='0' duration='-1' inpoint='0' rate='0'>
        </clip>
      </layer>
    </timeline>
</project>
</ges>


More information about the gstreamer-devel mailing list