Choppy transcoding. How disable MP4 Frame rate mode variable

About encoding, codec settings, muxers and filter usage
cnd
New Cone
New Cone
Posts: 1
Joined: 24 Nov 2011 16:07

Choppy transcoding. How disable MP4 Frame rate mode variable

Postby cnd » 24 Nov 2011 16:26

Converting a ripped blu-ray MKV file using "H.264 Encoder" creates a beautifl and perfectly smooth ,MP$ playback file.

VLC on the same input MKV always creates a choppy/jumpy playback version.

The difference between the files, as identified by "Mediainfo" - is this:-

H.264-Encoder: Frame Rate Mode: Constant

VideoLAN VLC: Frame Rate Mode: Variable
. Frame rate : 23.976 fps
. Minimum frame rate : 23.279 fps
. Maximum frame rate : 24.415 fps


How can I prevent VLC from doing this? I do not want any variable frame rates - I want it to stay constant.

Here is the good, non-choppy info from the working (not output by VLC) MP4

Code: Select all

General Complete name : C:\Video\title07-h264N.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 13.8 MiB Duration : 2mn 18s Overall bit rate : 835 Kbps Writing application : Lavf52.106.0 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 4 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 2mn 18s Bit rate mode : Variable Bit rate : 731 Kbps Nominal bit rate : 800 Kbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.015 Stream size : 12.1 MiB (88%) Writing library : x264 core 114 r1924 08d04a4 Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=4 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=20 / rc=abr / mbtree=1 / bitrate=800 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.41 / aq=1:1.00 Language : English Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 2mn 18s Bit rate mode : Variable Bit rate : 96.0 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Compression mode : Lossy Stream size : 1.62 MiB (12%) Language : English
Here is the corresponding "bad" info from the choppy VLC output of the same input file:-

Code: Select all

General Complete name : C:\Video\title07-vlc1500.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 25.9 MiB Duration : 2mn 18s Overall bit rate : 1 570 Kbps Encoded date : UTC 2011-11-24 14:20:49 Tagged date : UTC 2011-11-24 14:20:49 Writing application : vlc 1.1.9 stream output Comment : QuickTime 6.0 or greater Video ID : 2 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 4 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 2mn 16s Bit rate mode : Variable Bit rate : 1 505 Kbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 23.976 fps Minimum frame rate : 23.279 fps Maximum frame rate : 24.415 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.030 Stream size : 24.5 MiB (94%) Language : English Encoded date : UTC 2011-11-24 14:20:49 Tagged date : UTC 2011-11-24 14:20:49 Audio ID : 1 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 2mn 18s Bit rate mode : Variable Bit rate : 81.1 Kbps Maximum bit rate : 142 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Compression mode : Lossy Stream size : 1.34 MiB (5%) Language : English Encoded date : UTC 2011-11-24 14:20:49 Tagged date : UTC 2011-11-24 14:20:49
Help!!!

Here's the command I used:-

Code: Select all

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy "title07.mkv" --sout "#transcode{deinterlace=enable,vcodec=h264,vb=1500,acodec=mp4a}:standard{mux=mp4,dst=\"title07-vlc1500.mp4\",access=file}" vlc://quit
I've tried a gazillion combinations of different options and settings - but nothing seems to affect the "Variable" frame rate output at all.

vegaquark
New Cone
New Cone
Posts: 2
Joined: 23 Oct 2019 09:39

Re: Choppy transcoding. How disable MP4 Frame rate mode variable

Postby vegaquark » 23 Oct 2019 09:43

Hi there! 2019 here, same issue transcoding with mp4...
I just wanted to say that i feel you brother! Trying to find a propper solution for this issue as i want to batch convert a bunch of videos to a standarized resolution but i've noticed this choppiness and its so frustrating.
Sorry for not providing a valid answer 8 years later, but this issue continues.
I'll keep searching and looking for a solution! & I'll keep this post updated if i find any.

vegaquark
New Cone
New Cone
Posts: 2
Joined: 23 Oct 2019 09:39

Re: Choppy transcoding. How disable MP4 Frame rate mode variable

Postby vegaquark » 23 Oct 2019 11:00

Finally forcing 30 fps on the convert menu options, and activating the filters "FPS conversion video filter" and "Deinterlacing video filter" seems to give a better result, but not perfect.
I don't know the actual command line options, as i'm using the GUI interface, but i'm sure you can find them out in the documentation.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 37 guests