Skip to content

Commit

Permalink
add mythtranscode_cutlist functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-nerd committed Oct 20, 2005
1 parent 667d03c commit e1f32d5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
12 changes: 8 additions & 4 deletions trunk/export/transcode.pm
Expand Up @@ -22,8 +22,9 @@ package export::transcode;
use mythtv::recordings;

# Load the following extra parameters from the commandline
add_arg('zoom_filter:s', 'Which zoom filter to use.');
add_arg('force_mythtranscode!', 'Force use of mythtranscode, even on mpeg files.');
add_arg('zoom_filter:s', 'Which zoom filter to use.');
add_arg('force_mythtranscode!', 'Force use of mythtranscode, even on mpeg files.');
add_arg('mythtranscode_cutlist!', "Force use of mythtranscode's cutlist instead of transcode's internal one (only works with --force_mythtranscode).");

# Check for transcode
sub init_transcode {
Expand Down Expand Up @@ -221,7 +222,9 @@ package export::transcode;
# On no-audio encodes, we need to do something to keep mythtranscode's audio buffers from filling up available RAM
# $mythtranscode .= ' --fifosync' if ($skip_audio);
# let transcode handle the cutlist -- got too annoyed with the first/last frame(s) showing up no matter what I told mythtranscode
#$mythtranscode .= ' --honorcutlist' if ($self->{'use_cutlist'});
if ($self->val('use_cutlist') && $self->val('mythtranscode_cutlist')) {
$mythtranscode .= ' --honorcutlist';
}
# Figure out the input files
$transcode .= " -i /tmp/fifodir_$$/vidout -p /tmp/fifodir_$$/audout"
.' -H 0 -x raw'
Expand Down Expand Up @@ -251,7 +254,8 @@ package export::transcode;
$transcode .= " -j $h,$w,$h,$w" if ($h || $w);
}
# Use the cutlist? (only for mpeg files -- nuv files are handled by mythtranscode)
if ($self->{'use_cutlist'} && $episode->{'cutlist'} && $episode->{'cutlist'} =~ /\d/) {
if ($self->{'use_cutlist'} && !$self->val('mythtranscode_cutlist')
&& $episode->{'cutlist'} && $episode->{'cutlist'} =~ /\d/) {
my $cutlist = $episode->{'cutlist'};
$cutlist =~ tr/ //d;
$cutlist =~ tr/\n/ /;
Expand Down
2 changes: 1 addition & 1 deletion trunk/nuvexport
Expand Up @@ -5,7 +5,7 @@
# $Author$

# Version
$VERSION = '0.2 0.20050919.svn';
$VERSION = '0.2 0.20051019.svn';

# Autoflush buffers
$|++;
Expand Down
2 changes: 1 addition & 1 deletion trunk/nuvexport.spec
Expand Up @@ -4,7 +4,7 @@

Name: nuvexport
Version: 0.2
Release: 0.20050919.svn
Release: 0.20051019.svn
License: GPL
Summary: mythtv nuv video file conversion script
URL: http://forevermore.net/nuvexport/
Expand Down
12 changes: 11 additions & 1 deletion trunk/nuvexportrc
Expand Up @@ -141,10 +141,20 @@
# Setting always_use_mythtranscode to yes will force nuvexport to call
# mythtranscode when using the transcode exporter. This may help problems
# that some people have been having with transcode not recognizing certain
# dvb recordings.
# dvb recordings, as well as transcode not working properly on certain ivtv
# recordings.
#
# force_mythtranscode=no

#
# Setting both force_mythtranscode and mythtranscode_cutlist to yes will tell
# nuvexport to use mythtranscode's built-in cutlist functions, rather than
# having transcode use its own. I've found that the cutlists for a handful
# of ivtv recordings that do not work properly with transcode's internal
# cutlist handler.
#
# mythtranscode_cutlist=no

</transcode>

<mencoder>
Expand Down

0 comments on commit e1f32d5

Please sign in to comment.