View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: r8.1 video dvd burning
PostPosted: Tue Dec 31, 2013 1:51 pm 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
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?

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 
PostPosted: Tue Dec 31, 2013 4:33 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1120
Location: SC
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.


Top
 Profile  
 
PostPosted: Tue Dec 31, 2013 6:36 pm 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
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 |

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 
PostPosted: Tue Dec 31, 2013 6:58 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1120
Location: SC
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?


Top
 Profile  
 
PostPosted: Wed Jan 01, 2014 9:19 am 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
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

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 
PostPosted: Fri Jan 03, 2014 7:09 pm 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
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

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 
PostPosted: Sun Jan 05, 2014 5:21 pm 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
this appears to have been fixed after installing the updated mytharchive-0.27-9 package

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 
PostPosted: Mon Jan 06, 2014 8:22 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1120
Location: SC
That is odd as there was no changes to mythburn.py between the -7 pkg and the -9 pkg.


Top
 Profile  
 
PostPosted: Mon Jan 06, 2014 3:41 pm 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
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

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 
PostPosted: Mon Jan 06, 2014 6:03 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1120
Location: SC
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.


Top
 Profile  
 
PostPosted: Mon Jan 06, 2014 6:21 pm 
Offline
Joined: Sat Jan 06, 2007 7:08 pm
Posts: 72
yes, i confirm that. please see my previous post

_________________
DH87MC i7-4770 16GB ram Xonar Essence ST geforce 710 LinHes 8.5.2


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu