PDA

View Full Version : Problem: How to put subtitles in a .mpg without framserving?


Rollercoaster
15th March 2003, 15:36
i've been looking around the forum, but i haven't yet found an answer to this problem...

i want to convert Lord of the Rings (Xvid) to svcd...i normally use:

-> Virtualdub - to put subtitles and to frameserve to TMPGenc

-> TMPGenc - to encode the video along with the audio...

With this particular movie, i can't frameserve from virtualdub to TMPGenc...as i'm going to open the movie in TMPGenc, I get the "file cannot open or unsupported"...(I learnt that there may be problems with xvid's movies, but i have already encoded other xvid movies just fine)...

However, i tried to encode the movie in TMPGenc by browsing the original .avi movie...i got a great svcd...no audio sync problems, none of that...the only problem is that it doesn't have subtitles...

So, I would like to know how could I add subtitles (without using frameserve) either firstly in the .avi...or after encoding...in the .mpg...

I really appreciate if someone could help me...

Tnks for the time taken!
:D

bye[[]]

dani82
16th March 2003, 10:06
i don't know what the hell frameserving is or what it does, but i do know how to add subtitles with tmpgenc.

about 3 months ago, i was converting some dvds to avi with tmpgenc then extract the subtitles, using subrip, then add the subtitles with virtualdub(vobsub), and finally convert it to vcd (only cause i couldn't figure out how to uses dvd2svcd); so what's the point of this, absolute NOTHING!, screw it, it was a big waste of time.

i figure out that i could just extract the subtitles, and put it in the same folder as the VOB i was encoding under the same name (1.vob & 1.srt), i'm not sure if it would work for xvid, divx, or anything else, but it's worth a try.

also, make sure the ALWAYS LOAD is enabled in vobsub for it to work.

lamer_de
16th March 2003, 10:25
Use avisynth and the vobsub/textsub plugin and feed the avs to tmpeg

http://vobsub.edensrising.com/vsfilter.rar

CU,
lamer_de

killingspree
16th March 2003, 16:14
why not frameserve??

i'd also choose the avisynth method (just IMHO of course)

the other method is the one roughly described by dani82:
if you install vobsub and put the *.srt file into the same folder as the movie and give the two of them the same name (movie.avi and movie.srt) it should also load the subs when you load the file into tmpegenc... i've never tried it though...

regards
steVe

Rollercoaster
16th March 2003, 19:33
tank u guys...i used avisynth to make the script...

i now have my video subtitled...

buuuuut...i have now audio sync problems...:scared: :scared:

should i try dani82's solution?

tks though

[[[]]]

killingspree
17th March 2003, 09:11
well yes... you could either try dani82's method OR you demux the audio from your avi, convert it to a wav-mp3(if virtualdub didn't produce it while demuxing) and then use this code snippet in your avisynth script:

a=avisource(...)
b=wavsource(...)
audiodub(a,b)


regards
steVe

Rollercoaster
19th March 2003, 21:33
Originally posted by killingspree
well yes... you could either try dani82's method OR you demux the audio from your avi, convert it to a wav-mp3(if virtualdub didn't produce it while demuxing) and then use this code snippet in your avisynth script:

a=avisource(...)
b=wavsource(...)
audiodub(a,b)


regards
steVe

:confused: :confused: didn't understand...

convert to wav-mp3??? so its wav or mp3??

i stripped the audio out of the video...i got a wav file..(in virtualdub)

then i used your code...but i got this error:

--------
Error initializing audio stream decompression
The requested conversion is not possible

Make sure u have the required codec...
--------

but i do...in virtualdub, i use my wav file as the audio i hear perfectly...

could u help??
:(

tnkz!

[[[]]

killingspree
20th March 2003, 20:12
Originally posted by Rollercoaster
:confused: :confused: didn't understand...

sorry was a bit to techie above... (: gonna try to be a bit more clear this time.


convert to wav-mp3??? so its wav or mp3??

well a wav-mp3 is actually a mp3 file but it has a .wav header (part of the file in the beginning that tells the computer what kind of file he's tealing with) instead of a .mp3 header. this is currently the only way avisynth can use a mp3 file (as far as i know at least)

i stripped the audio out of the video...i got a wav file..(in virtualdub)

then i used your code...but i got this error:

--------
Error initializing audio stream decompression
The requested conversion is not possible

Make sure u have the required codec...
--------

but i do...in virtualdub, i use my wav file as the audio i hear perfectly...

well so how big was the file... for a full movie was it something like 100 or 200 megs or rather like a gig or two. if it was the former (smaller) you got the wav-mp3 you wanted. if it was much larger you got an uncompressed real .wav file - which wouldn't be too much of a problem either since you can reencode it to your needs.

anyway something went obviously wrong. can you try to extract the audio file with another program (nadub or even better virtualdubmod)
if this doesn't work try reinstalling the codecs (mp3)

also you can look at the avi file with gspot (doom9 dlsection) this will tell you exactly which audio codec (besides a lot of other information) your avi is using. this way you can determine which codecs you'll need to (re)install.

oh and i got another idea... perhaps it's an ac3 soundtrack... avisynth won't be able to use it. but gspot will tell you...

hope this helps
regards
steVe

Rollercoaster
20th March 2003, 22:27
:angry::angry::angry:

can't get it to work...i've done what you advised me to...i can't understand...

take a look at the script:

-----

LoadPlugin("C:\Programas\GordianKnot\MPEG2DEC.dll")
LoadPlugin("C:\Programas\GordianKnot\fluxsmooth.dll")
LoadPlugin("C:\Programas\GordianKnot\legalclip.dll")
LoadPlugin("C:\Documents and Settings\Barreiros\Ambiente de trabalho\Rui Pedro\Moviez\AVI ---» SVCD\VirtualDub-1.5.1\plugins\textsub.vdf")

AviSource("C:\bowlfish\emule\Downloads\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.avi")
LegalClip()
BilinearResize(448,254,1,0,638,272)
TemporalSmoother(2,2)
FluxSmooth()
AddBorders(16,113,16,113)
LegalClip()
TextSub("C:\bowlfish\emule\Downloads\Lord of the Rings\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.srt",23,976)
a=avisource("C:\bowlfish\emule\Downloads\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.avi")
b=wavsource("C:\bowlfish\emule\Downloads\the lord of the rings\lord1.mp3")
audiodub(a,b)

-----

1- is there something wrong with it??

2- should the wav-mp3 be a .mp3 file or a .wav??

3- i've saved the wav file from the movie, using virtualdub in direct mode...i got an 80 mb (nearly) file(.wav)...it does not work with tmgenc...i tried changing to full processing mode...i get a 900 mb file...it does not work with tmpgenc...i tried demuxing the audio using virtualdubmod...i got a 80 mb (nearly) file(.mp3)...it does not work with tmpgenc...

4- it's not ac3...it's really mpeg layer-3 (professional)
i'm desperate...


PS: thanks a lot for replying...sorry 4 the time taken..

killingspree
21st March 2003, 17:27
Originally posted by Rollercoaster

-----

LoadPlugin("C:\Programas\GordianKnot\MPEG2DEC.dll")
LoadPlugin("C:\Programas\GordianKnot\fluxsmooth.dll")
LoadPlugin("C:\Programas\GordianKnot\legalclip.dll")
LoadPlugin("C:\Documents and Settings\Barreiros\Ambiente de trabalho\Rui Pedro\Moviez\AVI ---» SVCD\VirtualDub-1.5.1\plugins\textsub.vdf")

ok i don't know if that works... can you use a *.vdf filter in avisynth... i think there's a seperate filter for avisynth... but i'm just not sure about that!


AviSource("C:\bowlfish\emule\Downloads\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.avi")

LegalClip()
BilinearResize(448,254,1,0,638,272)
TemporalSmoother(2,2)
FluxSmooth()
AddBorders(16,113,16,113)
LegalClip()
TextSub("C:\bowlfish\emule\Downloads\Lord of the Rings\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.srt",23,976)
a=avisource("C:\bowlfish\emule\Downloads\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.avi")


ok now you are loading the avi the second time.. just an a= infront of every command and leave out the second video loading command!

b=wavsource("C:\bowlfish\emule\Downloads\the lord of the rings\lord1.mp3")
i think it must be a file with a .wav extension!!!... thus a wav-mp3 use besweet to convert it to one of these, see the guides on doom9 for detail!

audiodub(a,b)

-----

3- i've saved the wav file from the movie, using virtualdub in direct mode...i got an 80 mb (nearly) file(.wav)...it does not work with tmgenc...i tried changing to full processing mode...i get a 900 mb file...it does not work with tmpgenc...i tried demuxing the audio using virtualdubmod...i got a 80 mb (nearly) file(.mp3)...it does not work with tmpgenc...

have you tried winamp or mediaplayer to play the audio file?
1,2,4 answered above...


PS: thanks a lot for replying...sorry 4 the time taken..

u'r welcome

oh i've done a corrected version of your avisynth script:


LoadPlugin("C:\Programas\GordianKnot\fluxsmooth.dll")
LoadPlugin("C:\Programas\GordianKnot\legalclip.dll")
LoadPlugin("C:\Documents and Settings\Barreiros\Ambiente de trabalho\Rui Pedro\Moviez\AVI ---» SVCD\VirtualDub-1.5.1\plugins\textsub.vdf")

a=AviSource("C:\bowlfish\emule\Downloads\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.avi")
a=LegalClip()
a=BilinearResize(448,254,1,0,638,272)
a=TemporalSmoother(2,2) # i would only use temporal or flux
a=FluxSmooth() # see above
a=AddBorders(16,113,16,113)
a=LegalClip() #why legalclip again? honestly i don't know what it is doing, but i doubt it is smart to use it twice
a=TextSub("C:\bowlfish\emule\Downloads\Lord of the Rings\The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.srt",23,976)

b=wavsource("C:\bowlfish\emule\Downloads\the lord of the rings\lord1.mp3") # must be a .wav file!!
audiodub(a,b)


hope it works
regards
steVe

PS: pls don't talk about dl'ed content in here, it is not appreciated by some members and CAN pose legal problems to the site and it's owner, just don't talk about it and don't make it obvious in your scripts: The.Lord.Of.The.Rings.The.Two.Towers.DVDScr.XViD.CD1-FIXED-ViTE.avi
thanks

Rollercoaster
22nd March 2003, 11:48
sorry for that...was not aware:scared: :scared: :scared:

tnkx for the reply...will try it..

i'll post when i have any results...


:D

bye

majkol
23rd March 2003, 15:25
i tryed a very simple way as described on dvdrhelp.com and it worked:

mad a .ssa sub, had the .avi divx,
drag&drop those 2 files in submux, press mux, subs got fastly(30 seconds) "encoded"
took the outcoming .avi in tmpgenc and converted to svcd


this was beautiful, like a dream..........but now nothing works like before, xvids dont work(actually, they never did, not even after fourcc thing) in submux, even divx files come out strange, the subs are not syncronized, tmpgenc converts to svcd, but they don't play smoothly(DAMN!!!) like they used to...:confused: :angry:

jorel
23rd March 2003, 16:47
@ Rollercoaster
do you have a program called procoder?

:)

Rollercoaster
24th March 2003, 00:38
so...there i was...trying the script that killingspree advised me to use...i opened TMPGenc...clicked the browse button...located the .avs script...clicked ok...BANG!..didn't work...:( :(

so...i tried modifying it...i got this one..:

-------
LoadPlugin("C:\Programas\GordianKnot\MPEG2DEC.dll")
LoadPlugin("C:\Programas\GordianKnot\fluxsmooth.dll")
LoadPlugin("C:\Programas\GordianKnot\legalclip.dll")
LoadPlugin("C:\Documents and Settings\Barreiros\Ambiente de trabalho\Rui Pedro\Moviez\AVI ---» SVCD\VirtualDub-1.5.1\plugins\textsub.vdf")


a=AviSource("C:\bowlfish\emule\Downloads\movie\movie.avi")
b=wavsource("c:\bowlfish\emule\downloads\mnovie\movie.wav")
audiodub(a,b)
BilinearResize(448,254,1,0,638,272)
TemporalSmoother(2,2)
AddBorders(16,113,16,113)
LegalClip()
TextSub("C:\bowlfish\emule\Downloads\movie\movie.srt",23,976)
-------

i decided to create an .avi from the original movie, without any audio...i used it for the script...both that .avi and the .wav...i opened it in TMPGenc...and it WORKED!:eek: :eek: :eek: ..finally...i did not get the error message...:D ...so, there i was...smiling my mouth out (:rolleyes: )..i was so happy..when i realised that i didn't have AUDIO..:eek: ..so...what did i do?? i browsed for the .wav audio...and add it up for the audio source...i admit..i was hopeful to get the .mpg file i wanted...after 4h of encoding, i tried it...guess what?? the audio was out of sync..:angry: ..."Predictable!", i thought later on..

i suddently stood beneath life and death...i lost sense of reality...i may have been unconscious for a couple of hours...then i suddently woke up by the smell of some nice biscuits my mom was baking...then, i realised...i was sent back to fulfill my duty...something or someone out there wanted me to accomplish my so desired mission...i thought: "Rest assured!..I will not fail you!!"

After having eaten a couple of nice warm biscuits...i returned to my pc to complete what i had left to do...

so, i thought: "Why not using AVI2SVCD??"...so I did...i searched and researched about the program...what i had to know and all that stuff...and that drove me to this moment...in the present...when i'm trying to encode the movie using AVI2SVCD...six long hours of encoding...1h left...i thought of going again into deep 'coma'...maybe to try and reach that beautiful soul...that pure angel that gave me the strenght to live through one the worst moment of my life..unfortunately, i couldn't...my mom feared that i could somehow hurt myself...and i do not blame her...i could have lost myself in such a wonderful spirit...never to be found again...now that i think about...today is my mother's birthday...maybe she was protecting me because she wanted a gift...hmmm...naaaaaaaa...not my mom...souldn't be saying this here...i hope to be forgiven for these unthoughtful(?) words..

hmm...majkol...i had already tried that method...but guess what?? it didn't work...those times...in the begging...when i never imagined the trouble and the adventure i would go through to make this little .mpg..:(

jorel...no...i have never heard of it...what does it what does it do??:sly: ...u are making me closer to my little angel you know...u are giving me some hope...a light at the end of the tunnel i can now glimmer...

tnkx for the replys:D

bye [[[]]]

PS: Sorry for the long narrative guys...i guess i was inspired...(by my little angel that i keep in my little heart..:p

jorel
24th March 2003, 01:57
hi again Rollercoaster..

strange answer to someone that was trying to help you:
"jorel...no...i have never heard of it...what does it what does it do?? ...u are making me closer to my little angel you know...u are giving me some hope...a light at the end of the tunnel i can now glimmer... "
----------------------------------------------------------------------

like George Harrison sung, i feel:
" and a pisces fish in the river runs througt my soul"

dedicat this song for you and for your angel(my respect):
any road -from the new G.Harrison cd.....in the coral you will listen my voice!
very beautifull music.

my strong angel will help your strong angel with a big light...
but please ,don't be "lazy", read all the thread in the link...

follow the big angel and enjoy: :p

http://www.cdrbase.com/showthread.php?s=&threadid=24212

read the thread here too:
http://forum.doom9.org/showthread.php?s=&threadid=49299

:rolleyes: see what you can do with procoder using divx,xvid,vobs,
etc,etc,.....!

jorel
ps:
where are you from.....
don't need to say,i know! i have big wings!!!

;)

Rollercoaster
24th March 2003, 21:08
hey jorel...i'm so sorry if i offended you in any way...i didn't really understand very well your reply...but believe that i am most grateful for your effort to help me...i didn't mean to upset you (if i did)

thanks for the help and again forgive me if i upset you

:D

bye [[[]]]

PS: I'm from Portugal...you know??..no??..let me give you a hint...it's not some region in Spain...:rolleyes: :rolleyes: :angry:

jorel
25th March 2003, 01:31
Originally posted by Rollercoaster
hey jorel...i'm so sorry if i offended you in any way...i didn't really understand very well your reply...but believe that i am most grateful for your effort to help me...i didn't mean to upset you (if i did)

thanks for the help and again forgive me if i upset you

:D

bye [[[]]]

PS: I'm from Portugal...you know??..no??..let me give you a hint...it's not some region in Spain...:rolleyes: :rolleyes: :angry:

you are very strange,in what part of my post i talk about the region that you live?
means:
você é muito estranho,em que parte do meu post eu falei sobre a região que você vive?

understand in english or
entendeu em portugês?
:eek:

killingspree
25th March 2003, 10:31
this is turining to be a very very strange post!

:confused:

jorel
25th March 2003, 13:01
Originally posted by killingspree
this is turining to be a very very strange post!

:confused:

yes,friend
i think it too but without fight with Rollercoaster
cos he and i talk portuguese ,than i post in english and the same in portuguese,ok?

but we (Rollercoaster and me) aren't in fight,just try to understand
and turn all clear,my intention is help(if i can),ok?
don't worry,cos don't have problems!!
thank you!
:)

Rollercoaster
25th March 2003, 13:11
Originally posted by jorel



jorel
ps:
where are you from.....
don't need to say,i know! i have big wings!!!

;)


weren't you asking for my location??:( :( ...sorry...i guess i misunderstood...

yes...i am aware that you are trying to help me...and you've already did...a lot...and i haven't even looked at procode (did not have the time)

but tnkx a lot...hmm...do you understand Portuguese?? or did you translate it with some program??

:confused:

whatever....will try procode...i'll post when i have results...BTW, AVI2SVCD did not work...:angry:

bye [[[[]]]]

Rollercoaster
28th March 2003, 13:30
oh my god...now it's the demo version...it appears that i can only encode 5 min....:(

if i don't find a solution to this...that's it...i'm deleting the files...:angry: :angry:

bye [[]]