[FFmpeg-user] MP4 video showing frame delay.

carlos gabriel hasbun comandari gasto5 at hotmail.com
Mon Oct 21 18:20:35 CEST 2013


Why does my video halt on a frame when playing it with VLC, while playing it with Media Player
Classic it plays correctly but with a squashed resolution (aspect ration with the height diminished)

These are the parameters of the video created with FFMPEG N-45739-g04bf2e7:

General
Complete name                            : C:\Users\C. Gabriel H.C\Videos\FinalGIFtoAVIenhanced.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 35.2 MiB
Duration                                 : 7mn 42s
Overall bit rate mode                    : Variable
Overall bit rate                         : 638 Kbps
Writing application                      : Lavf54.33.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive at L4.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 7mn 42s
Bit rate                                 : 512 Kbps
Width                                    : 1 680 pixels
Height                                   : 1 050 pixels
Display aspect ratio                     : 1.600
Frame rate mode                          : Constant
Frame rate                               : 5.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:4:4
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.058
Stream size                              : 28.0 MiB (80%)
Writing library                          : x264 core 128 r2216 198a7ea
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=4 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=5 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=512 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 2
Format                                   : Ogg
Codec ID                                 : DD
Duration                                 : 7mn 42s
Bit rate mode                            : Variable
Bit rate                                 : 123 Kbps
Maximum bit rate                         : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Stream size                              : 6.80 MiB (19%)


The ffmpeg was called from the command line like so:

C:\Users\C. Gabriel H.C\Videos>ffmpeg -r 5 -f image2 -i "J:\Screencasts\GIMP\GAP\GIFtoAVI\video\GifToAvi\BMP\GifToAviTut_%06d.bmp" -i "J:\Screencasts\GIMP\GAP\GIFtoAV
I\audio\Export\GIMPGAP_GIFtoAVI_enhanced2.flac" -map 0 -map 1 -r 5 -b:v 512k -b:a 128k -acodec libvorbis -ac 1 -ar 48000 FinalGIFtoAVIenhanced.mp4




By the way, once uploaded to YouTube, it plays well(on the Flash, HTML5 and VLC players). These are the specs of the YouTube-encoded file:

General
Complete name                            : C:\Users\C. Gabriel H.C\Downloads\FinalGIFtoAVIenhanced (HD-720p).mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 41.5 MiB
Duration                                 : 7mn 42s
Overall bit rate mode                    : Variable
Overall bit rate                         : 752 Kbps
Encoded date                             : UTC 2013-10-20 13:48:06
Tagged date                              : UTC 2013-10-20 13:48:06
gsst                                     : 0
gstd                                     : 462656
gssd                                     : B4A7DA864MH1382366082235072
gshh                                     : r14---sn-h5q7eney.c.youtube.com

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 7mn 42s
Bit rate                                 : 607 Kbps
Maximum bit rate                         : 3 905 Kbps
Width                                    : 1 152 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 1.600
Frame rate mode                          : Constant
Frame rate                               : 6.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.122
Stream size                              : 33.4 MiB (81%)
Tagged date                              : UTC 2013-10-20 13:48:07

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 7mn 42s
Bit rate mode                            : Variable
Bit rate                                 : 144 Kbps
Maximum bit rate                         : 150 Kbps
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 7.94 MiB (19%)
Title                                    : IsoMedia File Produced by Google, 5-11-2011
Encoded date                             : UTC 2013-10-20 13:48:06
Tagged date                              : UTC 2013-10-20 13:48:07


 		 	   		  


More information about the ffmpeg-user mailing list