VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Aug 2010
    Location
    Bangalore
    Search Comp PM
    Hi,

    I have a MP4 video file (1.5 GB without subs) encoded as X.264.
    I have the .SRT file for the movie which I have converted to .SSA format using my choice of fonts etc.

    Goal: I wish to convert this MP4 video to AVI (encoded as xviD) with subtitles burned into the AVI.

    First Approach (with VirtualDub)
    -----------------------------------------
    I tried to do this using VirtualDub 1.9.9. This is how:
    Loaded MP4 video file.
    Video --> Full Processing.
    Video --> Compression --> XvID. 1st pass. Save as AVI. (job control)
    Video --> Filters. Loaded Subtitler by Avery Lee. Added my .ssa file.
    Video --> Compression --> XvID. 2st pass. Save as AVI. (job control)

    Started Jobs

    Result:
    One huge 6.5 GB AVI file (from 2nd pass output) with subtitles burned in.
    One huge 5 GB AVI unplayable file from first pass output (later discarded).

    Obviously, the file sizes are atrociously large to be written on standard 4.3 GB DVD discs.

    2nd Approach (using Avidemux 2.5.3)
    -----------------------------------------------------
    Loaded MP4 video.
    Video Codec ---> XviD ASF
    Configured for 2 pass and constant video size ~ 1500 MB
    Filters --> Subtitles --> Added my .SSA file.

    Audio Coded --> MP3 (Lame)
    Stereo 160 CBR

    Save Video as AVI.

    Result:
    One 1.6 GB AVI file with subtitles burned in but they appear only for first 5 to 6 minutes after which there are no subtitles in the rest of the movie.


    My Question: Is my method right? When I hard sub a XvID AVI to XviD AVI using VirtualDub, there is no issue. This time the source is X.264 MP4 which is causing issues.


    Should I first convert the MP4 to a XvID using VirtualDub (first step) and then burn the ssa subtitles into the just converted XvID file as a second step? This will take a long long time though.

    Please advise.

    Thanks in advance,
    S Ray




    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    The source video shouldn't really matter that much but it seems to do so here...

    Have you tried do one pass encoding virtualdub? Do a short encoding and see how it work.
    Quote Quote  
  3. Member
    Join Date
    Aug 2010
    Location
    Bangalore
    Search Comp PM
    Single pass created a 12 GB file !!!!!
    (It seems VirtualDub is not honoring the size limits set).

    I will check with a different srt file.
    Quote Quote  
  4. Virtualdub in Full video Processing may generate large file.
    with vobsub/vsfilter plugin might be able to hard-sub .srt to avi.
    Quote Quote  
  5. This should work easily in Quick AVI Creator. Just use the TextSub function to burn in the subs. Or you can demux yourself and use xvid_encraw with an .avs file as input with the same TextSub function. Quick AVI Creator uses virtualdubmod to demux. For xvid it has 2 types of 2 pass mode. But I just added my own "one pass mode" by adding this to the xvid.presets file:


    [One Pass Mode]
    xvid_encraw.exe -i "$video_input" -bitrate $video_bitrate -progress 2000 -avi "$video_output"


    It's sort of like an .ini file. Whatever is in the brackets will show up in the drop down menu when you select "encode the video" after AvsP lets you edit the AviSynth script to add your filters(TextSub())
    http://milesaheadsoftware.org/
    Fully enabled freeware for Windows PCs.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!