mythexport does not keep Userjob open until ffmpeg transcode is complete

Bug #596251 reported by Stefan Pappalardo
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mythexport (Ubuntu)
Fix Released
Undecided
rhpot1991
Nominated for Lucid by silverdulcet
Nominated for Maverick by silverdulcet

Bug Description

Binary package hint: mythexport

When adding a recording to the job queue mythexport reports the job as started und finished at the same second.

/var/log/mythtv/mythbackend.log
[..]
2010-06-05 23:19:45.290 JobQueue: Started AVI MPEG4QSCALE3 CP2 for "Supernatural" recorded from channel 18501 at Mon May 31 23:05:00 2010
2010-06-05 23:19:45.298 jobqueue: Job "AVI MPEG4QSCALE3 CP2" Started: Started AVI MPEG4QSCALE3 CP2 for "Supernatural" recorded from channel 18501 at Mon May 31 23:05:00 2010
2010-06-05 23:19:45.341 ProgramInfo(): Updated pathname '':'' -> '18501_20100531230500.mpg'
2010-06-05 23:19:45.566 MainServer::ANN Monitor
2010-06-05 23:19:45.566 adding: obelix as a client (events: 0)
2010-06-05 23:19:45.611 JobQueue: Finished AVI MPEG4QSCALE3 CP2 for "Supernatural" recorded from channel 18501 at Mon May 31 23:05:00 2010.
2010-06-05 23:19:45.613 jobqueue: Job "AVI MPEG4QSCALE3 CP2" Finished: Finished AVI MPEG4QSCALE3 CP2 for "Supernatural" recorded from channel 18501 at Mon May 31 23:05:00 2010.
[..]

There is no starting and finishing entry in the /var/log/mythtv/mythexport.log
[..]
June 5 23:20:34 obelix /usr/bin/mythexport-daemon[1227]: Exporting /var/lib/mythtv/mythexport/ProSieben-Supernatural--20100531230500.avi
[..]

But the job runs and finishes correctly, if mythshutdown does not shutdown automatically :-(

Description: Ubuntu 10.04 LTS
Release: 10.04
mythexport:
  Installiert: 2.1.5-0ubuntu1
  Kandidat: 2.1.5-0ubuntu1
  Versions-Tabelle:
 *** 2.1.5-0ubuntu1 0
        500 http://de.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mythexport 2.1.5-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sat Jun 19 14:16:17 2010
ProcEnviron:
 LANGUAGE=de_DE:de
 PATH=(custom, user)
 LANG=C
 SHELL=/bin/bash
SourcePackage: mythexport

Revision history for this message
Stefan Pappalardo (sjuk) wrote :
Revision history for this message
rhpot1991 (rhpot1991) wrote :

Try enabling debugging (see the wiki), and make sure your ffmpeg lines are executing correctly. Feel free to pastebin or post your configs and logs.

rhpot1991 (rhpot1991)
Changed in mythexport (Ubuntu):
status: New → Incomplete
Revision history for this message
MarcRandolph (mrand) wrote : Re: [Bug 596251] Re: mythexport reports start and finish of jobs at the same second

> Try enabling debugging (see the wiki), and make sure your ffmpeg lines
> are executing correctly.  Feel free to pastebin or post your configs and logs.

Please always attach (or if small, paste) configs and logs directly to
tickets. This eliminates a few risks:

* the information going away before someone can look at it (pastebin
is not a permanent warehouse)
* information not being available for reference in the far future
* getting the logs into the ticket (if someone makes a mistake while
downloading from pastebin and uploading to the ticket)

Revision history for this message
Stefan Pappalardo (sjuk) wrote : Re: mythexport reports start and finish of jobs at the same second

I try it again:

The job runs and finishes correctly, if mythshutdown does not shutdown automatically. So how should there
something wrong with the ffmpeg lines? (see attached mythexport_settings.cfg and above you can see the log.)

In my opinion a mythexport job should stay in status "running" until it is finished. But it doesn't. It gets reported started and finished at the same second (see above).

What do you need exactly? Which logfile or something?

Revision history for this message
Steve Switzer (steve-switzer) wrote :

Please post a section of the /var/log/mythtv/mythexport.log file that occurs when you trigger this. I think this is related to a recent bug report of mine, but am curious to see for sure.

Revision history for this message
silverdulcet (silverdulcet) wrote :

Just spoke to John Baab on irc about this issue.

 After starting the userjob, mythtranscode runs the lossless transcode to cut the commercials (i.e. -honorcutlist) and outputs to a .mpg.tmp file, once that completes the job shows as successful even though the ffmpeg portion of the job hasn't completed. The ffmpeg portion runs fine, but since this is a combined frontend/backend I'd like it to shut down after its finished transcoding, with the userjob showing completed it would shut down while ffmpeg is still running.

He proposed reusing the id from the sql table and make a unique file which would be created when the User Job starts and deleted when the ffmpeg portion of the transcode completes. That way the User Job would stay open until the entire process completes and mythbackend wouldn't shutdown until the transcoding is complete.

description: updated
summary: - mythexport reports start and finish of jobs at the same second
+ mythexport does not keep Userjob open until ffmpeg transcode is complete
rhpot1991 (rhpot1991)
Changed in mythexport (Ubuntu):
status: Incomplete → In Progress
assignee: nobody → John Baab (rhpot1991)
rhpot1991 (rhpot1991)
Changed in mythexport (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
rhpot1991 (rhpot1991) wrote :

I have pushed the fix for this bug to the Mythbuntu Testing PPA:
https://launchpad.net/~mythbuntu/+archive/testing

Please leave any feedback if you are able to test it.

Revision history for this message
Dave Walker (davewalker) wrote :

mythexport (2.2.2-0ubuntu1) maverick; urgency=low

  [ John Baab ]
  * debian/mythexport.config and debian/mythexport.templates
    - Added warning about new configuration
  * usr/bin/mythexport-daemon
    - Fixed issue with OTG exports (LP #598439)
    - Added lockfile, to keep mythtv-backend informed of the job status (LP #596251)
    - Removed commented out code from past release
  * usr/bin/mythexport_addjob
    - Added lockfile, to keep mythtv-backend informed of the job status (LP #596251)
  * usr/share/mythtv/mythexport.sql
    - Changed param column to longtext (LP #647908)
  * usr/share/mythtv/mythexport/otg.cgi
    - Fixed issue where old configuration file was still in use (LP #652322)
  * usr/share/mythtv/mythexport/otg_job.cgi
    - Renamed variable, no longer using "block" from old configuration
  * usr/share/mythtv/mythexport/setup.cgi
    - Fixed issue where form was submitting to the wrong page (LP #652322)
    - Changed configuration input to radio buttons
  * usr/share/mythtv/mythexport/save_system_setup.cgi
    - Fixed typo
  * usr/share/mythtv/mythexport/otg.cgi
    - Fixed issue where old configuration file was still in use
  * usr/share/mythtv/mythexport/setupsave.cgi
    - Removed debugging line
  * debial/rules:
    - Synced BZR_REVISION

  [ Angel Abad ]
  * debian/rules: Fix typo in TARFILE rule (LP: #654088)

 -- John Baab <email address hidden> Sun, 03 Oct 2010 22:46:48 -0400

Changed in mythexport (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.