View Full Version : Remove blockiness in mov file
varunb
12th March 2007, 16:54
I encoded a YV12 uncompressed video to MP4(with nero aac-lc audio) using Megui (fourcc=x264). I basically wanted to obtain a quicktime compatible MOV file. These are the video options I used in Megui:
Mode: Constant Quantizer = 1
Deblocking: enabled (Strength & Threshold = 0)
AVC Profile: Baseline
AVC Level: Unrestricted
Rate Control: All values default (grayed out)
ME range & scene change values: default
ME algorithm: multihex
Subpixel Refinement: 5 (Multi Qpel)
Number of reference frames:1
No Fast P-skip: enabled
Advanced quantizers values: default
Macroblock options: custom (I4x4, P4x4, P8x8)
Number of B-frames:0
The output MP4 file played well on Quicktime 7 & MPC. Then i remuxed the MP4 file to MOV using ffmpeg (-acodec copy -vcodec copy) command. The resulting file played fine on Quicktime but when i dragged the cursor to some random scene, I noticed blockiness & also the entire video's colour changed to red. This remained only for few seconds & after that the blockiness & redness vanished. Can any1 help me to remove this blockiness & redness.
There's another problem: no sound in the resulting MOV file although the movie info box in Quicktime says that AAC, Stereo 44.1 Khz sound is present.
SealTooGreat
12th March 2007, 18:05
I noticed blockiness & also the entire video's colour changed to red. This remained only for few seconds & after that the blockiness & redness vanished.
This issue I have with almost all my mid to low bitrate x264 encodes when h264 decoder inloop filtering is OFF(with ON everything is OK). When I encode with inloop disabled, don't have this weirdness while decoder inloop is OFF.
bond
12th March 2007, 21:43
1) why do you remux from mp4 to mov?
2) do you get the blockiness also with mp4?
3) i doubt ffmpeg can create a correct aac in mov stream. it propably stores aac as its stored in mp4
varunb
13th March 2007, 04:19
1) why do you remux from mp4 to mov?
Well thats something of my choice.
2) do you get the blockiness also with mp4?
No. I have played the MP4 file in both MPC & Quicktime & there was no such blockiness or that redness, even after moving the cursor to any random scene.
i doubt ffmpeg can create a correct aac in mov stream. it propably stores aac as its stored in mp4.
Well is there any other alternative to convert MP4 to MOV without re-encoding or without using any other shareware ? I thought ffmpeg was capable of doing that.
varunb
13th March 2007, 09:17
Well I have figured out an alternative: encode the avi to Mp4 format using Megui with Baseline format & then open Quicktime 7 Pro - Save as self contained movie.
The only thing which I don't understand is that why doesn't Quicktime 7 support a Main profile MP4 file. There are regular freezes on playing such MP4 files in Quicktime. I tried the CE-Quicktime profiles in MeGUI but to no avail. Lets see if i can find something about this.
SealTooGreat
14th March 2007, 07:47
Let me rephrase my answer. These blockiness & redness already exist in your MP4 - Your x264/Mp4 file is encoded with inloop enabled. Because it contains appropriate flag which tells h264 decoder to use inloop (deblocking) filtering, you can't see such blockiness or that redness because h264 encode is decoded properly. See it by yourself, turn off deblocking in your h264 decoder while playing it. The reason why you see this weirdness, while playing MOV file is that ffmpeg MP4 to MOV remuxing hasn't been correct, it didn't pass to MOV container that appropriate flag and your h264 decoder is decoding it without inloop filter.
Didée
14th March 2007, 22:41
These blockiness & redness already exist in your MP4 - Your x264/Mp4 file is encoded with inloop enabled. Because it contains appropriate flag which tells h264 decoder to use inloop (deblocking) filtering, you can't see such blockiness or that redness because h264 encode is decoded properly. See it by yourself, turn off deblocking in your h264 decoder while playing it. The reason why you see this weirdness, while playing MOV file is that ffmpeg MP4 to MOV remuxing hasn't been correct, it didn't pass to MOV container that appropriate flag and your h264 decoder is decoding it without inloop filter.
Would sound reasonable, if it wasn't for this:
These are the video options I used in Megui:
Mode: Constant Quantizer = 1
Blockiness with quant=1?
Inloop deblocking doing anything at such a low quant? ... Rather not.
SealTooGreat
15th March 2007, 00:37
^You are right. Above CQ=22, this is usual thing without decoder's inloop.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.