Log in

View Full Version : GPL command line M2V transcoder


Pages : 1 2 3 4 5 6 7 8 [9] 10 11 12 13

unixfs
18th November 2003, 16:50
Originally posted by Nic
ps
Actually I can raise the detection level so it occurs alot less....that is probably better than turning it off altogether...


How do you raise it?
Have you noticed those nasty blocks in uniformly colored areas? (especially black turning greyish) I can't find a way to let them go away

Nic
18th November 2003, 17:29
@unixfs: codec->scenechange_threshold = 3500; in ffmpeg.c is how I change the threshold, normally it's set to 0 ;)
Haven't noticed those blocks you mention yet, Ill test more with it. It's getting updated regulary, even the code on my machine is out of date now, maybe they've fixed it?

-Nic

DDogg
18th November 2003, 19:15
dragongodz, thanks for that info. The particular clip I had handy was ntsc DV with a hand held pan...You can imagine the result :)

mmgrover
18th November 2003, 19:43
@echooff
No Problem :-)

@dragongodz

I posted your changes to http://www.rejig.org/development.asp



mike

JvD
18th November 2003, 22:04
mmgrover: any compiled version for this dragongodz-version?

mmgrover
18th November 2003, 22:48
@JvD

It's In the release dir in the rar file
mike

JvD
18th November 2003, 22:56
OK, I also thought i would try out the IfO-mode. Loade the image in daemmon tools and start ReJig and choose Ifo-mode. "Open disk" and pick the mounted drive. Everything seems fine, I can se the IFOs, the PGCs, chapters and cell-ids. I pick the first PGC, chose the stream I want, sound and subtitle language. The I move on to next PGC, i do my settings. NOW, my settings on PGC1 is gone (the settings for the first PGC didnt stick). Is it a bug Or did I miss something. Is this part still under construction? I thought i read about someone using this mode. OR?
One more thing, the audio (languages) alternatives specified under "Streams" in inaccurate. For this movie I can only pick Deutch, and HOW FUN IS THAT ;-)
Yet another thing, under titles /ehere my PGCs are, will it be possible to pick the PGC I want to keep? Now I cant! The Del button remove alls sets :-( OK, I can de select the video under streams but then again, when I go to the next PGC to pick streams, my first choises on PGC1 is gone.

sundance
19th November 2003, 09:50
@DMagic1
I asked a while back, how to get the Rejig M2V into Maestro. I never got and answer. What I did to get Maestro to accept it was to run Pulldown setting only "all frames to progressive". After that Maestro accepted it fine.
Is this the best way to get Maestro to accept the M2V file?


I also hesitated to answer since you mentioned using "pulldown" which was NTSC related to me.
Being a PAL user I never had any problems importing rejiged m2v streams into Maestro. The only thing annoying is that the original time code is still present (usually 0:59:59:00 or some other value just a little below 1 hour) which gives you some additional work to adjust your chapter marks and subtitles.
So maybe there are other NTSC guys to help you out.

Nic
19th November 2003, 10:17
JVD: You can only do one PGC at a time, at present. Hence you loose your settings when you switch PGCs.

burnix
19th November 2003, 11:55
I have tested last night the version 0.4a on DVB (sat) capture and it works fine.

DVB sat - 720*576 - pal - 25 fps.

I have compared the requant portage and rejig, no difference between the two app.


Have nice work ;-).

DMagic1
19th November 2003, 20:00
thx Sundance and Nic

burnix
20th November 2003, 10:30
Hello all.

Just a few word about my test on dvb file.

- first i capture with my dvb card
- then correct it with pvastrumento

If the format is ok for dvd (720x576) i can use it in tmpgenc dvdauthor (no prob)

If i demux the file to obtain the video file, then use requant or rejig to lower his size, i cannot use it in dvdauthor ????

The video file (m2v) play ok but there is a problem. When i remux with tmpgenc i have a lots of packet undeflow (????).

Someone can have a solution ??????

Thanks

ronnylov
20th November 2003, 13:53
Originally posted by burnix
Hello all.

Just a few word about my test on dvb file.

- first i capture with my dvb card
- then correct it with pvastrumento

If the format is ok for dvd (720x576) i can use it in tmpgenc dvdauthor (no prob)

If i demux the file to obtain the video file, then use requant or rejig to lower his size, i cannot use it in dvdauthor ????

The video file (m2v) play ok but there is a problem. When i remux with tmpgenc i have a lots of packet undeflow (????).

Someone can have a solution ??????

Thanks

I don't think you need to remux it. I beleive TMPGEnc DVDAuthor accept elementary files and you can demux it directly with PVAStrumento, rejig it and then import it without any remuxing step. Just use the same file names but with different extentions for audio and video (mpv and mpa).

Another way to do it is author a DVD with the original file that is too big and then use any DVD transcoding application to shrink the VOB files to fit a DVD. I have done this with DVDShrink but it may be possible in Rejig too?

burnix
20th November 2003, 14:01
I have tested the second solution, since my first use of dvdauthor. I think i going to use this solution every time. The only thing was that in the first release of dvdauthor dvdshrink cannot open my dvdstructure (pb on decoding key, but there is no css encryption in dvdauthor).

I can try too the first solution (import elementary stream treated by rejig).

I do all of this tonight and i keep you informed tomorrow.

Bye.

echooff
20th November 2003, 14:13
If the mpeg file is dvd compliant DvD Author will accept it and its audio without muxing. If there is a prior sync issue it must be cleared up first. I have found it is wise to use IfoEdit on the authored output to get vts sectors prior to burning.

Nic
20th November 2003, 16:15
http://nic.dnsalias.com/ffmpeg.zip
If you fancy using a bit of commandline encoding for m2v -> m2v, try this build of ffmpeg. I honestly don't know what the speed and quality will be like compared to CCE. But it might be worth looking into...(Read the ReadMe.txt)

-Nic

ps
@JVD: Forgot to ask for that IFO that only displayed Deutsch as a language. Could you mail it to me? mail: nic@nic.dnsalias.com

burnix
20th November 2003, 16:42
Is there any tools to analyse the m2v file generated to see where is the problem ????

daddy_fizz
20th November 2003, 22:01
i'm not sure if this is a problem with ifoedit or the rijig m2v file

when i try to author a rejig m2v with a single audio and subtitle track using ifoedit it will get about 5 percent done and then say

"INTERNAL ERROR: additional data required but no free space in input buffer"

???

~Fizz

mmgrover
20th November 2003, 22:26
@daddy_fizz


I would always get "INTERNAL ERROR: additional data required but no free space in input buffer" if i had a bad spot in my ac3 audio track.

mike

daddy_fizz
20th November 2003, 22:34
i will try reripping the ac3 and see if it works

thanks

~Fizz

daddy_fizz
20th November 2003, 23:54
nope didn't seem to help

hmmm...

~Fizz

jsoto
21st November 2003, 01:17
@daddy_fizz
Please check your ac3 with BeSliced (a fantastic DSPGuru“s tool).
Also, did you try to author without subs?. Just to know...

jsoto

dragongodz
21st November 2003, 04:17
mike - no probs.

nic - yes i knew why it did those short GOPs but i was just trying to show how ffmpeg left to defaults can overdo things. not only change scene change sensativity but also minimum GOP size to 5 and that should be better.
as for ffmpeg i have found that using EPZS(size 2) with SAD ME gives a quite nice picture and isnt too slow but i didnt test on long video so maybe other will. :)
i have some docs on things like rate control and transcoding etc if you are interested aswell. just let me know and i will email them to you.it will have to be soon though as i have ordered a new motherboard, case and stuff so in a day or 2 i will be busy pulling my pc apart and rebuilding a new one. :)

daddy_fizz
21st November 2003, 05:30
Originally posted by jsoto
@daddy_fizz
Please check your ac3 with BeSliced (a fantastic DSPGuru“s tool).
Also, did you try to author without subs?. Just to know...

jsoto

ran it through besliced and used the "fixed" audio track but still did it, reauthored without subtitle and worked fine... is this a known problem with ifoedit? thanks

~Fizz

Nic
21st November 2003, 09:34
@dragongodz: "yes i knew why it did those short GOPs" Then you should have told me ;) I didn't.lol. Yup send any info along. There doesn't seem much interest in the build I made though....

@daddy_fizz: There's a problem with the sup files created by ReJig. I was bugfixing lots yesterday (fixed that one at about midnight ;) ) Ill release it later today.

-Nic

daddy_fizz
21st November 2003, 09:49
thanks i appreciate it, i was going to start backing up my dvd collection with rejig...but was just waiting to see if this could be fixed...

~Fizz

Nocturno
21st November 2003, 14:33
@Nic .. will do some testing with ffmpeg when i find some time, your work is appreciated :D

Nic
21st November 2003, 17:57
http://nic.dnsalias.com/ReJig.zip
http://nic.dnsalias.com/ReJig_src.zip

Bug fix for the IFO Mode really, rough changelog:

SUP Creation Fixed. (substream ID was being included sometimes)
All Sundance's initial comments after 0.4a release fixed (Thanks alot!)
Can now export chapter times for IFOEdit Authoring
PTS & Audio Delay finding improved (VOBEdit gets it wrong too ;) )
Other things I've forgotten, but now it's alot more solid.

Created backup for Matrix Reloaded today using it and IFO Edit authoring, without problems.

-Nic

unixfs
21st November 2003, 18:19
so when can we expect the first 2-pass ReJig? :)

Nic
21st November 2003, 18:48
Tomorrow with luck ;) Only very basic, but almost done.

daddy_fizz
21st November 2003, 21:01
dang i think i'll have to wait for that one now :D

~Fizz

Nic
22nd November 2003, 01:13
http://nic.dnsalias.com/ReJig.zip
http://nic.dnsalias.com/ReJig_src.zip

ReJig now has 2pass;
ReJig can now calculate the size of the original M2V file and use that to calculate the percentage needed for a specified outputfile size. It's basic but works well.

-Nic

daddy_fizz
22nd November 2003, 02:22
nice! thanks, i for one really appreciate the work you have/are doing

how exactly do i use this sizing feature... i am a little confused :D

~Fizz

lighty
22nd November 2003, 03:51
@Nic

Good work with 2pass. Good size prediction especialy in IFO mode.;)

The only thing that surprised me is that first original m2v file is demuxed and then ReJiged m2v file is created. I didn't anticipate it and ran out of space on disc. Oh well, I will be better prepared next time.:D

mikegun
22nd November 2003, 09:04
hi,

I tried 0.4d with 2nd pass and rejig crashed at the end (tried 2 times).
it seems like rejig produced the m2v but cannot finish right.
the m2v is about the size I wanted but unplayable.
os is 98se.

regards,

mikegun

unixfs
22nd November 2003, 10:55
Nic,

I tried to recompress a 3.6 GB M2V to 780 MB but it ended being
1.2 GB. I didn't expect it to reach that size (after all motion vectors remain unchanged, right ?), but I noticed that the first
step was very fast (no more than 3 minutes).
Maybe a deeper scan will help?

In all my attempts, the final size was never < 33% of the movie, maybe this is the tipical size of non-quantizers?

Quality seems to be very good :)

Excellent work!

Nic
22nd November 2003, 11:26
@daddy_fizz: Tell me which bit is confusing and ill try and help. BUt basically put in the total size (including audio, subs and rejigged video) in MB into the size box and hit Process.

@lighty: Well it does say Demux & 2Pass ;) lol, well I had it originally only do a two pass. But it's slower and if it gets the size wrong, you can't rejig it. Maybe ill change it later.

@mikegun: Never had it crash, ill put in some debug output so I can catch where it's crashing. It might be a win98 thing (I don't have win98 to try it on :( ). Is it crashing in normal mode or IFO mode? What type of file? Thanks :)

@unixfs: The first pass isn't really a first pass ;) It just finds the size of the original M2V file (so Demuxing is all it does, at present it even does that on a raw M2V file which is stupid, and ill correct that in just a minute ;) ). I can't get it below around < 33% either, but I dont think it will be a problem (??)...And the quality does look good :)

-Nic

ps
The commandline has changed, so you can control it from there. Also if eyes' only contacts me (or mmgrover) Im sure I can make it more useful now for DoItFast4U....

dragongodz
22nd November 2003, 12:09
Nic - to answer your PM questions here, i only did a few tests with the changes i made and yes they always came out smaller. the amount could vary but there was always a size drop(closer to percentage user set). basically the react_delay etc is keeping track of if reduced size is falling behind and reacting if it is. i havent looked in to it to much as it appears a very basic system that should be replaced with the type of payback system i mentioned earlier.

unixfs - well i could probably make it go lower by adding some more steps to the react_delay and add quant etc but do you really want <33% ?

well i have my new motherboard (gigabyte 7s748, nice.....and cheap :) ) in a new case with some new ddr400 ram so now to rip this system apart and transfer the bits i want etc and then upgrade OS aswell. fun.....not. so see you guys in a week i would say. :)

unixfs
22nd November 2003, 12:29
Originally posted by dragongodz

unixfs - well i could probably make it go lower by adding some more steps to the react_delay and add quant etc but do you really want <33% ?


For me quality is not always the most important factor (dvb captures to be archived and dropped), so I would really love to shrink it even more.
Thanks!

mikegun
22nd November 2003, 12:32
@Nic
it was crashing in normal mode. I added 2 vobfiles from the same vts (extras vom t3 rc1),
checked 2nd pass, wrote in the desired size and started.
it not just crashed itself but the whole system, could be 98se related.

regards,

mikegun

Nic
22nd November 2003, 15:43
http://nic.dnsalias.com/ReJig.zip
http://nic.dnsalias.com/ReJig_src.zip

Only a minor update, but necessary.
(Doesn't try to do a two pass if encoding from a raw m2v file now, it can do it in just one pass)

ps
@mmgrover: if you want, give me access to rejig.org I can update as needed.

mikegun
22nd November 2003, 18:11
@Nic:

latest version doesn't crash. it seems to finish ok but the .m2v is still not playable.

regards,

mikegun

daddy_fizz
22nd November 2003, 19:20
@mikegun: what are you trying to play it with? i can't play a m2v file with any program on my computer but if i mux the m2v file then it will play fine.

@nic i just wasn't sure if that was the total size for the video or total size for video,audio,subs,etc. maybe you could put total size for dvd or something on there instead of total size for video. just my 2 cents

thank you

~Fizz

Nic
22nd November 2003, 20:04
Hmmmm :(

The main reason, dvd authoring is difficult for us in GPL is there is no easy solution to multiplexing the subtitles. The main multiplexor people can use for dvd authoring is mplex of the mjpeg project on sourceforge. So my idea was to add SUP support to mplex.

But hex editing through IFOEdit shows that it uses mplex code for it's multiplexing (!) Which is GPL software ! And therefore he has already added SUP support to mplex...(even if he is using it under some sort of LGPL his changes to the library would need to be released)

Is Derrow still around now days? I haven't followed the dvd authoring scene...Any chance of him releasing his modified mplex source code do you think? I dont want to have to write what he's already written...

-Nic

mikegun
23rd November 2003, 09:13
Originally posted by daddy_fizz
@mikegun: what are you trying to play it with? i can't play a m2v file with any program on my computer but if i mux the m2v file then it will play fine.


I rename it to mpg and play it with windvd. it works now, must have been my fault, sorry guys ...

regards,

mikegun

dvd2svcd
23rd November 2003, 11:21
you can use spumux.exe it's freeware. And you can use mplex with it too :)

http://dvdauthor.sf.net

I'm planning to implement this in dvd2dvd too as it is freeware :)

DVDRFreak
23rd November 2003, 19:08
@Nic

Hi Nic,

A new version of the original transcoder is avialable. It implements some new kind of rate control. According to the official side it has better speed and better quality !

Nic
24th November 2003, 11:06
@DVDRFreak: They may have changed it, but the source code download hasn't changed :( Ill email them.
@d2s: Hi, spumux, is ok, but a real longwinded way of adding them. as you have to feed the original files in to get the stream, which is then converted to PNGs (I think). If we could get the mplex code from Derrow to do it, it would be alot easier, otherwise ill have to write the code myself :(
(If your going to use it, you may want to compile the source in MinGW so you don't have to include the cygwin DLLs)

@mikegun: Glad you got it working :)

-Nic

2COOL
24th November 2003, 12:04
First of all, to everyone involved in rejig, a great job on a project that keeps getting better!:D I'm impressed! Well, I've been pretty much lurking behind the scenes and trying to beta test ReJig and I, for one, always need subtitles and I've had more failures and success when remuxing the transcoded m2v using IfoEdit. Though I had great success with doing Full Metal Panic volume one, a awesome episodic anime, I had problems with doing Finding Nemo. I had audio and video sync problems, which I think has to do with the stream delays. When I did this movie through a dozen times using IfoEdit to remux, I keep getting a constant half a second delay of audio throughout the movie. Anyways, in a nutshell, here's the working way that I went about doing this. Keep in mind you might need alot of space on your harddrives if the titleset is too big.

_________________________________________________________
1. Load each Titleset VOB separately into Rejig.
_________________________________________________________
2. Select 1 or 2 Pass and compress all.
_________________________________________________________
3. Remux m2v using, not IfoEdit,but with VobEdit 0.60.;)(I didn't see this freeware being mentioned in this thread but if not, that's my advice) For some reason, VobEdit is a better remuxer. Hmmm....the're both from the same author. Also, since there is no batch option, you can open up more VobEdit remuxing windows and as a speedier remux, drag the processing window down below the bar.
_________________________________________________________
4. Join all VTS_*_00*.VOBs using Vobedit.
_________________________________________________________
5. Create new IFOs with new VOBs. 1 PGC and 1 chapter for each cell.
_________________________________________________________
6. Replace original VOBs with new VOBs
_________________________________________________________
7. Use IFOUpdate in adjusted cell mode and with "Copy Audio and Subpictures Table" unchecked. I don't want my original IFO getting "Not Specified" streams. Used the IFO I got when creating new IFOs as my Authored IFO.
_________________________________________________________
8. Play to test.
_________________________________________________________

I really wasn't going for a targeted size in this test and I wish I could get it close to what I want my titleset to be shrunk to. What I really was trying to do is try to retain my subtitles without reauthoring. Since I live in NTSC country, IfoEdit 0.96 doesn't do me any justice for the moment. :(

I hopes this works for others.

DVDRFreak
24th November 2003, 12:31
Originally posted by Nic
@DVDRFreak: They may have changed it, but the source code download hasn't changed :( Ill email them.
-Nic

Try this url:
http://metakine.com/files/

Downloaded it file is called:
M2VRequantiser.tgz with a s the old version is also there but is called M2VRequantizer.tgz with a z.