Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HandbrakeCLI crashed (Segmentation fault) #2187

Closed
ridgerobinson opened this issue Jul 10, 2019 · 31 comments

Comments

3 participants
@ridgerobinson
Copy link

commented Jul 10, 2019

Description of the problem

HandbrakeCLI crashed (Segmentation fault) after it starts encoding anywhere between 5 - 10% (usually). This is being used on a Node backend server

HandBrake version (e.g., 1.0.0)

Not exactly sure the version ... I have taken these steps as of 20 minutes ago:

  1. sudo add-apt-repository --yes ppa:stebbins/handbrake-releases
  2. sudo apt-get update -qq
  3. sudo apt-get install -qq handbrake-cli
  4. npm install handbrake-js --save

Operating system and version (e.g., Ubuntu 18.04 LTS, macOS 10.14 Mojave, Windows 10 1809)

I have an Ubuntu AWS EC2 instance, with Ubuntu 16.04

Error message text or screenshot

I have looked for the actual Activity Log on my server in the areas suggested in the url just below, but I do not see them there in my system. So I have taken a console.log of the spawn progress and error messages to show below

HandBrake Activity Log (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

Progress:  { taskNumber: 1,
  taskCount: 1,
  percentComplete: 0,
  fps: 0,
  avgFps: 0,
  eta: '',
  task: 'Encoding' }
Progress:  { taskNumber: 1,
  taskCount: 1,
  percentComplete: 0,
  fps: 0,
  avgFps: 0,
  eta: '',
  task: 'Encoding' }
Progress:  { taskNumber: 1,
  taskCount: 1,
  percentComplete: 3.26,
  fps: 0,
  avgFps: 0,
  eta: '',
  task: 'Encoding' }
Progress:  { taskNumber: 1,
  taskCount: 1,
  percentComplete: 6.84,
  fps: 0,
  avgFps: 0,
  eta: '',
  task: 'Encoding' }
Progress:  { taskNumber: 1,
  taskCount: 1,
  percentComplete: 9.45,
  fps: 0,
  avgFps: 0,
  eta: '',
  task: 'Encoding' }
Handbrake Error:  { Other: HandbrakeCLI crashed (Segmentation fault)
    at ChildProcess.handle.on (/home/ubuntu/server/node_modules/handbrake-js/lib/Handbrake.js:145:15)
    at ChildProcess.emit (events.js:188:13)
    at ChildProcess.EventEmitter.emit (domain.js:441:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
  name: 'Other',
  message: 'HandbrakeCLI crashed (Segmentation fault)',
  output:
   `[14:13:02] hb_init: starting libhb thread\n[14:13:02] thread 7fcc2e3aa700 started ("libhb")\nHandBrake 20180528010119-fd2241a-master (2018052801) - Linux x86_64 - https://handbrake.fr\n1 CPU detected\nOpening /home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov...\n[14:13:02] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz\n[14:13:02]  - Intel microarchitecture Haswell\n[14:13:02]  - logical processor count: 1\n[14:13:02] hb_scan: path=/home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov, title_index=1\nudfread ERROR: ECMA 167 Volume Recognition failed\ndisc.c:323: failed opening UDF image /home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov\ndisc.c:424: error opening file BDMV/index.bdmv\ndisc.c:424: error opening file BDMV/BACKUP/index.bdmv\n[14:13:02] bd: not a bd - trying as a stream/file instead\nlibdvdnav: Using dvdnav version 5.0.3\nlibdvdread: Encrypted DVD support unavailable.\nlibdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed\nlibdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed\nlibdvdread: Can't open file VIDEO_TS.IFO.\nlibdvdnav: vm: failed to read VIDEO_TS.IFO\n[14:13:02] dvd: not a dvd - trying as a stream/file instead\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov':\n  Metadata:\n    major_brand     : qt  \n    minor_version   : 0\n    compatible_brands: qt  \n    creation_time   : 2019-07-10 04:09:12\n  Duration: 00:00:05.10, start: 0.000000, bitrate: 17950 kb/s\n    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]\n      yuv420p, tv, bt709/bt709/bt709\n      2302x1296 [PAR 1:1 DAR 1151:648], 17941 kb/s, PAR 1:1 DAR 1151:648\n      60 fps, 6k tbn (default)\n    Metadata:\n      creation_time   : 2019-07-10 04:09:12\n      handler_name    : Core Media Data Handler\n      encoder         : H.264\n[14:13:02] scan: decoding previews for title 1\n\rScanning title 1 of 1, preview 1, 0.00 %\rScanning title 1 of 1, preview 1, 10.00 %\rScanning title 1 of 1, preview 2, 20.00 %\rScanning title 1 of 1, preview 4, 40.00 %\rScanning title 1 of 1, preview 5, 50.00 %\rScanning title 1 of 1, preview 6, 60.00 %\rScanning title 1 of 1, preview 8, 80.00 %\rScanning title 1 of 1, preview 9, 90.00 %[14:13:04] scan: 10 previews, 2302x1296, 60.082 fps, autocrop = 0/0/0/0, aspect 1.78:1, PAR 1:1\n\rScanning title 1 of 1, preview 10, 100.00 %[14:13:04] libhb: scan thread found 1 valid title(s)\n+ Using preset: CLI Default\n+ title 1:\n  + stream: /home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov\n  + duration: 00:00:05\n  + size: 2302x1296, pixel aspect: 1/1, display aspect: 1.78, 60.082 fps\n  + autocrop: 0/0/0/0\n  + chapters:\n    + 1: cells 0->0, 0 blocks, duration 00:00:05\n  + audio tracks:\n  + subtitle tracks:\n[14:13:05] 1 job(s) to process\n[14:13:05] json job:\n{\n    "Audio": {\n        "AudioList": [],\n        "CopyMask": [],\n        "FallbackEncoder": 0\n    },\n    "Destination": {\n        "AlignAVStart": false,\n        "ChapterList": [\n            {\n                "Name": ""\n            }\n        ],\n        "ChapterMarkers": false,\n        "File": "/home/ubuntu/server/media/exercises/transcoded_d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mp4",\n        "InlineParameterSets": false,\n        "Mp4Options": {\n            "IpodAtom": false,\n            "Mp4Optimize": false\n        },\n        "Mux": "m4v"\n    },\n    "Filters": {\n        "FilterList": [\n            {\n                "ID": 6,\n                "Settings": {\n                    "mode": 0\n                }\n            },\n            {\n                "ID": 11,\n                "Settings": {\n                    "crop-bottom": 0,\n                    "crop-left": 0,\n                    "crop-right": 0,\n                    "crop-top": 0,\n                    "height": 1296,\n                    "width": 2302\n                }\n            }\n        ]\n    },\n    "Metadata": {},\n    "PAR": {\n        "Den": 1,\n        "Num": 1\n    },\n    "SequenceID": 0,\n    "Source": {\n        "Angle": 0,\n        "Path": "/home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov",\n        "Range": {\n            "End": 1,\n            "Start": 1,\n            "Type": "chapter"\n        },\n        "Title": 1\n    },\n    "Subtitle": {\n        "Search": {\n            "Burn": true,\n            "Default": false,\n            "Enable": false,\n            "Forced": false\n        },\n        "SubtitleList": []\n    },\n    "Video": {\n        "ColorMatrixCode": 0,\n        "Encoder": "x264",\n        "Level": "auto",\n        "Options": "",\n        "Preset": "medium",\n        "Profile": "auto",\n        "QSV": {\n            "AsyncDepth": 4,\n            "Decode": false\n        },\n        "Quality": 22.0,\n        "Tune": "",\n        "Turbo": false,\n        "TwoPass": false\n    }\n}\n[14:13:05] starting job\n[14:13:05] job configuration:\n[14:13:05]  * source\n[14:13:05]    + /home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov\n[14:13:05]    + title 1, chapter(s) 1 to 1\n[14:13:05]    + container: mov,mp4,m4a,3gp,3g2,mj2\n[14:13:05]    + data rate: 17950 kbps\n[14:13:05]  * destination\n[14:13:05]    + /home/ubuntu/server/media/exercises/transcoded_d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mp4\n[14:13:05]    + container: MPEG-4 (libavformat)\n[14:13:05]  * video track\n[14:13:05]    + decoder: h264\n[14:13:05]      + bitrate 17941 kbps\n[14:13:05]    + filters\n[14:13:05]      + Framerate Shaper (mode=0)\n[14:13:05]        + frame rate: same as source (around 60.082 fps)\n[14:13:05]      + Crop and Scale (width=2302:height=1296:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)\n[14:13:05]        + source: 2302 * 1296, crop (0/0/0/0): 2302 * 1296, scale: 2302 * 1296\n[14:13:05]    + Output geometry\n[14:13:05]      + storage dimensions: 2302 x 1296\n[14:13:05]      + pixel aspect ratio: 1 : 1\n[14:13:05]      + display dimensions: 2302 x 1296\n[14:13:05]    + encoder: H.264 (libx264)\n[14:13:05]      + preset:  medium\n[14:13:05]      + profile: auto\n[14:13:05]      + level:   auto\n[14:13:05]      + quality: 22.00 (RF)\n[14:13:05] sync: expecting 307 video frames\n[14:13:05] encx264: min-keyint: 60, keyint: 600\n[14:13:05] encx264: encoding at constant RF 22.000000\nx264 [info]: using SAR=1/1\nx264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2\nx264 [info]: profile High, level 5.1\n\rEncoding: task 1 of 1, 0.00 %\rEncoding: task 1 of 1, 0.00 %[14:13:05] sync: first pts video is 0\n[14:13:05] sync: Chapter 1 at frame 1 time 0\n\rEncoding: task 1 of 1, 3.26 %\rEncoding: task 1 of 1, 6.84 %\rEncoding: task 1 of 1, 9.45 %`,
  options:
   { input:
      '/home/ubuntu/server/media/exercises/temporary/d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mov',
     output:
      '/home/ubuntu/server/media/exercises/transcoded_d3d27e30-a31c-11e9-88b2-2d97043a1bd3.mp4' } }
@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 10, 2019

It is working fine on my local server (using a macbook), but issue comes after I upload to our server with the details above

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 10, 2019

When you're raising an issue, please make sure you run HandBrake directly and not through a wrapper as they can and have introduced problems in the past and it makes it a lot more difficult to see what's going on. HandBrake-js is not maintained by the HandBrake team.

We don't support old nightly builds of HandBrake. You're not using a build from our PPA.

HandBrake 20180528010119-fd2241a-master (2018052801)

Since that doesn't correspond to any release we've ever done, I'm guessing HandBrake-js is either packing it's own, or using the malicious copy ubuntu ship.

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 10, 2019

I have removed everything from my server regarding Handbrake, and the node package for HandBrake-js. And I have reinstalled with this:

sudo add-apt-repository --yes ppa:stebbins/handbrake-releases
sudo apt-get update -qq
sudo apt-get install -qq handbrake-cli

After this ... I am now directly interacting with the HandBrakeCLI in the terminal with commands such as:

HandBrakeCLI
-i ~/server/media/exercises/temporary/Screen\ Recording\ 2019-07-09\ at\ 6.48.41\ PM.mov
-o ~/server/media/exercises/ScreenRecording.mp4
&> media/exercises/NotWorkingLog.txt

Here is the attached Log from this exact command, which is not working. I think this is a correct setup now from my side?

[20:27:38] hb_init: starting libhb thread
[20:27:38] thread 7fa9b047c700 started ("libhb")
HandBrake 1.1.2 (2018091000) - Linux x86_64 - https://handbrake.fr
1 CPU detected
Opening /home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov...
[20:27:38] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
[20:27:38]  - Intel microarchitecture Haswell
[20:27:38]  - logical processor count: 1
[20:27:38] hb_scan: path=/home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[20:27:38] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:27:38] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2019-07-09 22:48:42
  Duration: 00:00:03.68, start: 0.033333, bitrate: 2234 kb/s
    Stream #0:0(und): Video: h264 (Main) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      1930x1942 [PAR 1:1 DAR 965:971], 2192 kb/s, PAR 1:1 DAR 965:971
      51 fps, 6k tbn (default)
    Metadata:
      creation_time   : 2019-07-09 22:48:42
      handler_name    : Core Media Data Handler
      encoder         : H.264
[20:27:39] scan: decoding previews for title 1

Scanning title 1 of 1, preview 1, 0.00 %
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 10, 100.00 %[20:27:40] scan: 10 previews, 1930x1942, 58.914 fps, autocrop = 0/0/0/0, aspect 1:1.01, PAR 1:1
[20:27:40] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: /home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov
  + duration: 00:00:03
  + size: 1930x1942, pixel aspect: 1/1, display aspect: 0.99, 58.914 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:03
  + audio tracks:
  + subtitle tracks:
[20:27:40] 1 job(s) to process
[20:27:40] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/ubuntu/server/media/exercises/ScreenRecording.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1942,
                    "width": 1930
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[20:27:40] starting job
[20:27:40] job configuration:
[20:27:40]  * source
[20:27:40]    + /home/ubuntu/server/media/exercises/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov
[20:27:40]    + title 1, chapter(s) 1 to 1
[20:27:40]    + container: mov,mp4,m4a,3gp,3g2,mj2
[20:27:40]    + data rate: 2234 kbps
[20:27:40]  * destination
[20:27:40]    + /home/ubuntu/server/media/exercises/ScreenRecording.mp4
[20:27:40]    + container: MPEG-4 (libavformat)
[20:27:40]  * video track
[20:27:40]    + decoder: h264
[20:27:40]      + bitrate 2192 kbps
[20:27:40]    + filters
[20:27:40]      + Framerate Shaper (mode=0)
[20:27:40]        + frame rate: same as source (around 58.914 fps)
[20:27:40]      + Crop and Scale (width=1930:height=1942:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:27:40]        + source: 1930 * 1942, crop (0/0/0/0): 1930 * 1942, scale: 1930 * 1942
[20:27:40]    + Output geometry
[20:27:40]      + storage dimensions: 1930 x 1942
[20:27:40]      + pixel aspect ratio: 1 : 1
[20:27:40]      + display dimensions: 1930 x 1942
[20:27:40]    + encoder: H.264 (libx264)
[20:27:40]      + preset:  medium
[20:27:40]      + profile: auto
[20:27:40]      + level:   auto
[20:27:40]      + quality: 22.00 (RF)
[20:27:40] sync: expecting 216 video frames
[20:27:40] encx264: min-keyint: 59, keyint: 590
[20:27:40] encx264: encoding at constant RF 22.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 5.1

Encoding: task 1 of 1, 0.00 %[20:27:41] sync: first pts video is 0
[20:27:41] sync: Chapter 1 at frame 3 time 3055

Encoding: task 1 of 1, 3.24 %
Encoding: task 1 of 1, 11.11 %
Encoding: task 1 of 1, 15.74 %
Encoding: task 1 of 1, 20.37 %
@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 10, 2019

As an interesting extra piece of information ... if I convert from a .mp4 into a .mp4, it is working just fine with my current setup. I have previously converted on my local environment (macbook) with the .mov file I tried in the command above and it was working fine, and the video file works well to view in QuickTime as well ... so the video should be fine

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 10, 2019

Better but unfortunately still old. Double checking the repo, it looks like you need to be on bionic or newer to get 1.2.1

I'm not sure if flatpak will work on 16.04 xenial, but maybe worth a try rather than the PPA.

Otherwise, you'd need to use a newer distro.

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 10, 2019

I have now spun up a new AWS instance with an Ubuntu 18.04 Bionic AMI ... this is the log from the video that continues to not work. I do see this, which looks like it is what it needs to be based on your previous comment (to be 1.2.1):

HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr

Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[21:40:14] hb_init: starting libhb thread
[21:40:14] thread 7fe5150d4700 started ("libhb")
HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr
1 CPU detected
Opening ./media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov...
[21:40:14] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
[21:40:14]  - Intel microarchitecture Haswell
[21:40:14]  - logical processor count: 1
[21:40:14] hb_scan: path=./media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image ./media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[21:40:14] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[21:40:14] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2019-07-09T22:48:42.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: MacBookPro14,3
    com.apple.quicktime.software: Mac OS X 10.14.3 (18D109)
    com.apple.quicktime.creationdate: 2019-07-09T18:48:41-0400
  Duration: 00:00:03.55, start: 0.000000, bitrate: 2318 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1930x1942 [SAR 1:1 DAR 965:971], 2192 kb/s, 58.91 fps, 60 tbr, 6k tbn, 12k tbc (default)
    Metadata:
      creation_time   : 2019-07-09T22:48:42.000000Z
      handler_name    : Core Media Video
      encoder         : H.264
[21:40:14] scan: decoding previews for title 1

Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 9, 90.00 %[21:40:15] scan: 10 previews, 1930x1942, 61.127 fps, autocrop = 0/0/0/0, aspect 1:1.01, PAR 1:1
[21:40:16] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ./media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov
  + duration: 00:00:03
  + size: 1930x1942, pixel aspect: 1/1, display aspect: 0.99, 61.127 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:03
  + audio tracks:
  + subtitle tracks:
[21:40:16] 1 job(s) to process
[21:40:16] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "./media/ScreenRecording.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1942,
                    "width": 1930
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "./media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[21:40:16] starting job
[21:40:16] job configuration:
[21:40:16]  * source
[21:40:16]    + ./media/temporary/Screen Recording 2019-07-09 at 6.48.41 PM.mov
[21:40:16]    + title 1, chapter(s) 1 to 1
[21:40:16]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:40:16]    + data rate: 2318 kbps
[21:40:16]  * destination
[21:40:16]    + ./media/ScreenRecording.mp4
[21:40:16]    + container: MPEG-4 (libavformat)
[21:40:16]  * video track
[21:40:16]    + decoder: h264
[21:40:16]      + bitrate 2192 kbps
[21:40:16]    + filters
[21:40:16]      + Framerate Shaper (mode=0)
[21:40:16]        + frame rate: same as source (around 61.127 fps)
[21:40:16]      + Crop and Scale (width=1930:height=1942:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[21:40:16]        + source: 1930 * 1942, crop (0/0/0/0): 1930 * 1942, scale: 1930 * 1942
[21:40:16]    + Output geometry
[21:40:16]      + storage dimensions: 1930 x 1942
[21:40:16]      + pixel aspect ratio: 1 : 1
[21:40:16]      + display dimensions: 1930 x 1942
[21:40:16]    + encoder: H.264 (libx264)
[21:40:16]      + preset:  medium
[21:40:16]      + profile: auto
[21:40:16]      + level:   auto
[21:40:16]      + quality: 22.00 (RF)
[21:40:16]      + color profile: 1-1-1
[21:40:16] sync: expecting 217 video frames
[21:40:16] encx264: min-keyint: 61, keyint: 610
[21:40:16] encx264: encoding at constant RF 22.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 5.1

Encoding: task 1 of 1, 0.00 %[21:40:16] sync: first pts video is 0
[21:40:16] sync: Chapter 1 at frame 3 time 2944

Encoding: task 1 of 1, 4.15 %
Encoding: task 1 of 1, 11.52 %
Encoding: task 1 of 1, 14.75 %
Encoding: task 1 of 1, 18.43 %
@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 10, 2019

Not sure if it helps any ... but here is the log of the video that is working for transcoding (which is simply an .mp4 to an .mp4):

Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[21:41:05] hb_init: starting libhb thread
[21:41:05] thread 7f9c96b9a700 started ("libhb")
HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr
1 CPU detected
Opening ./media/temporary/Bench_press.mp4...
[21:41:05] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
[21:41:05]  - Intel microarchitecture Haswell
[21:41:05]  - logical processor count: 1
[21:41:05] hb_scan: path=./media/temporary/Bench_press.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image ./media/temporary/Bench_press.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[21:41:05] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[21:41:05] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './media/temporary/Bench_press.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2018-11-14T17:37:34.000000Z
  Duration: 00:00:09.88, start: 0.000000, bitrate: 3284 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1440x1080 [SAR 1:1 DAR 4:3], 3045 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc (default)
    Metadata:
      creation_time   : 2018-11-14T17:37:34.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2018-11-14T17:37:34.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
[21:41:05] scan: decoding previews for title 1
[21:41:05] scan: audio 0x1: aac, rate=48000Hz, bitrate=189375 English (AAC LC) (2.0 ch)

Scanning title 1 of 1, preview 2, 20.00 %[21:41:05] scan: 10 previews, 1440x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[21:41:06] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ./media/temporary/Bench_press.mp4
  + duration: 00:00:09
  + size: 1440x1080, pixel aspect: 1/1, display aspect: 1.33, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:09
  + audio tracks:
    + 1, English (AAC LC) (2.0 ch) (iso639-2: eng)
  + subtitle tracks:
[21:41:06] 1 job(s) to process
[21:41:06] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 128,
                "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
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "./media/BenchPress.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1440
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "./media/temporary/Bench_press.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[21:41:06] starting job
[21:41:06] job configuration:
[21:41:06]  * source
[21:41:06]    + ./media/temporary/Bench_press.mp4
[21:41:06]    + title 1, chapter(s) 1 to 1
[21:41:06]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:41:06]    + data rate: 3284 kbps
[21:41:06]  * destination
[21:41:06]    + ./media/BenchPress.mp4
[21:41:06]    + container: MPEG-4 (libavformat)
[21:41:06]  * video track
[21:41:06]    + decoder: h264
[21:41:06]      + bitrate 3045 kbps
[21:41:06]    + filters
[21:41:06]      + Framerate Shaper (mode=0)
[21:41:06]        + frame rate: same as source (around 25.000 fps)
[21:41:06]      + Crop and Scale (width=1440:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[21:41:06]        + source: 1440 * 1080, crop (0/0/0/0): 1440 * 1080, scale: 1440 * 1080
[21:41:06]    + Output geometry
[21:41:06]      + storage dimensions: 1440 x 1080
[21:41:06]      + pixel aspect ratio: 1 : 1
[21:41:06]      + display dimensions: 1440 x 1080
[21:41:06]    + encoder: H.264 (libx264)
[21:41:06]      + preset:  medium
[21:41:06]      + profile: auto
[21:41:06]      + level:   auto
[21:41:06]      + quality: 22.00 (RF)
[21:41:06]      + color profile: 1-1-1
[21:41:06]  * audio track 1
[21:41:06]    + decoder: English (AAC LC) (2.0 ch) (track 1, id 0x1)
[21:41:06]      + bitrate: 189 kbps, samplerate: 48000 Hz
[21:41:06]    + mixdown: Stereo
[21:41:06]    + dither: triangular
[21:41:06]    + encoder: AAC (libavcodec)
[21:41:06]      + bitrate: 128 kbps, samplerate: 48000 Hz
[21:41:06] sync: expecting 247 video frames
[21:41:06] encx264: encoding at constant RF 22.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.0
[21:41:06] sync: first pts video is 0
[21:41:06] sync: Chapter 1 at frame 1 time 0
[21:41:06] sync: first pts audio 0x1 is 0

Encoding: task 1 of 1, 0.40 %
Encoding: task 1 of 1, 11.74 %
Encoding: task 1 of 1, 22.67 %
Encoding: task 1 of 1, 29.96 %
Encoding: task 1 of 1, 31.58 %
Encoding: task 1 of 1, 31.58 %
Encoding: task 1 of 1, 31.98 %
Encoding: task 1 of 1, 35.22 %
Encoding: task 1 of 1, 35.22 %
Encoding: task 1 of 1, 37.65 %
Encoding: task 1 of 1, 40.08 %
Encoding: task 1 of 1, 42.51 %
Encoding: task 1 of 1, 42.51 %
Encoding: task 1 of 1, 44.13 %
Encoding: task 1 of 1, 46.56 % (11.63 fps, avg 26.82 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 47.37 % (11.63 fps, avg 26.82 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 48.18 % (11.63 fps, avg 26.82 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 51.42 % (14.55 fps, avg 24.62 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 52.23 % (14.55 fps, avg 24.62 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 54.66 % (14.55 fps, avg 24.62 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 55.87 % (14.55 fps, avg 24.62 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 59.51 % (12.91 fps, avg 22.72 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 59.51 % (12.91 fps, avg 22.72 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 62.35 % (12.91 fps, avg 22.72 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 63.16 % (12.91 fps, avg 22.72 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 65.18 % (14.61 fps, avg 21.45 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 67.61 % (14.61 fps, avg 21.45 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 68.42 % (14.61 fps, avg 21.45 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 70.85 % (14.61 fps, avg 21.45 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 71.26 % (13.88 fps, avg 20.18 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 73.68 % (13.88 fps, avg 20.18 fps, ETA 00h00m03s)[21:41:15] reader: done. 1 scr changes

Encoding: task 1 of 1, 78.14 % (13.88 fps, avg 20.18 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 78.14 % (13.88 fps, avg 20.18 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 80.16 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 80.57 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.00 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)
Encoding: task 1 of 1, 83.40 % (14.39 fps, avg 19.52 fps, ETA 00h00m02s)[21:41:23] work: average encoding speed for job is 19.517103 fps
[21:41:23] vfr: lost time: 0 (0 frames)
[21:41:23] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:41:23] aac-decoder done: 463 frames, 0 decoder errors
[21:41:23] h264-decoder done: 247 frames, 0 decoder errors
[21:41:23] sync: got 247 frames, 247 expected
[21:41:23] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:2     Avg QP:15.54  size: 44184
x264 [info]: frame P:97    Avg QP:17.69  size: 11506
x264 [info]: frame B:148   Avg QP:20.39  size:  2622
x264 [info]: consecutive B-frames:  1.2% 56.7%  0.0% 42.1%
x264 [info]: mb I  I16..4: 35.6% 45.1% 19.3%
x264 [info]: mb P  I16..4:  3.7%  3.2%  0.4%  P16..4: 26.7%  5.9%  3.3%  0.0%  0.0%    skip:56.8%
x264 [info]: mb B  I16..4:  0.3%  0.2%  0.0%  B16..8: 16.0%  1.4%  0.1%  direct: 2.4%  skip:79.5%  L0:39.1% L1:56.5% BI: 4.4%
x264 [info]: 8x8 transform intra:43.4% inter:69.0%
x264 [info]: coded y,uvDC,uvAC intra: 21.9% 16.8% 4.0% inter: 5.2% 7.5% 0.1%
x264 [info]: i16 v,h,dc,p: 20% 50% 17% 13%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 27% 50%  1%  1%  1%  1%  1%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 40% 17%  2%  3%  3%  3%  2%  3%
x264 [info]: i8c dc,h,v,p: 79% 11%  9%  1%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 65.4%  6.1% 19.6%  8.9%
x264 [info]: ref B L0: 83.0% 13.7%  3.3%
x264 [info]: ref B L1: 97.5%  2.5%
x264 [info]: kb/s:1289.48
[21:41:23] mux: track 0, 247 frames, 1592421 bytes, 1284.21 kbps, fifo 256
[21:41:23] mux: track 1, 464 frames, 2818 bytes, 2.27 kbps, fifo 512
[21:41:23] libhb: work result = 0

Encode done!
HandBrake has exited.
@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

Would it be possible to share a sample of one of the mov's that are causing the crash?

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

Good idea ... here are three videos. 2 MOVs that are not working (the one named NotWorkingMOV_2 is the one in the logs above), and there is also 1 MP4 that is working fine for me. Thanks for your continued help

HandBrake_Videos.zip

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

I'm not seeing a crash in my test environment with this build.

However, I notice the samples you uploaded don't have audio where as the logs above do have audio. Those samples defiantly reproduce the problem?

The other possibility is one one of the dependencies HandBrake relies on is faulty on your system but I have a different version. Testing the flatpak would possibly rule that out.
https://flatpak.org/setup/Ubuntu/
https://flathub.org/apps/search/handbrake

Failing all that I could provide you a compiled build with debug symbols included (or you can compile yourself) and I'll give you a couple commands to run with the gdb tool so we can see specifically where it's crashing if your up for that?

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

It is the exact same videos, and I have just double-checked them here in this image (where the left is the zipped folder I sent you, and the right set are the video files I am using in the HandBrakeCLI command on the server). So I am not sure about the audio as you have said, because they are the same.

I have never used or heard of flatpak before this thread when you mentioned it previously. I will try this and let you know in a few minutes. Otherwise, I am open to your last comment as well!

image

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

I have tried with the SeatedCalf_Smaller.mov (the NotWorkingMOV_1.mov) using flatpak, and it did successfully encode it. But I have no idea why it is not working on the other environments.

Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[18:50:29] hb_init: starting libhb thread
[18:50:29] thread 7f4a10234700 started ("libhb")
HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr
1 CPU detected
Opening ./media/temporary/SeatedCalf_Smaller.mov...
[18:50:29] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
[18:50:29]  - Intel microarchitecture Haswell
[18:50:29]  - logical processor count: 1
[18:50:29] hb_scan: path=./media/temporary/SeatedCalf_Smaller.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image ./media/temporary/SeatedCalf_Smaller.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[18:50:30] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:50:30] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './media/temporary/SeatedCalf_Smaller.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2019-07-10T04:09:12.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: MacBookPro14,3
    com.apple.quicktime.software: Mac OS X 10.14.3 (18D109)
    com.apple.quicktime.creationdate: 2019-06-17T10:01:55-0400
  Duration: 00:00:05.10, start: 0.000000, bitrate: 17989 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 2302x1296 [SAR 1:1 DAR 1151:648], 17941 kb/s, 60.08 fps, 60 tbr, 6k tbn, 12k tbc (default)
    Metadata:
      creation_time   : 2019-07-10T04:09:12.000000Z
      handler_name    : Core Media Video
      encoder         : H.264
[18:50:30] scan: decoding previews for title 1

Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 10, 100.00 %[18:50:30] scan: 10 previews, 2302x1296, 60.214 fps, autocrop = 0/0/0/0, aspect 1.78:1, PAR 1:1
[18:50:30] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ./media/temporary/SeatedCalf_Smaller.mov
  + duration: 00:00:05
  + size: 2302x1296, pixel aspect: 1/1, display aspect: 1.78, 60.214 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:05
  + audio tracks:
  + subtitle tracks:
[18:50:31] 1 job(s) to process
[18:50:31] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "./media/SeatedCalf.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1296,
                    "width": 2302
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "./media/temporary/SeatedCalf_Smaller.mov",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[18:50:31] starting job
[18:50:31] job configuration:
[18:50:31]  * source
[18:50:31]    + ./media/temporary/SeatedCalf_Smaller.mov
[18:50:31]    + title 1, chapter(s) 1 to 1
[18:50:31]    + container: mov,mp4,m4a,3gp,3g2,mj2
[18:50:31]    + data rate: 17989 kbps
[18:50:31]  * destination
[18:50:31]    + ./media/SeatedCalf.mp4
[18:50:31]    + container: MPEG-4 (libavformat)
[18:50:31]  * video track
[18:50:31]    + decoder: h264
[18:50:31]      + bitrate 17941 kbps
[18:50:31]    + filters
[18:50:31]      + Framerate Shaper (mode=0)
[18:50:31]        + frame rate: same as source (around 60.214 fps)
[18:50:31]      + Crop and Scale (width=2302:height=1296:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:50:31]        + source: 2302 * 1296, crop (0/0/0/0): 2302 * 1296, scale: 2302 * 1296
[18:50:31]    + Output geometry
[18:50:31]      + storage dimensions: 2302 x 1296
[18:50:31]      + pixel aspect ratio: 1 : 1
[18:50:31]      + display dimensions: 2302 x 1296
[18:50:31]    + encoder: H.264 (libx264)
[18:50:31]      + preset:  medium
[18:50:31]      + profile: auto
[18:50:31]      + level:   auto
[18:50:31]      + quality: 22.00 (RF)
[18:50:31]      + color profile: 1-1-1
[18:50:31] sync: expecting 307 video frames
[18:50:31] encx264: min-keyint: 60, keyint: 600
[18:50:31] encx264: encoding at constant RF 22.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 5.1, 4:2:0, 8-bit

Encoding: task 1 of 1, 0.00 %[18:50:31] sync: first pts video is 0
[18:50:31] sync: Chapter 1 at frame 1 time 0

Encoding: task 1 of 1, 4.23 %
Encoding: task 1 of 1, 8.47 %
Encoding: task 1 of 1, 12.05 %
Encoding: task 1 of 1, 14.33 %
Encoding: task 1 of 1, 16.94 %
Encoding: task 1 of 1, 18.57 %
Encoding: task 1 of 1, 21.17 %
Encoding: task 1 of 1, 21.50 %
Encoding: task 1 of 1, 21.82 %
Encoding: task 1 of 1, 22.80 %
Encoding: task 1 of 1, 22.80 %
Encoding: task 1 of 1, 22.80 %
Encoding: task 1 of 1, 22.80 %
Encoding: task 1 of 1, 23.13 %
Encoding: task 1 of 1, 23.45 % (17.99 fps, avg 17.99 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 24.43 % (17.99 fps, avg 17.99 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 24.76 % (17.99 fps, avg 17.99 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 26.06 % (8.72 fps, avg 14.96 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 26.71 % (8.72 fps, avg 14.96 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 27.69 % (8.72 fps, avg 14.96 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 28.01 % (8.72 fps, avg 14.96 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 29.32 % (5.00 fps, avg 13.71 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 29.97 % (5.00 fps, avg 13.71 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 31.27 % (5.00 fps, avg 13.71 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 31.60 % (7.64 fps, avg 13.20 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 32.90 % (7.64 fps, avg 13.20 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.22 % (7.64 fps, avg 13.20 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 34.20 % (8.43 fps, avg 12.46 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 34.85 % (8.43 fps, avg 12.46 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 36.16 % (8.43 fps, avg 12.46 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 36.48 % (8.43 fps, avg 12.46 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 37.46 % (8.65 fps, avg 12.08 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 37.79 % (8.65 fps, avg 12.08 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 39.09 % (8.65 fps, avg 12.08 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 39.41 % (8.65 fps, avg 12.08 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 40.72 % (7.80 fps, avg 11.56 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 41.04 % (7.80 fps, avg 11.56 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 42.02 % (7.80 fps, avg 11.56 fps, ETA 00h00m16s)
Encoding: task 1 of 1, 42.67 % (8.11 fps, avg 11.25 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 43.65 % (8.11 fps, avg 11.25 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 44.30 % (8.11 fps, avg 11.25 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 45.28 % (7.81 fps, avg 10.99 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 45.93 % (7.81 fps, avg 10.99 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 46.58 % (7.81 fps, avg 10.99 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 47.23 % (7.81 fps, avg 10.99 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 47.88 % (7.50 fps, avg 10.61 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 48.53 % (7.50 fps, avg 10.61 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 49.51 % (7.50 fps, avg 10.61 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 50.16 % (7.50 fps, avg 10.61 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 50.81 % (7.81 fps, avg 10.50 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 51.14 % (7.81 fps, avg 10.50 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 52.44 % (7.81 fps, avg 10.50 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 52.44 % (7.81 fps, avg 10.50 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 53.75 % (7.05 fps, avg 10.15 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 53.75 % (7.05 fps, avg 10.15 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 54.72 % (7.05 fps, avg 10.15 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 55.37 % (7.18 fps, avg 9.97 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 56.03 % (7.18 fps, avg 9.97 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 56.68 % (7.18 fps, avg 9.97 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 57.33 % (7.18 fps, avg 9.97 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 58.31 % (6.47 fps, avg 9.75 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 58.96 % (6.47 fps, avg 9.75 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 59.28 % (6.47 fps, avg 9.75 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 60.26 % (7.18 fps, avg 9.66 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 60.59 % (7.18 fps, avg 9.66 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 61.56 % (7.18 fps, avg 9.66 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 62.21 % (7.18 fps, avg 9.66 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 62.87 % (7.18 fps, avg 9.52 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 63.52 % (7.18 fps, avg 9.52 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 64.17 % (7.18 fps, avg 9.52 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 64.82 % (7.18 fps, avg 9.52 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 65.80 % (7.18 fps, avg 9.36 fps, ETA 00h00m11s)
Encoding: task 1 of 1, 66.45 % (7.18 fps, avg 9.36 fps, ETA 00h00m11s)
Encoding: task 1 of 1, 67.10 % (7.18 fps, avg 9.36 fps, ETA 00h00m11s)
Encoding: task 1 of 1, 67.43 % (6.87 fps, avg 9.26 fps, ETA 00h00m10s)
Encoding: task 1 of 1, 68.73 % (6.87 fps, avg 9.26 fps, ETA 00h00m10s)
Encoding: task 1 of 1, 69.06 % (6.87 fps, avg 9.26 fps, ETA 00h00m10s)
Encoding: task 1 of 1, 70.03 % (7.18 fps, avg 9.20 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 70.36 % (7.18 fps, avg 9.20 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 71.34 % (7.18 fps, avg 9.20 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 71.99 % (7.18 fps, avg 9.20 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 72.64 % (7.18 fps, avg 9.08 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 73.29 % (7.18 fps, avg 9.08 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 74.27 % (7.18 fps, avg 9.08 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 74.59 % (7.18 fps, avg 9.08 fps, ETA 00h00m09s)
Encoding: task 1 of 1, 75.57 % (7.35 fps, avg 9.01 fps, ETA 00h00m08s)
Encoding: task 1 of 1, 75.90 % (7.35 fps, avg 9.01 fps, ETA 00h00m08s)
Encoding: task 1 of 1, 76.87 % (7.35 fps, avg 9.01 fps, ETA 00h00m08s)
Encoding: task 1 of 1, 77.20 % (7.35 fps, avg 9.01 fps, ETA 00h00m08s)
Encoding: task 1 of 1, 78.50 % (6.76 fps, avg 8.89 fps, ETA 00h00m07s)
Encoding: task 1 of 1, 78.50 % (6.76 fps, avg 8.89 fps, ETA 00h00m07s)
Encoding: task 1 of 1, 79.48 % (6.76 fps, avg 8.89 fps, ETA 00h00m07s)
Encoding: task 1 of 1, 79.80 % (6.82 fps, avg 8.82 fps, ETA 00h00m07s)
Encoding: task 1 of 1, 80.46 % (6.82 fps, avg 8.82 fps, ETA 00h00m07s)
Encoding: task 1 of 1, 80.78 % (6.82 fps, avg 8.82 fps, ETA 00h00m07s)
Encoding: task 1 of 1, 81.76 % (5.94 fps, avg 8.68 fps, ETA 00h00m06s)
Encoding: task 1 of 1, 82.08 % (5.94 fps, avg 8.68 fps, ETA 00h00m06s)[18:51:00] reader: done. 1 scr changes

Encoding: task 1 of 1, 82.74 % (5.94 fps, avg 8.68 fps, ETA 00h00m06s)
Encoding: task 1 of 1, 83.06 % (5.94 fps, avg 8.68 fps, ETA 00h00m06s)
Encoding: task 1 of 1, 83.39 % (5.54 fps, avg 8.53 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 84.36 % (5.54 fps, avg 8.53 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 85.02 % (5.54 fps, avg 8.53 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 85.34 % (5.26 fps, avg 8.44 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 85.67 % (5.26 fps, avg 8.44 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 86.32 % (5.26 fps, avg 8.44 fps, ETA 00h00m05s)
Encoding: task 1 of 1, 87.62 % (5.25 fps, avg 8.34 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 87.62 % (5.25 fps, avg 8.34 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 88.60 % (5.25 fps, avg 8.34 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 89.25 % (5.25 fps, avg 8.34 fps, ETA 00h00m04s)
Encoding: task 1 of 1, 89.90 % (6.29 fps, avg 8.32 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 90.55 % (6.29 fps, avg 8.32 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 91.53 % (6.29 fps, avg 8.32 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 91.86 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 92.83 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)
Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)[18:51:21] work: average encoding speed for job is 8.284858 fps

Encoding: task 1 of 1, 93.16 % (6.64 fps, avg 8.28 fps, ETA 00h00m03s)[18:51:21] vfr: lost time: 0 (0 frames)
[18:51:21] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:51:21] h264-decoder done: 307 frames, 0 decoder errors
[18:51:21] sync: got 307 frames, 307 expected
[18:51:21] sync: framerate min 60.000 fps, max 103.448 fps, avg 60.148 fps
x264 [info]: frame I:1     Avg QP:20.26  size: 78300
x264 [info]: frame P:92    Avg QP:21.23  size: 18284
x264 [info]: frame B:214   Avg QP:23.29  size:  2852
x264 [info]: consecutive B-frames:  0.3% 20.2%  0.0% 79.5%
x264 [info]: mb I  I16..4: 26.3% 64.0%  9.7%
x264 [info]: mb P  I16..4:  4.0%  6.0%  0.1%  P16..4: 31.1%  4.7%  2.2%  0.0%  0.0%    skip:51.8%
x264 [info]: mb B  I16..4:  0.2%  0.2%  0.0%  B16..8: 17.6%  0.3%  0.0%  direct: 0.3%  skip:81.4%  L0:29.7% L1:69.7% BI: 0.5%
x264 [info]: 8x8 transform intra:59.1% inter:90.7%
x264 [info]: coded y,uvDC,uvAC intra: 16.9% 46.1% 12.3% inter: 2.5% 6.2% 0.0%
x264 [info]: i16 v,h,dc,p: 32% 34% 12% 22%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 17% 57%  1%  2%  1%  2%  1%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 29% 18%  4%  8%  6%  7%  3%  3%
x264 [info]: i8c dc,h,v,p: 60% 20% 16%  3%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 70.3%  7.9% 15.7%  6.1%
x264 [info]: ref B L0: 83.8% 11.3%  4.9%
x264 [info]: ref B L1: 97.3%  2.7%
x264 [info]: kb/s:3715.78
[18:51:21] mux: track 0, 307 frames, 2370697 bytes, 3707.76 kbps, fifo 512

Muxing: this may take awhile...[18:51:21] libhb: work result = 0

Encode done!
HandBrake has exited.
@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

Flatpak is a self contained container where we curate all the libraries we use. So it's much more controled where as the ubuntu version uses system libraries which may be versions that we've not tested against.

It feels like this is a crash in an upstream system library.

I have a build running at the moment with debug symbols and you can run a few commands with it, it'll give an indication of where the crash is occurring (hopefully)

Will post this when it's done compiling

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

Great ... I'll try when it's ready

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

https://www.dropbox.com/s/th6lgd1in6e1jih/HandBrakeCLI.tar.gz?dl=0

  1. Install gdb using apt
  2. Extract the tar
  3. gdb ./HandBrakeCLI (using the local copy)
  4. When gdb launches, type: run -i broken.mov -o test.mp4 + any other params you used.
  5. When it crashes, type "bt" and press enter.
  6. Provide the output

Hopefully it tells us what the deal is. Otherwise, flatpak is the way we are heading for all future builds. It's cross distro support and more controlled environment is just a better deal all round.

image

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

Not sure what it's not able to find here ... I am able to get into the gdb for HandBrakeCLI you sent. But then it seems it can't find it once I am there?

I know the input video file exists, so I don't think it is an issue with that

image

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

Try
sudo apt-get install libvpx*

@jstebbins

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

Ugh, different version of libvpx on build machine and target. Scott, you can modify make/include/main.defs to build more of the libs instead of using system libs. I would just comment out the ifneq/endif that disables building a bunch of stuff on linux, i.e.

ifneq (,$(filter $(HOST.system),darwin cygwin mingw))

But if the problem is in a system lib, doing so may "fix" the problem :(

@jstebbins

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

hmm, or scott may be right and the lib is just missing... try that first ;)

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

I have installed using:

sudo apt-get install libvpx*

and it allowed me to use it this time.

However, now as the encoding is progressing, it has paused on 23.45% for about 3 minutes, so I figured that may be the "crash" that Scott was referencing. So I tried the

  1. When it crashes, type "bt" and press enter

but then it continued to stay paused for several minutes as well, without actually "quitting"

image

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

hmm, I'm not 100% sure why that's not segfaulting. You could try ctrl-c and see if it exists cleanly or prints a segfault.

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

I have continued to get memory allocation issues, and is why it is crashing. I think I have to try the process again on a larger AWS instance. I will try soon and let you know

@jstebbins

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

How much memory is available? Encoding 1080p with x264 typically uses about 1GB on my system (fedora linux).

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

I have tried again, and let the process continue ... but for some reason, it just won't ever continue and I quit it with ctrl-c, and then I get the message like this:

image

But here is the log file that was generated during this time. As you can see from here ... it won't get past that 23.45%:

Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[21:41:17] hb_init: starting libhb thread
[21:41:17] thread 7fffeea82700 started ("libhb")
HandBrake 20190709132553-268e5b7-master (2019071101) - Linux x86_64 - https://handbrake.fr
1 CPU detected
Opening ./media/temporary/SeatedCalf_Smaller.mov...
[21:41:17] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
[21:41:17]  - Intel microarchitecture Haswell
[21:41:17]  - logical processor count: 1
[21:41:17] hb_scan: path=./media/temporary/SeatedCalf_Smaller.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image ./media/temporary/SeatedCalf_Smaller.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[21:41:17] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[21:41:17] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './media/temporary/SeatedCalf_Smaller.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2019-07-10T04:09:12.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: MacBookPro14,3
    com.apple.quicktime.software: Mac OS X 10.14.3 (18D109)
    com.apple.quicktime.creationdate: 2019-06-17T10:01:55-0400
  Duration: 00:00:05.10, start: 0.000000, bitrate: 17989 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 2302x1296 [SAR 1:1 DAR 1151:648], 17941 kb/s, 60.08 fps, 60 tbr, 6k tbn, 12k tbc (default)
    Metadata:
      creation_time   : 2019-07-10T04:09:12.000000Z
      handler_name    : Core Media Video
      encoder         : H.264
[21:41:17] scan: decoding previews for title 1

Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 10, 100.00 %[21:41:18] scan: 10 previews, 2302x1296, 60.214 fps, autocrop = 0/0/0/0, aspect 1.78:1, PAR 1:1
[21:41:18] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ./media/temporary/SeatedCalf_Smaller.mov
  + duration: 00:00:05
  + size: 2302x1296, pixel aspect: 1/1, display aspect: 1.78, 60.214 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:05
  + audio tracks:
  + subtitle tracks:
[21:41:19] 1 job(s) to process
[21:41:19] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "./media/SeatedCalf.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1296,
                    "width": 2302
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "./media/temporary/SeatedCalf_Smaller.mov",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[21:41:19] starting job
[21:41:19] job configuration:
[21:41:19]  * source
[21:41:19]    + ./media/temporary/SeatedCalf_Smaller.mov
[21:41:19]    + title 1, chapter(s) 1 to 1
[21:41:19]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:41:19]    + data rate: 17989 kbps
[21:41:19]  * destination
[21:41:19]    + ./media/SeatedCalf.mp4
[21:41:19]    + container: MPEG-4 (libavformat)
[21:41:19]  * video track
[21:41:19]    + decoder: h264
[21:41:19]      + bitrate 17941 kbps
[21:41:19]    + filters
[21:41:19]      + Framerate Shaper (mode=0)
[21:41:19]        + frame rate: same as source (around 60.214 fps)
[21:41:19]      + Crop and Scale (width=2302:height=1296:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[21:41:19]        + source: 2302 * 1296, crop (0/0/0/0): 2302 * 1296, scale: 2302 * 1296
[21:41:19]    + Output geometry
[21:41:19]      + storage dimensions: 2302 x 1296
[21:41:19]      + pixel aspect ratio: 1 : 1
[21:41:19]      + display dimensions: 2302 x 1296
[21:41:19]    + encoder: H.264 (libx264)
[21:41:19]      + preset:  medium
[21:41:19]      + profile: auto
[21:41:19]      + level:   auto
[21:41:19]      + quality: 22.00 (RF)
[21:41:19]      + color profile: 1-1-1
[21:41:19] sync: expecting 307 video frames
[21:41:19] encx264: min-keyint: 60, keyint: 600
[21:41:19] encx264: encoding at constant RF 22.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 5.1

Encoding: task 1 of 1, 0.00 %[21:41:19] sync: first pts video is 0
[21:41:19] sync: Chapter 1 at frame 1 time 0

Encoding: task 1 of 1, 3.58 %
Encoding: task 1 of 1, 8.47 %
Encoding: task 1 of 1, 11.73 %
Encoding: task 1 of 1, 14.66 %
Encoding: task 1 of 1, 16.61 %
Encoding: task 1 of 1, 18.57 %
Encoding: task 1 of 1, 21.50 %
Encoding: task 1 of 1, 23.13 %
Encoding: task 1 of 1, 23.13 %
Encoding: task 1 of 1, 23.13 %
Encoding: task 1 of 1, 23.13 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.45 %
@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

I tried now with the NotWorkingMOV_2.mov, and this is what the log is showing me. It quit, and it did not take the bt command.

(I did try to do the "WorkingMP4.mp4" and it did continue to work again)

image

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

Yeh, won't get a trace if it exists cleanly.

Not sure what else to suggest to be honest. Would have been nice to track down to a particular dependency but failing that, if you've already done a "apt-get upgrade" then in all probability, ubuntu has a broken dependency shipping at the moment.

In that instance, use the flatpak. Since that works fine, we know the bug isn't in the HandBrake core.

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 12, 2019

Ok ... I will see what I can do with that. Unfortunately, I am building a Node API and, at the moment, am not quite sure how I will incorporate the usage of Flatpak versus HandBrake-JS. Thanks for your help regardless

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 21, 2019

I am back with running into issues -- even with Flatpak usage now. Here are the steps I am taking to cause this issue:

  1. I create brand new instance on EC2, with Ubuntu 18.04
    image

  2. I log into instance for very first time and I follow the instructions here to install Flatpak && Flathub with:

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  1. I follow the instructions here to install HandBrake on Flatpak:
sudo flatpak install flathub fr.handbrake.ghb
  1. I open FileZilla and upload testing videos (attached below) to the server in a newly created "media" folder:
    image

  2. I use the Flatpak command like the following to transcode a video and output a log

flatpak run --command=HandBrakeCLI fr.handbrake.ghb -i source.mov -o output.mp4 &> /path/Log.txt

image

  1. I run the command, and it should transcode. However, after waiting 15 minutes with no action occurring on the terminal ... I try to quit the program, and it will not quit. In fact, the whole server has stopped responding. I restart the server to look at my log file, and this is the response, where you can see it has gotten stuck at one point:
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[04:29:45] hb_init: starting libhb thread
[04:29:45] thread 7f7c35626700 started ("libhb")
HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr
1 CPU detected
Opening ./media/temporary/NotWorkingMOV_1.mov...
[04:29:45] CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
[04:29:45]  - Intel microarchitecture Haswell
[04:29:45]  - logical processor count: 1
[04:29:45] hb_scan: path=./media/temporary/NotWorkingMOV_1.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image ./media/temporary/NotWorkingMOV_1.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[04:29:45] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[04:29:45] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './media/temporary/NotWorkingMOV_1.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2019-07-10T04:09:12.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: MacBookPro14,3
    com.apple.quicktime.software: Mac OS X 10.14.3 (18D109)
    com.apple.quicktime.creationdate: 2019-06-17T10:01:55-0400
  Duration: 00:00:05.10, start: 0.000000, bitrate: 17989 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 2302x1296 [SAR 1:1 DAR 1151:648], 17941 kb/s, 60.08 fps, 60 tbr, 6k tbn, 12k tbc (default)
    Metadata:
      creation_time   : 2019-07-10T04:09:12.000000Z
      handler_name    : Core Media Video
      encoder         : H.264
[04:29:45] scan: decoding previews for title 1

Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 10, 100.00 %[04:29:46] scan: 10 previews, 2302x1296, 60.214 fps, autocrop = 0/0/0/0, aspect 1.78:1, PAR 1:1
[04:29:46] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ./media/temporary/NotWorkingMOV_1.mov
  + duration: 00:00:05
  + size: 2302x1296, pixel aspect: 1/1, display aspect: 1.78, 60.214 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:05
  + audio tracks:
  + subtitle tracks:
[04:29:46] 1 job(s) to process
[04:29:46] json job:
{
    "Audio": {
        "AudioList": [],
        "CopyMask": [],
        "FallbackEncoder": 0
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "./media/Testing.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1296,
                    "width": 2302
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "./media/temporary/NotWorkingMOV_1.mov",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[04:29:46] starting job
[04:29:46] job configuration:
[04:29:46]  * source
[04:29:46]    + ./media/temporary/NotWorkingMOV_1.mov
[04:29:46]    + title 1, chapter(s) 1 to 1
[04:29:46]    + container: mov,mp4,m4a,3gp,3g2,mj2
[04:29:46]    + data rate: 17989 kbps
[04:29:46]  * destination
[04:29:46]    + ./media/Testing.mp4
[04:29:46]    + container: MPEG-4 (libavformat)
[04:29:46]  * video track
[04:29:46]    + decoder: h264
[04:29:46]      + bitrate 17941 kbps
[04:29:46]    + filters
[04:29:46]      + Framerate Shaper (mode=0)
[04:29:46]        + frame rate: same as source (around 60.214 fps)
[04:29:46]      + Crop and Scale (width=2302:height=1296:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[04:29:46]        + source: 2302 * 1296, crop (0/0/0/0): 2302 * 1296, scale: 2302 * 1296
[04:29:46]    + Output geometry
[04:29:46]      + storage dimensions: 2302 x 1296
[04:29:46]      + pixel aspect ratio: 1 : 1
[04:29:46]      + display dimensions: 2302 x 1296
[04:29:46]    + encoder: H.264 (libx264)
[04:29:46]      + preset:  medium
[04:29:46]      + profile: auto
[04:29:46]      + level:   auto
[04:29:46]      + quality: 22.00 (RF)
[04:29:46]      + color profile: 1-1-1
[04:29:46] sync: expecting 307 video frames
[04:29:46] encx264: min-keyint: 60, keyint: 600
[04:29:46] encx264: encoding at constant RF 22.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 5.1, 4:2:0, 8-bit

Encoding: task 1 of 1, 0.00 %[04:29:46] sync: first pts video is 0
[04:29:46] sync: Chapter 1 at frame 1 time 0

Encoding: task 1 of 1, 5.54 %
Encoding: task 1 of 1, 11.07 %
Encoding: task 1 of 1, 15.64 %
Encoding: task 1 of 1, 19.22 %
Encoding: task 1 of 1, 22.15 %
Encoding: task 1 of 1, 22.80 %
Encoding: task 1 of 1, 22.80 %
Encoding: task 1 of 1, 23.45 %
Encoding: task 1 of 1, 23.78 %
Encoding: task 1 of 1, 24.43 %
Encoding: task 1 of 1, 24.43 %
Encoding: task 1 of 1, 25.73 %
Encoding: task 1 of 1, 26.38 %
Encoding: task 1 of 1, 26.71 %
Encoding: task 1 of 1, 26.71 %
Encoding: task 1 of 1, 27.69 % (8.50 fps, avg 18.27 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 28.99 % (8.50 fps, avg 18.27 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 28.99 % (8.50 fps, avg 18.27 fps, ETA 00h00m12s)
Encoding: task 1 of 1, 29.97 % (5.56 fps, avg 16.20 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 30.62 % (5.56 fps, avg 16.20 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 30.94 % (5.56 fps, avg 16.20 fps, ETA 00h00m13s)
Encoding: task 1 of 1, 31.92 % (6.82 fps, avg 14.92 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 32.25 % (6.82 fps, avg 14.92 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 32.90 % (6.82 fps, avg 14.92 fps, ETA 00h00m14s)
Encoding: task 1 of 1, 33.22 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 33.55 % (6.16 fps, avg 13.38 fps, ETA 00h00m15s)
Encoding: task 1 of 1, 34.20 % (1.72 fps, avg 7.59 fps, ETA 00h00m26s)
Encoding: task 1 of 1, 34.20 % (1.72 fps, avg 7.59 fps, ETA 00h00m26s)
Encoding: task 1 of 1, 34.85 % (1.08 fps, avg 7.19 fps, ETA 00h00m27s)
Encoding: task 1 of 1, 34.85 % (1.08 fps, avg 7.19 fps, ETA 00h00m27s)
Encoding: task 1 of 1, 34.85 % (1.08 fps, avg 7.19 fps, ETA 00h00m27s)
Encoding: task 1 of 1, 35.18 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)
Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)Signal 2 received, terminating - do it again in case it gets stuck

Encoding: task 1 of 1, 35.83 % (0.70 fps, avg 6.69 fps, ETA 00h00m29s)[04:33:16] work: average encoding speed for job is 0.530704 fps
[04:33:25] vfr: lost time: 0 (0 frames)
[04:33:29] vfr: gained time: 0 (0 frames) (0 not accounted for)
[04:37:51] h264-decoder done: 147 frames, 0 decoder errors
[04:37:51] sync: got 120 frames, 307 expected
[04:37:52] sync: framerate min 60.000 fps, max 103.448 fps, avg 60.378 fps
x264 [info]: frame I:1     Avg QP:20.26  size: 78300
x264 [info]: frame P:14    Avg QP:20.47  size: 12036
x264 [info]: frame B:26    Avg QP:23.37  size:  1484
x264 [info]: consecutive B-frames:  2.4% 39.0%  0.0% 58.5%
x264 [info]: mb I  I16..4: 26.3% 64.0%  9.7%
x264 [info]: mb P  I16..4:  2.3%  3.0%  0.0%  P16..4: 24.9%  3.2%  2.0%  0.0%  0.0%    skip:64.5%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 14.6%  0.0%  0.0%  direct: 0.2%  skip:85.2%  L0:21.6% L1:78.3% BI: 0.1%
x264 [info]: 8x8 transform intra:60.6% inter:90.4%
x264 [info]: coded y,uvDC,uvAC intra: 30.3% 51.2% 13.4% inter: 2.0% 4.7% 0.0%
x264 [info]: i16 v,h,dc,p: 34% 36% 11% 19%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 33%  3%  3%  2%  3%  3%  3%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 28% 10%  5% 10%  7%  7%  4%  3%
x264 [info]: i8c dc,h,v,p: 53% 23% 18%  6%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 73.7%  6.4% 14.4%  5.5%
x264 [info]: ref B L0: 81.0% 16.4%  2.6%
x264 [info]: ref B L1: 97.2%  2.8%
x264 [info]: kb/s:3387.76
[04:37:52] mux: track 0, 40 frames, 284279 bytes, 3340.01 kbps, fifo 64
HandBrake has exited.

Here is the attached videos (specific one used here is the "NotWorkingMOV_1.mov")
HandBrake_Videos.zip

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 21, 2019

What instance size are you running on?

@sr55

This comment has been minimized.

Copy link
Contributor

commented Jul 21, 2019

I just spun up a t2.micro and very quickly hit the memory ceiling. There is no swap by default so it's basically hanging on memory allocations.

Swapping to a bigger instance would resolve that. I'm guessing you'll probably need somewhere in the ballpark of 1.2 to 2GB free memory to be able to encode this.

Guessing you'd need a t2.small or potentially even a t2.medium

@ridgerobinson

This comment has been minimized.

Copy link
Author

commented Jul 22, 2019

Ok ... reproducing the same steps I outlined in a t2.small instance was able to transcode successfully all of the videos I had sent in the HandBrake_Videos.zip folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.