Crash when transcoding an mkv to x265

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Crash when transcoding an mkv to x265

Post by knosso2919 »

Description of problem or question:
Handbrake does crash with no visual message or warning when trying to transcode an mkv created with makemkv from a dvd to mp4 x265.

The error in the terminal is the following (some lines are repeated but i did not save the entire output just the info it was given):

Code: Select all

libdvdread: Encrypted DVD support unavailable. 
libdvdread: Can't open file VIDEO_TS.IFO
Segmentation fault
I dont know if it is related but it overall seems to transcode much slower than expected from a similarly powerful device and it seems to utilize just a single core.

Steps to reproduce the problem (If Applicable):
Load mkv and try to encode to x265.

I do have 4Gb of RAM with ZRAM and 4Gb SWAP enabled.


HandBrake version (e.g., 1.0.0):

1.4.1 (armv7l)
I compiled it myself following handbrake instructions taking the source from your website with the help of github useer kapitainsky. There were some missing libraries that I needed to install besides the ones you list:

Code: Select all

libturbojpeg0-dev appstream
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

Handbrake Version: 1.4.1 (2021092400)
[01:05:45] gtkgui: Custom Preset: /General/x265-nolimit-CQ20-DVD
[01:05:45] Starting work at: Sat Sep 25 01:05:45 2021

[01:05:45] 1 job(s) to process
[01:05:45] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 192,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:ac3",
                "Mixdown": "none",
                "PresetEncoder": "copy:ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 192,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            },
            {
                "Bitrate": 192,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 2
            },
            {
                "Bitrate": 192,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 3
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            },
            {
                "Name": "Chapter 2"
            },
            {
                "Name": "Chapter 3"
            },
            {
                "Name": "Chapter 4"
            },
            {
                "Name": "Chapter 5"
            },
            {
                "Name": "Chapter 6"
            },
            {
                "Name": "Chapter 7"
            },
            {
                "Name": "Chapter 8"
            },
            {
                "Name": "Chapter 9"
            },
            {
                "Name": "Chapter 10"
            },
            {
                "Name": "Chapter 11"
            },
            {
                "Name": "Chapter 12"
            },
            {
                "Name": "Chapter 13"
            },
            {
                "Name": "Chapter 14"
            },
            {
                "Name": "Chapter 15"
            },
            {
                "Name": "Chapter 16"
            },
            {
                "Name": "Chapter 17"
            },
            {
                "Name": "Chapter 18"
            },
            {
                "Name": "Chapter 19"
            },
            {
                "Name": "Chapter 20"
            },
            {
                "Name": "Chapter 21"
            },
            {
                "Name": "Chapter 22"
            },
            {
                "Name": "Chapter 23"
            },
            {
                "Name": "Chapter 24"
            },
            {
                "Name": "Chapter 25"
            },
            {
                "Name": "Chapter 26"
            },
            {
                "Name": "Chapter 27"
            },
            {
                "Name": "Chapter 28"
            }
        ],
        "ChapterMarkers": true,
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": true
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 74,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 74,
                    "height": 428,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {
        "Name": "2012"
    },
    "PAR": {
        "Den": 45,
        "Num": 64
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv",
        "Range": {
            "End": 28,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": true,
                "Forced": false,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 1
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 2
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 3
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 4
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 5
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 6
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 7
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 8
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 9
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 10
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 11
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 12
            }
        ]
    },
    "Video": {
        "ColorMatrix": 6,
        "ColorPrimaries": 5,
        "ColorTransfer": 1,
        "Encoder": "x265",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[01:05:45] CPU: 
[01:05:45]  - logical processor count: 4
[01:05:45] hb_scan: path=/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv/) failed
[01:05:45] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[01:05:45] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv':
  Metadata:
    title           : 2012
    encoder         : libmakemkv v1.16.4 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2021-09-19T06:27:29.000000Z
  Duration: 02:31:18.64, start: 0.000000, bitrate: 5456 kb/s
  Chapters:
    Chapter #0:0: start 0.080000, end 277.520000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 277.520000, end 684.840000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 684.840000, end 893.560000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 893.560000, end 1263.760000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1263.760000, end 1470.320000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1470.320000, end 1656.360000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1656.360000, end 1992.480000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1992.480000, end 2327.560000
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2327.560000, end 2577.560000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2577.560000, end 2820.440000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2820.440000, end 3189.920000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3189.920000, end 3411.360000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3411.360000, end 3748.800000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3748.800000, end 4028.440000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4028.440000, end 4397.000000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4397.000000, end 4697.200000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 4697.200000, end 4893.760000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 4893.760000, end 5185.840000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5185.840000, end 5557.480000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 5557.480000, end 5865.880000
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 5865.880000, end 6144.320000
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 6144.320000, end 6405.680000
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 6405.680000, end 6722.200000
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 6722.200000, end 7185.760000
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 7185.760000, end 7426.480000
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 7426.480000, end 7863.680000
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 7863.680000, end 8249.120000
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 8249.120000, end 9078.636978
      Metadata:
        title           : Chapter 28
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
    Metadata:
      BPS-eng         : 4151638
      DURATION-eng    : 02:31:18.240000000
      NUMBER_OF_FRAMES-eng: 226956
      NUMBER_OF_BYTES-eng: 4711196684
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 02:31:18.048000000
      NUMBER_OF_FRAMES-eng: 283689
      NUMBER_OF_BYTES-eng: 508370688
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 384000
      DURATION-eng    : 02:31:18.048000000
      NUMBER_OF_FRAMES-eng: 283689
      NUMBER_OF_BYTES-eng: 435746304
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 02:31:18.080000000
      NUMBER_OF_FRAMES-eng: 283690
      NUMBER_OF_BYTES-eng: 217873920
      SOURCE_ID-eng   : 0182BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 02:31:18.080000000
      NUMBER_OF_FRAMES-eng: 283690
      NUMBER_OF_BYTES-eng: 217873920
      SOURCE_ID-eng   : 0183BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(eng): Subtitle: dvd_subtitle, 720x576 (default)
    Metadata:
      BPS-eng         : 6875
      DURATION-eng    : 02:20:09.633955555
      NUMBER_OF_FRAMES-eng: 1899
      NUMBER_OF_BYTES-eng: 7227696
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:6(fre): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5213
      DURATION-eng    : 02:29:49.396977777
      NUMBER_OF_FRAMES-eng: 1837
      NUMBER_OF_BYTES-eng: 5858680
      SOURCE_ID-eng   : 0121BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:7(dut): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 6493
      DURATION-eng    : 02:20:16.233955555
      NUMBER_OF_FRAMES-eng: 1906
      NUMBER_OF_BYTES-eng: 6831126
      SOURCE_ID-eng   : 0122BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:8(ara): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 4400
      DURATION-eng    : 02:20:16.233955555
      NUMBER_OF_FRAMES-eng: 1908
      NUMBER_OF_BYTES-eng: 4629370
      SOURCE_ID-eng   : 0123BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:9(dan): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5419
      DURATION-eng    : 02:29:55.196977777
      NUMBER_OF_FRAMES-eng: 1674
      NUMBER_OF_BYTES-eng: 6093942
      SOURCE_ID-eng   : 0124BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:10(fin): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5559
      DURATION-eng    : 02:20:22.353955555
      NUMBER_OF_FRAMES-eng: 1646
      NUMBER_OF_BYTES-eng: 5852534
      SOURCE_ID-eng   : 0125BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:11(hin): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 6742
      DURATION-eng    : 02:20:16.233955555
      NUMBER_OF_FRAMES-eng: 1933
      NUMBER_OF_BYTES-eng: 7093612
      SOURCE_ID-eng   : 0126BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:12(nor): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5098
      DURATION-eng    : 02:29:48.996977777
      NUMBER_OF_FRAMES-eng: 1691
      NUMBER_OF_BYTES-eng: 5728290
      SOURCE_ID-eng   : 0127BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:13(swe): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5219
      DURATION-eng    : 02:29:48.996977777
      NUMBER_OF_FRAMES-eng: 1496
      NUMBER_OF_BYTES-eng: 5864636
      SOURCE_ID-eng   : 0128BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:14(eng): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 6575
      DURATION-eng    : 02:27:07.397688888
      NUMBER_OF_FRAMES-eng: 2158
      NUMBER_OF_BYTES-eng: 7255494
      SOURCE_ID-eng   : 0129BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:15(eng): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 10270
      DURATION-eng    : 02:22:35.312711111
      NUMBER_OF_FRAMES-eng: 2499
      NUMBER_OF_BYTES-eng: 10983374
      SOURCE_ID-eng   : 012ABD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:16(fre): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 9142
      DURATION-eng    : 02:22:35.352711111
      NUMBER_OF_FRAMES-eng: 2468
      NUMBER_OF_BYTES-eng: 9777326
      SOURCE_ID-eng   : 012BBD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:17(dut): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 8948
      DURATION-eng    : 02:22:35.352711111
      NUMBER_OF_FRAMES-eng: 2238
      NUMBER_OF_BYTES-eng: 9570094
      SOURCE_ID-eng   : 012CBD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[01:05:45] scan: decoding previews for title 1
[01:05:45] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[01:05:45] scan: audio 0x2: ac3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch) (384 kbps)
[01:05:45] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[01:05:45] scan: audio 0x4: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[01:05:46] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45, color profile: 5-1-6
[01:05:46] libhb: scan thread found 1 valid title(s)
[01:05:46] Starting Task: Subtitle Scan
[AVFilterGraph @ 0xac8574e0] No such filter: ''
[01:05:46] hb_avfilter_graph_init: avfilter_graph_parse2 failed ()
[01:05:46] Failure to initialise filter 'AVFilter', disabling
[01:05:46] job configuration:
[01:05:46]  * source
[01:05:46]    + /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv
[01:05:46]    + title 1, chapter(s) 1 to 28
[01:05:46]    + container: matroska,webm
[01:05:46]    + data rate: 5456 kbps
[01:05:46]  * destination
[01:05:46]    + (null)
[01:05:46]    + container: MPEG-4 (libavformat)
[01:05:46]      + optimized for HTTP streaming (fast start)
[01:05:46]      + align initial A/V stream timestamps
[01:05:46]      + chapter markers
[01:05:46]  * video track
[01:05:46]    + decoder: mpeg2video 8-bit
[01:05:46]    + filters
[01:05:46]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[01:05:46]      + Decomb (mode=39)
[01:05:46]      + Framerate Shaper (mode=2:rate=27000000/900000)
[01:05:46]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[01:05:46]      + Rotate ()
[01:05:46]    + Output geometry
[01:05:46]      + storage dimensions: 720 x 576
[01:05:46]      + pixel aspect ratio: 64 : 45
[01:05:46]      + display dimensions: 1024 x 576
[01:05:46]  * Foreign Audio Search: Render/Burn-in, Forced Only
[01:05:46]    + subtitle, English [VOBSUB] (track 0, id 0x5, Picture)
[01:05:46]    + subtitle, English [VOBSUB] (track 9, id 0xe, Picture)
[01:05:46]    + subtitle, English [VOBSUB] (track 10, id 0xf, Picture)
[01:05:47] sync: expecting 226965 video frames
[01:16:56] reader: done. 1 scr changes
[01:16:56] work: average encoding speed for job is 0.000000 fps
[01:16:56] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[01:16:56] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[01:16:56] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[01:16:56] vfr: lost time: 0 (0 frames)
[01:16:56] vfr: gained time: 0 (0 frames) (0 not accounted for)
[01:16:56] mpeg2video-decoder done: 0 frames, 0 decoder errors
[01:16:56] sync: got 0 frames, 226965 expected
[01:16:56] Subtitle track 0 (id 0x5) 'English [VOBSUB]': 1899 hits (88 forced)
[01:16:56] Subtitle track 9 (id 0xe) 'English [VOBSUB]': 2158 hits (0 forced)
[01:16:56] Subtitle track 10 (id 0xf) 'English [VOBSUB]': 2499 hits (0 forced)
[01:16:56] Found a subtitle candidate with id 0x5 (contains forced subs)
[01:16:56] Starting Task: Encoding Pass
[AVFilterGraph @ 0xac8f7f80] No such filter: ''
[01:16:56] hb_avfilter_graph_init: avfilter_graph_parse2 failed ()
[01:16:56] hb_avfilter_graph_init: avfilter_graph_parse2 failed ()
[01:16:56] Failure to initialise filter 'AVFilter', disabling
[01:16:56] job configuration:
[01:16:56]  * source
[01:16:56]    + /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv
[01:16:56]    + title 1, chapter(s) 1 to 28
[01:16:56]    + container: matroska,webm
[01:16:56]    + data rate: 5456 kbps
[01:16:56]  * destination
[01:16:56]    + (null)
[01:16:56]    + container: MPEG-4 (libavformat)
[01:16:56]      + optimized for HTTP streaming (fast start)
[01:16:56]      + align initial A/V stream timestamps
[01:16:56]      + chapter markers
[01:16:56]  * video track
[01:16:56]    + decoder: mpeg2video 8-bit
[01:16:56]    + filters
[01:16:56]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[01:16:56]      + Decomb (mode=39)
[01:16:56]      + Framerate Shaper (mode=2:rate=27000000/900000)
[01:16:56]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[01:16:56]      + Rotate ()
[01:16:56]      + Subtitle renderer ()
[01:16:56]    + Output geometry
[01:16:56]      + storage dimensions: 720 x 576
[01:16:56]      + pixel aspect ratio: 64 : 45
[01:16:56]      + display dimensions: 1024 x 576
[01:16:56]    + encoder: H.265 (libx265)
[01:16:56]      + preset:  medium
[01:16:56]      + profile: auto
[01:16:56]      + level:   auto
[01:16:56]      + quality: 20.00 (RF)
[01:16:56]      + color profile: 5-1-6
[01:16:56]  * subtitle track 1, English [VOBSUB] (track 0, id 0x5, Picture) -> Render/Burn-in, Forced Only
[01:16:56]  * subtitle track 2, English [VOBSUB] (track 0, id 0x5, Picture) -> Passthrough, Default
[01:16:56]  * subtitle track 3, Francais [VOBSUB] (track 1, id 0x6, Picture) -> Passthrough
[01:16:56]  * subtitle track 4, Nederlands [VOBSUB] (track 2, id 0x7, Picture) -> Passthrough
[01:16:56]  * subtitle track 5, العربية [VOBSUB] (track 3, id 0x8, Picture) -> Passthrough
[01:16:56]  * subtitle track 6, dansk [VOBSUB] (track 4, id 0x9, Picture) -> Passthrough
[01:16:56]  * subtitle track 7, suomi [VOBSUB] (track 5, id 0xa, Picture) -> Passthrough
[01:16:56]  * subtitle track 8, हिंदी [VOBSUB] (track 6, id 0xb, Picture) -> Passthrough
[01:16:56]  * subtitle track 9, norsk [VOBSUB] (track 7, id 0xc, Picture) -> Passthrough
[01:16:56]  * subtitle track 10, svenska [VOBSUB] (track 8, id 0xd, Picture) -> Passthrough
[01:16:56]  * subtitle track 11, English [VOBSUB] (track 9, id 0xe, Picture) -> Passthrough
[01:16:56]  * subtitle track 12, English [VOBSUB] (track 10, id 0xf, Picture) -> Passthrough
[01:16:56]  * subtitle track 13, Francais [VOBSUB] (track 11, id 0x10, Picture) -> Passthrough
[01:16:56]  * subtitle track 14, Nederlands [VOBSUB] (track 12, id 0x11, Picture) -> Passthrough
[01:16:56]  * audio track 1
[01:16:56]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[01:16:56]      + bitrate: 448 kbps, samplerate: 48000 Hz
[01:16:56]    + mixdown: Stereo
[01:16:56]    + encoder: AAC (libavcodec)
[01:16:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[01:16:56]  * audio track 2
[01:16:56]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[01:16:56]      + bitrate: 448 kbps, samplerate: 48000 Hz
[01:16:56]    + AC3 Passthru
[01:16:56]  * audio track 3
[01:16:56]    + decoder: Francais (AC3) (5.1 ch) (384 kbps) (track 2, id 0x2)
[01:16:56]      + bitrate: 384 kbps, samplerate: 48000 Hz
[01:16:56]    + mixdown: Stereo
[01:16:56]    + encoder: AAC (libavcodec)
[01:16:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[01:16:56]  * audio track 4
[01:16:56]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 3, id 0x3)
[01:16:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[01:16:56]    + mixdown: Stereo
[01:16:56]    + encoder: AAC (libavcodec)
[01:16:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[01:16:56]  * audio track 5
[01:16:56]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 4, id 0x4)
[01:16:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[01:16:56]    + mixdown: Stereo
[01:16:56]    + encoder: AAC (libavcodec)
[01:16:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[01:16:58] sync: expecting 226965 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 8.3.0][32 bit][noasm] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: ARMv6 NEON
x265 [info]: Main profile, Level-3 (Main tier)
x265 [warning]: No thread pool allocated, --wpp disabled
x265 [warning]: No thread pool allocated, --lookahead-slices disabled
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 2 / none
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8

Woodstock
Veteran User
Posts: 4280
Joined: Tue Aug 27, 2013 6:39 am

Re: Crash when transcoding an mkv to x265

Post by Woodstock »

Does it also fail if you select x264 instead?
User avatar
JohnAStebbins
HandBrake Team
Posts: 5632
Joined: Sat Feb 09, 2008 7:21 pm

Re: Crash when transcoding an mkv to x265

Post by JohnAStebbins »

I'm somewhat surprised it can even be coaxed to build for arm. Since none of us has done this on linux, you're going to have to do the heavy lifting yourself in figuring out what's broken.

Start by doing a clean build with debug symbols enabled and optimization disabled. E.g. from the top of the HandBrake source tree

Code: Select all

mkdir build.debug
cd build.debug
../configure --debub=max --optimize=none <other options you may need for building on arm>
make -j
Then run the app with gdb. I recommend doing your debugging with HandBrakeCLI rather than the GUI. It's easier to repeat the exact same experiment multiple times and generally faster once you construct a command line that reproduces your problem. E.g.

Code: Select all

gdb HandBrakeCLI
(gdb) run -i source.mkv -o test.mp4 -e x265
Once you reproduce the problem when running with gdb, you can produce a backtrace of all active threads when the problem occurs with the gdb command 'thread apply all bt'. E.g.

Code: Select all

(gdb) thread apply all bt
Thread 114 (Thread 0x7fff42fed640 (LWP 230886) "HandBrakeCLI"):
#0  0x00007ffff7612a8a in __futex_abstimed_wait_common64 () from /lib64/libpthread.so.0
#1  0x00007ffff760c2c0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#2  0x000000000170f2a5 in thread_worker (v=0x7fff58001c50) at libavutil/slicethread.c:78
#3  0x00007ffff7606299 in start_thread () from /lib64/libpthread.so.0
#4  0x00007ffff7199353 in clone () from /lib64/libc.so.6

Thread 113 (Thread 0x7fff437ee640 (LWP 230885) "HandBrakeCLI"):
#0  0x00007ffff7612a8a in __futex_abstimed_wait_common64 () from /lib64/libpthread.so.0
#1  0x00007ffff760c2c0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#2  0x000000000170f2a5 in thread_worker (v=0x7fff58001be0) at libavutil/slicethread.c:78
#3  0x00007ffff7606299 in start_thread () from /lib64/libpthread.so.0
#4  0x00007ffff7199353 in clone () from /lib64/libc.so.6

Thread 112 (Thread 0x7fff43fef640 (LWP 230884) "HandBrakeCLI"):
#0  0x00007ffff7612a8a in __futex_abstimed_wait_common64 () from /lib64/libpthread.so.0
#1  0x00007ffff760c2c0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#2  0x000000000170f2a5 in thread_worker (v=0x7fff58001b70) at libavutil/slicethread.c:78
#3  0x00007ffff7606299 in start_thread () from /lib64/libpthread.so.0
#4  0x00007ffff7199353 in clone () from /lib64/libc.so.6

...

Post the full backtrace here and maybe we can provide further assistance.
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Thanks for the kind replies. I will provide as soon as possible the info you requested.
Woodstock wrote: Sat Sep 25, 2021 2:36 pm Does it also fail if you select x264 instead?
I'm trying now and it is much faster. Not just faster becasue x264 is faster than x265. Faster in the sense that is is proprerly going much faster than real time when encoding. No single core is maxed out and the load overall seems to be between 20-60% on every core (probably the bottleneck is my nas becasue it is on a 100Mbit connection).

EDIT: after reaching 33% it slowed down considerably (don't know how much because in linux the fps counter is not present or at least i don't see it). However all 4 cores are running at around 89-96% and the current filesize is 450+Mb... the x265 crashes after doing something like 60-70Mb.
Since none of us has done this on linux, you're going to have to do the heavy lifting yourself in figuring out what's broken.
That seems right to me. However this is the first time i compile something so I'm a bit of a newbe. But ill do my best.
Start by doing a clean build with debug symbols enabled and optimization disabled.
The parameters i used are:

Code: Select all

./configure --launch-jobs=$(nproc) --disable-nvenc --disable-qsv --enable-fdk-aac

I will rebuild it in a clean folder this way (if i understood correctly what you said):

Code: Select all

./configure --debub=max --optimize=none --launch-jobs=$(nproc) --disable-nvenc --disable-qsv --enable-fdk-aac
I recommend doing your debugging with HandBrakeCLI rather than the GUI.
Ok I've never used handbrake from CLI but the documentation seems well made so i will call my preset from terminal next time.
you can produce a backtrace
Ok I'm not sure about how to do that. Where do i find it?
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

A comment about x265. I modified the x265 source in the same way other people do for the raspberry otherwise it does not build for arm, i replaced == with != in this specific file (the asterisks is becasue i tired Handbrake 1.2, 1.3.3 and 1.4.1 and they have different versions):

Code: Select all

nano ./contrib/x265/x265*/source/common/primitives.cpp
In this final section of the file:

Code: Select all

#if X265_ARCH_ARM == 0
void PFX(cpu_neon_test)(void) {}
int PFX(cpu_fast_neon_mrc_test)(void) { return 0; }
#endif // X265_ARCH_ARM
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

For what concerns the x264 encoding while it is not crashing (for now) it is giving the same message in the terminal:

Code: Select all

libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Why does it even have to do with an mkv file? (admittedly i dont know if my windows and mac versions do the same thing because I've never lauched from terminal.)
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Sorry if I'm disorganised but I've not yet figured out a way to edit posts after i publish them.
Before modifying the x265 source i add this extra configure parameters to x265 module (this and the source mod were suggested by the github user kepitainsky that helped me):

Code: Select all

echo "X265_8.CONFIGURE.extra +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >> ./contrib/x265_8bit/module.defs \
&& \
echo "X265_10.CONFIGURE.extra +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >>  ./contrib/x265_10bit/module.defs \
&& \
echo "X265_12.CONFIGURE.extra +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >>  ./contrib/x265_12bit/module.defs \
&& \
echo "X265.CONFIGURE.extra  +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >>  ./contrib/x265/module.defs
Woodstock
Veteran User
Posts: 4280
Joined: Tue Aug 27, 2013 6:39 am

Re: Crash when transcoding an mkv to x265

Post by Woodstock »

Handbrake tries different ways to access the input file, including assuming that the input is a path to an optical disk or directory. That's why you see messages about DVD and Bluray support. That's so it can also see if there are multiple titles in the input.

Speed reduction may be the cores reaching 80C, and being throttled back.
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Woodstock wrote: Sat Sep 25, 2021 2:36 pm Does it also fail if you select x264 instead?
The video file in x264 gets created with no obvious warnings and Handbrake does not crash. However the result is a file that is not playable with any of the players i currently have installed on my pi4 (VLC, Parole, mpv). The file size is also awkward because the original file is 6.2Gb and the output is 1.6Gb while i was expecting something in the neighborhood of 3Gb (isn't h264 twice as efficient as mp2 used in the dvd and copied in the mkv?

I will verify that on an x64 build the file gets converted correctly with no crashes and creating a playable file. Also at this point I will try to create a cut down version of the mkv that is 5 minutes long that still causes problems so that each encoding is reasonable.

This is the log:

Code: Select all

Handbrake Version: 1.4.1 (2021092400)

(ghb:11578): Gtk-WARNING **: 20:26:09.181: Calling org.xfce.Session.Manager.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "Inhibit" with signature "susu" on interface "org.xfce.Session.Manager" doesn't exist

[20:26:09] gtkgui: Custom Preset: /General/Fast 1080p30 DVD Knosso
[20:26:09] Starting work at: Sun Sep 26 20:26:09 2021

[20:26:09] 1 job(s) to process
[20:26:09] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "Surround 5.1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "Surround 5.1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            },
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "Stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 2
            },
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "Stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 3
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "fdk_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 38,
                    "Ticks": 24976800
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 47,
                    "Ticks": 36658800
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 29,
                    "Ticks": 18784800
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 10,
                    "Ticks": 33318000
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 27,
                    "Ticks": 18590400
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 6,
                    "Ticks": 16743600
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 36,
                    "Ticks": 30250800
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 35,
                    "Ticks": 30157200
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 10,
                    "Ticks": 22500000
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 3,
                    "Ticks": 21859200
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 9,
                    "Ticks": 33253200
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 41,
                    "Ticks": 19929600
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 37,
                    "Ticks": 30369600
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 40,
                    "Ticks": 25167600
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 9,
                    "Ticks": 33170400
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 0,
                    "Ticks": 27018000
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 17,
                    "Ticks": 17690400
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 52,
                    "Ticks": 26287200
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 12,
                    "Ticks": 33447600
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 8,
                    "Ticks": 27756000
                },
                "Name": "Chapter 20"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 38,
                    "Ticks": 25059600
                },
                "Name": "Chapter 21"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 21,
                    "Ticks": 23522400
                },
                "Name": "Chapter 22"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 17,
                    "Ticks": 28486800
                },
                "Name": "Chapter 23"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 44,
                    "Ticks": 41720400
                },
                "Name": "Chapter 24"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 1,
                    "Ticks": 21664800
                },
                "Name": "Chapter 25"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 17,
                    "Ticks": 39348000
                },
                "Name": "Chapter 26"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34689600
                },
                "Name": "Chapter 27"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 13,
                    "Seconds": 50,
                    "Ticks": 74656440
                },
                "Name": "Chapter 28"
            }
        ],
        "ChapterMarkers": true,
        "File": "/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1 (1).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": true
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 74,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 74,
                    "height": 428,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {
        "Name": "2012"
    },
    "PAR": {
        "Den": 45,
        "Num": 64
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv",
        "Range": {
            "End": 28,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": true,
                "Default": true,
                "Forced": false,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 1
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 2
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 3
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 4
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 5
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 6
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 7
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 8
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 9
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 10
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 11
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 12
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 5,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "4.0",
        "Options": "",
        "Preset": "fast",
        "Profile": "main",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[20:26:09] CPU: 
[20:26:09]  - logical processor count: 4
[20:26:09] hb_scan: path=/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv/) failed
[20:26:09] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[20:26:09] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv':
  Metadata:
    title           : 2012
    encoder         : libmakemkv v1.16.4 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2021-09-19T06:27:29.000000Z
  Duration: 02:31:18.64, start: 0.000000, bitrate: 5456 kb/s
  Chapters:
    Chapter #0:0: start 0.080000, end 277.520000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 277.520000, end 684.840000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 684.840000, end 893.560000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 893.560000, end 1263.760000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1263.760000, end 1470.320000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1470.320000, end 1656.360000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1656.360000, end 1992.480000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1992.480000, end 2327.560000
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2327.560000, end 2577.560000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2577.560000, end 2820.440000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2820.440000, end 3189.920000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3189.920000, end 3411.360000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3411.360000, end 3748.800000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3748.800000, end 4028.440000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4028.440000, end 4397.000000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4397.000000, end 4697.200000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 4697.200000, end 4893.760000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 4893.760000, end 5185.840000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5185.840000, end 5557.480000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 5557.480000, end 5865.880000
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 5865.880000, end 6144.320000
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 6144.320000, end 6405.680000
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 6405.680000, end 6722.200000
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 6722.200000, end 7185.760000
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 7185.760000, end 7426.480000
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 7426.480000, end 7863.680000
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 7863.680000, end 8249.120000
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 8249.120000, end 9078.636978
      Metadata:
        title           : Chapter 28
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
    Metadata:
      BPS-eng         : 4151638
      DURATION-eng    : 02:31:18.240000000
      NUMBER_OF_FRAMES-eng: 226956
      NUMBER_OF_BYTES-eng: 4711196684
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 02:31:18.048000000
      NUMBER_OF_FRAMES-eng: 283689
      NUMBER_OF_BYTES-eng: 508370688
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 384000
      DURATION-eng    : 02:31:18.048000000
      NUMBER_OF_FRAMES-eng: 283689
      NUMBER_OF_BYTES-eng: 435746304
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 02:31:18.080000000
      NUMBER_OF_FRAMES-eng: 283690
      NUMBER_OF_BYTES-eng: 217873920
      SOURCE_ID-eng   : 0182BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 02:31:18.080000000
      NUMBER_OF_FRAMES-eng: 283690
      NUMBER_OF_BYTES-eng: 217873920
      SOURCE_ID-eng   : 0183BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(eng): Subtitle: dvd_subtitle, 720x576 (default)
    Metadata:
      BPS-eng         : 6875
      DURATION-eng    : 02:20:09.633955555
      NUMBER_OF_FRAMES-eng: 1899
      NUMBER_OF_BYTES-eng: 7227696
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:6(fre): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5213
      DURATION-eng    : 02:29:49.396977777
      NUMBER_OF_FRAMES-eng: 1837
      NUMBER_OF_BYTES-eng: 5858680
      SOURCE_ID-eng   : 0121BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:7(dut): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 6493
      DURATION-eng    : 02:20:16.233955555
      NUMBER_OF_FRAMES-eng: 1906
      NUMBER_OF_BYTES-eng: 6831126
      SOURCE_ID-eng   : 0122BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:8(ara): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 4400
      DURATION-eng    : 02:20:16.233955555
      NUMBER_OF_FRAMES-eng: 1908
      NUMBER_OF_BYTES-eng: 4629370
      SOURCE_ID-eng   : 0123BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:9(dan): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5419
      DURATION-eng    : 02:29:55.196977777
      NUMBER_OF_FRAMES-eng: 1674
      NUMBER_OF_BYTES-eng: 6093942
      SOURCE_ID-eng   : 0124BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:10(fin): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5559
      DURATION-eng    : 02:20:22.353955555
      NUMBER_OF_FRAMES-eng: 1646
      NUMBER_OF_BYTES-eng: 5852534
      SOURCE_ID-eng   : 0125BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:11(hin): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 6742
      DURATION-eng    : 02:20:16.233955555
      NUMBER_OF_FRAMES-eng: 1933
      NUMBER_OF_BYTES-eng: 7093612
      SOURCE_ID-eng   : 0126BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:12(nor): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5098
      DURATION-eng    : 02:29:48.996977777
      NUMBER_OF_FRAMES-eng: 1691
      NUMBER_OF_BYTES-eng: 5728290
      SOURCE_ID-eng   : 0127BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:13(swe): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 5219
      DURATION-eng    : 02:29:48.996977777
      NUMBER_OF_FRAMES-eng: 1496
      NUMBER_OF_BYTES-eng: 5864636
      SOURCE_ID-eng   : 0128BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:14(eng): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 6575
      DURATION-eng    : 02:27:07.397688888
      NUMBER_OF_FRAMES-eng: 2158
      NUMBER_OF_BYTES-eng: 7255494
      SOURCE_ID-eng   : 0129BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:15(eng): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 10270
      DURATION-eng    : 02:22:35.312711111
      NUMBER_OF_FRAMES-eng: 2499
      NUMBER_OF_BYTES-eng: 10983374
      SOURCE_ID-eng   : 012ABD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:16(fre): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 9142
      DURATION-eng    : 02:22:35.352711111
      NUMBER_OF_FRAMES-eng: 2468
      NUMBER_OF_BYTES-eng: 9777326
      SOURCE_ID-eng   : 012BBD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:17(dut): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS-eng         : 8948
      DURATION-eng    : 02:22:35.352711111
      NUMBER_OF_FRAMES-eng: 2238
      NUMBER_OF_BYTES-eng: 9570094
      SOURCE_ID-eng   : 012CBD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.4 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-19 06:27:29
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[20:26:09] scan: decoding previews for title 1
[20:26:09] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[20:26:09] scan: audio 0x2: ac3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch) (384 kbps)
[20:26:09] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[20:26:09] scan: audio 0x4: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[20:26:10] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45, color profile: 5-1-6
[20:26:10] libhb: scan thread found 1 valid title(s)
[20:26:10] Starting Task: Subtitle Scan
[20:26:10] job configuration:
[20:26:10]  * source
[20:26:10]    + /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv
[20:26:10]    + title 1, chapter(s) 1 to 28
[20:26:10]    + container: matroska,webm
[20:26:10]    + data rate: 5456 kbps
[20:26:10]  * destination
[20:26:10]    + /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1 (1).m4v
[20:26:10]    + container: MPEG-4 (libavformat)
[20:26:10]      + optimized for HTTP streaming (fast start)
[20:26:10]      + align initial A/V stream timestamps
[20:26:10]      + chapter markers
[20:26:10]  * video track
[20:26:10]    + decoder: mpeg2video 8-bit
[20:26:10]    + filters
[20:26:10]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[20:26:10]      + Decomb (mode=39)
[20:26:10]      + Framerate Shaper (mode=2:rate=27000000/900000)
[20:26:10]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[20:26:10]      + Crop and Scale (width=720:height=428:crop-top=74:crop-bottom=74:crop-left=0:crop-right=0)
[20:26:10]        + source: 720 * 576, crop (74/74/0/0): 720 * 428, scale: 720 * 428
[20:26:10]    + Output geometry
[20:26:10]      + storage dimensions: 720 x 428
[20:26:10]      + pixel aspect ratio: 64 : 45
[20:26:10]      + display dimensions: 1024 x 428
[20:26:10]  * Foreign Audio Search: Render/Burn-in, Forced Only
[20:26:10]    + subtitle, English [VOBSUB] (track 0, id 0x5, Picture)
[20:26:10]    + subtitle, English [VOBSUB] (track 9, id 0xe, Picture)
[20:26:10]    + subtitle, English [VOBSUB] (track 10, id 0xf, Picture)
[20:26:10] sync: expecting 226965 video frames
[20:37:04] reader: done. 1 scr changes
[20:37:04] work: average encoding speed for job is 0.000000 fps
[20:37:04] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[20:37:04] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[20:37:04] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[20:37:04] vfr: lost time: 0 (0 frames)
[20:37:04] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:37:04] mpeg2video-decoder done: 0 frames, 0 decoder errors
[20:37:04] sync: got 0 frames, 226965 expected
[20:37:04] Subtitle track 0 (id 0x5) 'English [VOBSUB]': 1899 hits (88 forced)
[20:37:04] Subtitle track 9 (id 0xe) 'English [VOBSUB]': 2158 hits (0 forced)
[20:37:04] Subtitle track 10 (id 0xf) 'English [VOBSUB]': 2499 hits (0 forced)
[20:37:04] Found a subtitle candidate with id 0x5 (contains forced subs)
[20:37:05] Starting Task: Encoding Pass
[20:37:05] More than one subtitle burn-in requested.  Changing track 1 to soft subtitle.
[20:37:05] job configuration:
[20:37:05]  * source
[20:37:05]    + /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1.mkv
[20:37:05]    + title 1, chapter(s) 1 to 28
[20:37:05]    + container: matroska,webm
[20:37:05]    + data rate: 5456 kbps
[20:37:05]  * destination
[20:37:05]    + /run/user/1000/gvfs/smb-share:server=knosso-nas,share=backup%20knosso/Film_Casa/tmp/2012/2012_1 (1).m4v
[20:37:05]    + container: MPEG-4 (libavformat)
[20:37:05]      + optimized for HTTP streaming (fast start)
[20:37:05]      + align initial A/V stream timestamps
[20:37:05]      + chapter markers
[20:37:05]  * video track
[20:37:05]    + decoder: mpeg2video 8-bit
[20:37:05]    + filters
[20:37:05]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[20:37:05]      + Decomb (mode=39)
[20:37:05]      + Framerate Shaper (mode=2:rate=27000000/900000)
[20:37:05]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[20:37:05]      + Subtitle renderer ()
[20:37:05]      + Crop and Scale (width=720:height=428:crop-top=74:crop-bottom=74:crop-left=0:crop-right=0)
[20:37:05]        + source: 720 * 576, crop (74/74/0/0): 720 * 428, scale: 720 * 428
[20:37:05]    + Output geometry
[20:37:05]      + storage dimensions: 720 x 428
[20:37:05]      + pixel aspect ratio: 64 : 45
[20:37:05]      + display dimensions: 1024 x 428
[20:37:05]    + encoder: H.264 (libx264)
[20:37:05]      + preset:  fast
[20:37:05]      + profile: main
[20:37:05]      + level:   4.0
[20:37:05]      + quality: 22.00 (RF)
[20:37:05]      + color profile: 5-1-6
[20:37:05]  * subtitle track 1, English [VOBSUB] (track 0, id 0x5, Picture) -> Render/Burn-in, Forced Only
[20:37:05]  * subtitle track 2, English [VOBSUB] (track 0, id 0x5, Picture) -> Passthrough, Default
[20:37:05]  * subtitle track 3, Francais [VOBSUB] (track 1, id 0x6, Picture) -> Passthrough
[20:37:05]  * subtitle track 4, Nederlands [VOBSUB] (track 2, id 0x7, Picture) -> Passthrough
[20:37:05]  * subtitle track 5, العربية [VOBSUB] (track 3, id 0x8, Picture) -> Passthrough
[20:37:05]  * subtitle track 6, dansk [VOBSUB] (track 4, id 0x9, Picture) -> Passthrough
[20:37:05]  * subtitle track 7, suomi [VOBSUB] (track 5, id 0xa, Picture) -> Passthrough
[20:37:05]  * subtitle track 8, हिंदी [VOBSUB] (track 6, id 0xb, Picture) -> Passthrough
[20:37:05]  * subtitle track 9, norsk [VOBSUB] (track 7, id 0xc, Picture) -> Passthrough
[20:37:05]  * subtitle track 10, svenska [VOBSUB] (track 8, id 0xd, Picture) -> Passthrough
[20:37:05]  * subtitle track 11, English [VOBSUB] (track 9, id 0xe, Picture) -> Passthrough
[20:37:05]  * subtitle track 12, English [VOBSUB] (track 10, id 0xf, Picture) -> Passthrough
[20:37:05]  * subtitle track 13, Francais [VOBSUB] (track 11, id 0x10, Picture) -> Passthrough
[20:37:05]  * subtitle track 14, Nederlands [VOBSUB] (track 12, id 0x11, Picture) -> Passthrough
[20:37:05]  * audio track 1
[20:37:05]    + name: Surround 5.1
[20:37:05]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x1)
[20:37:05]      + bitrate: 448 kbps, samplerate: 48000 Hz
[20:37:05]    + mixdown: Stereo
[20:37:05]    + encoder: AAC (libfdk_aac)
[20:37:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:37:05]  * audio track 2
[20:37:05]    + name: Surround 5.1
[20:37:05]    + decoder: Francais (AC3) (5.1 ch) (384 kbps) (track 2, id 0x2)
[20:37:05]      + bitrate: 384 kbps, samplerate: 48000 Hz
[20:37:05]    + mixdown: Stereo
[20:37:05]    + encoder: AAC (libfdk_aac)
[20:37:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:37:05]  * audio track 3
[20:37:05]    + name: Stereo
[20:37:05]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 3, id 0x3)
[20:37:05]      + bitrate: 192 kbps, samplerate: 48000 Hz
[20:37:05]    + mixdown: Stereo
[20:37:05]    + encoder: AAC (libfdk_aac)
[20:37:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:37:05]  * audio track 4
[20:37:05]    + name: Stereo
[20:37:05]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 4, id 0x4)
[20:37:05]      + bitrate: 192 kbps, samplerate: 48000 Hz
[20:37:05]    + mixdown: Stereo
[20:37:05]    + encoder: AAC (libfdk_aac)
[20:37:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:37:06] sync: expecting 226965 video frames
[20:37:06] encx264: encoding at constant RF 22.000000
[20:37:06] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: ARMv6 NEON
x264 [info]: profile Main, level 4.0
[20:37:07] sync: first pts video is 0
[20:37:07] sync: first pts audio 0x1 is 0
[20:37:07] sync: first pts audio 0x2 is 0
[20:37:07] sync: first pts audio 0x3 is 0
[20:37:07] sync: first pts audio 0x4 is 0
[20:37:07] sync: "Chapter 1" (1) at frame 3 time 7200
[20:37:07] sync: first pts subtitle 0xe is 198000
[20:37:08] sync: first pts subtitle 0xf is 410400
[20:37:08] sync: first pts subtitle 0x10 is 410400
[20:37:08] sync: first pts subtitle 0x11 is 410400
[20:38:01] sync: first pts subtitle 0x9 is 7509600
[20:38:01] sync: first pts subtitle 0xa is 7516800
[20:38:07] sync: first pts subtitle 0x6 is 8031600
[20:38:08] sync: first pts subtitle 0x7 is 8067600
[20:38:08] sync: first pts subtitle 0x8 is 8067600
[20:38:08] sync: first pts subtitle 0xb is 8067600
[20:38:08] sync: first pts subtitle 0xc is 8067600
[20:38:08] sync: first pts subtitle 0xd is 8067600
[20:38:14] sync: first pts subtitle 0x5 is 8661600
[20:40:45] sync: "Chapter 2" (2) at frame 6939 time 24976800
[20:46:06] sync: first pts subtitle 0x5 is 46796400
[20:50:27] sync: "Chapter 3" (3) at frame 17122 time 61635600
[20:57:17] sync: "Chapter 4" (4) at frame 22340 time 80420400
[21:09:21] sync: "Chapter 5" (5) at frame 31595 time 113738400
[21:17:17] sync: "Chapter 6" (6) at frame 36759 time 132328800
[21:23:14] sync: "Chapter 7" (7) at frame 41410 time 149072400
[21:33:27] sync: "Chapter 8" (8) at frame 49813 time 179323200
[21:43:09] sync: "Chapter 9" (9) at frame 58190 time 209480400
[21:46:47] sync: "Chapter 10" (10) at frame 64440 time 231980400
[21:51:24] sync: "Chapter 11" (11) at frame 70512 time 253839600
[21:57:35] sync: "Chapter 12" (12) at frame 79749 time 287092800
[22:00:32] sync: "Chapter 13" (13) at frame 85285 time 307022400
[22:05:57] sync: "Chapter 14" (14) at frame 93721 time 337392000
[22:09:24] sync: "Chapter 15" (15) at frame 100712 time 362559600
[22:13:49] sync: "Chapter 16" (16) at frame 109926 time 395730000
[22:17:48] sync: "Chapter 17" (17) at frame 117431 time 422748000
[22:19:52] sync: "Chapter 18" (18) at frame 122345 time 440438400
[22:23:27] sync: "Chapter 19" (19) at frame 129647 time 466725600
[22:27:48] sync: "Chapter 20" (20) at frame 138938 time 500173200
[22:32:48] sync: "Chapter 21" (21) at frame 146648 time 527929200
[22:40:01] sync: "Chapter 22" (22) at frame 153609 time 552988800
[22:45:01] sync: "Chapter 23" (23) at frame 160143 time 576511200
[22:48:32] sync: "Chapter 24" (24) at frame 168056 time 604998000
[22:53:39] sync: "Chapter 25" (25) at frame 179645 time 646718400
[22:56:30] sync: "Chapter 26" (26) at frame 185663 time 668383200
[23:02:41] sync: "Chapter 27" (27) at frame 196593 time 707731200
[23:08:05] sync: "Chapter 28" (28) at frame 206229 time 742420800
[23:15:26] reader: done. 1 scr changes
[23:15:29] work: average encoding speed for job is 23.884834 fps
[23:15:29] comb detect: heavy 2196 | light 9094 | uncombed 215666 | total 226956
[23:15:29] decomb: deinterlaced 2196 | blended 9094 | unfiltered 215666 | total 226956
[23:15:29] vfr: 226956 frames output, 0 dropped and 0 duped for CFR/PFR
[23:15:29] vfr: lost time: 0 (0 frames)
[23:15:29] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:15:29] ac3-decoder done: 283689 frames, 0 decoder errors
[23:15:29] ac3-decoder done: 283689 frames, 0 decoder errors
[23:15:29] ac3-decoder done: 283690 frames, 0 decoder errors
[23:15:29] ac3-decoder done: 283690 frames, 0 decoder errors
[23:15:29] mpeg2video-decoder done: 226954 frames, 0 decoder errors
[23:15:29] sync: got 226956 frames, 226965 expected
[23:15:29] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:3600  Avg QP:18.55  size: 19115
x264 [info]: frame P:67886 Avg QP:21.67  size:  5985
x264 [info]: frame B:155470 Avg QP:23.58  size:  2003
x264 [info]: consecutive B-frames:  7.0%  2.7%  7.0% 83.3%
x264 [info]: mb I  I16..4: 36.5%  0.0% 63.5%
x264 [info]: mb P  I16..4:  7.4%  0.0%  6.8%  P16..4: 35.8% 14.3%  7.6%  0.0%  0.0%    skip:28.1%
x264 [info]: mb B  I16..4:  4.2%  0.0%  0.9%  B16..8: 23.9%  6.6%  0.5%  direct:10.7%  skip:53.1%  L0:41.5% L1:47.9% BI:10.5%
x264 [info]: coded y,uvDC,uvAC intra: 38.0% 61.5% 24.8% inter: 9.9% 21.9% 1.2%
x264 [info]: i16 v,h,dc,p: 45% 25% 13% 17%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 16% 21%  5%  7%  7%  5%  6%  4%
x264 [info]: i8c dc,h,v,p: 54% 16% 24%  6%
x264 [info]: Weighted P-Frames: Y:7.5% UV:4.9%
x264 [info]: ref P L0: 69.5% 30.5%
x264 [info]: ref B L0: 85.3% 14.7%
x264 [info]: ref B L1: 95.9%  4.1%
x264 [info]: kb/s:693.12
[23:18:28] mux: track 0, 226956 frames, 786408558 bytes, 693.00 kbps, fifo 4096
[23:18:28] mux: track 1, 425535 frames, 181561808 bytes, 160.00 kbps, fifo 8192
[23:18:28] mux: track 2, 425535 frames, 181561709 bytes, 160.00 kbps, fifo 8192
[23:18:28] mux: track 3, 425537 frames, 181562454 bytes, 160.00 kbps, fifo 8192
[23:18:28] mux: track 4, 425537 frames, 181562612 bytes, 160.00 kbps, fifo 8192
[23:18:28] mux: track 5, 1899 frames, 7227696 bytes, 6.37 kbps, fifo 32
[23:18:28] mux: track 6, 1837 frames, 5858680 bytes, 5.16 kbps, fifo 32
[23:18:28] mux: track 7, 1906 frames, 6831126 bytes, 6.02 kbps, fifo 32
[23:18:28] mux: track 8, 1908 frames, 4629370 bytes, 4.08 kbps, fifo 32
[23:18:28] mux: track 9, 1674 frames, 6093942 bytes, 5.37 kbps, fifo 32
[23:18:28] mux: track 10, 1646 frames, 5852534 bytes, 5.16 kbps, fifo 32
[23:18:28] mux: track 11, 1933 frames, 7093612 bytes, 6.25 kbps, fifo 32
[23:18:28] mux: track 12, 1691 frames, 5728290 bytes, 5.05 kbps, fifo 32
[23:18:28] mux: track 13, 1496 frames, 5864636 bytes, 5.17 kbps, fifo 32
[23:18:28] mux: track 14, 2158 frames, 7255494 bytes, 6.39 kbps, fifo 32
[23:18:28] mux: track 15, 2499 frames, 10983374 bytes, 9.68 kbps, fifo 32
[23:18:28] mux: track 16, 2468 frames, 9777326 bytes, 8.62 kbps, fifo 32
[23:18:28] mux: track 17, 2238 frames, 9570094 bytes, 8.43 kbps, fifo 32
[23:18:28] Finished work at: Sun Sep 26 23:18:28 2021

[23:18:29] libhb: work result = 0

knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Woodstock wrote: Sun Sep 26, 2021 8:40 pm Handbrake tries different ways to access the input file, including assuming that the input is a path to an optical disk or directory. That's why you see messages about DVD and Bluray support. That's so it can also see if there are multiple titles in the input.

Speed reduction may be the cores reaching 80C, and being throttled back.
Thanks for the clarification.
For the temperature don't worry. Thermal throttling is out of the question because i hooked the Pi4 to an intel stock cooler with no fan and the temperature almost never goes above 45C (during the encoding it was 56C).

Same it goes for current throttling: 5.1V 15W and the bolt throttling sign never appears.
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

At this old post they clean x265 with

Code: Select all

make xclean
instead of

Code: Select all

make clean
so i might also try that and see what changes. ( i need to clean it after i change the source because i partially "make" it in order to have that file downloaded). I will try after i manage to build as JohnAStebbins told me to do.
JohnAStebbins wrote: Sat Sep 25, 2021 3:53 pm Start by doing a clean build with debug symbols enabled and optimization disabled. E.g. from the top of the HandBrake source tree
The build terminated with and error, i will try again tomorrow just in case i missed a step or o miss-typed something. This is the last part before the error:

Code: Select all

/usr/bin/gcc -I. -I./ -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include  -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avfilter -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -std=gnu99 -fstack-protector-strong -D_FORTIFY_SOURCE=2  -fstack-protector-strong -D_FORTIFY_SOURCE=2 -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -DNDEBUG -march=armv6 -std=c11 -marm -pthread  -pthread -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -I/usr/include/opus -I/usr/include/opus    -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -I/usr/include/alsa     -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts  -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized   -MMD -MF libavfilter/dnn/dnn_backend_native_layer_maximum.d -MT libavfilter/dnn/dnn_backend_native_layer_maximum.o -c -o libavfilter/dnn/dnn_backend_native_layer_maximum.o libavfilter/dnn/dnn_backend_native_layer_maximum.c
./libavutil/arm/intmath.h: In function ‘yuv2yuv_444p10to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_444p12to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_444p12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_fsb_444p12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_444p8to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_444p10to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_444p12to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_422p10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_fsb_422p10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_422p8to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_422p10to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_422p12to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_422p12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_fsb_422p12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_422p8to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_422p10to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_422p12to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_420p10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_fsb_420p10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p8to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
/usr/bin/gcc -I. -I./ -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include  -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avfilter -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -std=gnu99 -fstack-protector-strong -D_FORTIFY_SOURCE=2  -fstack-protector-strong -D_FORTIFY_SOURCE=2 -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -DNDEBUG -march=armv6 -std=c11 -marm -pthread  -pthread -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -I/usr/include/opus -I/usr/include/opus    -I/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/include -I/usr/include/alsa     -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts  -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized   -MMD -MF libavfilter/dnn/dnn_backend_native_layer_pad.d -MT libavfilter/dnn/dnn_backend_native_layer_pad.o -c -o libavfilter/dnn/dnn_backend_native_layer_pad.o libavfilter/dnn/dnn_backend_native_layer_pad.c
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p10to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p12to10_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_420p12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘rgb2yuv_fsb_420p12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p8to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p10to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p12to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
make[1]: *** [ffbuild/common.mak:67: libavfilter/colorspacedsp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/HandBrake-1-4-1-debug/HandBrake-1.4.1/build/contrib/ffmpeg/ffmpeg-4.4'
make: *** [../contrib/ffmpeg/module.rules:3: contrib/ffmpeg/.stamp.ffmpeg.build] Error 2

knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Old post link mising from previous message: viewtopic.php?f=13&t=38769
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Ok unfortunately it does not build with the debug options in the configure file. Is it possible that it is assuming somehow x86?

I would show what happens while doing a make but it is too long for the maximum characters here and it exceeds the maximum dimensions of pastebin. I will share a txt file on google docs if you are interested:

https://drive.google.com/file/d/13IyPTo ... sp=sharing
User avatar
JohnAStebbins
HandBrake Team
Posts: 5632
Joined: Sat Feb 09, 2008 7:21 pm

Re: Crash when transcoding an mkv to x265

Post by JohnAStebbins »

knosso2919 wrote: Mon Sep 27, 2021 8:18 am Ok unfortunately it does not build with the debug options in the configure file. Is it possible that it is assuming somehow x86?

I would show what happens while doing a make but it is too long for the maximum characters here and it exceeds the maximum dimensions of pastebin. I will share a txt file on google docs if you are interested:

https://drive.google.com/file/d/13IyPTo ... sp=sharing
It looks like a bug in ffmpeg arm asm.

Code: Select all

./libavutil/arm/intmath.h:77:5: error: impossible constraint in ‘asm’
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
It might be the optimize option or the debug option triggering it. So try without the 'optimize=none' option. If that doesn't work, try with '--debug=std' which will use different ffmpeg debug options, but still generate debug symbols.

With optimization disabled, debugging is more difficult because whole lines of code often get optimized out or moved by the compiler. But it will still get us closer to the problem.
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

Hi sorry for the delay. My work takes a lot of time so i often don't have enough for hobbies like the Pi.

Back to the topic. I built it again leaving out the

Code: Select all

--optimize
option.
This is what I did (I'm telling it again because i told it fragmented in many messages before).
I unpacked the source again in a new folder.

Echoed the extra configure parameters to x265 module

Code: Select all

echo "X265_8.CONFIGURE.extra +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >> ./contrib/x265_8bit/module.defs \
&& \
echo "X265_10.CONFIGURE.extra +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >>  ./contrib/x265_10bit/module.defs \
&& \
echo "X265_12.CONFIGURE.extra +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >>  ./contrib/x265_12bit/module.defs \
&& \
echo "X265.CONFIGURE.extra  +=  -DENABLE_ASSEMBLY=OFF -DENABLE_PIC=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_TESTS=ON -DCMAKE_SKIP_RPATH=ON" >>  ./contrib/x265/module.defs
Configured the project:

Code: Select all

./configure --debub=max --launch-jobs=$(nproc) --disable-nvenc --disable-qsv --enable-fdk-aac
Modded the x265 source:

Code: Select all

 make -j 4 x265 
. Stoped the build after the source download finished.

Code: Select all

nano ./contrib/x265/x265*/source/common/primitives.cpp
changed == with != in the final part regarding ARM.

Build:

Code: Select all

make clean
make -j $(nproc)
I built it in the "build" directory.... I'm not sure if manually creating the folder build.debug does something... if so please tell me so we are on the same page.

Anyway it compiled correctly (well there where some fails that I will share in the next post), and i do have both HandbBrakeCLI and ghb. I'm now starting the encode as suggested with no presets with a simple

Code: Select all

(gdb) run -i source.mkv -o test.mp4 -e x265
.
knosso2919
Posts: 12
Joined: Sat Sep 25, 2021 6:59 am

Re: Crash when transcoding an mkv to x265

Post by knosso2919 »

I tried to convert the file on a windows machine and it goes from a 6.2Gb mkv to a 1.6Gb x265 mkv with no problems. The file gets played correctly. (did it as a sanity check just in case the file itself was problematic).

This is the build process with max debug but without the "no optimizations":
https://drive.google.com/file/d/1WPlcoT ... sp=sharing

gdb says "no debugging symbols found" now I'm relising that "--debub=max" might have been a typo..... well i guess I'ìm building it again then..... this time with "--debug=max"
User avatar
JohnAStebbins
HandBrake Team
Posts: 5632
Joined: Sat Feb 09, 2008 7:21 pm

Re: Crash when transcoding an mkv to x265

Post by JohnAStebbins »

knosso2919 wrote: Sat Oct 02, 2021 12:26 pm Modded the x265 source:

Code: Select all

 make -j 4 x265 
. Stoped the build after the source download finished.

Code: Select all

nano ./contrib/x265/x265*/source/common/primitives.cpp
changed == with != in the final part regarding ARM.
You can automate/simplify this step by dropping a patch file in contrib/x265. A good name for the patch file would be "A00-rpi-arm.patch". If you look in the other directories under contrib you can find additional examples of patches we apply to the libraries we use. Patch files that begin with 'P' are applied only for specific platforms (mingw, solaris, darwin, linux, freebsd, netbsd, etc.). Patch files that begin with 'A' are applied for any platform.
knosso2919 wrote: Sat Oct 02, 2021 12:26 pm Build:

Code: Select all

make clean
make -j $(nproc)
I built it in the "build" directory.... I'm not sure if manually creating the folder build.debug does something... if so please tell me so we are on the same page.
The directory name does not matter. It is only a convenience for keeping track of multiple builds with different options. You can create as many build directories as you like. Executing 'configure' from within the directory keeps all configuration local to that build directory.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5632
Joined: Sat Feb 09, 2008 7:21 pm

Re: Crash when transcoding an mkv to x265

Post by JohnAStebbins »

knosso2919 wrote: Sat Oct 02, 2021 12:54 pm ... now I'm relising that "--debub=max" might have been a typo.....
Oops. So sorry.
Post Reply