Adding subtitles from SRT, SUB to a DIVX video and encode to a VCD/SVCD [ mpeg]

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by bifid, Oct 28, 2002.

  1. bifid

    bifid Guest

    A Problem concerning how to add subtitles from SRT, SUB to a DIVX video and encode to a VCD/SVCD [ mpeg]
    Here is my story.

    I have downloaded a film called “Murder by numbers”. This film is of 717,448KB with a resolution of 640x352 and .avi extension.
    Separately, I downloaded the equivalent srt subtitle for this film.
    The subtitle was prepared and synchronised for this downloaded version of the film, has a framerate of 23.976fps, is subrip format and has the same name as the film.

    Film: Murder.By.Numbers. [2002].Cd1.AC3.DVL.ShareReactor.avi
    Subtitle: Murder.By.Numbers. [2002].Cd1.AC3.DVL.ShareReactor.srt

    Now I open SRT to SSA converter version 1.0 and convert with
    Input as : C:\new9\Murder.By.Numbers.(2002).CD1.AC3.DVL.ShareReactor.srt
    Output : C:\ new9\Murder.By.Numbers.(2002).CD1.AC3.DVL.ShareReactor.ssa

    and/or

    I launch Sub Station Alpha version 4.08 and under file I open the converted .ssa subtitle
    C:\new9\Murder.By.Numbers.(2002).CD1.AC3.DVL.ShareReactor.ssa
    and then directly save it as:
    C:\new9\Murder.By.Numbers.(2002).CD1.AC3.DVL.ShareReactor.ssa

    Before opening ´VirtualDub’, I go the ´VirtualDub’ directory, open it and press ´AuxSetup.exe’ and then press ´Install handler’. The reason I do this before launching VirtualDub is because later on I can’t do this, as when I have tried I get this message:

    “ ´vdsvrlnk.dll’ is in use. It cannot be installed right now.
    If you have any copies of VirtualDub or any programs that may be using VirtualDub’s AVIfile handler, please close them and then click OK to retry the operation.”

    So I do it before launching VirtualDub to avoid this problem later on.

    Now I open VirtualDub ver 1.4.10 or VirtualDub ver 1.4.9, it doesn’t matter which, as the problem I have is the same whether I use one or the other. Then I carry out the following:

    1. File->Open and open the Video.

    2. Select Video->Filter to configure the subtitler filter. I select ´subtitler-----------Avery Lee and press ‘ok’ which opens the ‘Subtitler: Configuration’ window/box and I

    3. Open the the created .ssa file that I have made with Sub Station Alpha by clicking on the ... and then press ‘Show preview’ to check that the subtitles appear on the film. When I am sure they do I press ok under ‘Subtitler:Configuration’ which takes me to the ‘Filters’ window/box where I press ok.

    4.This brings me back to the Virtualdub Preview where I see one complete screen with no divisions and no subtitles appearing here, yet they appeared under point three.

    5. And now it's time to "Frameserve" the Video directly to TMPGEnc. I select Select File->Start Frame Server.

    6. A Frame Server Setup window appears, and when I click Start a save window appears, where I Save the file as anything.vdr.

    7. And now this window appears, and it says Frameclients installed: AVIFile only, and I don't click on the ‘Stop Serving’.

    8. Now it's time to Encode the frameserved video to MPG. I Launch TMPGEnc.
    I Open the .vdr by select Files of types: All files and TMPGEnc. Plus 2.5 version 2.57.41.146, core version 1.90.138 informs me “ ILLEGAL STREAM FORMAT.”I get the same message when I add this subtitle to a video and encode to a VCD/SVCD using Virtualdub, Sub Station Alpha and TMPGEnc. TMPGEnc always informs me that it is “ILLEGAL STREAM FORMAT”.

    1. IS THERE A SOLUTION TO SOLVE THIS PROBLEM IN ORDER TO ENCODE IT TO A VCD/SVCD?

    2.WILL ALL SUBTITLES DOWNLOADED FROM ‘http://dvd.box.sk/’ AND ADDED TO .AVI FILMS DOWNLOADED FROM KAZAA SUFFER
    THE SAME PROBLEM OR AM I DOING SOMETHING WRONG, AND IF SO WHAT AM I DOING WRONG?


    Thanks.
    Geoffrey Astbury
    e-mail:ageoffr@fibertel.com.ar











     
  2. VCDjunkie

    VCDjunkie Moderator Staff Member

    Joined:
    Sep 11, 2002
    Messages:
    511
    Likes Received:
    0
    Trophy Points:
    26
    1. you need to have VFAPI setup for TMPGenc to use Avisynth/VirtualDub script reader ReadAVS.dll (under options->environmental setting->VFAPI plugin).. if there, try to raise its priority by right clicking it.
    2. you cannot close virtual dub while it is acting as a frame server!!

    Once you are sure you have these things setup, and you have run auxsetup.exe, you have all the ingredients to create a wonderful frameserver...

    PROBLEM: if you still get unsupported error messages, your .AVI has audio which is NOT supported, possibly VBR or something, anyhow, what you want to do is change the audio to CBR by doing this first:

    Virtual Dub
    File->open video
    video->direct stream copy
    audio->full processing mode
    audio->compression->no compression<PCM>
    audio->conversion->44100hz,High Quality,16bit stereo
    File->save as avi

    You will end up with a larger file size, perhaps even double the file size, but you will have a video file that WORKS as a frameserver using Vdub!

    best of luck!
     
  3. bifid

    bifid Guest

    Thanks for your trouble. It was good of you and I appreciate it.
    Any further help here with the new problem encountered would
    be really very welcome, as I don’t like to surrender.

    “1. you need to have VFAPI setup for TMPGenc to use Avisynth/VirtualDub script reader ReadAVS.dll (under options->environmental setting->VFAPI plugin).. if there, try to raise its priority by right clicking it.”

    In answer to point number one under options->environmental setting->VFAPI plugin, I opened
    and found the following, which were all checked:

    AVI VFW compatibility Reader
    AV12[OpenDML] File Reader
    BMP/PPM/TGA/JPG File Reader
    Cyberlink MPEG-2 Decoder
    DirectShow Multimedia File Reader
    Microsoft MPEG-1 Decoder
    Wave File Reader
    TMPGEnc Project File Reader

    I raised the priority of all of them to 1, then to 2,then to 5, then to 10, then to 20. In all cases
    When I opened the .vdr by select Files of types: All files and TMPGEnc. Plus 2.5 version 2.57.41.146, core version 1.90.138 informed me every time “ ILLEGAL STREAM FORMAT.”I get the same message when I add this subtitle to a video and encode to a VCD/SVCD using Virtualdub, Sub Station Alpha and TMPGEnc. TMPGEnc always informs me that it is “ILLEGAL STREAM FORMAT”.


    “PROBLEM: if you still get unsupported error messages, your .AVI has audio which is NOT supported, possibly VBR or something, anyhow, what you want to do is change the audio to CBR by doing this first:

    Virtual Dub
    File->open video
    video->direct stream copy
    audio->full processing mode
    audio->compression->no compression<PCM>
    audio->conversion->44100hz,High Quality,16bit stereo
    File->save as avi

    You will end up with a larger file size, perhaps even double the file size, but you will have a video file that WORKS as a frameserver using Vdub! “

    As I continued to get this message I followed your instructions to the letter concerning the audio and got this message:
    “ The requested audio compression is not compatible with the input format. Check that the sampling rate and channel count of the input match those of the requested format.”

    All I have been able to find out about the audio of the video is the following:

    Audio Format
    Codec
    Name: ac3 (0x2000) "Dolby Laboratories, Inc"
    Status: Codec not installed [more info]
    Format Tag:0x2000
    Format Tag name:WAVE_FORMAT_AC3
    Format vendor: "Dolby Laboratories, Inc"
    Gspot was not able to find an audio codec which will decompress this format
    DirectShow WAS able to render sound though, apparently by using multiple filters;
    See the DirectShow Render details for more information
    DirectShow Render
    Audio Media MEDIASUBTYPE_PCM
    Audio Codec InterVideo Audio Decoder --> Morgan Stream Switcher
    Bitrate:448 kb/s
    Sample Rate:48000Hz

    Is there any solution to this or do I have to give up my idea of adding permanent Subtitles and ENCODE IT TO A VCD/SVCD?
    Any help to solve this problem would be appreciated.

    Thanks a lot

    Geoffrey F Astbury
    e-mail:ageoffr@fibertel.com.ar


     
  4. VCDjunkie

    VCDjunkie Moderator Staff Member

    Joined:
    Sep 11, 2002
    Messages:
    511
    Likes Received:
    0
    Trophy Points:
    26
  5. bifid

    bifid Guest

    Thanks. I have followed the instructions to the letter contained in
    http://www.vcdhelp.com/forum/userguides/87270.php and used scenario 1. Frameserve AVI with VirtualDub . In this scenario it says:

    “If you frameserve to TMPGEnc.2.53plus, TMPGEnc.Beta12a or Panasonic, proxy is off, save as *.vdr”. However, my version of TMPGEnc is Plus 2.5 version 2.57.41.146, core version 1.90.138 , so I saved as figured in the illustration given or shown as .m1v. I now have a “murder by numbers1.m1v file of 479,628KB Movie File [ MPEG]
    Oh by the way, while I was frameserving in the bottom rectangular box below the output file name it mentioned the following: MPEG-1 640x352 23.976fps CBR 1150kbps
    PleaseNote, everything mentioned just above was for video conversion only.

    Further to the above,it mentions in the instructions the following:
    “In all my tests I frameserved video only. None of the MPEG encoders comes with an exellent audio encoder, so I recommend to do the audio conversion seperately. As you use a special tool for video, use a special tool for audio as well.”

    So now I have a video file, could you tell me what I do about the following:

    1.The audio .
    2.Joining afterwards the two separate files into one again.
    3.Adding the subtitles from SRT, SUB and encoding to a VCD/SVCD [ mpeg]

    Thanks a lot for continued help here. It is really appreciated.
    Geoffrey F. Astbury
    e-mail:ageoffr@fibertel.com.ar
     
  6. dRD

    dRD I hate titles Staff Member

    Joined:
    Jun 10, 1999
    Messages:
    8,312
    Likes Received:
    191
    Trophy Points:
    143
    One alternative method for adding subs and creating VCD that was suggested by one of our Finnish forum members is this:

    -install some DirectShow filter that can play subtitles in your Windows Media Player, such as DirectVobSub or DivXG400
    -if the audio is problematic (i.e. AC3, OGG, etc) -- separate it with VirtualDub and use other tools to convert it into MP2 -- audio is not a problem, so let's not get further into it
    -open TMPGEnc and go to Option>Environmental settings menu
    -go to VFAPI plug-in tab
    -RMB over DirectShow Multimedia File Reader and change its priority to higher (by default, the highest value in the list is 0 and this one has something like -1 or -2 -- change this to be higher than anything else, such as +2) and click Ok and return back to the main window
    -now, select your .avi and you should see that subtitles are now attached to the picture
    -encode
     
  7. bifid

    bifid Guest

    Thanks for suggestion. This is what happened step by step:

    1. “-install some DirectShow filter that can play subtitles in your Windows Media Player, such as DirectVobSub or DivXG400”

    I have had DirectVobSub installed now for over 6 months.

    2. “ open TMPGEnc and go to Option>Environmental settings menu
    -go to VFAPI plug-in tab
    -RMB over DirectShow Multimedia File Reader and change its priority to higher (by default, the highest value in the list is 0 and this one has something like -1 or -2 -- change this to be higher than anything else, such as +2) and click Ok”

    I changed “DirectShow Multimedia File Reader” to +2 and clicked okay.


    3. “and return back to the main window
    -now, select your .avi and you should see that subtitles are now attached to the picture”

    I returned back to the main window and opened c:\ new 7 folder which contains:

    C:\new7\Murder.By.Numbers.(2002).CD1.AC3.DVL.ShareReactor.avi
    C:\new7\Murder.By.Numbers.(2002).CD1.AC3.DVL.ShareReactor.sub

    I opened the .avi file and then went back to file and opened preview, and I was able to see that the subtitles were attached to the picture in exactly the same way as when one views a film with subtitles using windows media player.

    So long as what I did was correct, I thank you very much and unless I hear from you further I shall proceed to encode.
    Thanks a lot.
    Geoffrey F. Astbury
    e-mail:ageoffr@fibertel.com.ar





     
  8. VCDjunkie

    VCDjunkie Moderator Staff Member

    Joined:
    Sep 11, 2002
    Messages:
    511
    Likes Received:
    0
    Trophy Points:
    26
    Thanks for the wisdom dRD, I never encoded with subs before, and was at risk of sounding stupid for not knowing how

    ;-)
     
  9. bifid

    bifid Guest

    No problem Greg. Thank you also for trying to help.
    I´ll let you into a little secret in that like you this is my first time at encoding with subtitles.
    Thanks
    Best regards,
    Geoffrey F. Astbury
    e-mail:ageoffr@fibertel.com.ar
     
  10. tiward

    tiward Member

    Joined:
    Dec 2, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    11
    hey bifid
    you got the message
    0x2000 WAVE_FORMAT_AC3 "Dolby Laboratories, Inc"
    with gspot, i did aswell, what did you do to solve the sound? i've got xXx but the sound had the same details as yours.
    Cheers
     
  11. MariaLl

    MariaLl Guest

    Hello!!

    I got the same problem with this movie and finally I got if you still need help let me know it.
     
  12. bifid

    bifid Guest

    To Tiward Newbie
    Re your message of 2 Dec 2002 10:13 PM

    what did you do to solve the sound?
    I did absolutely nothing. The problem was not
    one of sound. The sound of "Murder by Numbers" works just fine on VCD. The permanent subtitles too. Thanks to the help of "dRD and VCDjunkie.
    Geoffrey Astbury
    e-mail:ageoffr@fibertel.com.ar
     
  13. bifid

    bifid Guest

    To MariaLl
    Thanks for message of 15 Dec 2002 9:34 AM


    I got the same problem with this movie and finally I got if you still need help let me know it.

    Thanks for offer but I'm okay now with the help
    of "dRD and VCDjunkie" I was able to solve the problem of adding the subtitles on to " Murder by
    Numbers", which works great on VCD.
    Geoffrey Astbury
    e-mail:ageoffr@fibertel.com.ar

     
  14. MariaLl

    MariaLl Guest

    No problem!!!
     

Share This Page