Rewrite time code in an MPEG-2 file?

I've got a situation in Spruce where I was given two encodes (that must be in the same movie) but which have overlapping time code. Spruce's subtitle importing logic cannot handle this scenario. [Creator can but that's not an option this time around.] So looking for solutions that don't involve going back to tape.

My thought was to try and find a tool that would allow me to offset and rewrite the original time code in one of the encoded clips by a couple of hours (e.g. 01:xx:xx:xx becomes 03:xx:xx:xx). It's then simple enough to add the same offset to the time codes in the corresponding .son file, merge everything together and import my subs.

Thanks in advance!

Michael

Follow-up: restream: not so good

At first it looked liked restream correctly re-wrote the time code in my MPEG2 streams but on closer examination it actually appears to have changed things in a way I cannot fully explain. The GOP structure appears to be the same but time codes in the new file are off - late - by over a second. I am thinking that possibly it's been tripped up because the file uses DF. Since I need to sync subtitles with the picture, it's not an acceptable solution.

As it turns out, the OSX version of MPEG Append allows you to specify a new initial time code as well as time code format and it worked as expected.

Michael

restream: good

Just wanted to follow up - now that I finally found time try restream. Pretty much did want I wanted. The only trick is that after you set the new initial GOP timestamp you also need to check "reset timestamps" as well.

Thanks again for the tip.

Michael

Example Movie 1: 1.00.00.00

Example
Movie 1: 1.00.00.00 - 1.45.23.10
Movie 2: 1.00.00.00 - 1.32.18.23
Son timings coincides with its corresponding video timecode.

Add a delay 0.45.23.11 to your Son2 timings (real length of movie 1) and merge.
Can be done with Urusoft Subtitle Workshop for example. (Edit - Timings - Set Delay..)

Now you can add this new son file to the timeline with suggested method

How does it handle this case?

So if clip one's .son file includes a sub running from 01:04:00:00 - 01:04:10:00 and clip two's .son file includes a sub running from 01:04:05 - 01:04:15:00 and I merge the two files together, how does Spruce resolve this overlap?

I am totally willing to admit I may be being dense. I'm more interested in learning something new. ;->

Michael

What I still don't

What I still don't understand about your second suggestions is how it resolves the overlapping time code issue.

Merge the subtitles. Place any BMP into the timeline and stretch to at least the length of the two movies. Set time offset in Spruce timeline to coincide with timecode of movie 1. Now import your merged .son file. Subs are placed correct. Now delete the BMP und drag your movies to the timeline.

I get the merging bit...

I understand about merging the two .son files. If the time codes in the two clips were entirely unique, that's all I'd need to do (and what I have done in the past w/o a problem).

What I still don't understand about your second suggestions is how it resolves the overlapping time code issue.

Michael

IMHO Maestro wont let you

IMHO Maestro wont let you import two .son files. Import the second will replace the first one. Merge the .son files before placing in timeline.

Thanks for the tips....

I'll download and check out Restream. Sounds like a very handy bit of software.

I'm not sure about the second suggestion however. I need to think about whether it would work in this particular case: the time code in the two pieces of video on the timeline overlap and the existing subtitles timings are defined in two separate .son files.

Michael

Restream

Rewrite timecode (and more) can be done with Restream (http://download.videohelp.com/download/ReStream_v090.zip).

Another (probably quicker) solution.
Place an arbitrary picture into the timeline (slide show mode), expand its length to your need, import .son file and replace picture with your two encodes.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <center>
  • You may quote other posts using [quote] tags.
  • You may link to images on this site using a special syntax
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.