LinHES Forums
http://forum.linhes.org/

Problem creating ISO, after ffmpeg-svn update
http://forum.linhes.org/viewtopic.php?f=11&t=20223
Page 1 of 1

Author:  nmcaullay [ Tue Aug 11, 2009 6:29 pm ]
Post subject:  Problem creating ISO, after ffmpeg-svn update

Hi All,

I tend to run the pacman updates regularily, and occasionally something goes a bit wrong. Generally, its easy enough to diagnose, or rollback.

Recently the mythtv package has been updated, and to get transcode to work, it was noted that you needed to upgrade ffmpeg to ffmpeg-svn.
http://knoppmyth.net/phpBB2/viewtopic.php?t=20158&postdays=0&postorder=asc&start=30

This seems to have fixed the problem in transcode, but now when I get to the mplex part of creating an iso (from recordings) it fails.
Code:
Creating details pages
Background image file is /usr/share/mythtv/mytharchive/themes/MythCenter - Autoplay/MythCenter-Background.png
Music is silence.ac3, length is 5 seconds
Creating details page for 1
Image (720, 576) into space of (275, 205) at (55, 55)
Image resized to (275, 205) at (55, 55)
Added image /myth/tmp/work/1/title.jpg
Wrapped text  = Thomas the Tank Engine & Friends
Wrapped text  = Respect for Gordon
Wrapped text  = Sat Aug 08 11:14 AM
Wrapped text  = Duration 00:09:59
Wrapped text  = Join Thomas with his carriages Annie and Clarabelle, and friends James, Edward
Wrapped text  = and Percy, as they travel the tracks on the Island of Sodor, under the direction of the
Wrapped text  = Fat Controller.
aspect ratio is: 1.77778
Encoding Details Page 1
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
   INFO: [mpeg2enc] Selecting DVD with dummy navigation packets output profile
   INFO: [mpeg2enc] Assuming norm PAL
   INFO: [mpeg2enc] Progressive input - selecting progressive encoding.
   INFO: [mpeg2enc] Encoding MPEG-2 video to /myth/tmp/work/temp.m2v
   INFO: [mpeg2enc] Horizontal size: 720 pel
   INFO: [mpeg2enc] Vertical size: 576 pel
   INFO: [mpeg2enc] Aspect ratio code: 3 = 16:9 display
   INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO / converted FILM)
   INFO: [mpeg2enc] Bitrate: 5000 KBit/s
   INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
   INFO: [mpeg2enc] Field order for input: none/progressive
   INFO: [mpeg2enc] Sequence unlimited length
   INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] DualPrime: no
   INFO: [mpeg2enc] Using one-pass rate controller
   INFO: [mpeg2enc] GOP SIZE RANGE 7 TO 15
   INFO: [mpeg2enc] Setting colour/gamma parameters to "PAL B/G"
   INFO: [mpeg2enc] Progressive format frames = 1
   INFO: [mpeg2enc] Using default unmodified quantization matrices
   INFO: [mpeg2enc] SETTING MMX and MMX for QUANTIZER!
   INFO: [mpeg2enc] NEW GOP INIT length 15
   INFO: [mpeg2enc] Signaling last frame = -1
   INFO: [mpeg2enc] Guesstimated final muxed size = 0

**ERROR: [mplex] Unable to read from /myth/tmp/work/temp.m2v.
************************************************************
ERROR: Failed while running mplex - mplex -f 8 -v 0 -o '/myth/tmp/work/temp.mpg' '/myth/tmp/work/temp.m2v' '/usr/share/mythtv/mytharchive/music/silence.ac3'
************************************************************

Does anyone know if the mythtv or ffmpeg-svn is to blame? Or is there something else that needs to be updated?

Author:  manicmike [ Wed Aug 12, 2009 10:58 pm ]
Post subject:  Re: Problem creating ISO, after ffmpeg-svn update

Hi Nathan,

Code:
Unable to read from /myth/tmp/work/temp.m2v

suggests a file permission problem. I would look at ownership of all the directories below /myth/tmp. Execute "ls -lR /myth/tmp" and post the output.

Mike

P.S. Hope you have kids: Archiving Thomas the Tank would be pretty sad otherwise ;-)

Author:  nmcaullay [ Wed Aug 12, 2009 11:08 pm ]
Post subject: 

I have an anorak I save especially for my thomas the tank marathons :)

Yes, actually, 2xkids... means that having what ever show is the flavour of the day at your fingertips is a big winner with myth. Something i call the KAF (as opposed to the WAF, which is equally, if not more relevant, but certainly directly related to the KAF).

I'll have a look into the folder permissions, but i'm sure I looked at it and they were all owned by mythtv. The archive procedure created all the chapters and outputs in the work folder, just when it tried to merge them, it created a zero-length temp.m2v file, and barfed. Cant help but think theres something wrong in binary land.

I might try running the command manually and see if theres anymore debug info
Code:
mplex -f 8 -v 0 -o '/myth/tmp/work/temp.mpg' '/myth/tmp/work/temp.m2v' '/usr/share/mythtv/mytharchive/music/silence.ac3'


Cheers,

Nathan

Author:  mihanson [ Tue Aug 18, 2009 7:31 pm ]
Post subject: 

I'm having the same issue in the same place as nmcaullay. My permissions are:
Code:
[mythtv@mythbox-mbe ~]$ ls -l /myth/md0/archive/work/temp.m2v
-rw-rw-rw- 1 mythtv mythtv 0 2009-08-18 17:53 /myth/md0/archive/work/temp.m2v
I see the zero byte file. Mythburn.log doesn't say much. It looks like it trys to write to temp.m2v and then fails:
Code:
Encoding Menu Page 1 using aspect ratio '16:9'
   INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
   INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
   INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
   INFO: [mpeg2enc] Selecting DVD with dummy navigation packets output profile
   INFO: [mpeg2enc] Assuming norm NTSC
   INFO: [mpeg2enc] Progressive input - selecting progressive encoding.
   INFO: [mpeg2enc] Encoding MPEG-2 video to /myth/md0/archive/work/temp.m2v
   INFO: [mpeg2enc] Horizontal size: 720 pel
   INFO: [mpeg2enc] Vertical size: 480 pel
   INFO: [mpeg2enc] Aspect ratio code: 3 = 16:9 display
   INFO: [mpeg2enc] Frame rate code:   4 = 30000.0/1001.0 (NTSC VIDEO)
   INFO: [mpeg2enc] Bitrate: 5000 KBit/s
   INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
   INFO: [mpeg2enc] Field order for input: none/progressive
   INFO: [mpeg2enc] Sequence unlimited length
   INFO: [mpeg2enc] Search radius: 16
   INFO: [mpeg2enc] DualPrime: no
   INFO: [mpeg2enc] Using one-pass rate controller
   INFO: [mpeg2enc] GOP SIZE RANGE 7 TO 15
   INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
   INFO: [mpeg2enc] Progressive format frames = 1
   INFO: [mpeg2enc] Using default unmodified quantization matrices
   INFO: [mpeg2enc] SETTING MMX and MMX for QUANTIZER!
   INFO: [mpeg2enc] NEW GOP INIT length 15
   INFO: [mpeg2enc] Signaling last frame = -1
   INFO: [mpeg2enc] Guesstimated final muxed size = 0

**ERROR: [mplex] Unable to read from /myth/md0/archive/work/temp.m2v.
************************************************************
ERROR: Failed while running mplex - mplex -f 8 -v 0 -o '/myth/md0/archive/work/temp.mpg' '/myth/md0/archive/work/temp.m2v' '/usr/share/mythtv/mytharchive/music/menumusic2.ac3'
************************************************************

Terminated

Author:  nmcaullay [ Tue Aug 18, 2009 7:35 pm ]
Post subject: 

So, i'm not special :(

Author:  mihanson [ Wed Aug 19, 2009 7:31 am ]
Post subject: 

I've opened a ticket on flyspray.

Author:  manicmike [ Wed Aug 19, 2009 9:16 pm ]
Post subject: 

Nathan,

Did you end up running the mplex line manually?

Mike

Author:  nmcaullay [ Wed Aug 19, 2009 9:25 pm ]
Post subject: 

Hi Mike,

No i didnt, havent had much time... i'll be watching cricket all night tonight, so can do it in parallel... :)

Nathan

Author:  footeo [ Fri Aug 28, 2009 6:09 am ]
Post subject: 

I am having the same issue. Where can I find the log file that is generated by mytharchive? What ever generates the 'temp.m2v' file is the problem as the file is a 0 length file. I would guess that it is ffmpeg but for some reason I didn't have all of the ffmpeg library files so mytharchive would terminate earlier during mytharchive. So after I installed ffmpeg-svn things went a little further in the process but terminated at the same place that you listed.

-Nate

Author:  nmcaullay [ Fri Aug 28, 2009 5:06 pm ]
Post subject: 

Id try again, but i'm now on mythtv-svn (for multirec in hdhomerun), so possibly the same test wont apply?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/