Create Journals
Update Journals

Journals
Find Users
Random

Read
Search
Create New

Communities
Latest News
How to Use

Support
Privacy
T.O.S.

Legal
Username:
Password:

ClaudiusMaximus (claudiusmaximus) wrote,
@ 2008-02-04 18:10:00
Previous Entry  Add to memories!  Add to Topic Directory  Tell a Friend!  Next Entry

    Encoding PPM/WAV to Ogg Theora/Vorbis

    The process:

    1. # input files are PPM/*.ppm and audio.wav, with an empty PNG directory for temporary usage
    2. cd PPM && find -name "*.ppm" -exec convert {} ../PNG/{}.png \; && cd ..
    3. mencoder "mf://PNG/*.png" -mf type=png:fps=25 -ovc raw -o video.avi
    4. avidemux video.avi # add audio.wav as audio track, use COPY/COPY as codecs and save as video2.avi
    5. avifix -F "RGB" -i video2.avi
    6. ffmpeg2theora -V 480 -S 1 -A 128 --optimize video2.avi
    7. # output file is video2.ogg

    Some notes:

    • mencoder doesn't support PPM, so convert to PNG
    • avidemux is used simply to multiplex the audio and video into one file
    • avifix is needed to set the fourcc so that ffmpeg2theora can understand
    • ffmpeg2theora doesn't support separate audio / video input streams, so we need to have a single already-multiplexed file to feed it with

    There must be a better way to do this. Comments appreciated.



(Read comments)

Post a comment in response:

From:
 
Username:  Password: 
Subject:
No HTML allowed in subject
 Don't auto-format:
Message:
Enter the security code below.


Notice! This user has turned on the option that logs your IP address when posting.

Allowed HTML: <a> <abbr> <acronym> <address> <area> <b> <bdo> <big> <blockquote> <br> <caption> <center> <cite> <code> <col> <colgroup> <dd> <dd> <del> <dfn> <div> <dl> <dt> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <ins> <kbd> <li> <li> <map> <marquee> <ol> <p> <pre> <q> <s> <samp> <small> <span> <strike> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <tt> <u> <ul> <var> <xmp>
© 2002-2008. Blurty Journal. All rights reserved.