Author Topic: Unable to open Handbrake-Encoded HEVC  (Read 5952 times)

andrewk8

  • Newbie
  • *
  • Posts: 48
Unable to open Handbrake-Encoded HEVC
« on: January 06, 2016, 11:26:56 PM »
I transcoded a file with HandBrake 0.10.2 into an MP4 container using X265 HEVC video and HE-AAC audio.  The video plays fine in VLC.  I want to cut the video with Avidemux.  When I open it, Avidemux shows a thin bar of multi-color static along the top (6-ish pixels tall?).  Video decoder shows "???? RGB".  See attached for the MediaInfo properties and corresponding Avideumx properties.

The news shows x265 support and FFMPEG 2.7, so I'm confused why Avidemux isn't able to open HEVC videos made from HandBrake.

I'm getting this issue with Avidemux 2.6.10 and 2.6.11 beta 1.

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: Unable to open Handbrake-Encoded HEVC
« Reply #1 on: January 07, 2016, 05:08:05 AM »
Should work in the nightlies

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Unable to open Handbrake-Encoded HEVC
« Reply #2 on: January 07, 2016, 05:18:13 AM »
http://www.avidemux.org/nightly/

Can you test with this file: https://www.dropbox.com/s/wy2o62b9vom3jhc/3satHEVCx265.mkv?dl=0
If that works, can you upload a 10 second duration similar video created with HandBrake 0.10.2 into an MP4 container using X265 HEVC video and HE-AAC audio.
Use a free dropbox account, mega or similar webservice (free public access, without registration to download your uploaded video) thank you.
« Last Edit: January 07, 2016, 05:23:01 AM by Jan Gruuthuse »

andrewk8

  • Newbie
  • *
  • Posts: 48
Re: Unable to open Handbrake-Encoded HEVC
« Reply #3 on: January 07, 2016, 03:25:47 PM »
I could open your sample in Avidemux 2.6.11.  Cutting it would be a little challenge because the image is mostly gray.  If I play it in Avidemux, it plays fine.

Here is a sample I made from HandBrake.  Same issue.  VLC plays it fine.  Opening in Avidemux doesn't work.  See screen shot
https://www.dropbox.com/s/978m5sjogp0jix1/Sam%20And%20Tuck%20x265%20he-aac.mp4?dl=0

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Unable to open Handbrake-Encoded HEVC
« Reply #4 on: January 07, 2016, 04:38:13 PM »
Loaded/played here without issue: see attached screenshots.
Did you find a more recent avidemux in http://www.avidemux.org/nightly/ check the dates?
What is your OS? Your Video Card running desktop?
What choices do you have in Avidemux: Menu: Edit: Preferences: for
[Display]
Video display: [   ]

[HW Accel]
[ ] decode video using
[ ] decode video using
[ ] decode video using

andrewk8

  • Newbie
  • *
  • Posts: 48
Re: Unable to open Handbrake-Encoded HEVC
« Reply #5 on: January 07, 2016, 06:05:20 PM »
Windows 10 x64.  Nvidia GeForce 650 Ti

Video Display: Default Raster.

I don't see any HW Accel settings in Avidemux 2.6.911 151222 64-bit.

I monkeyed with the Video tab a little, but between the Video Display setting, Sdl driver setting, and openGL check box, I managed to crash Avidemux.

I just installed the latest Winx64 nightly 2.6.911 160103 and still can't open it (same noisy bar at the top of the window).

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Unable to open Handbrake-Encoded HEVC
« Reply #6 on: January 08, 2016, 06:42:34 AM »
I need Windows user stepping in.
I can't find anything by Nvidia on Nvidia GeForce 650 Ti supporting nvenc / h.265
card: http://www.geforce.com/hardware/desktop-gpus/geforce-gtx-650ti
codec: https://developer.nvidia.com/nvidia-video-codec-sdk#gpulist
Quote
(GeForce (Kepler & Maxwell GPUs only)
If the card is supposed to support this, you probably have to install  NVIDIA GPU driver R358 or above for Windows. And maybe even nvenc is required.

other sources however:
Quote
NVIDIA GeForce GTX 650 Ti:
GPU Name:    GK106
GPU Variant:    GK106-220-A1
source: TechPowerUp GPU Database

Quote
Third Generation (Maxwell GM20x)
... third generation NVENC implements the video compression algorithm High Efficiency Video Coding (aka. HEVC, H.265) ...
source: Wkipedia: Nvidia NVENC

As I'm not a windows user, you should understand I can't confirm: this will or won't work. If this is your production machine, take care to backup essentials before moving on.
« Last Edit: January 08, 2016, 07:04:45 AM by Jan Gruuthuse »

andrewk8

  • Newbie
  • *
  • Posts: 48
Re: Unable to open Handbrake-Encoded HEVC
« Reply #7 on: January 08, 2016, 10:51:52 AM »
Dumb question: why is nvenc / hardware h265 support relevant for playback by Avidemux?

Comparing your screen shots and mine, on Windows:
  • Avidemux fails to identify the "Codec 4CC" as H265
  • Avidemux isn't loading the Lavcodec Vdpau decoder
  • Windows default for output is to use a software / raster render
Attached are properties of the same video, from VLC (which plays back correctly in VLC).

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Unable to open Handbrake-Encoded HEVC
« Reply #8 on: January 08, 2016, 11:24:29 AM »
Dumb question: why is nvenc / hardware h265 support relevant for playback by Avidemux?
I suppose as avidemux uses the available hardware?

Avidemux isn't loading the Lavcodec Vdpau decoder

I'm not on windows.
Quote
VDPAU (Video Decode and Presentation API for Unix)
source Wikipedia: VDPAU
« Last Edit: January 08, 2016, 03:16:01 PM by Jan Gruuthuse »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: Unable to open Handbrake-Encoded HEVC
« Reply #9 on: January 08, 2016, 02:44:38 PM »
There is no hw acceleration on windows as of today
The sw H265 decoder is bundled with avidemux, nothing else to install

So playback is ok, but still images are grey ?

andrewk8

  • Newbie
  • *
  • Posts: 48
Re: Unable to open Handbrake-Encoded HEVC
« Reply #10 on: January 08, 2016, 10:19:15 PM »
No.  Wont even open.  Attached is a screen shot of what I get.  Avidemux doesn't recognize the file format.  You see the ~5 pixel tall color noise band at the top of the graphics window.  I included the MediaInfo properties for comparison.

Using latest (Jan 3 2016) Windows x64 nightly, but had the same issue in 2.6.10 with another video.  I've never been able to open a video from Handbrake in Avidemux.

A sample video I provided opens fine in Linux, apparently.

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: Unable to open Handbrake-Encoded HEVC
« Reply #11 on: January 09, 2016, 07:34:38 AM »
Confirmed
The latest win64 build does not contain the needed change
Rebuilding in progress

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: Unable to open Handbrake-Encoded HEVC
« Reply #12 on: January 09, 2016, 07:47:00 AM »
win64 one
win32 ready in ~ 15mn

andrewk8

  • Newbie
  • *
  • Posts: 48
Re: Unable to open Handbrake-Encoded HEVC
« Reply #13 on: January 09, 2016, 02:45:29 PM »
Working now in Windows x64 nightly 160109.  Thanks.