Opened 10 years ago
Closed 10 years ago
#11758 closed Bug Report - General (Fixed)
mythtranscode can not recognice time relative to GMT
Reported by: | Owned by: | Raymond Wagner | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27.1 |
Component: | Plugin - MythArchive | Version: | 0.26 |
Severity: | medium | Keywords: | |
Cc: | cpinkham | Ticket locked: | no |
Description
mythtranscode do not se that option starttime is relative from GMT when timezone from GMT is added. Starttime with timezone in option is used when burning DVD. (commercializes are not removed and message in log)
olav@Opti755B:~$ mythtranscode --mpeg2 --honorcutlist --chanid 7220 --starttime 2013-08-06T06:00:00 --outfile /home/olav/newfile.mpg 2013-08-17 15:37:30.709229 C mythtranscode version: fixes/0.26 [v0.26.1] www.mythtv.org 2013-08-17 15:37:30.709248 C Qt version: compile: 4.8.1, runtime: 4.8.1 2013-08-17 15:37:30.709252 N Enabled verbose msgs: general 2013-08-17 15:37:30.709262 N Setting Log Level to LOG_INFO 2013-08-17 15:37:30.709524 I Added logging to the console 2013-08-17 15:37:30.711853 I Setup Interrupt handler 2013-08-17 15:37:30.711864 I Setup Terminated handler 2013-08-17 15:37:30.711870 I Setup Segmentation fault handler 2013-08-17 15:37:30.711876 I Setup Aborted handler 2013-08-17 15:37:30.711882 I Setup Bus error handler 2013-08-17 15:37:30.711888 I Setup Floating point exception handler 2013-08-17 15:37:30.711895 I Setup Illegal instruction handler 2013-08-17 15:37:30.711902 I Setup Real-time signal 0 handler 2013-08-17 15:37:30.711943 N Using runtime prefix = /usr 2013-08-17 15:37:30.711956 N Using configuration directory = /home/olav/.mythtv 2013-08-17 15:37:30.712018 I Assumed character encoding: da_DK.UTF-8 2013-08-17 15:37:30.712358 N Empty LocalHostName?. 2013-08-17 15:37:30.712364 I Using localhost value of Opti755B 2013-08-17 15:37:30.732232 N Setting QT default locale to da_US 2013-08-17 15:37:30.732290 I Current locale da_US 2013-08-17 15:37:30.732348 E No locale defaults file for da_US, skipping 2013-08-17 15:37:30.732588 I Loading da translation for module mythfrontend 2013-08-17 15:37:30.798968 N Transcoding from /hdd1/mythtv/recordings/7220_20130806060000.mpg to /home/olav/newfile.mpg 2013-08-17 15:37:30.798985 I Honoring the cutlist while transcoding 2013-08-17 15:37:30.926205 I Opening /hdd1/mythtv/recordings/7220_20130806060000.mpg 2013-08-17 15:37:31.000334 I Input #0, mpegts, from '/hdd1/mythtv/recordings/7220_20130806060000.mpg': 2013-08-17 15:37:31.000353 I Duration: 01:30:26.32, start: 29898.723667, bitrate: 4370 kb/s 2013-08-17 15:37:31.000418 I Stream #0:0[0x14a]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc 2013-08-17 15:37:31.000435 I Stream #0:1[0x14b]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s 2013-08-17 15:37:31.000445 I Stream #0:2[0x14c](dan): Subtitle: dvb_teletext 2013-08-17 15:37:31.000460 E Skipping unsupported codec 3 on stream 2 2013-08-17 15:37:31.003266 I #0 PTS:08:18:19.243 Delta: 0.0ms queue: 17 2013-08-17 15:37:31.003309 I #1 PTS:08:18:19.222 Delta: 21.1111ms queue: 2 2013-08-17 15:37:31.042904 I Added logging to mythlogserver at TCP:35327 2013-08-17 15:37:31.560320 I Del map found 0 at 1369 (1369) 2013-08-17 15:37:31.575241 I Converting frame #0 from B to I 2013-08-17 15:37:31.585130 I Converting frame #1 from B to I 2013-08-17 15:37:31.631974 I Mux rate: 15,44 Mbit/s 2013-08-17 15:37:44.228113 I Del map found 1 at 25105 (25105) 2013-08-17 15:37:44.242995 I Converting frame #0 from B to I 2013-08-17 15:37:44.248235 I Converting frame #1 from B to I 2013-08-17 15:37:48.203619 I Del map found 0 at 35785 (35785) 2013-08-17 15:37:48.218088 I Converting frame #0 from B to I 2013-08-17 15:37:48.223892 I Converting frame #1 from B to I 2013-08-17 15:37:56.768803 I Del map found 1 at 54313 (54313) 2013-08-17 15:37:56.781483 I Converting frame #0 from B to I 2013-08-17 15:37:56.786664 I Converting frame #1 from B to I 2013-08-17 15:38:01.262148 I Del map found 0 at 66505 (66505) 2013-08-17 15:38:01.273924 I Converting frame #0 from B to I 2013-08-17 15:38:01.279855 I Converting frame #1 from B to I 2013-08-17 15:38:13.277238 I Del map found 1 at 90961 (90961) 2013-08-17 15:38:13.294391 I Converting frame #0 from B to I 2013-08-17 15:38:13.300915 I Converting frame #1 from B to I 2013-08-17 15:38:17.773843 I Del map found 0 at 102469 (102469) 2013-08-17 15:38:17.784741 I Converting frame #0 from B to I 2013-08-17 15:38:17.789467 I Converting frame #1 from B to I 2013-08-17 15:38:30.234073 I Del map found 1 at 127321 (127321) 2013-08-17 15:38:30.249492 I Converting frame #0 from B to I 2013-08-17 15:38:30.256725 I Converting frame #1 from B to I 2013-08-17 15:38:33.530610 I Generating Keyframe Index 2013-08-17 15:38:33.530625 I Opening /home/olav/newfile.mpg 2013-08-17 15:38:33.557308 I Input #0, mpeg, from '/home/olav/newfile.mpg': 2013-08-17 15:38:33.557324 I Duration: 31:03:56.55, start: 0.320000, bitrate: 131 kb/s 2013-08-17 15:38:33.557363 I Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc 2013-08-17 15:38:33.557374 I Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s 2013-08-17 15:39:02.493748 I Adjusting PTS forward 2013-08-17 15:39:02.493797 I Adjusting PTS forward 2013-08-17 15:39:02.493834 I Adjusting PTS forward 2013-08-17 15:39:02.493915 I Adjusting PTS forward 2013-08-17 15:39:02.493960 I Adjusting PTS forward 2013-08-17 15:39:02.494012 I Adjusting PTS forward 2013-08-17 15:39:02.494078 I Adjusting PTS forward 2013-08-17 15:39:02.494122 I Adjusting PTS forward 2013-08-17 15:39:02.494197 I Adjusting PTS forward 2013-08-17 15:39:02.494238 I Adjusting PTS forward 2013-08-17 15:39:02.494288 I Adjusting PTS forward 2013-08-17 15:39:02.494453 I Adjusting PTS forward 2013-08-17 15:39:02.494467 I Adjusting PTS forward 2013-08-17 15:39:02.494481 I Adjusting PTS forward 2013-08-17 15:39:02.494508 N Transcode Completed 2013-08-17 15:39:02.597529 N Transcoding /hdd1/mythtv/recordings/7220_20130806060000.mpg done olav@Opti755B:~$ mythtranscode --mpeg2 --honorcutlist --chanid 7220 --starttime 2013-08-06T08:00:00+02:00 --outfile /home/olav/newfile.mpg 2013-08-17 15:39:58.157616 C mythtranscode version: fixes/0.26 [v0.26.1] www.mythtv.org 2013-08-17 15:39:58.157633 C Qt version: compile: 4.8.1, runtime: 4.8.1 2013-08-17 15:39:58.157636 N Enabled verbose msgs: general 2013-08-17 15:39:58.157646 N Setting Log Level to LOG_INFO 2013-08-17 15:39:58.157892 I Added logging to the console 2013-08-17 15:39:58.158440 I Setup Interrupt handler 2013-08-17 15:39:58.158451 I Setup Terminated handler 2013-08-17 15:39:58.158459 I Setup Segmentation fault handler 2013-08-17 15:39:58.158466 I Setup Aborted handler 2013-08-17 15:39:58.158472 I Setup Bus error handler 2013-08-17 15:39:58.158482 I Setup Floating point exception handler 2013-08-17 15:39:58.158489 I Setup Illegal instruction handler 2013-08-17 15:39:58.158497 I Setup Real-time signal 0 handler 2013-08-17 15:39:58.158541 N Using runtime prefix = /usr 2013-08-17 15:39:58.158555 N Using configuration directory = /home/olav/.mythtv 2013-08-17 15:39:58.158856 I Assumed character encoding: da_DK.UTF-8 2013-08-17 15:39:58.193359 N Empty LocalHostName?. 2013-08-17 15:39:58.193368 I Using localhost value of Opti755B 2013-08-17 15:39:58.481486 I Added logging to mythlogserver at TCP:35327 2013-08-17 15:39:58.557746 N Setting QT default locale to da_US 2013-08-17 15:39:58.557804 I Current locale da_US 2013-08-17 15:39:58.557846 E No locale defaults file for da_US, skipping 2013-08-17 15:39:58.610774 I Loading da translation for module mythfrontend 2013-08-17 15:39:58.676164 E Couldn't find recording for chanid 7220 @ 2013-08-06T08:00:00Z olav@Opti755B:~$
Attachments (1)
Change History (11)
comment:1 Changed 10 years ago by
Owner: | set to Raymond Wagner |
---|---|
Status: | new → assigned |
Changed 10 years ago by
Attachment: | mythburn.patch added |
---|
comment:2 Changed 10 years ago by
This has actually been sitting around on my hard drive for about a month and a half. Someone already brought up the issue, prompting me to write a fix, but I can't find anything on trac or my IRC logs related to it. I've never used mytharchive, if someone else could give it a try before I commit it.
comment:3 Changed 10 years ago by
This isn't going to help much, because my habitual path through mythburn.py avoids all the affected code; but it didn't break anything and I have a playable .iso
comment:4 Changed 10 years ago by
Component: | MythTV - Mythtranscode → Plugin - MythArchive |
---|
comment:5 Changed 10 years ago by
Cherry picked from http://www.gossamer-threads.com/lists/mythtv/users/554104#554104
Thanks John, I tried the patch and got the exact same error and logs as before the patch. After reviewing the patch, it looks like it might fix the case where projectX is being used but not mythtranscode. I don't know anything about projectX so I can't verify that.
I do not really understand perl very well, but looking at the patch gave me some ideas, and after hacking around a bit I came up with this patch (attached) that works in my situation of using mythtranscode on a TV recording. It only changes one line. It works when applied after Raymond's patch and it also works (in my case) when it is the only patch applied to the stock mythburn.py.
Thanks, Ziggy
--- mythburn.py 2013-09-23 18:09:40.000000000 -0500 +++ mythburn.py.zig 2013-09-26 07:50:53.479406824 -0500 @@ -1426,7 +1426,7 @@
data.description = rec.description data.rating = str(rec.stars) data.chanid = rec.chanid
- data.starttime = rec.starttime.isoformat()
+ data.starttime = rec.starttime.utcisoformat()
cutlist = rec.markup.getcutlist() if len(cutlist):
comment:6 Changed 10 years ago by
The above one line change to call utcisoformat instead of isoformat fixed my problem with mythtranscode failing.
comment:9 Changed 10 years ago by
I'm now running v0.27-93-gb0c1c97. I still get the same error, mythtranscode cannot find the recording. If I patch the new mythburn.py with this one-line-patch it works fine, so it looks like it still needs one more modification. And perhaps the version number inside mythburn.py could be updated, too.
--- mythburn.py 2013-09-23 18:09:40.000000000 -0500 +++ mythburn.py.zig 2013-09-26 07:50:53.479406824 -0500 @@ -1426,7 +1426,7 @@
data.description = rec.description data.rating = str(rec.stars) data.chanid = rec.chanid
- data.starttime = rec.starttime.isoformat()
+ data.starttime = rec.starttime.utcisoformat()
cutlist = rec.markup.getcutlist() if len(cutlist):
comment:10 Changed 10 years ago by
Milestone: | 0.26.2 → 0.27.1 |
---|---|
Resolution: | → Fixed |
Status: | assigned → closed |
The one line change from comment:5 was committed to fixes/0.27 in [5db99c851b87b17dfe28806c4a58ed8ff852ce04]. I'm closing this as three users have confirmed the issue as fixed for them.
A fix on the Python side is in the pipeline, see http://irc.mythtv.org/ircLog/channel/4/2013-08-17:21:08