Change Output Format & Size

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Cedric
Posts: 2
Joined: Tue Aug 06, 2019 12:20 pm

Change Output Format & Size

Post by Cedric » Tue Aug 06, 2019 1:29 pm

I am new to Handbrake, & haven't found answers in the documentation I have seen - maybe due to lack of understanding Handbrake.
I have screen shots in .jpg format of the summary and video tabs, but can't see where to attach them
Description of problem or question:
1) In the Summary tab the Format box shows MP4, but the Save As line at the bottom shows .m4v and the output is a file with .m4v extension.
Where I change the output to MP4 format?

2) I am trying to convert some .MP4 and some .ts format files located on my computer. All were recorded from TV broadcasts in .ts format. Some years ago I used another video converter to format the older .ts files to MP4 - generally this reduced the ~1.2GB (30minute) files to ~800MB.
When I run Handbrake and input the .ts (30 min) files it reduces them to 250-400MB size, but when I input the old MP4 files it does not reduce their size.
How can I reduce the size of these MP4 files?
Settings RF 23, MP4, fast 1080p30Web optimised, Align A/V start, codec H.264 (x264)


Steps to reproduce the problem (If Applicable):
Run Handbrake, add a file to the queue and start encode.


HandBrake version (e.g., 1.0.0):
1.2.2 (2019022300)


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


HandBrake Activity Log ***required*** (see How-to get an activity log)
I don't seem to be getting a code from Pastebin.com, so I am putting the activity log file contents below.

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17134.0
CPU: AMD A10-7870K Radeon R7, 12 Compute Cores 4C+8G
Ram: 7108 MB, 
GPU Information:
  AMD Radeon(TM) R7 Graphics - 22.19.677.257
Screen: 1920x1080
Temp Dir: C:\Users\cwynd\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\cwynd\AppData\Roaming\HandBrake

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


# Starting Encode ...

[16:27:30] hb_init: starting libhb thread
[16:27:30] 1 job(s) to process
[16:27:30] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "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": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\SoP\\20190217 103112 [21 Abc] [Songs Of Praise  The Power Of]-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "576",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 64,
    "Den": 45
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "F:\\SoPraise\\20190217_103112_[21 ABC]_[Songs of Praise  The Power of].ts"
  },
  "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": "fast",
    "Profile": "main",
    "Quality": 23.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[16:27:30] CPU:
[16:27:30]  - logical processor count: 4
[16:27:30] Intel Quick Sync Video support: no
[16:27:30] hb_scan: path=F:\SoPraise\20190217_103112_[21 ABC]_[Songs of Praise  The Power of].ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image F:\SoPraise\20190217_103112_[21 ABC]_[Songs of Praise  The Power of].ts
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
[16:27: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
[16:27:30] dvd: not a dvd - trying as a stream/file instead
[mp3float @ 000001a7f78a6e40] Header missing
[mpeg2video @ 000001a7f78a29c0] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a29c0] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a29c0] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a29c0] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a29c0] Invalid frame dimensions 0x0.
Input #0, mpegts, from 'F:\SoPraise\20190217_103112_[21 ABC]_[Songs of Praise  The Power of].ts':
  Duration: 00:29:03.49, start: 63588.198989, bitrate: 5561 kb/s
  Program 560
    Metadata:
      service_name    : ABC NEWS
      service_provider: ABC
  Program 561
    Metadata:
      service_name    : ABC
      service_provider: ABC
  Program 562
    Metadata:
      service_name    : ABCComedy/Kids
      service_provider: ABC
  Program 564
    Metadata:
      service_name    : ABC ME
      service_provider: ABC
  Program 563
    Metadata:
      service_name    : ABC
      service_provider: ABC
    Stream #0:0[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x28a](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s
    Stream #0:2[0x240](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:3[0x157d]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0x157c]: Unknown: none ([5][0][0][0] / 0x0005)
  Program 565
    Metadata:
      service_name    : ABC HD
      service_provider: ABC
  Program 566
    Metadata:
      service_name    : Double J
      service_provider: ABC
  Program 567
    Metadata:
      service_name    : ABC Jazz
      service_provider: ABC
[16:27:31] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17007
[16:27:31] scan: decoding previews for title 1
[mp3float @ 000001a7f78a1780] Header missing
[mpeg2video @ 000001a7f78a2e40] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a2e40] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a2e40] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a2e40] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f78a2e40] Invalid frame dimensions 0x0.
[mp2 @ 000001a7f78a3c00] Header missing
[mp2 @ 000001a7f78a3c00] Header missing
[16:27:31] scan: audio 0x1: mp2, rate=48000Hz, bitrate=256000 English (MPEG) (2.0 ch)
[16:27:31] scan: 10 previews, 720x576, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 64:45
[16:27:31] libhb: scan thread found 1 valid title(s)
[16:27:31] Skipping subtitle scan.  No suitable subtitle tracks.
[16:27:31] starting job
[16:27:31] decomb filter thread started for segment 1
[16:27:31] decomb filter thread started for segment 0
[16:27:31] decomb filter thread started for segment 2
[16:27:31] decomb filter thread started for segment 3
[16:27:31] mask filter thread started for segment 3
[16:27:31] decomb check thread started for segment 1
[16:27:31] decomb check thread started for segment 2
[16:27:31] mask erode thread started for segment 0
[16:27:31] mask filter thread started for segment 0
[16:27:31] mask filter thread started for segment 1
[16:27:31] mask filter thread started for segment 2
[16:27:31] decomb check thread started for segment 0
[16:27:31] decomb check thread started for segment 3
[16:27:31] mask erode thread started for segment 1
[16:27:31] mask erode thread started for segment 2
[16:27:31] mask erode thread started for segment 3
[16:27:31] mask dilate thread started for segment 0
[16:27:31] mask dilate thread started for segment 1
[16:27:31] mask dilate thread started for segment 2
[16:27:31] mask dilate thread started for segment 3
[16:27:31] yadif thread started for segment 0
[16:27:31] yadif thread started for segment 1
[16:27:31] yadif thread started for segment 2
[16:27:31] yadif thread started for segment 3
[16:27:31] work: only 1 chapter, disabling chapter markers
[16:27:31] job configuration:
[16:27:31]  * source
[16:27:31]    + F:\SoPraise\20190217_103112_[21 ABC]_[Songs of Praise  The Power of].ts
[16:27:31]    + title 1, chapter(s) 1 to 1
[16:27:31]    + container: mpegts
[16:27:31]    + data rate: 5561 kbps
[16:27:31]  * destination
[16:27:31]    + C:\SoP\20190217 103112 [21 Abc] [Songs Of Praise  The Power Of]-1.m4v
[16:27:31]    + container: MPEG-4 (libavformat)
[16:27:31]      + optimized for HTTP streaming (fast start)
[16:27:31]      + align initial A/V stream timestamps
[16:27:31]  * video track
[16:27:31]    + decoder: mpeg2video
[16:27:31]    + filters
[16:27:31]      + 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)
[16:27:31]      + Decomb (mode=39)
[16:27:31]      + Framerate Shaper (mode=2:rate=27000000/900000)
[16:27:31]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[16:27:31]      + Crop and Scale (width=720:height=576:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[16:27:31]        + source: 720 * 576, crop (0/0/0/0): 720 * 576, scale: 720 * 576
[16:27:31]    + Output geometry
[16:27:31]      + storage dimensions: 720 x 576
[16:27:31]      + pixel aspect ratio: 64 : 45
[16:27:31]      + display dimensions: 1024 x 576
[16:27:31]    + encoder: H.264 (libx264)
[16:27:31]      + preset:  fast
[16:27:31]      + profile: main
[16:27:31]      + level:   4.0
[16:27:31]      + quality: 23.00 (RF)
[16:27:31]      + color profile: 5-1-6
[16:27:31]  * audio track 1
[16:27:31]    + decoder: English (MPEG) (2.0 ch) (track 1, id 0x1)
[16:27:31]      + bitrate: 256 kbps, samplerate: 48000 Hz
[16:27:31]    + mixdown: Stereo
[16:27:31]    + dither: none
[16:27:31]    + encoder: AAC (libavcodec)
[16:27:31]      + bitrate: 160 kbps, samplerate: 48000 Hz
[mp3float @ 000001a7f09c4b80] Header missing
[mpeg2video @ 000001a7f09be280] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f09be280] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f09be280] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f09be280] Invalid frame dimensions 0x0.
[mpeg2video @ 000001a7f09be280] Invalid frame dimensions 0x0.
[16:27:31] sync: expecting 43587 video frames
[16:27:31] encx264: encoding at constant RF 23.000000
[16:27:31] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI1
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[mp2 @ 000001a7f09c3940] Header missing
[16:27:31] sync: first pts video is 0
[16:27:31] sync: first pts audio 0x1 is 0
[16:27:31] sync: "Chapter 1" (1) at frame 10 time 34780
[mp2 @ 000001a7f09c3940] Header missing
[16:29:54] sync: audio 0x1 time went backwards 48 ms, dropped 2 frames. PTS 34166880
[16:29:54] sync: video time went backwards 160 ms, dropped 4 frames. PTS 34137580
[16:29:54] sync: video time went backwards 160 ms, dropped 4 frames. PTS 34155580
[16:29:55] sync: video time went backwards 1960 ms, dropped 49 frames. PTS 34177180
[16:29:55] sync: audio 0x1 time went backwards 2256 ms, dropped 94 frames. PTS 34236000
[16:37:49] reader: done. 1 scr changes
[16:37:51] work: average encoding speed for job is 70.388016 fps
[16:37:51] comb detect: heavy 19408 | light 3440 | uncombed 20736 | total 43584
[16:37:51] decomb: deinterlaced 19408 | blended 3440 | unfiltered 20736 | total 43584
[16:37:51] vfr: 43584 frames output, 0 dropped and 0 duped for CFR/PFR
[16:37:51] vfr: lost time: 0 (0 frames)
[16:37:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:37:51] mp2-decoder done: 72725 frames, 0 decoder errors
[16:37:51] mpeg2video-decoder done: 43632 frames, 0 decoder errors
[16:37:51] sync: got 43584 frames, 43587 expected
[16:37:51] sync: framerate min 8.333 fps, max 25.000 fps, avg 24.998 fps
x264 [info]: frame I:418   Avg QP:19.66  size: 45689
x264 [info]: frame P:12193 Avg QP:23.06  size: 12591
x264 [info]: frame B:30973 Avg QP:26.10  size:  3257
x264 [info]: consecutive B-frames:  2.6%  3.3% 14.1% 80.1%
x264 [info]: mb I  I16..4: 23.5%  0.0% 76.5%
x264 [info]: mb P  I16..4:  3.5%  0.0%  4.4%  P16..4: 41.6% 19.6% 10.4%  0.0%  0.0%    skip:20.5%
x264 [info]: mb B  I16..4:  1.9%  0.0%  0.5%  B16..8: 26.0%  6.4%  0.6%  direct:12.2%  skip:52.4%  L0:38.3% L1:46.7% BI:14.9%
x264 [info]: coded y,uvDC,uvAC intra: 47.5% 81.7% 43.8% inter: 12.5% 28.3% 3.9%
x264 [info]: i16 v,h,dc,p: 44% 19% 19% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 13% 16%  6%  7% 10%  5%  8%  4%
x264 [info]: i8c dc,h,v,p: 46% 15% 30%  9%
x264 [info]: Weighted P-Frames: Y:2.7% UV:1.5%
x264 [info]: ref P L0: 68.4% 31.6%
x264 [info]: ref B L0: 84.2% 15.8%
x264 [info]: ref B L1: 95.6%  4.4%
x264 [info]: kb/s:1254.85
[16:37:52] mux: track 0, 43584 frames, 273468547 bytes, 1254.82 kbps, fifo 4096
[16:37:52] mux: track 1, 81708 frames, 35018350 bytes, 160.68 kbps, fifo 8192
[16:37:52] libhb: work result = 0

# Encode Completed ...



User avatar
s55
HandBrake Team
Posts: 9522
Joined: Sun Dec 24, 2006 1:05 pm

Re: Change Output Format & Size

Post by s55 » Tue Aug 06, 2019 1:39 pm

1. MP4 is M4V (the file extensions are interchangeable but we default to m4v as it's better for compatibility with the Apple Ecosystem with no drawbacks). Rename the file, or change the preference if you don't like this behaviouir.

2. Your TS files are Mp2 (less efficient) going to h.264 (far more efficient). So larger file sizes drops are to be expected than going from h.264 to h.264.
If you want to further reduce your MP4 files, you'll have to adjust the quality slider to reduce the quality slightly.

Cedric
Posts: 2
Joined: Tue Aug 06, 2019 12:20 pm

Re: Change Output Format & Size

Post by Cedric » Wed Aug 07, 2019 12:16 am

OK, that clarifies a few things.
So am I correct that some years ago when I converted the .ts to .MP4, even though the file size reduced a bit (~1.2GB to ~800MB) the settings were for a higher quality than the input file had? If so, what RF setting would be reasonable now to still retain all the quality that the original .ts file had, but reduce file size?

mduell
Veteran User
Posts: 6634
Joined: Sat Apr 21, 2007 8:54 pm

Re: Change Output Format & Size

Post by mduell » Wed Aug 07, 2019 1:32 am

Impossible to say really. Encoder settings matter.

There's always quality loss, you never retain all of it. The trick is keeping the quality loss to small to notice, which has little to do with file size.

Post Reply