Automatic insert of subtitles from file - how?

Martin L wrote on 10/11/2018, 9:04 AM

Hi!

It was announced that Vegas 16 has a way to add subtitle from file or regions automatically. I can't fin any instructions on how to use it, and no good tutorial on Youtube. I have tried txt files and srt but I can't get them to work properly.

I see you can go to Insert/Insert subtitles from file and then on to browse for the file. It finds txt files and adds the content to a text layer, but it doesn't place the titles according to the times codes. Instead it shows the time codes as titles.

srt files are not even detected by Vegas.

How do I manage this feature?

And how does inserting subtitles from regions work?

I don't want to have close captions, just subtitles in the video.

Comments

Marco. wrote on 10/11/2018, 9:18 AM

See ➡ here.

Martin L wrote on 10/12/2018, 1:56 AM

See ➡ here.

Didn't help for me. I tried that already. I obviously need more thorough instructions. It might be some simple thing I need to do. Perhaps formatting the text or time code. But why doesn't Vegas recognize the .srt files? Is there anything about this in the manual? At least I can't find it. Only the section about closed captions which says Vegas accepts srt files, which doesn't seem to be true.

Is there anyone on this forum who has succeded in adding subtitles automatically using files or regions? Can someone explain in detail how to do it?

Marco. wrote on 10/12/2018, 2:30 AM

That link above shows how the text file needs to be formatted. If it's done that way timecode would work fine.

For further kind of burnt-in subtitle support I'd use Vegasaur.

Martin L wrote on 10/12/2018, 3:28 AM

 

That link above shows how the text file needs to be formatted. If it's done that way timecode would work fine.

Well it doesn't. The text is inserted alright, but not according to time code. Each row in the txt document creates a new subtitle event (whether it contains time code or not), but all events are placed after one another and not according to the time code. Instead the time code is displayed as text in the subtitles, as you can see in the image below.

Another thing that is strange in this is why Vegas would need "Length" for each subtitle when Start and End already has been given. Then length is redundant.

Marco, have you personally tried this and succeeded? Or anyone else? Magix team maybe?

Marco. wrote on 10/12/2018, 5:24 AM

Yes, I tried it and it works fine. The screenshot of the formatted text in that linked post was made from a file I used to re-asure it works.

Are you sure you set the tab stops correctly?

Martin L wrote on 10/12/2018, 5:45 AM

No. Tab stops?

Marco. wrote on 10/12/2018, 5:53 AM

Yes, the segments (timecodes, duration, text) need to be separated by tab stops.

Martin L wrote on 10/12/2018, 5:55 AM

Oh, right. I'll try that!

Martin L wrote on 10/12/2018, 6:35 AM

Now I tried that too, but still the same results.

Marco. wrote on 10/12/2018, 6:47 AM

Could you share the text file you used?

Marco. wrote on 10/12/2018, 12:35 PM

You could also download and test another testfile of mine. Download and unzip and then insert the file "sub.txt" via the Vegas Pro "Insert" menu option. It works correctly here.

"And how does inserting subtitles from regions work?"

Create timeline regions, name the regions, then use "Insert/Insert Subtitles from Regions" to let the named Regions automatically create text events.

Martin L wrote on 10/13/2018, 8:21 AM

Could you share the text file you used?

Hi, I'll be back in my office studio on monday so I can sent it to you then.

You could also download and test another testfile of mine. Download and unzip and then insert the file "sub.txt" via the Vegas Pro "Insert" menu option. It works correctly here.

"And how does inserting subtitles from regions work?"

Create timeline regions, name the regions, then use "Insert/Insert Subtitles from Regions" to let the named Regions automatically create text events.

I'll try that too on monday. Thanks!

Martin

Marty74 wrote on 10/15/2018, 12:56 PM

I hope that .srt file will be added to the subtitles format handled by VP16 quick ! but thanks to Marco, didn't tried it yet but if the format of your file work, i can ask a friend to create a script to convert SRT to this format ! (that's great to have a programmer as a friend ;) ).

Martin L wrote on 10/15/2018, 1:29 PM

I'll try that too on monday. Thanks!

Martin

Sorry, I didn't get time today. Looks like thursday I can try it. I'll be back!

VEGASDerek wrote on 10/15/2018, 3:48 PM

I hope that .srt file will be added to the subtitles format handled by VP16 quick ! but thanks to Marco, didn't tried it yet but if the format of your file work, i can ask a friend to create a script to convert SRT to this format ! (that's great to have a programmer as a friend ;) ).

We are planning to add .srt file support to this feature in a future update. I cannot give a definite time table, but it should be available in one of the next few updates.

Martin L wrote on 10/16/2018, 6:36 AM

We are planning to add .srt file support to this feature in a future update. I cannot give a definite time table, but it should be available in one of the next few updates.

Great! It would be good if you can add detailed instruction for it in the VP16 manual as well.

Martin L wrote on 10/16/2018, 7:01 AM

You could also download and test another testfile of mine. Download and unzip and then insert the file "sub.txt" via the Vegas Pro "Insert" menu option. It works correctly here.

"And how does inserting subtitles from regions work?"

Create timeline regions, name the regions, then use "Insert/Insert Subtitles from Regions" to let the named Regions automatically create text events.

Hi again!

I tested your file now and it worked! Then I compared your and mine and found that your file had the words "Start End     Length Name" in the first row with two tab stops between End and Length, while I had only one tab between all words. Coping your way of tabbing brought my file to life too. Now it works.

I tried taking away one tab stop between End and Length in you file and now your file stopped working.

So it was all about the double tab stops between those words. Strange....

I am glad it works, but surpised that Length is needed at all. Why is that? To calculate the length for each title is so time consuming. Then also, in Swedish we have three additional chracters: å, ä and ö. But even though the .txt dokument has them in the subtitles text they do not transfer to Vegas correctly. They are replaced by squares with question marks. (see image) So each subtitle needs to be edited manually... Time consuming again...

I hope Magix improves this thing, makes .srt supported and makes Swedish characters recognized also.

Anyway, thanks a lot to you Marco!

Martin L wrote on 10/16/2018, 7:30 AM

While on the topic, these are some more things I would like to see in upcoming updates of Vegas.

1. When inserting subtitles from file, the subtitle should be possible to put on a semitransparent box. (see image). This is the way all television in Sweden and many other countries do it. As for now each subtitle needs to be manually changed into that adding background, transparancy and cropping. Time consuming indeed. You can't copy one title event and paste the box design onto others, as it is now.

2. The title boxes should automatically adapt to the length of the text. (see image)

3. If more words than can be fit on one row in the window the titler should automatically break the row into two. (see image)

Not disappearing on the sides like this:

Marco. wrote on 10/16/2018, 7:33 AM

"Then I compared your and mine and found that your file had the words "Start End     Length Name" in the first row with two tab stops between End and Length, while I had only one tab between all words."

This is strange because in the original file there is only one tab stop between "End" and "Length" (which works fine here with one tab stop).

To the characters ä, ö – I'm in Germany so we have and use them, too. And I can repro this issue. There seem to be several font issues. I'll send a bug report about it.

I also wonder why a length value is needed. It would seem to be logical if no end time would be used to make it independend from the fps value of the project/footage. But it is independend anyway because miliseconds are used instead of frame values. So – I don't know what this is good for.

Martin L wrote on 10/16/2018, 8:13 AM

Oh, that's interesting.Something for the Magix team to bite in!