[mythtv-users] mythtranscode silently failing

Joe Auty joe at netmusician.org
Tue Oct 9 20:37:53 UTC 2007


Paul Harrison wrote:
> Joe Auty wrote:
>> Paul Harrison wrote:
>>   
>>> How exactly are you running mythtranscode? You do need to add either
>>> --mpeg2 for a lossless transcode or use the --profile parameter if you
>>> want to transcode the file and --output to tell mythtranscode where to
>>> save the final file.
>>>
>>>     
>> Hmmm.. Well, my main problem is not using mythtranscode over the command
>> line, but in MythTV passing off videos to mythtranscode for processing.
>> I'm simply trying to isolate the problem using the tool via the command
>> line.
>>
>> Heeding your advice:
>>
>>
>> $ mythtranscode -i 1280_20071004210000.mpg -o testfile.mpg -p "autodetect"
>> 2007-10-09 14:32:56.779 Using runtime prefix = /usr
>> 2007-10-09 14:32:57.053 New DB connection, total: 1
>> 2007-10-09 14:32:57.109 Enabled verbose msgs: important
>> 2007-10-09 14:32:57.129 New DB connection, total: 2
>> 2007-10-09 14:32:57.285 Using protocol version 31
>> 0: start_time: 31.916 duration: 329.249
>> 1: start_time: 31.873 duration: 329.257
>> stream: start_time: 354.145 duration: 3658.797 bitrate=5189 kb/s
>> 2007-10-09 14:32:57.762 New DB connection, total: 3
>> 2007-10-09 14:32:57.811 Unknown video codec:
>>
>>
>> Still no luck :(
>>   
> 
> OK. Have you setup your transcoder profiles properly?
> 
> If you run this query in mysql what does it show?
> SELECT r.* FROM recordingprofiles r, profilegroups p WHERE
> p.name='Transcoders' AND p.id=r.profilegroup;
> 
> If the videocodec and audiocodec columns are all  NULL then you need to
> setup your profiles properly. TV Settings->Recording Profiles->Transcoders.
> 
> Try running mythtranscode using one of the id's you see in the table for
> the '-p' parameter rather than using 'autodetect'.
> 

mysql> SELECT r.* FROM recordingprofiles r, profilegroups p WHERE
p.name='Transcoders' AND p.id=r.profilegroup\G
*************************** 1. row ***************************
          id: 21
        name: RTjpeg/MPEG4
  videocodec: MPEG-4
  audiocodec: MP3
profilegroup: 6
*************************** 2. row ***************************
          id: 22
        name: MPEG2
  videocodec: NULL
  audiocodec: NULL
profilegroup: 6
*************************** 3. row ***************************
          id: 27
        name: High Quality
  videocodec: NULL
  audiocodec: NULL
profilegroup: 6
*************************** 4. row ***************************
          id: 28
        name: Medium Quality
  videocodec: NULL
  audiocodec: NULL
profilegroup: 6
*************************** 5. row ***************************
          id: 29
        name: Low Quality
  videocodec: NULL
  audiocodec: NULL
profilegroup: 6
5 rows in set (0.01 sec)


$ mythtranscode -i 1405_20071008195308.mpg -o testfile.mpg -p 21
2007-10-09 16:34:42.915 Using runtime prefix = /usr
2007-10-09 16:34:42.941 New DB connection, total: 1
2007-10-09 16:34:42.951 Enabled verbose msgs: important
2007-10-09 16:34:42.957 New DB connection, total: 2
2007-10-09 16:34:42.976 Using protocol version 31
0: start_time: 6.790 duration: 56.889
1: start_time: 6.763 duration: 56.886
stream: start_time: 75.145 duration: 632.395 bitrate=5192 kb/s
2007-10-09 16:34:43.453 mythtranscode: 0% Completed @ 0 fps.
2007-10-09 16:35:03.462 mythtranscode: 11% Completed @ 107.853 fps.


Finally works! So, I wonder why my recording failed the last time I ran it?

Here is an example log entry:

> 2007-10-09 00:39:38.438 Connected to database 'mythconverg' at host: localhost
> 2007-10-09 00:39:38.448 Unknown video codec: 
> 2007-10-09 00:39:38.449 Transcoding /home/epistaxis/mythrecordings/1625_20071008233000.mpg failed
> 2007-10-09 00:39:38.454 Deleting /home/epistaxis/mythrecordings/1625_20071008233000.mpg.tmp
> 2007-10-09 00:39:38.466 JobQueue: Transcode Errored: The Colbert Report: (Autodetect)


Maybe it will work now and perhaps there were no codecs set for ID #21
before? When I get home, I'll test recording something...







> Paul H.
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


-- 
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe at netmusician.org


More information about the mythtv-users mailing list