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 > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th February 2019, 14:03   #1  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 33
1080i50 to 1080p25

Hello everybody,

I have ripped a BluRay (TV-production) which is 1080i50 and I want it to be 1080p25.

It was MBAFF encoded.

Is this losslessly possible?
And can someone please confirm that it is actually interlaced?

Example: https://ufile.io/fkphs



Code:
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 min 0 s
Bit rate mode                            : Variable
Maximum bit rate                         : 33.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Default                                  : Yes
Forced                                   : No
Thank you very much.

Best
Felix

Last edited by FLX90; 15th February 2019 at 14:11.
FLX90 is offline   Reply With Quote
Old 15th February 2019, 14:10   #2  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 6,774
Why do you have to get rid half of the frames?
Atak_Snajpera is offline   Reply With Quote
Old 15th February 2019, 14:11   #3  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,269
The sample, albeit MBAFF encoded, is progressive, not interlaced.
sneaker_ger is offline   Reply With Quote
Old 15th February 2019, 14:18   #4  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 6,774
Indeed. Both fields refer to the same frame. No idea why they keep doing this. After all 1920x1080@25 is blu-ray compatible.
https://en.wikipedia.org/wiki/Blu-ray
Atak_Snajpera is offline   Reply With Quote
Old 15th February 2019, 14:26   #5  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,269
"Real" 1080p25 encoding is only allowed on UltraHD Blu-Ray with HEVC codec. On "normal" Blu-Ray only 1080i25 is allowed but you can e.g. encode all frames/blocks as progressive (x264 has "fake interlaced" mode for that).

https://forum.doom9.org/showthread.php?t=154533
sneaker_ger is offline   Reply With Quote
Old 15th February 2019, 14:29   #6  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 33
Quote:
Originally Posted by sneaker_ger View Post
The sample, albeit MBAFF encoded, is progressive, not interlaced.
Thank you.


Quote:
Originally Posted by Atak_Snajpera View Post
Indeed. Both fields refer to the same frame. No idea why they keep doing this. After all 1920x1080@25 is blu-ray compatible.
https://en.wikipedia.org/wiki/Blu-ray
I don't know.
But maybe because it is originally a TV production.

Is it possible to get 1080p25 without the need of a re-encode?
FLX90 is offline   Reply With Quote
Old 15th February 2019, 14:45   #7  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 6,774
Quote:
Is it possible to get 1080p25 without the need of a re-encode?
But Why do you need this? Your source is in practice progressive 25fps.
Atak_Snajpera is offline   Reply With Quote
Old 15th February 2019, 15:00   #8  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 33
Quote:
Originally Posted by Atak_Snajpera View Post
But Why do you need this? Your source is in practice progressive 25fps.

The playing device I'm using is a bit buggy.
It doesn't play this source.
FLX90 is offline   Reply With Quote
Old 15th February 2019, 15:49   #9  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 33
Quote:
Originally Posted by sneaker_ger View Post
"Real" 1080p25 encoding is only allowed on UltraHD Blu-Ray with HEVC codec. On "normal" Blu-Ray only 1080i25 is allowed but you can e.g. encode all frames/blocks as progressive (x264 has "fake interlaced" mode for that).

https://forum.doom9.org/showthread.php?t=154533
Don't saw your post.

Okay thanks, so I will re-encode with x264.
FLX90 is offline   Reply With Quote
Old 15th February 2019, 17:13   #10  |  Link
FLX90
Registered User
 
Join Date: Nov 2018
Posts: 33
I get this warning
Code:
x264 [warning]: input appears to be interlaced, enabling tff interlaced mode. If you want otherwise, use --no-interlaced or --bff
x264 [warning]: interlace + weightp is not implemented
Is this the correct way?
Code:
x264-r2935-545de2f.exe --fps 25 --force-cfr --bitrate 22956 --preset veryslow --tune film --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 25 --open-gop --slices 4 --fake-interlaced --no-interlaced --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 1 -o temp.mkv output.mkv
x264-r2935-545de2f.exe --fps 25 --force-cfr --bitrate 22956 --preset veryslow --tune film --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 25 --open-gop --slices 4 --fake-interlaced --no-interlaced --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 2 -o temp.mkv output.mkv
FLX90 is offline   Reply With Quote
Old 15th February 2019, 18:33   #11  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,269
If you wanted to author a "professional" Blu-Ray (and used .264 output) that would be the correct way.

Will this solve the problem with your picky player? I don't know. The source was probably already Blu-Ray compliant (since it was a commercial Blu-Ray, right?) so maybe your player has a different problem. E.g. the sound or something with the muxing.
sneaker_ger is offline   Reply With Quote
Old 15th February 2019, 23:14   #12  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 2,794
I suspect that an adequately bored and knowledgeable engineer could do this as a sort of low-level remux. Using MBAFF, each frame should be fully progressive macroblocks. All the predictions will also be progressive. If the data got copied over, leaving out all the "this could be interlaced" flags, I think it would work. CABAC would need to be regenerated. I've not heard of any tools like this, however.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th February 2019, 11:38   #13  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 501
Quote:
If you wanted to author a "professional" Blu-Ray (and used .264 output) that would be the correct way.
Yep. And FLX90 is actually lucky to have an MBAFF with only progressive frames inside. I too generally encode progressive contents as progressive flagged as interlaced, however some of my colleagues duplicate 25fps progressive to 50 progressive, divide in fields and make a "truly" interlaced content 25i.
It's not very likely to find official releases encoded that way, but it can happen...
FranceBB is offline   Reply With Quote
Old 14th March 2019, 17:11   #14  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,348
Quote:
Originally Posted by FranceBB View Post
... however some of my colleagues duplicate 25fps progressive to 50 progressive, divide in fields and make a "truly" interlaced content 25i.
Why would you do this? Ih has only bad side effects and basically none positive one. At least for me.
kolak is offline   Reply With Quote
Old 14th March 2019, 21:17   #15  |  Link
SeeMoreDigital
Life looks better in UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,392
Quote:
Originally Posted by FranceBB View Post
....however some of my colleagues duplicate 25fps progressive to 50 progressive...
Quote:
Originally Posted by kolak View Post
Why would you do this? Ih has only bad side effects and basically none positive one. At least for me.
I seem to remember that the early Panasonic (1920x)1080p50 AVCHD camcorders generated encoded 'repeat' (or duplicate) frames instead of actual unique frames. Other manufacturers created p50 encodes using repeat flags...
__________________
| 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 14th March 2019, 23:28   #16  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,420
Quote:
Originally Posted by kolak View Post
Why would you do this? Ih has only bad side effects and basically none positive one. At least for me.
I think the only reason is to fool picky HW players which would reject anything which is not blu-ray compliant.
Sharc is offline   Reply With Quote
Old 15th March 2019, 10:45   #17  |  Link
SeeMoreDigital
Life looks better in UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,392
Quote:
Originally Posted by kolak View Post
Why would you do this? Ih has only bad side effects and basically none positive one. At least for me.
Quote:
Originally Posted by Sharc View Post
I think the only reason is to fool picky HW players which would reject anything which is not blu-ray compliant.
This is why it was better to buy a Blu-ray player that supported AVCHD media as well...
__________________
| 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 15th March 2019, 13:47   #18  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 164
Quote:
Originally Posted by Sharc View Post
I think the only reason is to fool picky HW players which would reject anything which is not blu-ray compliant.
But even in this case, encoding like --face-interlaced (i.e. not to set the frame_mbs_only and mb_adaptive_frame_field_flag flags in the SPS and to encode every picture as a frame) would be the better option. But probably there was no software to do this and/or the people authoring the Blurays didn't know about this.
mkver is offline   Reply With Quote
Old 16th March 2019, 17:52   #19  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,348
Quote:
Originally Posted by Sharc View Post
I think the only reason is to fool picky HW players which would reject anything which is not blu-ray compliant.
For that you just encode with interlace flagging. There is no need to make content really interlaced.
kolak is offline   Reply With Quote
Old 16th March 2019, 17:53   #20  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,348
Quote:
Originally Posted by mkver View Post
But even in this case, encoding like --face-interlaced (i.e. not to set the frame_mbs_only and mb_adaptive_frame_field_flag flags in the SPS and to encode every picture as a frame) would be the better option. But probably there was no software to do this and/or the people authoring the Blurays didn't know about this.
Good BD encoders allow for it. I done 100+ projects this way.

Last edited by kolak; 17th March 2019 at 12:34.
kolak 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:38.


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