Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: glop on December 24, 2016, 01:33:02 PM

Title: [2.6.15] Inconstant video size
Post by: glop on December 24, 2016, 01:33:02 PM
Hello,

I have Avidemux 2.6.15 on Lubuntu and, since some versions, I have a problem with video size.
I must double video size for, with lucky, get my video with the good size.

Yesterday, I reencode video, with "1600 MB" in video codec parameter, and I has got a file a bit more 800 MB => it's OK !
Today, I reencode an another video with same parameters : file size = ~1600 MB

I use MPEG-4 AVC (x264) for video, copy for audio, in MKV muxer.

Thanks for your help !
Title: Re: [2.6.15] Inconstant video size
Post by: Jan Gruuthuse on December 24, 2016, 02:54:25 PM
If these are not the same kind of video, could be normal.
If the video has the same resolution, frames and duration the difference should not be so big.
Like 720p 50 frames 38 seconds duration?

The test done: Source video: 68.8 MB (3sat video 720p)
Video Size (Two Pass)
Target Video Size: 28 MB
The end result was 37 MB instead of the wanted 28 MB.

It is always an estimation and is trying to do so.
Image content could be a big thing to:
- Steady imagery with less movement result in smaller sized video.
- Action film with fast moving different imagery would result in bigger sized video.


Title: Re: [2.6.15] Inconstant video size
Post by: glop on December 24, 2016, 03:05:34 PM
Same resolution, same format.

1080p, between 1h30 and 2h00 of duration (record video TV ), 25 fps (50 fps isn't supported by my tv recorder).
Video codec is in AVC (MPEG 4 ?)
Audio codec (for french track only) : generaly equal or superior at 128 Kpbs, AC3 / E-AC3 / sometimes in MP3 (rare).

I didn't have this problem before update in 2.6, but this version is require (record in .mts, not supported on 2.5).
Title: Re: [2.6.15] Inconstant video size
Post by: Jan Gruuthuse on December 24, 2016, 03:06:48 PM
same channel and content?
Title: Re: [2.6.15] Inconstant video size
Post by: glop on December 24, 2016, 03:10:36 PM
Same channel and same type of content (for my 2 tests : Taken and Taken 2, 2 movies with rapid movement).

EDIT : In any case, nothing justify the size difference.
Title: Re: [2.6.15] Inconstant video size
Post by: Jan Gruuthuse on December 24, 2016, 03:24:13 PM
Check with MediaInfo both source video for Video bitrate
example:
Quote1) 20161128 1400 - SWR BW HD
Video Bit rate                                 : 12.6 Mbps

Quote2) 20161223 1400 - SWR BW HD
Video Bit rate                                 : 12.2 Mbps

that could explain some 0.4 Mbps difference/second, same series.

use the latest (24/12/2016) for your OS: http://www.avidemux.org/nightly/
Title: Re: [2.6.15] Inconstant video size
Post by: glop on December 24, 2016, 03:33:26 PM
Average bitrate is 4378 Kbps (2 movies and advertisements in only 1 file).
I have again 2 movies to reencode (2 differents files), I will check result.
Title: Re: [2.6.15] Inconstant video size
Post by: Jan Gruuthuse on December 24, 2016, 03:53:17 PM
I'm not certain about this:
With MPEG-4 AVC (x264) and your cpu is doing other stuff also (high load) if this will influence the end result.
Less calculations are made resulting in larger video code?
Developers could time permitting perhaps provide more info on this.

you got PM
Title: Re: [2.6.15] Inconstant video size
Post by: mean on December 24, 2016, 05:48:30 PM
IF the Qz is at its minimum it's normal
Title: Re: [2.6.15] Inconstant video size
Post by: glop on December 24, 2016, 05:55:51 PM
Qz ? How I can see Qz value ?
Title: Re: [2.6.15] Inconstant video size
Post by: mean on December 24, 2016, 09:49:53 PM
When you load your video, check the number beside the frame type
i.e.
I(2) <= Qz=2
In generla 2 is the minimum = highest quality
Title: Re: [2.6.15] Inconstant video size
Post by: glop on January 14, 2017, 07:23:36 PM
Hello,

I think have found the bug, with target size to 800M :

Tested with 2.6.18.
Title: Re: [2.6.15] Inconstant video size
Post by: Jan Gruuthuse on January 15, 2017, 06:35:51 AM
If the video is using variable frame rate and you are forcing somehow to use 25fps (non variable frame rate), this could explain the issue. New Frames are created?
Title: Re: [2.6.15] Inconstant video size
Post by: glop on January 15, 2017, 03:58:58 PM
No idea, but the original video is in 25 FPS. It is only when I apply the FPS filter that the size of the reencoded video is equal to the size shown.

Without filter, my video size is divided by 2.