Skip to content

Mythburn.py error while extracting thumbnail image from stream.mv2 #615

@bshanteau

Description

@bshanteau
  • 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:-

<?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="84" cutduration="84" filename="/storage/mytharchive/10787_20210108140000.mp4" type="mov,mp4,m4a,3gp,3g2,mj2">    
        <streams count="2">        
                <video streamindex="0" ffmpegindex="0" bitrate="3178701" fps="59.9401" width="1280" aspectratio="1.77778" start_time="0.9000" height="720" codec="h264 (High) (avc1 / 0x31637661)" id="1"/>        
                <audio streamindex="1" ffmpegindex="1" bitrate="384000" channels="6" samplerate="48000" language="eng" start_time="0.9312" codec="ac3 (ac-3 / 0x332D6361)" id="2"/>        
        </streams>    
</file>

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:-

<?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="84" cutduration="84" type="mov,mp4,m4a,3gp,3g2,mj2" filename="/storage/mytharchive/10787_20210108140000.mp4">    
        <streams count="2">        
                <video bitrate="3178701" fps="59.9401" width="1280" aspectratio="1.77778" id="1" height="720" start_time="0.9000" streamindex="0" ffmpegindex="0" codec="h264 (High) (avc1 / 0x31637661)"/>        
                <audio bitrate="384000" channels="6" id="2" samplerate="48000" language="eng" start_time="0.9312" streamindex="1" ffmpegindex="1" codec="ac3 (ac-3 / 0x332D6361)"/>        
        </streams>    
</file>

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:-

<?xml version="1.0" ?><!DOCTYPE FILEINFO><file cutduration="84" duration="84" type="mpeg" filename="/storage/mytharchive/work/1/newfile2.mpg">    
        <streams count="3">        
                <data streamindex="0" codec=""/>        
                <video width="352" id="480" start_time="0.48003" streamindex="1" ffmpegindex="0" height="480" codec="mpeg2video (Main)" bitrate="0" fps="29.97" aspectratio="1.77778"/>        
                <audio id="128" start_time="0.55983" streamindex="2" channels="2" ffmpegindex="1" codec="ac3" language="N/A" bitrate="192000" samplerate="48000"/>        `
        </streams>    
</file>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions