Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th February 2015, 12:18   #1  |  Link
Music Rockz
Registered User
 
Music Rockz's Avatar
 
Join Date: Nov 2014
Location: Sri Lanka
Posts: 40
h265 file to MKV

Hello Guys,

I encoded AVS file to .h256 using the "x265GUI"

Preset I used:

Quote:
--frame-skip 0 --bitrate 260 --tu-inter-depth=1 --tu-intra-depth=1 --rd 0 --subme=1 --me=1 --max-merge=2 --no-amp --no-rect --no-tskip
After encoding it, I muxed it with mkvtoolnix to convert to mkv, but the video didn't work properly!

I checked the avs script with AvsP and it works fine...!

Here is the screenshots and media info of the muxed video..











Code:
General
Unique ID                                : 196873714358907975396528014394624923709 (0x941C7F885FCF4C9AB0B3849388F9583D)
Complete name                            : I.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 399 MiB
Duration                                 : 2h 50mn
Overall bit rate                         : 327 Kbps
Encoded date                             : UTC 2015-02-25 11:05:29
Writing application                      : mkvmerge v7.6.0 ('Garden of Dreams') 32bit built on Feb  8 2015 12:51:39
Writing library                          : libebml v1.3.1 + libmatroska v1.4.2
DURATION                                 : 02:50:19.520000000
NUMBER_OF_FRAMES                         : 239520
NUMBER_OF_BYTES                          : 81673491
_STATISTICS_WRITING_APP                  : mkvmerge v7.6.0 ('Garden of Dreams') 32bit built on Feb  8 2015 12:51:39
_STATISTICS_WRITING_DATE_UTC             : 2015-02-25 11:05:29
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L2.1
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2h 50mn
Width                                    : 608 pixels
Height                                   : 256 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : HE-AAC / LC
Codec ID                                 : A_AAC
Duration                                 : 2h 50mn
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz / 24.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : 31ms
Default                                  : Yes
Forced                                   : No
Someone please help me to correct this error in future!

Thanks & Regards,
Music Rockz
Music Rockz is offline   Reply With Quote
Old 25th February 2015, 17:20   #2  |  Link
Music Rockz
Registered User
 
Music Rockz's Avatar
 
Join Date: Nov 2014
Location: Sri Lanka
Posts: 40
Experts please help me on this...!!
Music Rockz is offline   Reply With Quote
Old 25th February 2015, 23:59   #3  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,314
It looks like your VLC decoding is broken, not your encoding, most likely because 608 isn't a multiple of 16. When was the last time you updated VLC?

Edit: Looking at it again, I think it's a bug in ffmpeg's handling of avisynth, since the frame breaks are in the middle of encoding blocks. The x265ui developers will have to fix or workaround that; in the meantime if you make everything mod-16 it'll probably work better.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt

Last edited by foxyshadis; 26th February 2015 at 00:09.
foxyshadis is offline   Reply With Quote
Old 26th February 2015, 01:58   #4  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 795
Quote:
Originally Posted by foxyshadis View Post
...
Most likely because 608 isn't a multiple of 16.
60816 = 38
filler56789 is offline   Reply With Quote
Old 26th February 2015, 03:50   #5  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,314
Quote:
Originally Posted by filler56789 View Post
60816 = 38
I can't math today, obviously. Well, some other bug is being triggered in ffmpeg (or possibly VLC), I wonder what.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline   Reply With Quote
Old 26th February 2015, 04:41   #6  |  Link
Music Rockz
Registered User
 
Music Rockz's Avatar
 
Join Date: Nov 2014
Location: Sri Lanka
Posts: 40
Quote:
Originally Posted by foxyshadis View Post
Well, some other bug is being triggered in ffmpeg (or possibly VLC), I wonder what.
Other HEVC encodes by HB and VidCoder working fine in my VLC and its the latest version!

Any x265Gui builders?
Music Rockz is offline   Reply With Quote
Old 26th February 2015, 05:00   #7  |  Link
x265_Project
Registered User
 
Join Date: Jul 2013
Posts: 596
This is the first I've heard of x265GUI. I can't recommend it. There are many other better choices available including Handbrake, Hybrid, MeGUI, IFME, and Staxrip.

Don't use --rd 0. That is an experimental RD level, and it is not producing worthwhile results.

I wouldn't recommend changing any x265 options that are defined by our performance presets unless you are willing to first test your changes to see if they are actually better than the default preset values.
x265_Project is offline   Reply With Quote
Old 26th February 2015, 06:10   #8  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 940
Quote:
Originally Posted by foxyshadis View Post
Edit: Looking at it again, I think it's a bug in ffmpeg's handling of avisynth, since the frame breaks are in the middle of encoding blocks. The x265ui developers will have to fix or workaround that; in the meantime if you make everything mod-16 it'll probably work better.
It doesn't look like they were trying to use the script in VLC. I think it was the actual video file.

Also, last I checked (a few months ago), VLC didn't allow users to input AviSynth scripts through libavformat. It doesn't seem to automatically expose any codec or demuxer present in the libavcodec/format libraries.
qyot27 is offline   Reply With Quote
Old 26th February 2015, 10:29   #9  |  Link
SuLyMaN
Registered User
 
Join Date: Jul 2007
Posts: 155
The file i.mkv from a Sri-Lankan user seems very legit
SuLyMaN is offline   Reply With Quote
Old 26th February 2015, 10:35   #10  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,314
Quote:
Originally Posted by qyot27 View Post
It doesn't look like they were trying to use the script in VLC. I think it was the actual video file.

Also, last I checked (a few months ago), VLC didn't allow users to input AviSynth scripts through libavformat. It doesn't seem to automatically expose any codec or demuxer present in the libavcodec/format libraries.
That why I changed my mind to think it was ffmpeg's fault. This x265gui software uses ffmpeg to decode avisynth to a y4m pipe into x265, instead of avisynth.dll and an avs pipe, and ffmpeg's avisynth support has never been particularly robust.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline   Reply With Quote
Old 26th February 2015, 11:59   #11  |  Link
Music Rockz
Registered User
 
Music Rockz's Avatar
 
Join Date: Nov 2014
Location: Sri Lanka
Posts: 40
Is there any other ways to convert avs files in x265 video...?
(except MeGUI)
Music Rockz is offline   Reply With Quote
Old 27th February 2015, 00:57   #12  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 940
Quote:
Originally Posted by foxyshadis View Post
That why I changed my mind to think it was ffmpeg's fault. This x265gui software uses ffmpeg to decode avisynth to a y4m pipe into x265, instead of avisynth.dll and an avs pipe, and ffmpeg's avisynth support has never been particularly robust.
Well, after tracking down the application itself and checking the binaries it provides,

x265GUI (Build180 by ozok) uses x265 0.4.1+546-ccac3a7d3622, which is way too old to be at all useful (October 2013). It's little wonder why the output from it is borked. I can't even remember if it supported y4m piping at that point. It could be taking it in raw.

I've never seen any video corruption like in those screenshots when using FFmpeg with AviSynth (before or after the complete overhaul of libavformat's AviSynth demuxer in 2013; it uses the library directly now, just like x264 does), but seeing the old version number from x265 jogged my memory: I do remember that I did see corrupted output like that from wonky configurations of x265 at really early points in its history.


The simple answer to how to convert an AviSynth script to HEVC in MKV is to use a current build of FFmpeg linked against x265:
Code:
ffmpeg -i input.avs -vcodec libx265 -crf 18 -acodec flac output.mkv
(or whatever acodec options are desired)
qyot27 is offline   Reply With Quote
Old 27th February 2015, 03:16   #13  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 4,675
Quote:
Originally Posted by Music Rockz View Post
Is there any other ways to convert avs files in x265 video...?
(except MeGUI)
http://forum.doom9.org/showthread.php?t=169607
have not used it in a long time.
huhn is offline   Reply With Quote
Old 27th February 2015, 04:36   #14  |  Link
Music Rockz
Registered User
 
Music Rockz's Avatar
 
Join Date: Nov 2014
Location: Sri Lanka
Posts: 40
Quote:
Originally Posted by huhn View Post
http://forum.doom9.org/showthread.php?t=169607
have not used it in a long time.
I think MeGUI is now enough to do with x265..! Its better to use GUI instead of binaries!
Music Rockz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.