Adding cover art to OGM files

Discussion in 'Other video questions' started by gradinternatwd, May 30, 2012.

  1. gradinternatwd

    gradinternatwd Member

    Joined:
    May 30, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    11
    How can I add / mux cover art (JPEG, PNG..) to an OGM file. I have a series of these files which contain audio and video streams, and I would like to attach thumbnail photos.

    I have tried:
    1) Appending an ID-3 tag.
    2) mkvtoolnix to append the photo - but this alters the file format from OGG to Matroska.
    3) Using the 'tagging' feature of foobar2000 - but foobar2000 states that the operation is not supported for the file type.
    4) VirtualDubMod - I can open and save the OGM file but I cannot append an image.
    5) VLC Player - I can edit metadata but I cannot commit the changes or even a picture.

    I have also Googled extensively.

    Help!
     
    Last edited: May 30, 2012
  2. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    Sorry, not much to offer:if it was avi, I would use an AviSynth script to open in VirtualDub.
    1 is the main video.
    2 creates a small video of 75 frames @ 25fps = three seconds
    3 merges the small video to a silent audio that has the same settings as the main audio
    4 splices the small video to the front of the main video.

    Problem is that I haven't worked with OGM and I have nothing to test.
    Instead of 'AviSource' it might work with 'DirectShowSource'
    The VideoHelp site might offer more insight into ogm.
    Code:
    x=avisource("clip.avi").assumefps(25)
    y=ImageSource("splash.jpg",end=75,fps=25).ConvertToYV12() 
    z=audiodub(y, blankclip(x)) 
    z++x
     
    Last edited: May 30, 2012

Share This Page