Encoding problem

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
buschu
Posts: 3
Joined: Tue Feb 25, 2020 4:18 pm

Encoding problem

Post by buschu »

Description of problem or question:

Picture shakes when using automatic crop.

Steps to reproduce the problem (If Applicable):

I've encoded https://pdvideosdaserste-a.akamaihd.net ... 617168.mp4 with the following settings: Automatic crop (78 / 80 / 0 / 0), 1920x922, Audio pass through. If I changed crop to 80 / 80 / 0 / 0, the picture was OK!



HandBrake version (e.g., 1.0.0):

1.3.1


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

Windows 10 1909 build 18363.657


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

Code: Select all

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
Ram: 16328 MB, 
GPU Information:
  Citrix Indirect Display Adapter - 12.40.44.247
  NVIDIA GeForce GT 520 - 23.21.13.9135
Screen: 1920x1080
Temp Dir: C:\Users\Burkhard\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Burkhard\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[06:32:25] base preset: Mein Standard
[06:32:25] hb_init: starting libhb thread
[06:32:25] Starting work at: Mon Feb 24 06:32:25 2020
[06:32:25] 1 job(s) to process
[06:32:25] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Kapitel 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\Aufnahmen\\Tatort - Ich hab im Traum geweinet.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "80",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "78",
          "height": "922",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Aufnahmen\\Mediathekview\\Terra X\\Tatort-Ich hab im Traum geweinet-1525061903.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[06:32:25] CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
[06:32:25]  - Intel microarchitecture Ivy Bridge
[06:32:25]  - logical processor count: 4
[06:32:25] Intel Quick Sync Video support: no
[06:32:25] hb_scan: path=E:\Aufnahmen\Mediathekview\Terra X\Tatort-Ich hab im Traum geweinet-1525061903.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Aufnahmen\Mediathekview\Terra X\Tatort-Ich hab im Traum geweinet-1525061903.mp4
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(E:\Aufnahmen\Mediathekview\Terra X\Tatort-Ich hab im Traum geweinet-1525061903.mp4\) failed
[06:32:26] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[06:32:26] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Aufnahmen\Mediathekview\Terra X\Tatort-Ich hab im Traum geweinet-1525061903.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isom
    creation_time   : 2020-02-17T13:14:19.000000Z
    encoder         : Capella Systems Cambria 4.3.0.46201
    encoder-eng     : Capella Systems Cambria 4.3.0.46201
  Duration: 01:29:33.20, start: 0.000000, bitrate: 6684 kb/s
    Stream #0:0(deu): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 6489 kb/s, 50 fps, 50 tbr, 50 tbn, 100 tbc (default)
    Metadata:
      creation_time   : 2020-02-17T13:14:19.000000Z
    Stream #0:1(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 188 kb/s (default)
    Metadata:
      creation_time   : 2020-02-17T13:14:19.000000Z
[06:32:26] scan: decoding previews for title 1
[06:32:27] scan: audio 0x1: aac, rate=48000Hz, bitrate=188717 Deutsch (AAC LC) (2.0 ch) (188 kbps)
[06:32:28] scan: 10 previews, 1920x1080, 50.000 fps, autocrop = 78/80/0/0, aspect 16:9, PAR 1:1
[06:32:28] scan: supported video decoders: avcodec qsv
[06:32:28] libhb: scan thread found 1 valid title(s)
[06:32:28] Skipping subtitle scan.  No suitable subtitle tracks.
[06:32:28] Starting Task: Encoding Pass
[06:32:28] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[06:32:28] Auto Passthru: fallback is AC3
[06:32:28] Auto Passthru: using AAC Passthru for track 1
[06:32:28] work: only 1 chapter, disabling chapter markers
[06:32:28] job configuration:
[06:32:28]  * source
[06:32:28]    + E:\Aufnahmen\Mediathekview\Terra X\Tatort-Ich hab im Traum geweinet-1525061903.mp4
[06:32:28]    + title 1, chapter(s) 1 to 1
[06:32:28]    + container: mov,mp4,m4a,3gp,3g2,mj2
[06:32:28]    + data rate: 6684 kbps
[06:32:28]  * destination
[06:32:28]    + E:\Aufnahmen\Tatort - Ich hab im Traum geweinet.mp4
[06:32:28]    + container: MPEG-4 (libavformat)
[06:32:28]      + align initial A/V stream timestamps
[06:32:28]  * video track
[06:32:28]    + decoder: h264
[06:32:28]      + bitrate 6489 kbps
[06:32:28]    + filters
[06:32:28]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[06:32:28]      + Decomb (mode=39)
[06:32:28]      + Framerate Shaper (mode=1)
[06:32:28]        + frame rate: 50.000 fps -> constant 50.000 fps
[06:32:28]      + Crop and Scale (width=1920:height=922:crop-top=78:crop-bottom=80:crop-left=0:crop-right=0)
[06:32:28]        + source: 1920 * 1080, crop (78/80/0/0): 1920 * 922, scale: 1920 * 922
[06:32:28]    + Output geometry
[06:32:28]      + storage dimensions: 1920 x 922
[06:32:28]      + pixel aspect ratio: 1 : 1
[06:32:28]      + display dimensions: 1920 x 922
[06:32:28]    + encoder: H.264 (libx264)
[06:32:28]      + preset:  veryfast
[06:32:28]      + profile: main
[06:32:28]      + level:   4.0
[06:32:28]      + quality: 20.00 (RF)
[06:32:28]      + color profile: 1-1-1
[06:32:28]  * audio track 1
[06:32:28]    + decoder: Deutsch (AAC LC) (2.0 ch) (188 kbps) (track 1, id 0x1)
[06:32:28]      + bitrate: 188 kbps, samplerate: 48000 Hz
[06:32:28]    + AAC Passthru
[06:32:28] sync: expecting 268660 video frames
[06:32:28] encx264: min-keyint: 50, keyint: 500
[06:32:28] encx264: encoding at constant RF 20.000000
[06:32:28] apply_h264_level [warning]: framerate (50.000) too high for level 4.0 at 1920x922 (max. 35.310)
[06:32:28] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [warning]: MB rate (348000) > level limit (245760)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[06:32:28] sync: first pts video is 0
[06:32:28] sync: "Kapitel 1" (1) at frame 1 time 0
[06:32:28] sync: first pts audio 0x1 is 0
[08:05:11] reader: done. 1 scr changes
[08:05:12] work: average encoding speed for job is 48.282478 fps
[08:05:12] comb detect: heavy 30 | light 338 | uncombed 268290 | total 268658
[08:05:13] decomb: deinterlaced 30 | blended 338 | unfiltered 268290 | total 268658
[08:05:13] vfr: 268658 frames output, 0 dropped and 0 duped for CFR/PFR
[08:05:13] vfr: lost time: 0 (0 frames)
[08:05:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[08:05:13] aac-decoder done: 251869 frames, 0 decoder errors
[08:05:13] h264-decoder done: 268658 frames, 0 decoder errors
[08:05:13] sync: got 268658 frames, 268660 expected
[08:05:13] sync: framerate min 50.000 fps, max 50.000 fps, avg 50.000 fps
x264 [info]: frame I:2313  Avg QP:17.19  size: 61503
x264 [info]: frame P:72604 Avg QP:20.41  size: 18542
x264 [info]: frame B:193741 Avg QP:21.20  size:  3850
x264 [info]: consecutive B-frames:  1.3%  7.1%  1.5% 90.1%
x264 [info]: mb I  I16..4: 65.3%  0.0% 34.7%
x264 [info]: mb P  I16..4: 22.9%  0.0%  3.4%  P16..4: 30.8%  9.9%  3.1%  0.0%  0.0%    skip:29.9%
x264 [info]: mb B  I16..4:  1.9%  0.0%  0.2%  B16..8: 11.8%  1.8%  0.1%  direct: 9.0%  skip:75.2%  L0:50.2% L1:45.6% BI: 4.3%
x264 [info]: coded y,uvDC,uvAC intra: 16.1% 61.9% 10.1% inter: 2.5% 15.8% 0.1%
x264 [info]: i16 v,h,dc,p: 49% 26% 15% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 21% 20%  5%  7%  6%  6%  5%  3%
x264 [info]: i8c dc,h,v,p: 49% 21% 26%  4%
x264 [info]: Weighted P-Frames: Y:0.2% UV:0.1%
x264 [info]: kb/s:3326.74
[08:05:13] mux: track 0, 268658 frames, 2234329631 bytes, 3326.62 kbps, fifo 4096
[08:05:13] mux: track 1, 251869 frames, 126752053 bytes, 188.72 kbps, fifo 4096
[08:05:13] Finished work at: Mon Feb 24 08:05:13 2020
[08:05:13] libhb: work result = 0

# Encode Completed ...

buschu
Posts: 3
Joined: Tue Feb 25, 2020 4:18 pm

Re: Encoding problem

Post by buschu »

It's not an encoding problem, it's a problem of our Samsung TV. If I play the file from our Panasonic UHD player or our Samsung Bluray player the picture is OK!

Regards
Burkhard

User avatar
JohnAStebbins
HandBrake Team
Posts: 5575
Joined: Sat Feb 09, 2008 7:21 pm

Re: Encoding problem

Post by JohnAStebbins »

Interesting. It's been a while since I've run across a device with such a limitation. But the "alignment" option on the dimensions tab is designed to deal with such issues. Try setting the alignment to 8 or 16. That will force the resolution of your output to always align to 8 or 16 pixels. Save a new preset with that change and you won't have to fool around with it again.

Post Reply