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. |
|
|
Thread Tools | Search this Thread | Display Modes |
8th May 2005, 06:41 | #1 | Link |
defkunt
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. |
13th May 2005, 12:02 | #4 | Link | |
defkunt
Join Date: Dec 2004
Location: New Zealand
Posts: 58
|
Quote:
|
|
13th May 2005, 17:25 | #5 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
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 |
13th May 2005, 20:44 | #7 | Link |
defkunt
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. |
13th May 2005, 22:46 | #9 | Link |
defkunt
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. |
5th June 2005, 12:35 | #11 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
@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 |
5th June 2005, 17:31 | #13 | Link |
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. |
6th June 2005, 02:01 | #14 | Link |
defkunt
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. |
9th July 2006, 17:23 | #15 | Link |
Registered User
Join Date: Jul 2003
Location: somewhere north
Posts: 260
|
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 |
15th July 2006, 14:35 | #16 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
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 |
20th July 2006, 11:24 | #17 | Link |
Registered User
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|