Opened 12 years ago

Closed 12 years ago

#3596 closed defect (fixed)

nuvexport-xvid fails with segmentation fault (maybe related to mythtranscode)

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: 0.21
Component: mythtranscode Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When using nuvexport-xvid (or any other exporting method) mythtranscode fails with a segmentation fault. I'm running SVN revision 13553. I don't know exactly how I should debug this, but this is the output on the console:

christian@gentux ~ $ nuvexport-xvid
Loading MythTV recording info.
96%

You have recorded the following shows:

   1. DOK: Notfallstation Everest (1 episode)
   2. EXKLUSIV - DIE REPORTAGE (6 episodes)
   3. Formel 1: GP Kanada (1 episode)
   4. K1 Discovery (3 episodes)
   5. K1 Doku (5 episodes)
   6. Kassensturz (1 episode)
   7. PTV: SonntagsBlick Standpunkte (1 episode)
   8. PTV: konsumTV (1 episode)
   9. Rundschau (1 episode)
  10. SPIEGEL TV Extra (1 episode)
  11. Star Wars - Ein Blick in die Zukunft (1 episode)
  12. stern TV (1 episode)

  q. Quit

Choose a show:  1

You have chosen to export 1 episode:

  1. DOK: Notfallstation Everest:
     Die höchstgelegene Klinik der Welt (Mon May 14 11:00 PM) 480x480 MPEG2 (4:3)
     Ob Hirnödem, Erfrierungen oder Khumbu-Husten, die NotÀrzte im Everest-
     Basislager sind fÌr alles gewappnet. In ihrer Klinik, der höchstgelegenen
     der Welt, behandeln sie vom betuchten Bergsteiger ÃŒber die Sherpas bis zu
     mausarmen Einheimischen jeden, der ihre Hilfe braucht. Unter schwierigsten
     Bedingungen bergen sie Verunfallte und haben schon manchem das Leben
     gerettet. Das bestÀtigen auch die Schweizer Bergsteiger Kari Kobler und
     Mario Julen, die bei den Dreharbeiten am Everest dabei waren.

* Separate multiple episodes with spaces, or ranges with '-'

  c. Continue
  n. Choose another show
  q. Quit

Choose a function, or episode(s) to remove:  c
Where would you like to export the files to? [.]
Enable Myth cutlist? [Yes]
Enable noise reduction (slower, but better results)? [No]
Enable deinterlacing? [Yes]
Crop broadcast overscan border (0-5%) ? [1.5]
Audio bitrate? [128]
Variable bitrate video? [Yes]
Multi-pass (slower, but better quality)? [Yes]
Video bitrate? [768]
Default resolution based on requested dimensions.
Width? [512]
Height? [384]

Now encoding:  DOK: Notfallstation Everest:  Die höchstgelegene Klinik der Welt
Encode started:  Mon Jun 11 16:28:53 2007
First pass...
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  0 of 9366 frames at 0 fps (~%, eta: unknown)  sh: line 1: 16964 Segmentation fault      /usr/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c '1' -s '2007-05-14T22:50:00' -f "/tmp/fifodir_16893/" --honorcutlist --fifosync 2>&1
processed:  0 of 9366 frames at 0 fps (~%, eta: unknown)
mythtranscode finished.
processed:  0 of 9366 frames at 0 fps (~%, eta: unknown)
audio dump finished.
processed:  74 of 9366 frames at 24.67 fps (0.79%, eta: 6m 16s)
ffmpeg finished.
Final pass...
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  0 of 9366 frames at 0 fps (~%, eta: unknown)  sh: line 1: 16984 Segmentation fault      /usr/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c '1' -s '2007-05-14T22:50:00' -f "/tmp/fifodir_16893/" --honorcutlist 2>&1
processed:  0 of 9366 frames at 0 fps (~%, eta: unknown)
mythtranscode finished.
processed:  43 of 9366 frames at 10.75 fps (0.46%, eta: 14m 27s)
ffmpeg finished.

Encode finished:  Mon Jun 11 16:29:02 2007
Encode lasted: 9s

Cleaning up temp files.

Attachments (1)

backtrace.txt (2.1 KB) - added by me@… 12 years ago.
Backtrace

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by xris

Resolution: invalid
Status: newclosed

submitted without proper output from --debug. Please recreate/reopen when you have the output from mythtranscode itself.

comment:2 Changed 12 years ago by me@…

Resolution: invalid
Status: closedreopened

I hacked export/ffmpeg.pm to use --debug and remove 2>&1, now I get the following:

Now encoding:  K1 Doku:  Lautlos durch die Tiefe - Auf Tauchfahrt mit der USS Virginia
Encode started:  Mon Jun 11 22:37:34 2007
First pass...
[mpeg @ 0xb7713d70]Parser not found for Codec Id: 94210 !
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  0 of -50663 frames at 0 fps (~%, eta: unknown)  
audio dump finished.
processed:  0 of -50663 frames at 0 fps (~%, eta: unknown)  
mythtranscode finished.
processed:  70 of 70 frames at 17.50 fps (100.00%, eta: )   
ffmpeg finished.
Final pass...
[mpeg @ 0xb76f0d70]Parser not found for Codec Id: 94210 !
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  0 of 70 frames at 0 fps (~%, eta: unknown)  
mythtranscode finished.
processed:  39 of 70 frames at 9.75 fps (55.71%, eta: 3s)   
ffmpeg finished.

Encode finished:  Mon Jun 11 22:37:45 2007
Encode lasted: 11s

I'm using Gentoo, with the following use flags:

[ebuild   R   ] media-tv/mythtv-0.21_pre13553  USE="ivtv lirc perl -alsa (-altivec) -autostart -dbox2 -debug -dts -dvb -dvd -hdhomerun -ieee1394 -iptv -jack -joystick -lcd -mmx -opengl -vorbis -xvmc" VIDEO_CARDS="-i810 -nvidia -via" 0 kB [1] 
[ebuild   R   ] media-video/ffmpeg-0.4.9_p20070330  USE="aac encode mmx ogg threads xvid -X -a52 (-altivec) -amr -debug -doc -dts -ieee1394 -imlib -network -oss -sdl -test -theora -truetype -v4l -vorbis -x264 -zlib" 0 kB 
[ebuild   R   ] media-tv/nuvexport-0.21_pre13553  0 kB [1] 

comment:3 Changed 12 years ago by xris

Why hack? Please read the instructions at http://www.mythtv.org/wiki/index.php/Nuvexport#Debug_Mode

If mythtranscode is dying, it's a problem with mythtranscode, not nuvexport, so you need to run mythtranscode by itself, outside of nuvexport.

Changed 12 years ago by me@…

Attachment: backtrace.txt added

Backtrace

comment:4 Changed 12 years ago by xris

Component: perl / nuvexportmythtranscode
Owner: changed from xris to Isaac Richards
Status: reopenednew
Ticket locked: unset

comment:5 Changed 12 years ago by me@…

please close as invalid, works with rev 13653

comment:6 Changed 12 years ago by xris

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.