Bug 129478 - multimedia/acidrip: patch file to commit to ports
Summary: multimedia/acidrip: patch file to commit to ports
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-07 14:10 UTC by jhs
Modified: 2009-06-24 04:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jhs 2008-12-07 14:10:03 UTC
	Port fails at run time without this patch.
	Author of generic ports has abandoned maintenance,
	invite to commit to ports

Fix: Hi acid_kewpie@@@users.sourceforge.net
http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/ports/gen/multimedia/acidrip/files/patch-ja
Patch written by jhs@@@berklix.com 2008.12.05
It is a bug fix, not an enhancement.
It applies to FreeBSD-7.1-BETA2 /usr/ports/multimedia/acidrip
	acidrip-0.14.tar.gz /usr/local/bin/perl5.8.8 
The exact ~/.acidriprc that I used with it is also appended.

The problem was, the log failed at this point:
	mencoder \.\/\/DVDVOLUME1\-1\.vob -alang English -info \
		srcform="DVD ripped by acidrip.sf.net" -oac mp3lame \
		-lameopts abr:br=128 -ovc xvid -xvidencopts :bitrate=4878 \
		-vf pp=de,crop=0:0:0:0,scale=720:-2 -o "./something-1.avi"
	Option xvidencopts: Unknown suboption
	Error parsing option on the command line: -xvidencopts

Hand running the line above after removing the ":" before "bitrate"
worked ok, so I then fixed the Perl script to not prepend ":" before
"bitrate" if xvid_options was null string.

I assume if I had had eg:
	xvid_options = SOMETHING
	it would have chanced to get past the syntax error
but xvid_options was not set by default, & I did not know dummy
values I might set there to satisfy the syntax, & anyway its better
to fix the Perl than set a dummy value.

The still included extra debug is a bit verbose as I am a C programmer,
first venturing into Perl.



From: "Chris Phillips" <chris@@@untrepid.com>
Date: Sat, 6 Dec 2008 14:30:26 +0000
To: "Julian Stacey" <jhs@@@berklix.org>

There are alternative views of the following:	(Invoke menu with right button.)

Thanks, unfortunately I'm no longer developing this. feel free to fork, or
just patch within ports.

Cheers

Chris
----------

OK, Thanks Chris,
I'll try to feed it to FreeBSD ports/ for now, I don't think I'm up to being
a fork leader, 'cos this is Perl, & its the 1st Perl I recall hacking :-)

Gary did you retain your ports/ commit bit ?

Julian--w0b75JeFK0GAhIwZUv16QRGhz4NmWRKKavkOkBXbDKjGzqvJ
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** AcidRip/acidrip.pm.orig	Sat Dec  6 12:35:37 2008
--- AcidRip/acidrip.pm	Sat Dec  6 13:04:18 2008
***************
*** 218,224 ****
      $menc{'video'} .= ":pass=$::settings->{'video_pass'}" if $::settings->{'video_passes'} > 1;
    }
    if ( $::settings->{'video_codec'} eq 'xvid' ) {
!     $menc{'video'} = "-ovc xvid -xvidencopts $::settings->{'xvid_options'}:bitrate=$::settings->{'video_bitrate'}";
      $menc{'video'} .= ":pass=$::settings->{'video_pass'}" if $::settings->{'video_passes'} > 1;
    }
    if ( $::settings->{'video_codec'} eq 'nuv' ) {
--- 218,243 ----
      $menc{'video'} .= ":pass=$::settings->{'video_pass'}" if $::settings->{'video_passes'} > 1;
    }
    if ( $::settings->{'video_codec'} eq 'xvid' ) {
! #----------------
! #ORIGINAL    $menc{'video'} = "-ovc xvid -xvidencopts $::settings->{'xvid_options'}:bitrate=$::settings->{'video_bitrate'}";
!              $menc{'video'} = "-ovc xvid -xvidencopts ";
! 		if ( $::settings->{'xvid_options'} eq '' ) 
! 			{ 
!     			# my $msgaa = "AA You have no xvid_options set.";
!     			# message($msgaa);
!     			# print $msgaa . "\n";
!     			# my $msgbb = "BB You have no xvid_options set.";
!     			# message($msgbb);
!     			# print $msgbb . "\n";
! 			} 
! 		else 
! 			{
!     			# my $msgaa = "AA You do have some xvid_options set.";
!     			# message($msgaa);
!     			# print $msgaa . "\n";
!     			# my $msgbb = "BB You do have some xvid_options set.";
!     			# message($msgbb);
!     			# print $msgbb . "\n";
! 	     		$menc{'video'} .= "$::settings->{'xvid_options'}:" ; 
! 			}
! 	     $menc{'video'} .= "bitrate=$::settings->{'video_bitrate'}";
! #----------------
      $menc{'video'} .= ":pass=$::settings->{'video_pass'}" if $::settings->{'video_passes'} > 1;
    }
    if ( $::settings->{'video_codec'} eq 'nuv' ) {
#------------- ~jhs/.acidriprc
dvd_device = ./
filesize = 1500
filename = ./%T-%N
audio_codec = mp3lame
audio_mp3lame_options = abr:br=128
audio_lavc_options = acodec=mp3:abitrate=128
video_codec = xvid
scale_enable = 1
autoload = 0
mpegfile = 0
eject = 0
scale_auto = 1
scale_height = -2
scale_width = 720
crop_enable = 1
language = English
mencoder = nice mencoder
mplayer = mplayer
lsdvd = lsdvd
tooltips = 1
video_passes = 1
video_bitrate_lock = 0
lavc_options = vcodec=mpeg4:vhq:v4mv:vqmin=2
total_blocks = 1
overwrite = 1
cache = 0
vf_pre_enable = 1
audio_gain = 0
vf_post_enable = 0
vf_pre = pp=de
del_cache = 1
ppc_bug = 0
compact = 0
flickbook_preview = 0
enforce_space = 1
vobsubout = 0
video_bitrate = 0
ui_language = English
-----------------
How-To-Repeat: 	
	See patch below
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-12-07 19:03:42 UTC
State Changed
From-To: open->feedback

To which port does this PR apply?
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-01-24 22:57:57 UTC
State Changed
From-To: feedback->open

brucec points out that this applies to multimedia/acidrip.
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2009-06-23 19:27:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-06-24 04:24:08 UTC
pgollucci    2009-06-24 03:23:58 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/acidrip   Makefile 
  Log:
  - Use SFE macro
  - Fix comment
  - Fix run-time option handling error [1]
  
  PR:             ports/129478
  Submitted by:   "Julian H. Stacey" <jhs@berklix.com> [1]
  
  Revision  Changes    Path
  1.14      +4 -5      ports/multimedia/acidrip/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Philip M. Gollucci freebsd_committer freebsd_triage 2009-06-24 04:26:33 UTC
State Changed
From-To: open->closed

Committed. Thanks!