View Full Version : GPL command line M2V transcoder
Pages :
1
2
3
4
5
6
[
7]
8
9
10
11
12
13
JvD
4th November 2003, 22:15
Sorry, i deleted all files. Trying again right now. Using the latest Rejig from rejig.org. If I get the same error msg Ill be back!
In ReAuthorist I can switch between the different Title Sets, how do I get Scenarist to do both VTS01 (movie) and VTS02 (som extras)? I can only pick VTS01 and then "Author it".
This is the error mesg: http://www.morck.se/scenarist_error.jpg
mmgrover
4th November 2003, 22:18
@JvD
Did you load the import script for a single titleset or the whole scenarist project?
I will try to make a quick guide for the complete proces when I get
home tonight...
mike
mmgrover
4th November 2003, 22:28
@JvD
Error is because when scenarist imported the script, the video
files were not available, so it put in place holders
You were missing video for Program Chain 1 TitleSet 1, and
video for Program Chains 2,4,5 for Title Set 2.
mike
JvD
4th November 2003, 22:33
So, what shall I do? *feels like helpless noob* Can i correct this?
mmgrover
4th November 2003, 22:47
Post what's in your CCEData.txt file
JvD
4th November 2003, 22:49
"C:\DVD_BACKUP\VTS01\VTS__01_P01.16~9_1.AVS",0,9608,4911,0,3
"C:\DVD_BACKUP\VTS02\VTS__02_P02.4~3_1.AVS",0,9608,1850,0,3
"C:\DVD_BACKUP\VTS02\VTS__02_P04.4~3_1.AVS",0,9608,1850,0,3
"C:\DVD_BACKUP\VTS02\VTS__02_P05.4~3_1.AVS",0,9608,1850,0,3
mmgrover
4th November 2003, 22:57
Did you click the "Re-Compress All" button, and
did all the Jobs go from "[NOT DONE]" to "[SUCCESS]" ?
ReJig Should be creating 4 files:
VTS__01_P01.16~9_1.mpv.m2v
VTS__02_P02.4~3_1.mpv.m2v
VTS__02_P04.4~3_1.mpv.m2v
VTS__02_P05.4~3_1.mpv.m2v
mike
JvD
4th November 2003, 23:24
I did one file at the time but all were seccessfulle created, the name of the files are as you say and they are placed in each VTS01 and VTS02 folders. http://www.morck.se/folder.jpg
I see now that there is two .p2v-files. The original and the rejiged one. Should I remov the original?
This is what Scenarist says:
Info
Info Creating DVD Files
Error The track<VTS_01_PGC_01> has place holder.
Error The track<VTS_02_PGC_02> has place holder.
Error The track<VTS_02_PGC_04> has place holder.
Error The track<VTS_02_PGC_05> has place holder.
Error PreCheck From DB failed
Error DVD files could not be created
WHat shall I do?
In the ReAuthorist.SCP I see that .mpv files are requested. Am I stupid or should it be like that? My files are m2v.
mmgrover
4th November 2003, 23:40
Ok, now that we know the files are there, Are You reimporting the
script file or just reopening the scenarist project file?
If you are just re-opening the scn file, you have to be sure to
tell scenarist that the video files are there now.
Click the data tab in scenarist, select the video stream in question, then right click and select "placeholder->data"
Don't worry, we will figure this out.
I never give up :-)
mike
Send me the scp file to mike@rejig.org
JvD
5th November 2003, 00:16
Finally SUCCESS :) :D :devil:
What i did was to rename the files by removing the .m2v so the files was .mpv instead (created files was VTS__0X_P0X.XX~X_X.mpv.m2v but the scp-files was looking for a mpv-file) . After that I just loadet Scenarist as usual an got it runing without any problems. Created a fully functional DVD ;-) So, is it me or a bug? Why is the ReAuthorist files looking for mpv-files when thera are only m2v? Should Rejig output mpv?
God night guys and keep up the good work on this app!
mmgrover
5th November 2003, 00:29
@JvD
I'm looking into that now...
mrbass
5th November 2003, 02:34
Mac DVD Backup Transcoder by Makira
http://www.metakine.com/products/dvdremaster/
released source code Requant (Sep 2003)
http://www.metakine.com/files/M2VRequantizer.tgz
RB ported it to win32 (October 6, 2003)
http://home.t-online.de/home/340044300675/requant.zip
DVDRFreak (October 9, 2003)
http://www.mrbass.org/M2VRequant.rar
-Changed startup parameter so program will accept percentage as parameter.
-Recompiled using speed optimalizations for P6.
Nic (October 10, 2003)
http://nic.dnsalias.com/Requant.zip
Nic (October 11, 2003)
ReJig v0.1
Nic (October 12, 2003)
ReJig v0.2, v0.2b, v0.2c, v0.2d
Nic (October 13, 2003)
ReJig 0.3a
Nic (October 19, 2003)
ReJig 0.3b
http://nic.dnsalias.com/ReJig.zip
http://nic.dnsalias.com/ReJig_src.zip
Nic (October 24, 2003)
converted ReQuant into C++ code...
http://nic.dnsalias.com/ReQuant_src.zip
mmgrover...Just download and keep local copies since links change, etc. Not sure if Nic wishes to add a summary change log. Just for clarification but I'm pretty sure all of this is based off of M2VRequantizer source and none of it yet (at least) is based off of M2VDownsizer source as it hasn't been ported to win32 yet.
M2VRequantizer:
A module which simply requantizes the video leaving the motion vectors unchanged. This module is very fast and provides relatively good quality.
M2VDownsizer:
A modules which recompresses the video stream completely (including motion vectors). This will usually yield slightly better quality, at the cost of time.
Eyes`Only
5th November 2003, 03:24
JvD:
NTSC: If the file is nopull, the extension should be .mpv, not .mpv.m2v. CCE outputs .mpv and if we pulldown, we pulldown to an output file of .mpv.m2v. To emulate this filename structure, a .nopull.avs should search for a .m2v and transcode it to a .mpv.
PAL: Pulldown should never be used, so the extension should always be .mpv
I use AVIFILEINFO to determine the fps of the video file (well actually the .AVS). For example:
pfi = new AVIFILEINFO;
PAVIFILE pfile;
AVIFileInit();
AVIFileOpen(&pfile, m_csAVSFileLocation, OF_SHARE_DENY_WRITE, 0L);
AVIFileInfo(pfile, pfi, sizeof(AVIFILEINFO));
m_dFrameRate = pfi->dwRate / (double)pfi->dwScale;
AVIFileExit();
(if m_dFrameRate<26), don't add .m2v under any circumstance.
Don't know if there's code in there already to determine fps, I see there's a bunch of classes in Rejig borrowed from others, but I almost always write my own classes. Probably why my production time is so much longer! LOL
mmgrover
5th November 2003, 05:03
@eyes only
(if m_dFrameRate<26), don't add .m2v under any circumstance.
What if the d2v file is set to film?
That returns 23.976, it will be pulled down.
Shouldn't that be named .mpv.m2v?
mike
or do you mean if m_dFrameRate <> 25?
I don't have any PAL dvd's here :-(
Would it be safer to assume if < 24fps must be pulldown else
keep mpv ext?
Film should be only pulldown.
Eyes`Only
5th November 2003, 05:46
Good point. I was actually pasting my "figure out if you need to add .nopull" routine and obviously for that I use if (m_dFrameRate>26). I reversed it in an incorrect fashion. That'll teach me to speed-post, eh? :(
JvD
5th November 2003, 08:43
Originally posted by Eyes`Only
NTSC: If the file is nopull, the extension should be .mpv, not .mpv.m2v. CCE outputs .mpv and if we pulldown, we pulldown to an output file of .mpv.m2v.
Thanks! I know that cce outputs a .mpv but since I am a novice (compared to you guys) and I live in a PAL country (without any need to pulldown ;-) I didnt even think about it. But i think it should be corrected in some way.
Nic
5th November 2003, 09:51
" see there's a bunch of classes in Rejig borrowed from others"
Where?
Theres the whole load of VStrip code in there...But all the classes are mine :) (although I use them lots, in things like MPEGDecoder etc)
There isn't a single class written by anyone else in there.
-Nic
ps
@mrbass:
Oh I did do a port of M2VDownsizer, it's not a very good bit of code (sooo slow, uses mpeg2enc from mjpeg). I tried to put in a reasonable amount of x86 assembly, still too slow to use. Ill post it later, it may be difficult for some to compile...
mmgrover
5th November 2003, 14:07
@nic
I'd like to check out that code too, I was working on porting
it over, but you beat me! lol
mike
@nic,mrbass
I updated the history page this morning. Check it
out and see if it works for you?
mike
Eyes`Only
5th November 2003, 15:36
Theres the whole load of VStrip code in there...But all the classes are mine (although I use them lots, in things like MPEGDecoder etc)
There isn't a single class written by anyone else in there.
True, the classes (9 in total I think) were all from VStrip, but one stated "based on code originally written by Thomas Mirlacher (dent@cosy.sbg.ac.at)
for the "free InFormatiOn project" (http://www.linuxvideo.org)" which I guess means a class borrowed from a class? It's not a subject of importance anyway. The reason why I don't use code from others is more based around my inexperience with doing so! heh
BTW: I installed SP5 and still can't seem to compile successfully :(
Nic
5th November 2003, 15:59
(There are no VStrip classes...only C source that's been ported to C++ by me, but not in a class...but as you say, it's not important :) )
Have you tried installing "Processor Pack 5" for VC6? I think that might solve the issue if you haven't already...
-Nic
mmgrover
5th November 2003, 16:01
Just Wondering if we could all get together for a meeting somehow?
I'm worried people will be working on same areas and overlap code?
Not sure what direction things are headed?
mike
Eyes`Only
5th November 2003, 16:07
Hey! That was the fix I was looking for! I tip my hat to the master...
mmgrover: Sounds good to me, I didn't plan on writing any new code as of yet though, I just know a lot of ppl looking for a version with static libs that has advanced CCEData.txt parsing. How does EFNet IRC sound to you guys?
mmgrover
5th November 2003, 16:09
I wasn't trying to step on any toes here ;-)
Still not sure How nic feels about web site?
I just see a good app here with lots of future!
mike
Trying to be what ever help I can.
Have coded for years, but my MFC skills are getting rusty :-(
I mostly use Builder 6 and delphi 7 now :-)
On another note, been about 60 downloads of Installer version of rejig. My DSL line goes nuts now and then...
mmgrover
5th November 2003, 16:17
The only thing holding me back with a staic version was
that I havn't been able to compile the css code in vStrip yet :-(
I added code to a version here that gets frame rate, If it's 23.976
use .mpv.m2v naming alse use .mpv
mike
Nic
5th November 2003, 16:27
:) Website's fine...
If I've included my MPEGInfo class they'll already be a class to find out the framerate but that might not be in there...post your code and ill put it 0.4 to be released soon...(code's done, just got to make the stop button work.lol! (then test it...))
-Nic
ps
I'm not really one for IRC, my free time is very short, and it's better spent coding...My plans are to finish this IFO mode off and then work on the compression/rate-control. So anything other than that shouldn't interfere or overlap for now :)
Eyes`Only
5th November 2003, 16:32
Nic: understood. Well if either of you want to chat using a system a little more facilitating than this one, I'm in EFNet IRC at #doom9 most of the time. Great! I've got an alpha of DoItFast4U 1.3.4 about to go beta which will call rejig as long as users put a copy of it in my install dir, and keep it named Rejig.exe. I think it should suffice, as long as CLI doesn't change.
mmgrover: No wait, that sounds backward. 23.97 = mpv.m2v, 25=mpv, 29.97=mpv
mmgrover
5th November 2003, 16:47
@eyes only
Film is 23.976, 29.970 after pulldown
So wouldn't Film be the only mpv.m2v?
Eyes`Only
5th November 2003, 16:56
yeah, I guess I misunderstood "alse" to mean "also", which confused me.
mmgrover
5th November 2003, 17:00
Sorry, I meant else, lol
Sounds like converting from bitrate to percentage is up to us?
You had any ideas on that?
mike
Eyes`Only
5th November 2003, 17:07
Well I thought about doing it, but the problem is what you mentioned about the sizing not working correctly as it is now. I don't think it's proper for me to pursue it, as what *might* need to be done is a complex calculation varying depending on other factors such as filesize, correct? I can send percentage information in the CCEData.txt file, but I'm not sure this would work out the way we want it, and it would leave the file proprietary, instead of being able to be used on both apps (DoCCE4U and Rejig), which is something I was hoping(?) could be done, at least in initial stages.
mmgrover
5th November 2003, 17:12
Since this project is in its early stages, Do we use the CCEData.txt
for manual import, and possibly create a REJIGData.txt file
for DoItfast4U->ReJig auto processsing?
Leave existing CCEData code and add additional code?
Create a nice format for rejig text file?
mike
I'm not sure if nic's current work fixex that or not?
mmgrover
5th November 2003, 17:21
How do you guys feel about CVS?
I can open outside on my openBSD machine to allow access to my WinCVS server here and we can use the WinCVS cient?
I have been using it for about 3 years and have had good luck with it.
We can set it to allow Read only access for Anonmoyous users.
This would allow us to all work on the project at the same time :-)
Just keep committing your changes.
@eyes only
CVS is the Concurrent Versions System, the dominant open-source network-transparent version control system. CVS is useful for everyone from individual developers to large, distributed teams:
Its client-server access method lets developers access the latest code from anywhere there's an Internet connection.
Its unreserved check-out model to version control avoids artificial conflicts common with the exclusive check-out model.
Its client tools are available on most platforms.
Goto http://www.cvshome.org/
On my Win2000 server I use http://www.cvsnt.org
For Client I use http://www.wincvs.org
Awsome Tool!!!
Eyes`Only
5th November 2003, 19:07
Never used it. :confused:
mmgrover
5th November 2003, 22:45
Has anybody Used ReJig To Compress a Encrypted vob?
I finally got the csslib to compile ok, so I opened up a
vob file on my hard drive that is encrypted, when I try to
compres ReJig crashes :-(. I then thought maybe it was my Compiling
of css, so I downloaded the ReJig exe from nics site. Same problem.
Has this worked for anyone else?
Going to start running it in debug mode to see if I can trace it.
an assertion fails In Debug mode at line 226 in RequantEngine.ccp
void putAC(int run, int signed_level, int vlcformat)
{
int level, len;
const VLCtable *ptab = NULL;
level = (signed_level<0) ? -signed_level : signed_level; /* abs(signed_level) */
>>>>>>> assert(!(run<0 || run>63 || level==0 || level>2047));
len = 0;
Nic, Does Rejig decrypt on the fly?
I compiled the test app thet came with libdvdcss and it worked fine....
mike
Nic
6th November 2003, 00:09
(Nope ReJig in normal mode does no decryption, although plugging in code to do so is easy with those classes (I do it in my unreleased DVD2AVI_Nic....In IFO Mode decryption is done however).
(libdvdcss is only used for Authentication (which is only used in IFOMode))
Im just about to release version 0.4 :)
-Nic
ps
Not a fan of using CVS at the moment, maybe later though.
Using CCEData.txt should be fine, but we'll need to look into it once rate control code is implemented, which ill begin work on soon.
Nic
6th November 2003, 00:28
ReJig 0.4a
http://nic.dnsalias.com/ReJig.zip
(source code)
http://nic.dnsalias.com/ReJig_src.zip
Now has IFO Parsing, can rip streams and convert straight from the DVD. Also can convert Sub->Sup and correct AC3 Delay after ripping.
Very untested at present, bound to be buggy. After bugs removed, moving onto rate-control (i.e. so you can put in a final size).
Also includes DVDRFreak's fix for Remove stuffing by removing 8 bytes instead of 6. Should stop jerky video...please let me know if it does.
-Nic
DVDRFreak
6th November 2003, 00:43
@Nic
Cool, will start testing tommorow after work. Great to see you are better again.
Noticed one bug pressing the open disc button in ifo mode shows a dialog with a empty box. When the open disc button beside this box is pressed the program terminates with an exception.
dragongodz
6th November 2003, 03:45
mmgrover - i had a quick look at the sizing wrong(not enough) for 50%.
in requantengine.cpp change the react_delay values. so -2.5f becomes -1.0f, -5.0f becomes -2.5f. then change -60.0f to -10.0f and -80.0f to -20.0f. make sure to change all instinses.
try that and see how close the output size is to what it should be. should be pretty close. this is more of a quicky solution until nic gets a chance to work on the rate control properlly. :)
mmgrover
6th November 2003, 07:09
@dragongodz
I will give that a try
mike
Grunter
6th November 2003, 12:57
I've tried ver. 0.4a. In IfoMode crash everytime. :confused:
Nic
6th November 2003, 13:07
Give a little more detail grunter. When does it crash? When loading an IFO? As soon as you hit Process? Did you make sure you supplied an output directory? etc
jhmac
6th November 2003, 13:23
Did it crash on a dvd or files ripped to harddrive. Was the dvd a copy or an original?
Grunter
6th November 2003, 14:32
Let me explain. I try to process in ifo mode an iso mounted with daemon tools (previously ripped on hd with dvd-decrypter), when it's going to finish the processing, it crashes:( It crashes when i demux the video and also when i re-compress the video.
DVDRFreak
6th November 2003, 19:03
@Nic
I'm testing a little and found a strange thing:
In IfoMode:
I deselect all chapters except chapter 1 and choose an output directory. Rejig 0.4a processes the video but it processes all the video. This might have something to do with the fact that if I deselect a chapter de CELS that are corresponding to this chapter are not deselected.
I did run a second test same video now I deslected all chaptes and all cells and then selected chapter 1 and manually selected the correct cell id's. Same result so it is not the selection of cell id's.
Nic
6th November 2003, 20:36
(Well that bit was working...means ive broken it ;) It really has almost no testing it's current state, but I thought it needed releasing otherwise I might hold up other code ammendments...the fixes should only be quick. Ill do them soon)
-Nic
sundance
6th November 2003, 23:07
Hi nic,
just tested ReJig's Ifo-Mode with "Maid in Manhattan" (R2).
Works fine here; no crashes (W2K SP3). And, of course, the video quality is excellent (85% compression).
But while playing with it, I found some "issues" (beside the "one chapter thing" DVDRFreak found) which you might want to know:
a) When "Correct audio delay" is selected, even streams with 0ms delay are "corrected".
b) If you try to stop it while correcting, the unfinished, corrected version is kept while the original ac3 file is deleted (happened at least once; could not reproduce it another time I tried...).
c) If you don't select a video stream (just audio and/or subs), any existing m2v stream is deleted.
d) After a destination folder is selected, the compression is always reset to 70%.
Tnx for your outstanding work!
I'll keep on testing...
Nic
7th November 2003, 00:26
Thanks for that bug report....lots of very minor things...sorry you had to find them, but at least there easy to fix :)
-Nic
int 21h
7th November 2003, 04:53
@Nic:
Check this out http://www.dvdrhelp.com/forum/viewtopic.php?t=180017
A quick Cygwin-less port of that shouldn't be entirely too difficult, and then ReJig could output direct to DVD.
DVDRFreak
7th November 2003, 07:52
Originally posted by int 21h
@Nic:
Check this out http://www.dvdrhelp.com/forum/viewtopic.php?t=180017
A quick Cygwin-less port of that shouldn't be entirely too difficult, and then ReJig could output direct to DVD.
That would be so cooool :) :cool:
I believe that Nic already ported the DVDauthor part.
Nic
7th November 2003, 09:39
(and mplex (from mjpeg) is already set up to compile under vc6 (which id didn't use to be). So the whole thing is ready for auto authoring using them :) Just got to get the time to put it all together, first going to do rate control though.
-Nic
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.