[mythtv-users] 0.25 mpeg2 lossless transcoding works again! hallelujah! except...

Steven Adeff adeffs.mythtv at gmail.com
Sun Mar 18 20:25:48 UTC 2012


On Sat, Mar 17, 2012 at 5:03 PM, Michael T. Dean
<mtdean at thirdcontact.com> wrote:
<snip>
> MythTV does not allow deletion of the default profiles, so there's no
> mechanism for you to re-create them.  That means that either yours were
> deleted due to someone's directly editing the database or lost due to a bad
> database restore (i.e. someone trying to pick and choose what to restore
> rather than using a full restore).  Either way, you may not want to trust
> your database/schema.
>
> That said, for someone running 0.25beta, the below SQL should restore the
> recording/transcoding profiles to defaults.  You will then have to
> re-configure any that you changed.  However, you unless you know exactly how
> you lost your recording profiles, you may want to use the
> only-useful-to-"salvage what data I can from a corrupt database or schema"
> partial restore approach (
> http://www.mythtv.org/wiki/Database_Backup_and_Restore#Partial_restore_of_a_backup
> ).
>
> No one running any other version of MythTV should use the below SQL (for
> those reading archives).  Doing so will cause problems.

ok, I did a partial restore, gave me the opportunity to scan for new
open channels on my QAM tuners (found 2!) as well, and to clean it up
in general.

still doesn't seem to work though, from the backend I see this,

Mar 18 15:01:33 mythbackend mythbackend[9503]: I Transcode_10
jobqueue.cpp:1988 (DoTranscodeThread) JobQueue: Running command:
'/usr/bin/mythtranscode -j 10 --profile autodetect --honorcutlist
--verbose most --loglevel info --syslog local7'
Mar 18 15:01:33 mythbackend mythbackend[9503]: I Transcode_10
system-unix.cpp:735 (Fork) Managed child (PID: 30729) has started! *
command=/usr/bin/mythtranscode -j 10 --profile autodetect
--honorcutlist --verbose most --loglevel info --syslog local7,
timeout=0
Mar 18 15:01:33 mythbackend mythbackend[9503]: I SystemManager
system-unix.cpp:342 (run) Managed child (PID: 30729) has exited!
command=/usr/bin/mythtranscode -j 10 --profile autodetect
--honorcutlist --verbose most --loglevel info --syslog local7,
status=35584, result=139

if I run the command manually:
~$ sudo -H -u mythtv /usr/bin/mythtranscode -j 10 --profile autodetect
--honorcutlist --verbose most --loglevel info --syslog local7
2012-03-18 15:05:56.783846 C  mythtranscode version: master
[v0.25-beta-165-g53761e2] www.mythtv.org
2012-03-18 15:05:56.783895 N  Enabled verbose msgs: most
2012-03-18 15:05:56.783941 N  Setting Log Level to LOG_INFO
2012-03-18 15:05:56.784043 I  Added logging to the console
2012-03-18 15:05:56.784088 I  Added syslogging to facility local7
2012-03-18 15:05:56.784099 I  Added database logging to table logging
2012-03-18 15:05:56.784219 N  Setting up SIGHUP handler
2012-03-18 15:05:56.784381 N  Using runtime prefix = /usr
2012-03-18 15:05:56.784402 N  Using configuration directory =
/home/mythtv/.mythtv
2012-03-18 15:05:56.784568 E
(old)Settings::ReadSettings(settings.txt) - No such file settings.txt
2012-03-18 15:05:56.784703 I  Assumed character encoding: en_US.UTF-8
2012-03-18 15:05:56.785278 E
(old)Settings::ReadSettings(settings.txt) - No such file settings.txt
2012-03-18 15:05:56.785310 E
(old)Settings::ReadSettings(/usr/share/mythtv/mysql.txt) - No such
file /usr/share/mythtv/mysql.txt
2012-03-18 15:05:56.785334 E
(old)Settings::ReadSettings(/usr/etc/mythtv/mysql.txt) - No such file
/usr/etc/mythtv/mysql.txt
2012-03-18 15:05:56.785588 E  (old)Settings::ReadSettings(./mysql.txt)
- No such file ./mysql.txt
2012-03-18 15:05:56.785641 I  Using localhost value of mythbackend
2012-03-18 15:05:56.785931 I  DefaultUPnP() - No default UPnP backend
2012-03-18 15:05:56.785952 I  Testing network connectivity to '192.168.1.151'
2012-03-18 15:05:56.788389 I  Starting IO manager (read)
2012-03-18 15:05:56.788487 I  Managed child (PID: 30810) has started!
* command=ping -t 3 -c 1  192.168.1.151  >/dev/null 2>&1, timeout=0
2012-03-18 15:05:56.788540 I  Starting IO manager (write)
2012-03-18 15:05:56.789483 I  Starting process signal handler
2012-03-18 15:05:56.790074 I  Starting process manager
Segmentation fault

If I replace --profile autodetect with default or mpeg-2 the same
happens. if I replace it with -m it works fine, mostly. it processes
most of the file, sometimes the transcode completes, but I've noticed
that a few random recordings will still fail at some point along the
way,
2012-03-18 16:24:27.292648 I  #0 fl:2BT_0 pos: 1293365262
2012-03-18 16:24:27.292762 I  #1 fl:2BT_0 pos: 1293400078
2012-03-18 16:24:27.294016 I  #5 fl:2PT_0 pos: 1293430798
2012-03-18 16:24:27.298151 I  #3 fl:2BT_0 pos: 1293537294
2012-03-18 16:24:27.298335 I  #4 fl:2BT_0 pos: 1293611022
2012-03-18 16:24:27.298416 I  #8 fl:2PT_0 pos: 1293670414
2012-03-18 16:24:27.298616 I  #6 fl:2BT_0 pos: 1293694990
2012-03-18 16:24:27.298689 I  #7 fl:2BT_0 pos: 1293740046
2012-03-18 16:24:27.298855 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1293748238
2012-03-18 16:24:27.298890 I  #1 fl:2PTP1 pos: 1293791246
2012-03-18 16:24:27.298919 I  #2 fl:2PTP1 pos: -1
2012-03-18 16:24:27.299035 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1293795342
2012-03-18 16:24:27.299052 I  Found frame 2 with missing PTS at 00:12:32.762
2012-03-18 16:24:27.299074 I  #1 fl:2PTP1 pos: 1293838350
2012-03-18 16:24:27.299099 I  #2 fl:2PTP1 pos: -1
2012-03-18 16:24:27.301428 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1293842446
2012-03-18 16:24:27.301450 I  Found frame 2 with missing PTS at 00:12:32.862
2012-03-18 16:24:27.301474 I  #1 fl:2PTP1 pos: 1293887502
2012-03-18 16:24:27.301503 I  #2 fl:2PTP1 pos: -1
2012-03-18 16:24:27.301829 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1293891598
2012-03-18 16:24:27.301847 I  Found frame 2 with missing PTS at 00:12:32.962
2012-03-18 16:24:27.301872 I  #1 fl:2PTP1 pos: 1293934606
2012-03-18 16:24:27.301899 I  #2 fl:2PTP1 pos: -1
2012-03-18 16:24:27.302151 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1293938702
2012-03-18 16:24:27.302166 I  Found frame 2 with missing PTS at 00:12:33.062
2012-03-18 16:24:27.302188 I  #1 fl:2PTP1 pos: 1293983758
2012-03-18 16:24:27.302213 I  #2 fl:2PTP1 pos: -1
2012-03-18 16:24:27.302323 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1293987854
2012-03-18 16:24:27.302337 I  Found frame 2 with missing PTS at 00:12:33.162
2012-03-18 16:24:27.302359 I  #1 fl:2PTP1 pos: 1294030862
2012-03-18 16:24:27.302402 I  #2 fl:2PTP1 pos: -1
2012-03-18 16:24:27.302639 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1294037006
2012-03-18 16:24:27.302654 I  Found frame 2 with missing PTS at 00:12:33.262
2012-03-18 16:24:27.302676 I  #1 fl:2PTP1 pos: 1294080014
2012-03-18 16:24:27.304711 I  1920x1088 P:900900 18:01:40:021 #0
fl:2IT_0 pos: 1294086158
2012-03-18 16:24:27.304728 I  Del map found 0 at 22568 (22568)
2012-03-18 16:24:27.340094 I  1920x1088 P:900900 00:00:00:000 #0
fl:2ITP1 pos: 1294037006
2012-03-18 16:24:27.348987 I  pos: 1294080014
2012-03-18 16:24:27.390266 E  Couldn't open file abort.dat:
			eno: Permission denied (13)
2012-03-18 16:24:27.390284 E  Failed to decode frame.  Position was: 0
2012-03-18 16:24:27.410525 I  JobQueue: ChangeJobStatus(16, Erroring, '')
2012-03-18 16:24:27.411228 E  Transcoding
/media/myth/1/tv/8784_20120316165900.mpg failed
2012-03-18 16:24:27.412466 N  Transcode: delete old file: waiting
while program is in use.
2012-03-18 16:24:27.412954 N  Transcode: program is no longer in use.
2012-03-18 16:24:27.413427 I  ProgramInfo(8784_20120316165900.mpg):
GetPlaybackURL: File is local:
'/media/myth/1/tv/8784_20120316165900.mpg'
2012-03-18 16:24:27.413439 N  Deleting
/media/myth/1/tv/8784_20120316165900.mpg.tmp
2012-03-18 16:24:27.477267 N  Requesting delete for file
'myth://Default@192.168.1.151:6543/8784_20120316165900.mpg.tmp'.
2012-03-18 16:24:27.493011 I  MythCoreContext: Connecting to backend
server: 192.168.1.151:6543 (try 1 of 1)
2012-03-18 16:24:27.504344 I  MythSocket(90b8960:23): IP is local,
using loopback address instead
2012-03-18 16:24:27.504370 I  MythSocket(90b8960:23): attempting
connect() to (127.0.0.1:6543)
2012-03-18 16:24:27.504415 I  MSocketDevice::connect: setting Protocol to IPv4
2012-03-18 16:24:27.504420 I  MSocketDevice::connect: attempting to
create new socket
2012-03-18 16:24:27.505253 I  MythSocket(90b8960:23): write -> 23 30
   MYTH_PROTO_VERSION 72 D78EFD6F
2012-03-18 16:24:27.539718 I  MythSocket(90b8960:23): read  <- 23 13
   ACCEPT[]:[]72
2012-03-18 16:24:27.539739 I  Using protocol version 72
2012-03-18 16:24:27.539754 I  MythSocket(90b8960:23): write -> 23 25
   ANN Monitor mythbackend 0
2012-03-18 16:24:27.541674 I  MythSocket(90b8960:23): read  <- 23 2       OK
2012-03-18 16:24:27.541790 I  MythSocket(90b88c8:24): IP is local,
using loopback address instead
2012-03-18 16:24:27.541803 I  MythSocket(90b88c8:24): attempting
connect() to (127.0.0.1:6543)
2012-03-18 16:24:27.541825 I  MSocketDevice::connect: setting Protocol to IPv4
2012-03-18 16:24:27.541828 I  MSocketDevice::connect: attempting to
create new socket
2012-03-18 16:24:27.542109 I  MythSocket(90b88c8:24): write -> 24 25
   ANN Monitor mythbackend 1
2012-03-18 16:24:27.542850 I  MythSocket(90b88c8:24): read  <- 24 2       OK
2012-03-18 16:24:27.544602 I  MythSocket(90b8960:23): write -> 23 55
   DELETE_FILE[]:[]8784_20120316165900.mpg.tmp[]:[]Default
2012-03-18 16:24:27.615104 I  MythSocket(90b8960:23): read  <- 23 1       1
2012-03-18 16:24:27.615322 I  JobQueue: ChangeJobStatus(16, Errored,
'Unrecoverable error')
2012-03-18 16:24:27.938609 I  Closing DB connection named 'DBManager2'
2012-03-18 16:24:27.973542 I  Closing DB connection named 'DBManager1'


-- 
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette - http://www.mythtv.org/wiki/Mailing_List_etiquette


More information about the mythtv-users mailing list