<div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 December 2015 at 22:39, John Pilkington <span dir="ltr"><<a href="mailto:J.Pilk@tesco.net" target="_blank">J.Pilk@tesco.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 31/12/15 09:58, Tim Draper wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Hey all,<br>
<br>
The UK 4Seven channel does not skip(+30sec) or ffwd correctly on my setup. what happens is on recorded shows, skipping or ffwd will result in the video&audio jumping back about 3 minutes even though the timing position bar at the bottom is not showing this jump (it's progressing correctly).<br>
<br>
All other channels are ok and skip as expected. I'm running fixes/0.27.4 and last updated about a week ago so fairly recent code.<br>
<br>
I've tried a full re-scan on my DVB-S2 tuner where 4Seven is obtained from, but no success.<br>
<br>
there is no DB problems based on mythweb.<br>
</blockquote>
<br></span>
I have a test recording in progress from 4Seven DVB-T.  Skipping is as normal on that.  qt4-vintage 0.28-pre.</blockquote><div> </div></div></div><div class="gmail_extra"><div>Here's a script I used to use for the same issue. I set it up on the "recording finished" trigger so it runs automatically when a recording ends.</div><div><br></div><div>My issue at the time was on the 'Watch*' channels.</div><div><br></div><div>The logic at the beginning to get the CHANID and STARTTIME from the filename may need a tweak, as I wrote this before MythTV went with UTC times. However looking at the logs, I don't think this is required. The script is passed the filename, chanid and starttime as 3 parameters delimited by a colon (:), so looks like it should still work (I don't use it anymore since it's no longer needed for me).</div><div><br></div><div>You will also need some external mechanism for trimming the logfile occasionally, but it's pretty small and will be fine with just an occasional manual rename.</div><div><br></div><div>You will need to modify the file locations for LOG and OUT to somewhere suitable that exists.</div><div><br></div><div>Also, don't forget to make the script executable.</div><div><br></div><div>[mike@puzzle bin]$ cat event_recording_finished.sh </div><div>#!/bin/bash</div><div><br></div><div>DATE=$(date +%Y%m%d_%H%M%S)</div><div>LOG=/myth/music/bin/event_recording_finished.log</div><div>OUT=/myth/music/bin/event_recording_finished.out.$DATE.$$</div><div><br></div><div>echo ===================== >> $LOG</div><div>echo Running $0 at $(date) >> $LOG</div><div><br></div><div>for PROG in $*</div><div>do</div><div>    echo "----------------------" >> $LOG</div><div>    echo Processing $PROG >> $LOG</div><div><br></div><div>    FILE=$(echo $PROG|cut -d: -f1)</div><div>    CHANID=$(echo $PROG|cut -d: -f2)</div><div>    STARTTIME=$(echo $PROG|cut -d: -f3)</div><div>    mysql -N --batch -umythtv -pmythtv mythconverg <<!EOF > $OUT</div><div>    SELECT COUNT(*)</div><div>    FROM recorded</div><div>    JOIN channel USING (chanid)</div><div>    WHERE basename = '$FILE'</div><div>    AND callsign LIKE 'Watch%';</div><div>!EOF</div><div><br></div><div>    echo mysql output >> $LOG</div><div>    cat $OUT >> $LOG</div><div><br></div><div>    NUM=$(cat $OUT)</div><div><br></div><div>    echo NUM $NUM >> $LOG</div><div><br></div><div>    if [ $NUM -gt 0 ]</div><div>    then</div><div>        echo Scan program again >> $LOG</div><div>        CMD="mythtranscode --mpeg2 --buildindex --allkeys --chanid $CHANID --starttime $STARTTIME"</div><div>        echo Will run $CMD >> $LOG</div><div>        echo "..................." >> $LOG</div><div>        $CMD >> $LOG</div><div>        echo "..................." >> $LOG</div><div>    else</div><div>        echo Skipping rescan >> $LOG</div><div>    fi</div><div>done</div><div><br></div><div>rm $OUT</div><div><br></div></div></div>