Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th May 2005, 06:41   #1  |  Link
defunkt
defkunt
 
defunkt's Avatar
 
Join Date: Dec 2004
Location: New Zealand
Posts: 58
AVS2x264 Encoder (Zones/Preview/Pause & Resume/Audio Encoding)





Input Script: AVI synth script to encode from. Project settings are also saved into this.

Script Editor: Opens loaded script in Notepad. Reloads script when Notepad exits.

View Source: Displays the source video.

Output File: Target for encoded stream, raw .264 or .mp4, latter is simply the former muxed at the end of encoding.

Target Size: Size you want the finished container file to be.

Track Overhead: Allows you to select additional tracks you want to allow for in the bitrate calculations. If your output file is an .mp4 you may instead choose to mux these tracks immediately yielding a more accurate bitrate calculation.

Manual Bitrate: Override bitrate calculations with an explicit setting.

Section Create: Divides the currently selected section at the point selected in the preview window.

Section Delete: Deletes a section if encoding hasn't already commenced.

Rate Increase: Increases bitrate allocated to the selected section.

Rate Decrease: Decreases bitrate allocated to the selected section.

Toggle Zones: Each section now supports up to 9 bitrate adjusted zones.

Queue Status: Sets where the encode queue will halt.

Section Rollback: Discards encoding for the selected section and all subsequent sections.

Encoder settings can be edited by clicking the "Options" button.

You'll see a button initially titled "Manage IDR Only", this increments each GOP ID across the whole project so that it always advances sequentially even across sections, resulting stream works fine in every player I've tried. You can also do the same for SPS/PPS ID's which in theory should allow different sections to have different settings, in practice it works for me in MPlayer but not using DirectShow. Incrementing SPS/PPS ID's is therefore not recommended but I've exposed it in the hope someone might figure out what's not working.

Download (2.9MB)

Backend is x264 compiled as a Windows dll (non-VFW) with exported API style functions as an interface. Source available here, zero documentation as yet.

Frontend is written in VB6, key feature is support for multiple separately encoded 'sections'. Partial source (minus library code borrowed from a commercial project I work on) here.

Last edited by defunkt; 6th June 2005 at 01:54.
defunkt is offline   Reply With Quote
Old 8th May 2005, 10:46   #2  |  Link
guada 2
Registered User
 
Join Date: Feb 2005
Location: Lyon
Posts: 718
Hello defunkt,

I didn't test it yet.
But I appreciate your gesture.
Continue…

NOTE: sorry for my translation
guada 2 is offline   Reply With Quote
Old 13th May 2005, 10:30   #3  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,254
Good app.

Works well, and provides good output.
Audionut is offline   Reply With Quote
Old 13th May 2005, 12:02   #4  |  Link
defunkt
defkunt
 
defunkt's Avatar
 
Join Date: Dec 2004
Location: New Zealand
Posts: 58
Quote:
Originally posted by Audionut
Good app.

Works well, and provides good output.
Thanks. Undaunted by the fact that this thread sunk like a stone the app's improving quite quickly. Will post again when next version is up.
defunkt is offline   Reply With Quote
Old 13th May 2005, 17:25   #5  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
can you explain a little bit more what your "section encoding" does exactly!?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 13th May 2005, 20:28   #6  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Looks like the "zones" option in XviD...

Maybe it encodes the sections separately !?!


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 13th May 2005 at 20:32.
Soulhunter is offline   Reply With Quote
Old 13th May 2005, 20:44   #7  |  Link
defunkt
defkunt
 
defunkt's Avatar
 
Join Date: Dec 2004
Location: New Zealand
Posts: 58
Basically it's equivalent to doing a separate credits encode and then copy /b. You can define multiple split points (rather than just credits) and each section is thus run as a separate job in a queue made up of all section passes.

Instead of creating multiple output files the result is spooled to a single raw AVC stream and finish points are tracked so you can rollback and reencode from the beginning of any section.

The GUI also allows you to weight or deprecate the bitrate applied to any section and calculates the altered bitrate for all (unencoded) sections against a specified target size. Target size vs. bitrate is recalculated as each section is encoded which helps iron out any RC fluctuations. If you end up over or under you can always rollback the last (credits) section and reencode it with an adjusted BR.

The workflow I use is to prepare an .mp4 with audio (& subtitles) already muxed and point AVS2x264 at this, it will then try and encode the video to the space remaining, experiments to date (with short clips) suggest that in this way I can get to within 1% of my overall target size.

There isn't anything mp4 specific about the app, given a suitable external muxer it can be configured to work for another container, mp4 just happens to be the default.

Pending improvements include the ability to mux tracks into the target container from within AVS2x264 and a preview window which can be used to select & insert section start points (at the moment you have to type the frame number).

Hope this helps.
defunkt is offline   Reply With Quote
Old 13th May 2005, 21:46   #8  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Woks fine here!

Just two small things...

- I cant activate this "shutdown" option

- Using mp4 output throws a error (though the file works)


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 13th May 2005 at 21:51.
Soulhunter is offline   Reply With Quote
Old 13th May 2005, 22:46   #9  |  Link
defunkt
defkunt
 
defunkt's Avatar
 
Join Date: Dec 2004
Location: New Zealand
Posts: 58
Automated shutdown requires some extra coding for NT/2K/XP which I haven't got to yet, so option is disabled on these systems. Will arrive eventually.

I think I've already resolved the muxing file access error, it's trying to rename the temporary file too soon, next version.
defunkt is offline   Reply With Quote
Old 5th June 2005, 12:30   #10  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
If I use a high bitrate like 3000kbps, I get this error !!!

But with lower bitrates like 1000kbps it works... :\


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 5th June 2005, 12:35   #11  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,570
@Soulhunter: I have a theory on that.. this tool is based on an x264 build where non curve convergence causes a fatal error.. in other words, if you chose a high bitrate and given your min/max quant settings x264 cannot achieve this bitrate, it will abort. Now I don't know how that abort is being handled here, but it may just cause this problem, seeing that is only happens when you increase the bitrate. You could verify that using x264.exe or mencoder.exe and the same settings.. in those tools you might get a warning but encoding would not abort anymore.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 5th June 2005, 12:43   #12  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Maybe I should mention that I get this error directly after entering the bitrate... :\


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 5th June 2005, 17:31   #13  |  Link
guada 2
Registered User
 
Join Date: Feb 2005
Location: Lyon
Posts: 718
Hello

Soulhunter
I would rather say between 1650 and 1700 kbps.

Doom9
A question:
Why the encoding continues its treatment in spite of the error, especially as the final file is the maximal bitrate authorized by the codec x264?

Thank you in advance.
guada 2 is offline   Reply With Quote
Old 6th June 2005, 02:01   #14  |  Link
defunkt
defkunt
 
defunkt's Avatar
 
Join Date: Dec 2004
Location: New Zealand
Posts: 58
Quite a few changes, which I might have taken longer over testing but as the thread's been bumped anyway...

- Preview window.
- Pause & Resume of encoding.
- Dismiss to system tray when encoding (or paused).
- x264 Zones per Section.
- x264 8x8DCT (use Intra 8x8), ABR (use 1st Pass QP = 0).
- Auto-shutdown should work on NT/2K/XP now (not tested).
- Audio encoding. Includes LoggerSoft's AACEnc32 frontend for the Nero Burning ROM dll's, recent Nero update required. Can be configured to use other encoders, a look at the default INI file might hopefully suggest how.

@Soulhunter: Bitrate would have resulted in a target filesize > 2048MB. Thank you, I will trap this for now and look into increasing the variable size to accomodate at least 4GB files.

Last edited by defunkt; 6th June 2005 at 03:22.
defunkt is offline   Reply With Quote
Old 9th July 2006, 17:23   #15  |  Link
wiak
Registered User
 
Join Date: Jul 2003
Location: somewhere north
Posts: 242
site down?
__________________
Woah! Ninja?! http://nwgat.ninja/ (AV1 Overview)
"Not available in your region" has now been redefined as "Go Pirate, you filthy scum" Nwgat
wiak is offline   Reply With Quote
Old 15th July 2006, 14:35   #16  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
moved
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 20th July 2006, 11:24   #17  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
the site is still down any news ?

Keep up the good work.
++
__________________

AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec.
AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles.

Dark-Cracker is offline   Reply With Quote
Old 20th July 2006, 16:07   #18  |  Link
killerhex
Registered User
 
Join Date: Dec 2005
Posts: 389
any chance of making one for xvid i like to encode x264 to xvid if possible
killerhex is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.