A question or two for any Ubuntu nuvexport user who might be using Kyle's script (<a href="http://tacomafia.net:8080/blog/2006/mythexport/">http://tacomafia.net:8080/blog/2006/mythexport/</a>) to export files.<br><br>I downloaded from Kyle's site and had to bash the heck out of the script just to get it to run I was getting errors and it was just jumping to "Unable to open file.." It didn't like the if statements below... just curious if I missed something or if it's just an Ubuntu thing?<br>
<br><i><b># Proper arguments check<br>if [[ $# -ne 2 ]]<br>then<br> echo "ERROR: Invalid arguments"<br> echo "USAGE: mythexport [infile] [title]"<br> exit 1<br>fi<br><br># If .mpg file exists<br>
if [[ -r "$indir$infile" ]]<br>then<br> # The "command"</b></i><br><br><br>The other question I have is that my recording looks terrible after nuvexport finished it, it's blocky and just looks horrific. It's using xvid so I should think it would be decent... I'm new to nuvexport so maybe I've missed something obvious???<br>
<br><i><b>#<br># nuvexportrc:<br>#<br># This file contains the configuration for nuvexport, and should be installed<br># as /etc/nuvexportrc. You can also copy this file to ~/.nuvexportrc, where<br># nuvexport will look first, if you wish to create settings local to a<br>
# specific user.<br>#<br># support for nuvexportrc is still new, so expect that more default options<br># will be added as time goes on (so you'll know what you can edit). In the<br># meantime, you can poke around in the code for add_arg() calls to see which<br>
# options are available.<br>#<br><br>#<br># Anything placed within the <nuvexport> section will be interpreted<br># as a global option. Use this section for options that don't relate<br># specifically to any particular exporter.<br>
#<br><nuvexport><br><br>#<br># Set export_prog to ffmpeg, transcode or mencoder, depending on your<br># preference of program for exports. This is equivalent to --ffmpeg,<br># --transcode or --mencoder<br>#<br>
export_prog=ffmpeg<br><br>#<br># Any other parameters set in this file are equivalent to using the equivalent<br># setting as a commandline option. For boolean options like --deinterlace<br># (--nodeinterlace), use deinterlace=yes (or no, true or false) instead.<br>
# Actual commandline options will override anything in this file.<br>#<br><br>#<br># Preferred mode -- if you don't set this, nuvexport will ask you what you<br># would like to do. Use --mode or any of the mode symlinks (like<br>
# nuvexport-xvid) to override.<br>#<br> mode=xvid<br><br>#<br># Setting underscores to yes will convert whitespace in filenames to an<br># underscore character (which some people seem to prefer)<br>#<br> underscores=no<br>
<br>#<br># Setting require_cutlist to yes will tell nuvexport to show only those<br># recordings that have a cutlist<br>#<br># require_cutlist=no<br><br>#<br># By default, nuvexport picks what it thinks is a good name for your file<br>
# (doing its best to avoid printing "Untitled" into the filename). Setting<br># name will let you change the output format of the filename generated by<br># nuvexport. Even after this formatting, nuvexport will still do some basic<br>
# replacements to make sure that illegal filename characters (eg. /\:*?<>|)<br># are replaced with a dash (or " with a '). The following format variables<br># are supported:<br>#<br># %f -> full path to the filename<br>
# %c -> the chanid of the show<br># %a -> start time in YYYYMMDDHHMMSS format<br># %b -> end time in YYYYMMDDHHMMSS format<br># %t -> title (show name)<br># %s -> subtitle (episode name)<br># %h -> hostname where the file resides<br>
# %m -> showtime in human-readable format (see --date below)<br># %d -> description<br># %% -> a % character<br>#<br> filename=%t - %m<br><br>#<br># By default, nuvexport uses an American-style date to represent showtimes in<br>
# lists and filenames. Use --date to override that with the format of your<br># choosing. See the UnixDate section `perldoc Date::Manip` for formatting<br># options.<br>#<br> date=%m.%d.%y<br><br>#<br># Nuvexport has the option to crop a percentage of the border of each recording<br>
# in order to get rid of the unsightly edges of the tv signal. The default 2%<br># approximates the overscan of an average TV, but you can alter this from 0 to<br># 5% to fit your preferences. Please keep in mind that this amount is removed<br>
# prior to making any aspect conversions like removing black bars from 4:3<br># recordings to make a 16:9 export.<br>#<br> crop_pct = 2<br><br>#<br># Alternatively, you can override the general crop_pct to crop a different<br>
# amount from specific sides of the recording.<br>#<br># crop_top = 2<br># crop_right = 2<br># crop_bottom = 2<br># crop_left = 2<br><br></nuvexport><br><br>#<br># The sections below work as above, with each more specific section overriding<br>
# the more generic.<br>#<br><br><generic><br><br>#<br># Default to export to the current directory<br>#<br> path = /shared/.mythtv/out<br><br>#<br># Use the cutlist (not to be confused with the commercial flag list) when<br>
# exporting.<br>#<br> use_cutlist = yes<br><br>#<br># Tell mythcommflag to generate a cutlist from the commercial flags before<br># exporting. Don't forget to enable use_cutlist above, too.<br>#<br> gencutlist = yes<br>
<br>#<br># Contrary to popular belief, enabling multipass will not make your recordings<br># look better. What it will do, however is guarantee that the bitrate you<br># choose will be the average bitrate of your entire encode (meaning that your<br>
# exports will end up being about the same size per-minute), and that you<br># will receive the best overall quality for a files of the same size.<br>#<br> multipass = no<br><br>#<br># Disabling noise reduction can speed up your exports dramatically, but at the<br>
# expense of some quality. You can also access this on the commandline via<br># the --denoise (or --nodenoise) flag.<br>#<br> noise_reduction = no<br><br>#<br># Deinterlace the video so that it looks better on software players.<br>
#<br> deinterlace = yes<br><br>#<br># Crop about 2% from the border of the recording before encoding. This is done<br># to get rid of part of the broadcast signal that is usually obscured by the<br># tv's overscan.<br>
#<br> crop = yes<br><br>#<br># You can create settings for each export module type. These are the<br># second-most generic sections, and will only be reached if there are no<br># matches in the full or generic module names.<br>
#<br># If you have a particularly dirty signal, you might want to try to disable<br># fast_denoise (it's actually part of yuvdenoise, which both the ffmpeg<br># and transcode exporters call). It can be almost twice as slow as the<br>
# default "fast" normal noise reduction, but it considerably more effective.<br># The latest version of yuvdenoise (which is called directly by the ffmpeg<br># exporters) does not support this option, so it is ignored in that case.<br>
#<br> fast_denoise = yes<br><br>#<br># If nuvexport is having trouble detecting the *input* aspect ratio of your<br># recordings (MythTV used to hard-code all software-encoded files as 1:1<br># regardless of the true aspect), set this option to one of the following:<br>
#<br># force_aspect = [ 1:1 4:3 16:9 2.21:1 ]<br><br></generic><br><br><ffmpeg><br>#<br># ffmpeg is almost twice as fast if you disable noise reduction<br>#<br> noise_reduction = no<br>#<br># By default, nuvexport's ffmpeg module lets ffmpeg handle deinterlacing.<br>
# I've found that this provides the best results, but if you wish to let<br># yuvdenoise do it instead, set deint_in_yuvdenoise to a true value.<br>#<br># deint_in_yuvdenoise = no<br>#<br></ffmpeg><br><br>
<transcode><br><br>#<br># Mythtranscode will always be used for nupplevideo recordings because<br># transcode can't read them, but setting force_mythtranscode to yes will<br># force nuvexport to call mythtranscode when using the transcode exporter for<br>
# mpeg recordings, too. This may help problems that some people have been<br># having with transcode not recognizing certain dvb recordings, as well as<br># transcode not working properly on certain ivtv recordings.<br>
#<br> force_mythtranscode = yes<br><br>#<br># Setting both force_mythtranscode and mythtranscode_cutlist to yes will tell<br># nuvexport to use mythtranscode's built-in cutlist functions, rather than<br># having transcode use its own. I've found that the cutlists for a handful<br>
# of ivtv recordings that do not work properly with transcode's internal<br># cutlist handler.<br>#<br> mythtranscode_cutlist = yes<br><br></transcode><br><br><mencoder><br></mencoder><br><br>
#<br># You can also create settings for generic export module names. These will<br># only be overridden by full module names.<br>#<br><br><XviD><br><br> vbr = yes # Enable vbr to get the multipass/quantisation options<br>
# (enabling multipass or quantisation automatically enables vbr)<br> multipass = no # You get either multipass or quantisation; multipass will override<br> quantisation = 4 # 4 through 6 is probably right... 1..31 are allowed (lower is better quality)<br>
<br> a_bitrate = 256 # Audio bitrate of 128 kbps<br> v_bitrate = 960 # Remember, quantisation overrides video bitrate<br><br> width = 624 # Height adjusts automatically to width, according to aspect ratio<br>
height = auto<br><br></XviD><br><br>#<br># Default mp3 bitrate in MythTV is 128<br>#<br><MP3><br> bitrate = 256<br></MP3><br><br>#<br># If you want to provide settings for a very specific export module, you can<br>
# use its full name, and it will override any more generic settings.<br>#<br><br>#<br># The MP4 encoder for ffmpeg has a couple of options unique to itself<br>#<br><ffmpeg::MP4><br><br># Codec to use (mpeg4 or h264). Please note that h264 support requires the<br>
# SVN version of ffmpeg (not CVS!). In fact, even the mpeg4 codec works<br># better with the SVN version.<br> mp4_codec = mpeg4<br><br># Framerate to use: auto, 25, 23.97, 29.97. PAL will always be 25 fps, and<br># auto will set 29.97 for everything over 320x288 and 23.97 for the rest.<br>
mp4_fps = auto<br><br></ffmpeg::MP4><br><br>#<br># As does the PSP exporter<br>#<br><ffmpeg::PSP><br><br># PSP framerate (high=29.97, low=14.985)<br> psp_fps = low<br><br># PSP resolution (320x240, 368x208 or 400x192)<br>
psp_resolution = 320x240<br><br># PSP video bitrate (high=768, low=384)<br> psp_bitrate = high<br><br># Create a thumbnail to go with the PSP video export?<br> psp_thumbnail = yes<br><br></ffmpeg::PSP><br>
<br>#<br># You can also add flags to the one and only mencoder option<br>#<br><mencoder::XviD><br><br> multipass = no<br><br></mencoder::XviD><br><br>#<br># You can also make specific profiles called with the --profile parameter that<br>
# will override other config options (but not commandline arguments).<br>#<br># For example, you could make a profile that would encode your favorite show<br># with your favorite settings.<br>#<br><profile::sample><br>
<br> title = test<br><br> export_prog = transcode<br> mode = xvid<br> confirm = true<br><br></profile::sample><br><br></b></i><br>The last question I have is related to Myth's User Job's - I had setup in Post Recording to run nuvexport but it didn't seem to kick off after the recording finished. Where is the log associated with Post Recording that I can track down the error or is Post Recording not the correct place to run the nuvexport job?<br>
<br>Thanks.<br>AJM,<br><i><b><br><br><br><br><br><br><br></b></i><br>