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 17th March 2018, 05:34   #1  |  Link
cakuhnen
Registered User
 
Join Date: Apr 2005
Posts: 78
HEVC Interlaced Question

Hi all, i want to know how can i encode with x265 interlaced vídeo, i want to store interlaced, i know that this option --interlace=tff encode interlaced but i need to separate fields or i can encode with handbrake, ffmpeg and it does the separate fields automatic

Regards

CAK
__________________
Specs: Intel i7 7700 3.6 Ghz, 8GB DDR 4, 2 SATA II 3TB 6Gb/s, PANASONIC HDTV, Windows 10 x64
cakuhnen is offline   Reply With Quote
Old 17th March 2018, 09:50   #2  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
From the x265 doc:

Quote:
HEVC encodes interlaced content as fields. Fields must be provided to the encoder in the correct temporal order. The source dimensions must be field dimensions and the FPS must be in units of fields per second. The decoder must re-combine the fields in their correct orientation for display.
Not sure which HW or SW player plays this correctly. For interlaced encoding I stick to x264/MBAFF.


You could try something like:

For encoding your interlaced source:
Code:
AssumeTFF()
separatefields()
now encode in x265 with --interlace tff


For interlaced playback:
Code:
Assumefieldbased()
weave()

Last edited by Sharc; 17th March 2018 at 14:24.
Sharc is offline   Reply With Quote
Old 19th March 2018, 08:35   #3  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Quote:
Originally Posted by Sharc View Post
From the x265 doc:



Not sure which HW or SW player plays this correctly. For interlaced encoding I stick to x264/MBAFF.
Obviously all hardware plays it back correctly, that's one thing you can reliably count on hardware to support. HEVC interlaced is almost exactly the same as AVC PAFF, since MBAFF was removed. Software that supports both AVC interlaced and HEVC generally supports HEVC interlaced.
foxyshadis is offline   Reply With Quote
Old 19th March 2018, 14:22   #4  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by foxyshadis View Post
.....Software that supports both AVC interlaced and HEVC generally supports HEVC interlaced.
Unless I am totally mistaken SW players like MPC-HC or VLC will normally (per default) play the fields (half height picture) at double rate. For
undistorted AR one has to force the correct (original) DAR during playback, or to set --sar 1:2 for encoding which will give a kind of bob-deinterlaced playback (with no control over the bobbing algo)
Sharc is offline   Reply With Quote
Old 20th March 2018, 06:50   #5  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Quote:
Originally Posted by Sharc View Post
Unless I am totally mistaken SW players like MPC-HC or VLC will normally (per default) play the fields (half height picture) at double rate. For
undistorted AR one has to force the correct (original) DAR during playback, or to set --sar 1:2 for encoding which will give a kind of bob-deinterlaced playback (with no control over the bobbing algo)
VLC is a horrible player that no one should use unless they have no alternative, its support for interlacing varies between barely-functional and "roll your own ffmpeg commandline," because none of the maintainers care about things real people care about. (IMHO, but I've tried and tried hard to make it work.) Even Windows Media Player supports interlaced reasonably, if the underlying splitter/decoder signals it.

The MPC family, MPDN, Kodi, Plex, GOM, and the rest of the half-decent Windows players all support either automatic or manual deint/bobbing, and you can choose your own quality level in most. Even in Linux, you shouldn't feel yoked to the VLC ghetto, you've got SMPlayer, mpv, Banshee, and I hear good things about Gnome Video.
foxyshadis is offline   Reply With Quote
Old 20th March 2018, 09:48   #6  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
HEVC interlaced is not supported by any FFmpeg based player, since FFmpeg does not support it. It'll decode to half-height fields instead of a combined frame.
Just let interlacing die already.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 20th March 2018, 20:24   #7  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
I think there's a good chance the creation of new interlaced content will die with native UHD content, which will be encoded with HEVC and other new formats.

The enormous quantity of legacy content, however, means interlacing is here to stay ! As long as there's support for it without damaging it, we should all be happy and move on with our lives
Blue_MiSfit is offline   Reply With Quote
Old 21st March 2018, 17:00   #8  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Hmmm...., maybe I misread the x265 doc in post #2.
There is no need for an external field separation for interlaced sources. x265 is doing it internally when --interlace tff (or --interlace bff) is in the commandline. Correct?

Last edited by Sharc; 21st March 2018 at 17:02. Reason: typos
Sharc is offline   Reply With Quote
Old 21st March 2018, 17:08   #9  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
The post you linked as well as the official documentation indicate the exact opposite, i.e. you do have to separate the fields beforehand.

But like said earlier by others playback as well as compression is a problem. I would avoid encoding interlaced HEVC completely. Also, correctly muxing the stream might pose a problem.
sneaker_ger is offline   Reply With Quote
Old 21st March 2018, 17:15   #10  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Thanks much for clarification
It confirms my original understanding, but I thought that I may have missed something.
Sharc is offline   Reply With Quote
Old 24th March 2018, 05:36   #11  |  Link
cakuhnen
Registered User
 
Join Date: Apr 2005
Posts: 78
Quote:
Originally Posted by sneaker_ger View Post
The post you linked as well as the official documentation indicate the exact opposite, i.e. you do have to separate the fields beforehand.

But like said earlier by others playback as well as compression is a problem. I would avoid encoding interlaced HEVC completely. Also, correctly muxing the stream might pose a problem.
No problem at all, my PANASONIC HDTV play fine interlaced hevc encoded by x265
__________________
Specs: Intel i7 7700 3.6 Ghz, 8GB DDR 4, 2 SATA II 3TB 6Gb/s, PANASONIC HDTV, Windows 10 x64
cakuhnen is offline   Reply With Quote
Old 25th March 2018, 09:59   #12  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
Quote:
Originally Posted by cakuhnen View Post
No problem at all, my PANASONIC HDTV play fine interlaced hevc encoded by x265
Can you provide a sample?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 28th March 2018, 18:11   #13  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by Blue_MiSfit View Post
I think there's a good chance the creation of new interlaced content will die with native UHD content, which will be encoded with HEVC and other new formats.

The enormous quantity of legacy content, however, means interlacing is here to stay ! As long as there's support for it without damaging it, we should all be happy and move on with our lives


Yes, UHD is ALWAYS progressive. We missed a great opportunity with ATSC standardization in the late 90’s; interlaced was ALMOST excluded from HD back then.


Sent from my iPhone using Tapatalk
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner 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 12:06.


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