[mythtv-users] Compiling 0.25-fixes mythtranscode against 0.26 library's is it possible?

John Pilkington J.Pilk at tesco.net
Wed Jul 3 22:50:56 UTC 2013


On 03/07/13 16:52, Michael Stucky wrote:

>
> John has updated his script since I provided the HDHR HD workaround, so
> the variable names in my snippet are out of date. If you want to try my
> workaround you will need to replace:
>
> CMD="ionice -c3  mplex -o "$1" -V -f 9 $TEMPHEAD.m2v $TEMPAUDIO"
>
> With something like this (the "mediainfo" package is required for this
> to work):
>
> filename=`mediainfo '--Inform=General;%FileName%' "$1"`
>
> OUTFILE="$filename".mkv
>
> CMD="ionice -c3 mythffmpeg -fflags +genpts -i $TEMPHEAD.m2v -i
> $TEMPAUDIO -vcodec copy -acodec copy $OUTFILE "
>
> # tell mythDB about new filename
>
> echo "update recorded set basename='${OUTFILE}' where chanid=$chanid and
> starttime='$starttime';" | mysql -N -u${DBUserName} -p${DBPassword}
> -h${DBLocalHostName} ${DBName}
>
>
> You will as need to replace "$1" with "$OUTFILE" in the following lines:
>
> CMD="ionice -c3 mythcommflag -q --rebuild --file $1 "
>
> echo -e "Output file is $1. \n"
>
> echo -e "\nRunning:  mythffmpeg -i "$1" 2>&1 | grep -C 4 Video" | tee -a
> log$$
>
> mythffmpeg -i "$1" 2>&1 | grep -C 4 Video | tee -a log$$
>
> CMD="mv ${TEMPHEAD}_log.txt  ${LOGDIR}/$1.PXcut$$.txt"
>
> As I mentioned above, I am using a modified version of John's earlier
> script so this is untested. Let me know if this doesn't work.
>
> Mike
>

OK, thanks for that.  I have a first shot at a switchable script and my 
first .mkv file.  It plays in the frontend but I can't step or use the 
editor on it.  I think I saw something recently about that, but it's 
bedtime now.  I suppose MythArchive will choke on it, too.

Running:  mythffmpeg -i 1002_20130703195800.mkv 2>&1 | grep -C 4 Video

Input #0, matroska,webm, from '1002_20130703195800.mkv':
   Metadata:
     ENCODER         : Lavf54.6.101
   Duration: 00:59:11.60, start: 0.000000, bitrate: 3008 kb/s
     Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 
DAR 16:9], 8153 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
     Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s (default)
At least one output file must be specified

John







More information about the mythtv-users mailing list