# HDHomeRun h265 profile

**URL:** <https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907>\
**Category:** HDHomeRun\
**Created:** [November 1, 2017, 1:49am UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907 "2017-11-01T01:49:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![techpro2004](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@techpro2004](https://discussion.mcebuddy2x.com/u/techpro2004)\
**Post date:** [November 1, 2017, 1:49am UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/1 "2017-11-01T01:49:43Z")

</div>

I figured I would share a new profile I am working on. It converts files to the HDHomerun h265 format. I have only briefly tested it and it currently only supports ffmpeg. Nvenc is working with it. I am not an expert in handbrake so I will leave that part up to someone else. Anyway enough chatting here it is.

```auto
[HDHomeRun H.265]
Description=Use this to remove the commercials and convert the source video into a SiliconDust HDHomeRun compatible MPG file with (H.265/AAC) video/audio.
order=ffmpeg 
ffmpeg-general=-threads 0
ffmpeg-video=-vf yadif=0:-1:1,hqdn3d -vcodec libx265 -preset medium -x265-params crf=18 -f mpegts -map 0:v -sn 
ffmpeg-audio=-acodec libfdk_aac -ab 160k -map 0:a 
ffmpeg-ext=.ts 
ffmpeg-audiodelay=skip  
PreConversionCommercialRemover=true 
RenameExt=.mpg

```

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [November 1, 2017, 6:15pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/2 "2017-11-01T18:15:10Z")

</div>

Great work, give this a whirl and let us know if it works:

```auto
handbrake-general=--decomb --denoise --loose-anamorphic --verbose=2
handbrake-video=--start-at duration:3 -e x265 --encoder-preset medium -q 18
handbrake-audio=-E ffac3 -R auto -B 192 -D 0 -a 1,2,3,4,5
handbrake-audioac3=-E ffac3 -R auto -B 384 -D 0 -a 1,2,3,4,5
handbrake-ext=.mp4
handbrake-remuxto=.ts
handbrake-audiodelay=skip

```

Add this to your profile above and you will have to change the `order` to include `handbrake`

---

<div class="post-metadata">

**Author:** ![techpro2004](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@techpro2004](https://discussion.mcebuddy2x.com/u/techpro2004)\
**Post date:** [November 1, 2017, 6:36pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/3 "2017-11-01T18:36:30Z")

</div>

I am glad you like the profile. Unfortunately the only system that I have with enough power to run a conversion and a intel gpu is haswell based. Hence why I like nvenc. If you run the conversion, I would be more than happy to test the output.

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [November 1, 2017, 8:02pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/4 "2017-11-01T20:02:45Z")

</div>

I am curious though why you switched from ac3 to aac. Is that the default on HDHR?

---

<div class="post-metadata">

**Author:** ![techpro2004](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@techpro2004](https://discussion.mcebuddy2x.com/u/techpro2004)\
**Post date:** [November 1, 2017, 9:27pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/5 "2017-11-01T21:27:58Z")

</div>

I initially tried it with ac3 audio unfortunately there was a lot of noise in the stream when I played it back with the hdhomerun windows 10 app. Switching to aac audio seemed to clean this up. I am not sure what is the default audio format for h265 video on hdhomerun. I am on fios and do not receive any h265 channels. Fios is very behind the times. They don’t even support ipv6. However both h264 and mpeg2 use ac3 audio.

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [November 1, 2017, 9:50pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/6 "2017-11-01T21:50:03Z")

</div>

Okay and I just realized that you’re missing the ffmpeg-audioac3 line from your profile. That’s what MCEBuddy will use if the source video has an ac3 audio stream (which most videos today).

I’ll run a test and upload it for you to test.

---

<div class="post-metadata">

**Author:** ![techpro2004](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@techpro2004](https://discussion.mcebuddy2x.com/u/techpro2004)\
**Post date:** [November 1, 2017, 10:42pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/7 "2017-11-01T22:42:23Z")

</div>

I ran a conversion of a mpeg2/ac3 file to h265/aac using nvenc without that line and it worked fine. My guess is that line is only necessary if it is using different parameters from the ffmpeg-audio line. Please let me know what directory/server it is in as it has been a while since I have shared files on mcebuddy.

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [November 1, 2017, 11:16pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/8 "2017-11-01T23:16:19Z")

</div>

> [@techpro2004](#):
>
> My guess is that line is only necessary if it is using different parameters from the ffmpeg-audio line

That’s correct, if you want separate settings for converting if the source is ac3 and separate for non ac3 you add the audioac3 line, otherwise it’ll use the audio line for both.

---

<div class="post-metadata">

**Author:** ![techpro2004](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@techpro2004](https://discussion.mcebuddy2x.com/u/techpro2004)\
**Post date:** [November 2, 2017, 12:01am UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/9 "2017-11-02T00:01:11Z")

</div>

Sounds good to me. Let me know when you get that test file uploaded.

---

<div class="post-metadata">

**Author:** ![techpro2004](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@techpro2004](https://discussion.mcebuddy2x.com/u/techpro2004)\
**Post date:** [November 2, 2017, 1:13pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/10 "2017-11-02T13:13:19Z")

</div>

It plays fine. Which I find surprising as you switched back to ac3 audio. Also I don’t know if this was intentional or not but your metadata was way off. It said “i love lucy” but the show was about skiing.

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [November 2, 2017, 1:48pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/11 "2017-11-02T13:48:39Z")

</div>

Yeah those were our test files, we like to mix things up to see how the buddy handles it. Thanks for testing em out. Yes we moved back to AC3 because that what we think is default with HDHR based on some samples we’ve received. The improvement could also be due to the fact that we’ve got new builds of handbrake and ffmpeg in the next BETA which are optimized for hardware encoders and improved software encoders.

---

<div class="post-metadata">

**Author:** ![Will\_Tschumy](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/w/ecc23a/32.png) [@Will\_Tschumy](https://discussion.mcebuddy2x.com/u/Will_Tschumy)\
**Post date:** [November 2, 2017, 3:04pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/12 "2017-11-02T15:04:09Z")

</div>

I’ve been using this NVENC H265 profile for some time - works great!

```auto
[----------------------]
[MKV HVEC Constant Quality]
Description=WARNING: Handbrake Constant Quality encoding (25) with Nvidia HVEC.
order=ffmpeg, handbrake
AllowH264CopyRemuxing=true
FixedResolution=true
AutoDeinterlace=true
ffmpeg-UsingHardwareEncoding=True
ffmpeg-general=-threads 0 -hwaccel auto
ffmpeg-video=-ss 9 -c:v hevc_nvenc -crf 25 -map 0:v
ffmpeg-audio=-acodec ac3 -ab 192k -map 0:a
ffmpeg-audioac3=-acodec ac3 -ab 384k -map 0:a
ffmpeg-ext=.mkv
ffmpeg-audiodelay=skip
handbrake-UsingHardwareEncoding=true
handbrake-general=--decomb --denoise="weak" --loose-anamorphic --verbose=2 -T -O
handbrake-video=--start-at duration:3 -e x265 -q 18 
handbrake-audio=-E ffac3 -R auto -B 192 -D 0 -a 1,2,3,4,5
handbrake-audioac3=-E ffac3 -R auto -B 384 -D 0 -a 1,2,3,4,5
handbrake-ext=.mkv
handbrake-audiodelay=skip
PreConversionCommercialRemover=true

```

---

<div class="post-metadata">

**Author:** ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)\
**Post date:** [November 15, 2017, 2:42pm UTC](https://discussion.mcebuddy2x.com/t/hdhomerun-h265-profile/907/13 "2017-11-15T14:42:42Z")

</div>

Cross linking:

> [@HW H265 Constant Quality Profile](https://discussion.mcebuddy2x.com/t/hw-h265-constant-quality-profile/722):
>
> Hi all, I’ve been trying to develop a H265 constant quality HW accelerated profile. The profile settings are below. I don’t see anything with NVEC in the logs however. I’m running a 10 core i7 with a GeForce 1080 card. It takes approximately 90 minutes to encode an hour show. Task manager does not show anything on the GPU, but the CPU is pegged. I’m running the latest GeForce drivers and have the CUDA extensions installed. Does anyone see anything in the profile? [---------------------…
