How can I losslessly change that MBAFF flag to progressive since the video is progressive? Otherwise the video is unnecessarily deinterlaced during playback with apps like VLC or Pot Player.
+ Reply to Thread
Results 1 to 6 of 6
-
-
-
If you're sure the source is progressive try multiplexing (to save the file) after changing the scan type,
otherwise video encoding might be required.
More info ..
## Changing Scan Type in FFmpeg
Changing the scan type from interlaced to progressive is not inherently a lossless operation.
The process can potentially introduce visual artifacts or quality loss, depending on the method used.
### FFmpeg Conversion Methods
1. Basic Copy Method:
- This might change the scan type flagCode:ffmpeg -i input.mp4 -codec copy output.mp4 [or mkv]
- ** Not a true deinterlacing process **
- Metadata change, not actual frame processing
2. Deinterlacing Option:
- `yadif=0` is a common deinterlacing filterCode:ffmpeg -i input.mp4 -vf "yadif=0" -c:v libx264 output.mp4
- More sophisticated method
- ** Can potentially reduce quality **
### Lossless Considerations
- Strictly speaking, changing scan type is NOT a lossless operation
- Deinterlacing always involves some form of frame reconstruction
- Quality loss depends on:
- Original video quality
- Deinterlacing method
- Content complexity
### Recommended Approach
1. Use high-quality deinterlacing filter
2. Preserve original frame rate
3. Use a good codec like libx264 with appropriate settings
There is nothing wrong .. with my environment -
Macroblock-Adaptive Frame/Field Coding
MBAFF is an advanced video encoding technique in H.264/AVC that allows a single frame to be partially progressive and partially interlaced.
### Technical Breakdown
- MBAFF stands for Macroblock-Adaptive Frame/Field Coding
- It enables an encoder to examine each 16x16 pixel block (macroblock) in a frame
- The encoder can choose between progressive or interlaced encoding for individual macroblocks
- This allows for more efficient compression compared to traditional interlacing methods
### Key Characteristics
- Not a guaranteed fully interlaced or progressive format
- Encoding can vary per macroblock based on motion detection
- Provides more flexible video encoding compared to older methods like PAFF (Picture Adaptive Frame/Field)
### Potential Challenges
- Some media players may not fully support MBAFF
- Can cause playback issues on certain devices
- May trigger unnecessary deinterlacing on some systems
# Check video properties
ffprobe -v quiet -print_format json -show_format -show_streams input.mp4There is nothing wrong .. with my environment -
First you have to mux your video to mkv.
Then fire up mkvtoolnix gui,
1) click Header Editor (on the left). Drag your new mkv into the window,
2) click the video track,
3) click the Video interlaced flag.
You'll see now the
4) actual flag 1 (for interladed). Set the current value to 2,
5) click the Header editor menu, click save.
[Attachment 89445 - Click to enlarge]
That's it. You mkv is now flagged as progressive.
Similar Threads
-
Interlace artifacts in progressive scan video
By SupraGSX in forum RestorationReplies: 27Last Post: 26th Jul 2024, 09:41 -
Removing interlace artifacts from progressive scan video
By mathiassk in forum RestorationReplies: 2Last Post: 4th Oct 2023, 09:13 -
How To Downscale 4K 2160p HEVC 10 bit Video To 2K 1080p AVC 10bit
By LouieChuckyMerry in forum Video ConversionReplies: 32Last Post: 26th May 2023, 03:07 -
Application to view/list scan type of a directory of video files
By K4S3RYN in forum Newbie / General discussionsReplies: 0Last Post: 27th Jan 2022, 03:01 -
Mark/Force MBAFF Encoded Video as Progressive
By ajingo in forum Video ConversionReplies: 7Last Post: 22nd Feb 2021, 06:24


Quote