LinHES Forums http://forums.linhes.org/ |
|
r8.1 video dvd burning http://forums.linhes.org/viewtopic.php?f=22&t=23915 |
Page 1 of 1 |
Author: | welner [ Tue Dec 31, 2013 1:51 pm ] |
Post subject: | r8.1 video dvd burning |
after numerous issues with burning dvd's and archives with lines 7.x, i was anxiously awaiting the release of linhes 8.0 that release helped, though there were still bugs with mythtv .25 after updating to linhes 8.1, i am now able to burn an archive containing videos, but i am still having issues burning a dvd of a video and a dvd of a recording. i will document the video -> dvd here and ask for any suggestions the mythburn.py script exits right after making a local copy: Code: 2013-12-31 14:04:55 Pre-processing video 1: 'myth://Videos@10.0.1.3:6543/Up Series.56 Up (2012) PDTV/56 Up - Part 1 of 3 (14 May 2012)[PDTV(XviD)].avi' 2013-12-31 14:04:55 Video is not in local video directory or Storage Groups 2013-12-31 14:04:55 ------------------------------------------------------------ Traceback (most recent call last): File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5269, in main processJob(job) File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 4961, in processJob preProcessFile(node,folder,filecount) File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1543, in preProcessFile mediafile = os.path.join(getVideoPath(file.attributes["filename"].value), file.attributes["filename"].value) File "/usr/lib/python2.7/posixpath.py", line 68, in join elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith' i do not believe that the scripts contention that the video is not local or stored in a storage group is correct. it is indeed local and stored in a storage group. the storage group for videos is set up: Code: mysql> select * from storagegroup ; +----+-------------+--------------+-------------------------------------------------------------------------------+ | id | groupname | hostname | dirname | +----+-------------+--------------+-------------------------------------------------------------------------------+ snip | 35 | Videos | mythtv.local | /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video and i can find the entry for the video: Code: mysql> select * from videometadata where title='56 Up - Part 1 of 3' ; +-------+---------------------+----------+---------+----------+--------+------+--------+----------+---------------+----------+------+-------------+------------+--------+-----------+--------+---------+-----------+-------------------------------------------------------------------------------+------------------+-----------+---------+--------+---------+-----------+-------------+----------+---------+--------------+------------+--------+--------+---------------------+-------------+ | intid | title | subtitle | tagline | director | studio | plot | rating | inetref | collectionref | homepage | year | releasedate | userrating | length | playcount | season | episode | showlevel | filename | hash | coverfile | childid | browse | watched | processed | playcommand | category | trailer | host | screenshot | banner | fanart | insertdate | contenttype | +-------+---------------------+----------+---------+----------+--------+------+--------+----------+---------------+----------+------+-------------+------------+--------+-----------+--------+---------+-----------+-------------------------------------------------------------------------------+------------------+-----------+---------+--------+---------+-----------+-------------+----------+---------+--------------+------------+--------+--------+---------------------+-------------+ | 2015 | 56 Up - Part 1 of 3 | | | Unknown | | None | NR | 00000000 | -1 | | 1895 | 0000-00-00 | 0 | 0 | 0 | 0 | 0 | 1 | Up Series.56 Up (2012) PDTV/56 Up - Part 1 of 3 (14 May 2012)[PDTV(XviD)].avi | 4524250ba4d81078 | | -1 | 1 | 0 | 1 | NULL | 0 | | mythtv.local | | | | 2012-05-19 16:31:33 | MOVIE | does anyone know of any known bugs similar to this? |
Author: | brfransen [ Tue Dec 31, 2013 4:33 pm ] |
Post subject: | Re: r8.1 video dvd burning |
In the last few weeks I have burned 6+ videos to dvds in R8.1 and it worked without issue for me. All my videos are in Storage Groups. Is that IP right for your backend? Do you also have a video directory defined in Video Settings --> General Settings. If this is defined and is the same as one of your Storage Groups I have seen this cause problems. |
Author: | welner [ Tue Dec 31, 2013 6:36 pm ] |
Post subject: | Re: r8.1 video dvd burning |
the ip address is the ip address of my combined backend/frontend i do not have a videos directory defined. i full converted over to storage groups and videostartupdir is null: Code: | value | data | hostname |
| VideoStartupDir | | mythtv.local | |
Author: | brfransen [ Tue Dec 31, 2013 6:58 pm ] |
Post subject: | Re: r8.1 video dvd burning |
Your file name has some brackets and parenthesis, I am wondering if maybe they aren't getting escaped. Can you try with another file that doesn't have them? |
Author: | welner [ Wed Jan 01, 2014 9:19 am ] |
Post subject: | Re: r8.1 video dvd burning |
it unfortunately does not seem to be that simple. using a shorter and simpler filename located in the root level of the Videos directory produces the same results: Code: 2014-01-01 10:23:56 There are 1 file(s) to process
2014-01-01 10:23:57 Pre-processing video 1: 'myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4' 2014-01-01 10:23:57 Video is not in local video directory or Storage Groups |
Author: | welner [ Fri Jan 03, 2014 7:09 pm ] |
Post subject: | Re: r8.1 video dvd burning |
i added some debugging to the getVideoPath function in the script /usr/share/mythtv/mytharchive/scripts/mythburn.py: Code: else: # iterate through storage group directories for sg in DB.getStorageGroup(groupname='Videos', hostname=DB.gethostname()): wholepath = os.path.join(sg.dirname, filename) write("storage group name is: %s" % sg.dirname) write("filename is: %s" % filename) write("what we are searching for is: %s" % wholepath) if os.path.isfile(wholepath): write("Video is in Storage Groups: %s" % wholepath) the log output shows: Code: 2014-01-03 19:52:42 Pre-processing video 1: 'myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4' 2014-01-03 19:52:42 storage group name is: /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video 2014-01-03 19:52:42 filename is: myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4 2014-01-03 19:52:42 what we are searching for is:[b] /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video/myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4[/b] it seems odd that "what we are searching for" is: /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video/myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4 this, however, exists: /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video//Koyaanisqatsi.mp4 the script appears to be concatenating the storage group name, /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video with the "filename" being passed in (which appears to be more of a URI): myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4 i attempted to hardcode the filename: Code: wholepath = "/data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video/Koyaanisqatsi.mp4" write("wholepath is: %s" % wholepath) if os.path.isfile(wholepath): write("Video is in Storage Groups: %s" % wholepath) and i can see that the script is able to get past the if statement that is checking to see if it is a regular file or not. the script fails later on, as it is looking for what appears to be the munged path/filename from a different variable: the log output: Code: 2014-01-03 20:00:34 ERROR: Source file does not exist: /data/storage/WDCWD2000FYYZ-01UL1B1_WD-WCC1P0896044/media/video/myth://Videos@10.0.1.3:6543/Koyaanisqatsi.mp4 but that was enough of a test for me. i cant figure out how the script would be able to process the path and filename with the "myth://Videos" protocol embedded in it |
Author: | welner [ Sun Jan 05, 2014 5:21 pm ] |
Post subject: | Re: r8.1 video dvd burning |
this appears to have been fixed after installing the updated mytharchive-0.27-9 package |
Author: | brfransen [ Mon Jan 06, 2014 8:22 am ] |
Post subject: | Re: r8.1 video dvd burning |
That is odd as there was no changes to mythburn.py between the -7 pkg and the -9 pkg. |
Author: | welner [ Mon Jan 06, 2014 3:41 pm ] |
Post subject: | Re: r8.1 video dvd burning |
you are correct. i made a mistake. after having some success burning dvds with version 8.0, and then taking a step backwards after upgrading to 8.1, during the debug process i copied the mythburn.py from the 8.0 release (as it had previously 'worked'), and neglected to revert the version my apologies to all that have helped investigate this for me related to my other posting concerning burning recordings to dvd, i do think there is still an issue with mythffmpeg. i've double checked, and i did not copy mythffmpeg binaries around aw |
Author: | brfransen [ Mon Jan 06, 2014 6:03 pm ] |
Post subject: | Re: r8.1 video dvd burning |
The version of mythburn.py that was included with R8 was a patched mythtv .25 version because mythtv .25 mythburn.py didn't handle video storage groups well. The way that I fixed it for LinHES R8.0 is different than how it was fixed in mythtv later. For R8.1 mythtv .27 had video storage groups fixed and it has worked well in my testing. Now it finds the video in the storge group and copies it to the work directory. Looking at your log file I don't think you are using the version of mythburn.py that is included with R8.1. |
Author: | welner [ Mon Jan 06, 2014 6:21 pm ] |
Post subject: | Re: r8.1 video dvd burning |
yes, i confirm that. please see my previous post |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |