-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mythburn.py error while extracting thumbnail image from stream.mv2 #615
Comments
mythburn.py line 3282 has two 'ifs'. As a test you could try blocking the call by simply editing those conditions and rerunning. |
Yes, if I comment out the mytharchivehelper command, mythburn.py completes normally. |
I cannot reproduce this by now on current master or on fixes/32. |
@rcrdnalor I opened the mp4 file in Avidemux to save a shorter clip and now I cannot reproduce the error using the original file. It's a mystery. I used the current v32 mythburn.py using the mythbuntu ppa but I did have to apply your patch to mythburn.py to remove the nulls in streaminfo.xml. Is there a better way to get the newest mythburn.py? I notice the following line in mythburn.log: |
@rcrdnalor I just installed mythtv v33 and mythburn.py creates a DVD iso file from a file just fine Thanks. |
Since you run mythtv master on Ubuntu, please check The ticket how-to suggests that you should post a In case you need further information, please search In this case, please post the backtrace of
when runnning under gdb. |
@bshanteau can you please check if this problem still exists after the fix of #633 has been verified? |
If you do not answer the above question, this issue will be closed, soon. |
Closing this issue as duplicate to #633. Additionally, this issue has good ideas about improving Pull-Requests for improving MythTV are always welcome. |
@rcrdnalor My pull request will revise a |
@rcrdnalor Pull request #673 created. |
@rcrdnalor
Would you be the maintainer? |
Platform:
Linux dvr 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
MythTV version:
2:32.0+fixes.202207271103.f458821fa0~ubuntu20.04.1
Package version:
PPA: mythbuntu/32
Component:
mythburn.py
What steps will reproduce the bug?
MythFrontend->Utilities->Archive Files->Create DVD ->Select Destination: File: Make ISO Image->DVD Menu Theme: Simple-Autoplay->Select Archive Items: Add File-->Select short mp4 recording->Next
How often does it reproduce? Is there a required condition?
Only with mp4 recordings as far as I can tell
What is the expected behaviour?
Create iso file without menu, thus without thumbnails
What do you see instead?
Using simple_fix_rtl
mythburn.py (0.2.20200122-1) starting up...
script path:/usr/share/mythtv/mytharchive/scripts
myth share path:/usr/share/mythtv
passed job file: /storage/mytharchive/config/mydata.xml
passed progress log file: /storage/mytharchive/logs/progress.log
mythburn.py (0.2.20200122-1) starting up...
Found 4 CPUs
Obtaining MythTV settings from MySQL database for hostname dvr
temppath: /storage/mytharchive/work
logpath: /storage/mytharchive/logs
Setting process priority to 10
Setting ionice level to idle
Processing Mythburn job number 1.
Options - mediatype = 3, doburn = 1, createiso = 1, erasedvdrw = 0
savefilename = '/storage/mytharchive/p-r.iso'
Looking for: /usr/share/mythtv/mytharchive/themes/Simple_-_Autoplay/theme.xml
Loading font 0, /usr/share/mythtv/fonts/FreeSans.ttf size 19
Loading font 1, /usr/share/mythtv/fonts/FreeSans.ttf size 15
Loading font 2, /usr/share/mythtv/fonts/FreeSans.ttf size 13
wantIntro: 0, wantMainMenu: 0, wantChapterMenu: 0, wantDetailsPage: 0
Final DVD Video format will be ntsc
There are 1 file(s) to process
Pre-processing file 1: '/storage/mytharchive/10787_20210108140000.mp4'
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/mytharchive/10787_20210108140000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 00:01:24.08, start: 0.100000, bitrate: 3574 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 3178 kb/s, 59.95 fps, 59.94 tbr, 90k tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main
/storage/mytharchive/work/1/streaminfo.xml:-
Node = chanid, Data =
Node = type, Data = file
Node = filename, Data = /storage/mytharchive/10787_20210108140000.mp4
Node = title, Data = /storage/mytharchive/10787_20210108140000.mp4
Node = recordingdate, Data =
Node = recordingtime, Data =
Node = subtitle, Data =
Node = description, Data =
Node = rating, Data =
Node = coverfile, Data =
Node = cutlist, Data =
Video resolution is 1280 by 720
*************************************************************
Processing file 1: '/storage/mytharchive/10787_20210108140000.mp4'
*************************************************************
File type is 'mov,mp4,m4a,3gp,3g2,mj2'
Video codec is 'h264 (High) (avc1 / 0x31637661)'
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/mytharchive/10787_20210108140000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 00:01:24.08, start: 0.100000, bitrate: 3574 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 3178 kb/s, 59.95 fps, 59.94 tbr, 90k tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main
/storage/mytharchive/work/1/streaminfo.xml:-
Preferred audio languages eng and eng
Video id: 0x1, Audio1: [1] 0x2 (AC3 (AC-3 / 0X332D6361), eng), Audio2: [-1] - 0x-1 (N/A, N/A)
Aspect ratio is 16:9
Re-encoding audio and video
Using encoder profiles from /usr/share/mythtv/mytharchive/encoder_profiles/ffmpeg_dvd_ntsc.xml
Encoding profile (LP) found
mythffmpeg -threads 4 -v 1 -i "/storage/mytharchive/10787_20210108140000.mp4" -r ntsc -target ntsc-dvd -b:v 2344k -s 352x480 -acodec ac3 -b:a 192k -ac 2 -aspect 16:9 "/storage/mytharchive/work/1/newfile2.mpg" -map 0:0 -map 0:1
[mpeg @ 0x5560cb672180] start time for stream 0 is not set in estimate_timings_from_pts
Input #0, mpeg, from '/storage/mytharchive/work/1/newfile2.mpg':
Duration: 00:01:24.15, start: 0.533367, bitrate: 2176 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 352x480 [SAR 80:33 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Side data:
cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
storage/mytharchive/work/1/streaminfo.xml:-
Preferred audio languages eng and eng
Video id: 0x1e0, Audio1: [1] 0x80 (AC3, N/A), Audio2: [-1] - 0x-1 (N/A, N/A)
Splitting MPEG stream into audio and video parts
Running: mythreplex --demux --fix_sync -o "/storage/mytharchive/work/1/stream" -v 224 -c 128 "/storage/mytharchive/work/1/newfile2.mpg"
Audio is already in ac3 format
Extracting thumbnail image from /storage/mytharchive/work/1/stream.mv2 at position 10
Destination file /storage/mytharchive/work/1/title.jpg
Segmentation fault (core dumped)
************************************************************
ERROR: Failed while running mytharchivehelper to get thumbnails.
Result: 139, Command was mytharchivehelper -q -q --createthumbnail --infile "/storage/mytharchive/work/1/stream.mv2" --thumblist '10' --outfile "/storage/mytharchive/work/1/title.jpg"
See mythburn.log for more information.
************************************************************
Terminated
Additional information
Since Simple-Autoplay theme is selected, there is no need to generate thumbnails and thus no reason to call mytharchivehelper.
@rcrdnalor
The text was updated successfully, but these errors were encountered: