[XviD-devel] [Feature Request] Global first and second passes

BAHASSINE Abdallah abdallah at gmx.com
Mon Feb 8 20:43:24 CET 2010


I know I can merge all the AVI files into one big file but if i have to 
put some subtitles after 2min of each episode then this solution comes 
unworkable.
I think XviD should remember for each pass a "segment number with its 
name" (like ep01.avi) " and it should be able to output one of the 
desired segment using a desired total size + the global first pass file.


> Hi,
>
> I don't think this is something that should be done in xvid. This should be
> handled by the application (perhaps as an extension to a batch-processing
> feature) or implemented as a seperate tool.
>
> So what would be needed is a tool that can open multiple first pass stats
> files, asks for a global desired size and then outputs the optimal file
> sizes that should be used for the single "segments" during second pass.
>
> Another option would be to simply encode the multiple episodes as one large
> video and cut the resulting file into pieces afterwards. Under windows, you
> can easily concatenate multiple source files so that they are opened as one
> long video with avisynth:
>
> DirectShowSource("test_001.avi",fps=25)+\
> DirectShowSource("test_002.avi",fps=25)+\
> ...
> DirectShowSource("test_020.avi",fps=25)
>
> You'd then run just one first-pass (over all your source files at once),
> then one second-pass (setting your desired overall target size) and finally
> cut the resulting avi file into individual avi files (e.g. using VirtualDub).
>
> Regards,
> Michael
>
>
> Quoting BAHASSINE Abdallah<abdallah at gmx.com>:
>
>    
>> Hi @ all !
>>
>> Sometimes I have to encode a ~26 files pack (episodes) and define a
>> total size (4.7GB). Actually I define a "static" file size (eg. 4700 /
>> 26 = 180MB per file).
>> But this is not really optimized for obtaining a constant quality
>> because some episodes needs more bitrate than other ones.
>>
>> This is why I think there is a needed feature on XviD we could call
>> "segmented passes" or "global pass".
>>
>> We need the ability to concatenate a "first pass file" with another
>> "first pass file" and then we will be able to define a global size for
>> all the segments (4700 MB).
>> Then @ second pass, XviD encoder will have to read our "big first pass
>> file" and output these segments.
>>
>> example :
>> - 01.avi (190MB)
>> - 02.avi (150MB)
>> - ....
>> - 26.avi (200MB)
>> TOTAL : 4700 MB
>> _______________________________________________
>> Xvid-devel mailing list
>> Xvid-devel at xvid.org
>> http://list.xvid.org/mailman/listinfo/xvid-devel
>>
>>
>>      
>
>
> _______________________________________________
> Xvid-devel mailing list
> Xvid-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>    



More information about the Xvid-devel mailing list