Hi, at the first sight it looks good. But at the second, not.
I've made some tests and found out that mencoder eats some frames of the movie. e.g it eats a P-Frame early in the stream and the total frame number is 3 less than the original stream. (20 minutes movie) After looking into http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html I found out that it should be rathar simple for a developer to write a small patch programm. Here's the spec: ;-) The Sequence Header looks like this (hex-codes) 00 00 01 B3 2D 02 40 23 (example!) 00 00 01 B3 = Sequence header 2D 0 = vertical size (720 pixel high) 2 40 = horizontal size (576 pixel width) 2 = 4:3 aspect ratio (1=1:1, 3=16:9, 4=2.21:1) 3 = Frame rate of 25fps And the programm has to do: 1. search for the bytes 00 00 01 B3 2. skip the next 3 bytes 3. change the high byte to 2 for 4:3 or 3 for 16:9 (depends on the argument) 4. repeat with step 1 until EOF (end of file) start the programm with e.g. ar_patcher -4:3|16:9 foobar.mpg sounds easy, isn't it? I've made some tests with a hex editor (okteta) and it works! Who in the world believes he/she can write such a programm? :-) regards Dominik PS: for windows users: "DVD Patcher" might be interesting. Bernhard Moellemann schrieb: > Hi! > > >>> Actually, I'd rather write a small tool that just sets the aspect ratio >>> to the same value in every frame... >>> >> Could anybody please tell me whether in the meantime such a tool has >> been made available for linux? Or do I still have to go the ProjektX >> route as suggested in the corresponding thread? >> > > mencoder does this, if you specify vaspect in -mpegopts I do this for > a long time because sometimes on TV the aspect ratio changes to early > or to late around commercials. > > Something like > > mencoder -nocache -quiet \ > -oac copy -ovc copy \ > -of mpeg -ofps 25 -mpegopts vaspect=16/9 > > does the trick here. > > Bernhard // > \X/ > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > DVBCUT-user mailing list > DVBCUT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dvbcut-user > > > ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ DVBCUT-user mailing list DVBCUT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-user