PDA

View Full Version : 'Create Tmpg T.' Button in IfoEdit


Derrow
29th August 2002, 11:00
I changed something on this button function in the newer versions of IfoEdit, so the creation works a bit different.

The idea is, you just need the I-frames in the template file. In all movies almost all GOP structures are constant like:
IBBPBBPBBPBBPBBP

But at some points in the movie there are some, that are shorter or longer like:
IBBPBBP
or
IBBPBBPBBPBBPBBPBBPBBPBBPBBPBBP

So it should be enough to store all I frames only of the standard GOP structure, and in addition to store all frame-types of those GOPs, that are not like the standard.

And this is how the new button works!
But IfoEdit doesn't know, how the standard-GOP structure looks like, so you have to tell it.

How to use:
Load the IFO file of your main-movie, and press the button 'Create Tmpg T.'.
In the filedialog, specify where you want to have the Template.txt file written to.
Now IfoEdit starts to scan the first VOB file. You must press now the 'CANCEL' button in the progress dialog (after 1% or 2% completion).
IfoEdit displayes you now the GOP structures, that have been found in the VOB file. You need to select one of them, which will be assumed to be the STANDARD GOP STRUCTURE.
When you have selected one, and clicked 'OK', then IfoEdit will start creating the Template.txt file.
It writes all I frames to the template-file, and when ever it finds a GOP structure, different then the one you specified as STANDARD, then IfoEdit will write all frames of that structure into the template file.

Hope this works better :)

Taokane
1st September 2002, 23:01
Hi Derrow,
I tried the new 'Create Tmpg T.' function and it works as advertised.
Great!
Just one problem; the movie I'm working on (Iron Monkey) has about 150,000 frames, and the TmpgTemplate list produced by Ifoedit stops at around 124,000. This is about 30 seconds into the 5th and last VOB. Consequently, TMPG cuts out the last 1/5 of the film from its output. Some other folks have had similar problems with different movies, where the TmpgTemplate file ends up too short. Any thoughts you could offer would be greately appreciated. Could it be a bug?

I was thinking of just 'manually entering' (using a simple script) the last 25,000 frames into the TmpgTemplate file using the standard GOP structure (in my case one I-frame every 12 frames). Would this mess up my film? I'm thinking it probably messes up my chapter points? Would Ifoedit still be able to remux? I did notice it contains the occasional non-standard GOP structure. Thanks in advance.

Derrow
3rd September 2002, 14:54
Really, it stops earlier?
Must be a bug then.

I'll check that out, and try to fix it.
Thanx for the report.

Nostradumbass
6th September 2002, 23:58
Originally posted by Derrow
Really, it stops earlier?
Must be a bug then.

I'll check that out, and try to fix it.
Thanx for the report.

Yeah, I've got the same problem with The Royal Tenenbaums. The last entry in the Tmpgenc T file is "157951,I" while the last VOB ends at

[Ch 13] [Pg 13] [Cell 15] [V/C Id: 3/ 1] Layer Br.: time: 00:00:00.15 / 30 fps [Pos: 01:49:38.03] [Frames: 197343]
Interestingly that cell is shown with a second layer break is this usual?

Derrow
7th September 2002, 16:43
Ah alright!

Thank you Nostradumbass.
This is it. The movie ends at this point, or in fact, one LBA earlier.
Because in your case, it looks that in VobID3/CellID1, begins the company logo, which doesn't belong to the movie.

The movie-video-frame itself should end then with a SEQUENCE_END_CODE, that's why my function ends.

So it would be better, to strip all after VobID3 away for transcoding.
And if you want to keep the company logo, you can add it later after transcoding back, with VobEdit (JoinClips).

Lerch
8th September 2002, 12:09
Hi Derrow, I've big problem with IFOedit-Tmpgenc Template. The problem is when I transcode a movie that is more than 150 min. of running time (f.e. Lord Of The Rings). The result is that the move freeze for an istant at the start of every cell, and this even if I make the remux with 0.6 or 0.932 (even if with 0.6 freeze less than 0.932).
None of these problems when I make a film less than 150 min. Any suggestions?

P.s. I works with PAL movies.

Lerch
8th September 2002, 18:40
I found the answer. I have to use IFOedit 0.88 both for the Template and the Remux. LOFTR works perfect in this way.

Taokane
12th September 2002, 18:19
So I'm stuck at work right now and an idea occured to me. Basically, this might be a workaround for those of us who have the ifoedit template function quit early:
In my case, the template only goes up to the 4th vob of a 5 vob movie. So what I was thinking is maybe I could do a template for the 5th vob individually, all by itself, i.e. delete the first 4 vobs and rename the 5th one vts_01_1.vob. Then load it up into a fresh ifoedit (either version .88 or current should work). Then hit the now infamous 'Create Tmpg T.' After that, I would take the new template, update it via a simple script so that it appends itself at the end of the original template and Wahlah! It should work, theoretically of course. As long as you make sure to join the two text files at the appropriate i-frame where the split happens (where the function originally quit) just right and make sure to re-enumarate the new template accordingly. As soon as I get a change I'll go home and try it.

tonyp12
24th October 2002, 01:39
V0.88 maybe be able to do a good job with Progressive PAL DVDs.

But can not do NTSC DVDs and the reason is Telecine.

Telecine is the way we display 23.976 frames/second film
on a 29.97-TV in USA.

The NTSC DVD (not all though) store the movie in progressive 23.976
and have a flag to tell the dvd player to do the telecine.

(It spreads out the 24frames over 60fields.)

So IFOEDIT seems to be confused by this 3:2 pulldown flag when
doing the remux and the video freezes and the sound is out of sync.

I tried to encode the movie in 23.976 with NO flag and it works.
But this would not be standard DVD and will not play in all DVD players.

Lerch
27th October 2002, 23:31
Now, I've made tons of movie (all PAL) with TMPGenc & IFOedit, and no problems with any DVD player (PS2 too). These are the software/O.S. I used:

O.S.: Windows ME (sometimes problems with XP)
IFOedit: 0.88 (both for Template & Remux)
DVD2AVI: 1.76
TMPGenc: 2.53 Plus (this version works good, but others make problems with IFOedit, specially the 2.58 version)


I hope this help.

drafty
22nd November 2002, 14:20
Hi,
I personally don't bother using 0.88 for the template creation remuxing etc.
I just use 0.94 ( trying 0.95 currently ). I then process the template with a 4 line VB program to remove all but the I frames from the template and process with tmpgenc and all is fine. I've done LOTR this way + lots of others.

Regards,
Drafty

aklendathu
2nd December 2002, 15:06
I think you are right. I've had problems with the TMPGenc template created by the newer versions of IFOEDIT.
In most cases, the files are reasonably small (200 K or so) but for Star Wars II it got to 600+ KB, because there are many non-standard GOP structures (for axample, IPPPPPPPPPPP instead of IBBPBBPBBPBB) and TMPGEnc chokes on the file size (in WinME, but not XP).
Worse, the resulting re-encoded movie goes crazy (audio out of sync, video too slow) after a couple minutes into play.
If the whole movie is authored with IFOEDIT (video, audio, subpicture) it plays OK but not if the new video is re-muxed with the previous VOB streams. However, re-muxing doesn't work well with movies having more than one VOB-ID because the subtitles are split over several files (as Star Wars II is).
I suspect there may be a bug in IFOEdit that causes a frame offset in the I frame locations in the template towards the end. Also, since the GOP standard structure is never defined in the template, it has to be specified in TMPGEnc and maybe I'm not doing it right.
Anyway, the IFOEdit 0.88 Template (just the I-frames) works perfectly and that's what I've been using.

drafty
2nd December 2002, 15:54
Hi,
BTW 0.95 has the same problem, tried with Clockwork orange had to reencode hmm... another 16 Hrs. :( Back to using my home grown program...

;)

Pelleas
22nd January 2003, 19:21
I finally remuxed my first dvd with ifoedit.

After reading this forum, I used

ifoedit 0.88
dvd2avi 1.76
tmpgenc 2.53

2 pass vbr

The movie is "Panic Room" PAL and the only problem I didn't solve are some artifacts on backgrounds in dark scenes.
I tried all combinations of "Interlaced" and "Not-interlaced" for input and output with no visible differences.

Maybe the problem is due to the darkness of this movie...

So, dvd2avi told me it was "Interlaced" and I encoded it with "Interlace" for both input and output

The first time I remuxed the movie freezed every few seconds.
So I checked tmpgenc settings and I noticed that the "Number of B picture in GOP" (under "GOP structure" tab) was "1" instead of the standard "2" (I don't know why...)
So the GOP header was 1/4/1 instead of 1/4/2.

After set the standard 1/4/2 all worked fine.

No I have the movie with:

1 menu
1 audio track
2 subtitles

with no problem of synk or other

hope this will help

Pelleas

drafty
23rd January 2003, 11:23
Hi Pelleas,
well done. On the subject of Artifacts. You might want to try increasing your minimum bitrate. This got rid of this type of problem for me. I use 400 K/bits per sec.
Oh and did you get your field order correct, you can analyse the video by using the wizard in tmpgenc. This might account for your first problem with stuttering.

Regards,
Drafty

:D

Pelleas
24th January 2003, 15:23
Hi Drafty,

I think you are right:
the minimum bitrate could be the right tip for me too.
In fact, I encoded with min bitrate = 0

I didn't think to increase it even if I noticed that most of the artifacts were in dark scenes, where bitrate is lower than bright scenes, right?

I did analyzed the field order with tmpgenc wizard and chose the right one.
I'm almost sure that my first problem was in the GOP header.

Anyway, those artifacts are less visible with different software or standalone players.
So I already burn it.

But I'll keep in mind the min bitrate in the future

Thanks

Pelleas

Browndog
5th February 2003, 13:09
I find this function of ifoedit will somtimes work and sometimes will not, it is most frustrating. drafty could you please make you VB program avaliable for download?

drafty
5th February 2003, 17:15
The program is very simple basically a several of lines of code.
I would be happy to distribute the code. I have no web site so distribution is a problem and basically its not a very good program, its a simply program that has been hacked together to perform a single purpose.

snidely
15th February 2003, 02:50
Has anyone written or posted a guide for remuxing TMPGEnc .m2v files in IfoEdit? ReMPEG2 does a horrible job on the newer titles, so I switched to TMPGEnc, but I can't remux the audio properly. When I remux, the audio is out of sync by something ridiculous like 7 seconds.

aklendathu
14th May 2003, 15:22
I've recently come across a strange problem while trying to backup a DVD movie by remuxing a re-encoded MPEG-2 stream with the original title set.

The GOP structure I get from IFOEDIT 0.9x is something like IPBBBBPPBBBBPPBBBBPPBBBB... The movie is interlaced as diagnosed by DVD2AVI. It seems that IFOEDIT is classifying each individual field in each frame (IP)(BB)(BB)(PP)(BB)(BB)(PP)... and the resulting template is all messed up with overlapping I-frames.

Has anybody come across this problem (and hopefully found a way to solve it ?)

TIA,

Pedro.