[MacPorts] #64083: New port -- m2vrequantiser

MacPorts noreply at macports.org
Fri Dec 3 17:30:09 UTC 2021


#64083: New port -- m2vrequantiser
-----------------------------+------------------------
  Reporter:  RobK88          |      Owner:  ryandesign
      Type:  submission      |     Status:  accepted
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.7.1
Resolution:                  |   Keywords:
      Port:  m2vrequantiser  |
-----------------------------+------------------------

Comment (by RobK88):

 Thanks Ryan.  The terminology for fat or universal binaries can be
 confusing because it can mean different things.  Sometimes it means
 PPC/i386 and sometimes it means i386/x64.  But I believe Apple called
 PPC/i386 binaries "fat" binaries and 1386/x64 binaries "universal"
 binaries.  And I do not know what Apple now calls x86/ARM-Silicon
 binaries.

 That is strange.  I was able to download the second file from the debian
 site using the proposed portfile.

 And yes, the only thing needed from the second distfile is the man page.
 You proposed solution to just copy the man page to the files/ directory
 makes a lot of sense and will make the portfile a lot easier to read and
 maintain!

 I just discovered `lipo --info`.  When determining whether a binary is fat
 or universal, `lipo --info` appears to be more useful than `file`.

 And thank you for your suggestion that I should have used `extract.only`
 to extract the second file.  But I doubt that would worked because the two
 files downloaded used two different compression schemes (gz vs.xz).  As
 you noted, Macports does not handle this situation very well.  In future
 releases of Macports, the developers should consider using tags to handle
 this. (e.g.  `use_xz yes:tagtwo`).

 Your proposed portfile looks just fine!  Thanks for all your work and
 feedback.  It is greatly appreciated!

 P.S.  I am also working on a portfile for the sister companion CLI
 application -- m2vdownsizer.  The commercial app DVDRemaster gave the user
 the choice of using either M2VRequantiser or M2VDownsizer to shrink DVD's
 from DVD9 to DVD5.  Both were released under the GPL because some of the
 code used (including mpeg2dec) was also GPL'd.  Isn't the GPL wonderful!

 M2VDownsizer re-encodes the mpeg-2 video files (instead of transcoding)
 which is a lot slower but yields better quality after the compression.
 The source code for M2VDownsizer was very hard to find.  But I was able to
 download it from the original developer's  website for DVDRemaster using
 the internet archive.  (The developer for DVDRemaster is no longer
 around).

 I suspect it would be easier (for the portfile) that I set up a Githiub
 repo for the M2VDownsizer source.  I have patched the source code and
 cleaned it up a bit so it will run on 64-bit Macs.  (The original source
 code was written for PPC/x86 fat binaries in mind).

 Unfortunately, it was set up as an xcode project.  I suspect that will
 make the portfile a little tricky (since I do not know how to change
 different compiler flags for different architectures in a xcode project
 portfile.  Different flags are needed if one want to compile the source
 for a PPC Mac.  Or maybe I should abandon PPC support).  I will see if I
 can create a Makefile instead.

 When I am further along, I will open a new ticket for the M2VDownsizer
 portfile.

-- 
Ticket URL: <https://trac.macports.org/ticket/64083#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list