Multimedia dedicated weblog.

MONOGRAM x264 Encoder 1.0.1.0

November 27th, 2008 Posted in Free Software

Hello,

after making a set of audio encoders I’ve been trying to focus on video a little bit. Here’s the first tryout of a libx264 based encoder filter. Full source code can be found in the local SVN repository. The encoder filter is released just like the x264 library as GNU GPL.

Features:

  • accepts YV12 input frames
  • constant QP and average bitrate rate control modes (only 1-pass encoding so far)
  • built with support for multiple CPU cores
  • easy-to-use presets for encoder options
  • support for B-frames - PTS and DTS information can be read by the downstream filter using a custom IMediaSampleEx interface (see source code for more info)

From my initial tests the filter worked quite nicely although I suspect there might be some small memory leaks which showed up after running the debug version of the filter for a few hours. If you find something please do let me know.

Source : mm_x264_1.0.1.0_src.zip (1.7 MB)

Binary : mm_x264_1.0.1.0_bin.zip (341 KB)

Enjoy,

Igor

  1. 16 Responses to “MONOGRAM x264 Encoder 1.0.1.0”

  2. By Alex on Dec 9, 2008

    Hi Igor,

    Are you using this encoder with an AVI container or do you have an actual mov or mp4 muxer?

    The problem with encoding xh264 inside AVI, as I’m sure you’re well aware, is that it won’t play in Quicktime or on iPods so it really is going only part of the way.

    Just curious if you’ve been able to go all the way to a muxed .mov.

    Thanks,

    Alex

  3. By Igor Janos on Dec 9, 2008

    Yes. I have an own MP4 muxer also MPEG PS/TS, 3GP.. etc.. They might possibly appear here soon but there are some internal MONOGRAM issues to be solved first since these filters are not based on opensource libraries and we’re using them in several commercial systems.

  4. By Sina™ on Dec 9, 2008

    just tell me 1 thing:
    do u develop mp3 filter for audition or not?
    also, your amr filter always show c++ runtime errors when i want to convert files to amr.
    because i find a new dev…

  5. By Igor Janos on Dec 9, 2008

    Not at the moment. Too busy. Sorry.

  6. By Sina™ on Dec 9, 2008

    OK…
    final word: fix the amr bug, before they call u: worst dev…
    also, they don’t trust u, because of the libs you used.
    they thing u using those stuff illegal

  7. By Russell B on Dec 10, 2008

    Igor,

    I’m looking for a free MP4 muxer too. Haali Matroska Muxer does MP4 but it’s files won’t play inside Adobe Flash Player 10 which is what I need to do.
    Please email me and let me know what you are using or where I can get one from. I would really appreciate it.

    Thanks again,

    Russell B.

    p.s. How is your x264 encoder different from the one in SorceForge?

  8. By Igor Janos on Dec 10, 2008

    I’ve sent you an email regarding the mux.
    As for the x264 encoder… I’ve checked sourceforge and found nothing. Only VFW codecs which are hard to configure programatically. I’ve also found a thread about x264 filter on doom9 which was 4 years old. So I guess there are not many up-to-date x264 filters available.

  9. By Sina™ on Dec 12, 2008

    ok…
    can u at least do a directshow?
    developing mp3 surround directshow decoder?

  10. By Igor Janos on Dec 12, 2008

    Possibly yes. But I’m having a hard time promosing things because my “free-time” plans have very short life expectancy.

  11. By Sina™ on Dec 12, 2008

    ok
    don’t u want to be the first mp3 surround directshow filter dev?

  12. By Igor Janos on Dec 13, 2008

    :) Sure. But I’d also want the day to be 30 hours :)

  13. By Sina™ on Dec 15, 2008

    :D
    I know Ig, you work 48H a day…

  14. By Alex on Jan 9, 2009

    Hi Igor,

    Thanks for the reply. If and when you are able to publish an mp4 muxer, it will fill a gaping and crucial missing piece in the DS -> mp4 chain.

    Any idea when this might be available if at all? This is something I’d actually pay for, the muxer, especially if it’s compatible with ffdshow’s h264 and xh264 encoders.

    Thanks.

  15. By Igor Janos on Jan 9, 2009

    Hi. I can send you the muxer via mail so you can play. I’m having some issues that keep me from hobby-coding for the next 2-3 days but the muxer will definitely appear here in the beginning of the next week.

    Unluckily I’m not allowed to publish it with source code but at least it can be released free for non-commercial usage.

  16. By Alex on Jan 13, 2009

    Ok, thanks. Could you send it to:
    ashayk1@yahoo.com.

    I’d be very interested to have a play.

  17. By Igor Janos on Jan 13, 2009

    Hi. No need to send you the filter now - just download it from here -
    http://blog.monogram.sk/janos/2009/01/13/monogram-mp4-mux-0930-alpha/

Post a Comment