View Full Version : Encoded video plays too quickly and sound is out of sync
iopq
18th February 2012, 12:59
My original 16gig avi is 7:52 long which I screen captured
My encoded video is 5:56
I tried encoding in h264 AND VP8 to upload to youtube, I got the same result! I'm using Hybrid, so is that the problem with the software?
I uploaded the H264 video to youtube:
http://www.youtube.com/watch?v=RP2iu09MEEk
I can't upload a 16 gig video to youtube, and I need to crop the window borders out of it. What's a good solution for my problem? I'd like to either encode in H264/AAC or VP8/OGG since those are the native youtube formats
Can someone point to a good free solution for screen capture for youtube purposes? Right now I'm using VHScrCap with Virtual Dub and it's AIDS (watermark + selects window borders)
I don't think I have the correct codecs installed either, which is why I'm using Hybrid for the actual encoding
To reiterate: I'm having problems with the way I'm recording my screen and posting it to youtube and I'd like to find a better way using only free software
hello_hello
18th February 2012, 16:10
The original file plays normally, but the capture plays too fast? Is it just the video playing fast or the audio too? What player are you using to play them?
I've had this problem before and I "think" it related to the audio stream, but maybe it's the frame rate. It's possible the original file has a frame rate of 23.976 while the encode is playing at 29.970, or something similar.
Use MediaInfo (http://mediainfo.sourceforge.net/en) to obtain the details for the original file, save them and post them here. Then do the same thing with the encode. That might be somewhere to start looking.
Other than that, try a different converter. Format Factory, AnyVideoConverter and Super Video Converter are fairly simple to use. They're all free. You'll find them with Google.
iopq
18th February 2012, 21:53
The original file plays normally, but the capture plays too fast? Is it just the video playing fast or the audio too? What player are you using to play them?
I've had this problem before and I "think" it related to the audio stream, but maybe it's the frame rate. It's possible the original file has a frame rate of 23.976 while the encode is playing at 29.970, or something similar.
Use MediaInfo (http://mediainfo.sourceforge.net/en) to obtain the details for the original file, save them and post them here. Then do the same thing with the encode. That might be somewhere to start looking.
Other than that, try a different converter. Format Factory, AnyVideoConverter and Super Video Converter are fairly simple to use. They're all free. You'll find them with Google.
I captured the original video from the game, it's 7:52 long in the 16 gig avi
I converted it and the video track became 5:56 while the audio track is still 7:52 so the sound cuts off from the end
General
Complete name : I:\vods\mine\agh zvp.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 16.1 GiB
Duration : 7mn 52s
Overall bit rate : 293 Mbps
Video
ID : 0
Format : RGBA
Codec ID : 0x00000000
Codec ID/Info : Basic Windows bitmap format. 1, 4 and 8 bpp versions are palettised. 16, 24 and 32bpp contain raw RGB samples
Duration : 7mn 52s
Bit rate : 290 Mbps
Width : 800 pixels
Height : 600 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Bit depth : 8 bits
Bits/(Pixel*Frame) : 24.156
Stream size : 16.0 GiB (99%)
Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 7mn 52s
Bit rate mode : Constant
Bit rate : 3 072 Kbps
Channel(s) : 2 channels
Sampling rate : 96.0 KHz
Bit depth : 16 bits
Stream size : 173 MiB (1%)
Interleave, duration : 42 ms (1.04 video frame)
then I compressed it:
General
Complete name : I:\vods\mine\agh zvp.mp4
Format : MPEG-4
Format profile : JVT
Codec ID : avc1
File size : 72.3 MiB
Duration : 7mn 52s
Overall bit rate mode : Variable
Overall bit rate : 1 282 Kbps
Encoded date : UTC 2012-02-18 11:01:46
Tagged date : UTC 2012-02-18 11:01:46
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 5mn 57s
Source duration : 5mn 56s
Bit rate : 1 079 Kbps
Nominal bit rate : 1 500 Kbps
Maximum bit rate : 3 317 Kbps
Width : 790 pixels
Height : 556 pixels
Display aspect ratio : 1.421
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.098
Stream size : 45.9 MiB (64%)
Source stream size : 63.9 MiB
Writing library : x264 core 120 r2146 bcd41db
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x111 / me=hex / subme=5 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=3 / 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=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=78125 / nal_hrd=none / ip_ratio=1.40 / aq=1:0.00
Encoded date : UTC 2012-02-18 11:01:46
Tagged date : UTC 2012-02-18 11:01:48
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 7mn 52s
Bit rate mode : Variable
Bit rate : 144 Kbps
Maximum bit rate : 156 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 8.20 MiB (11%)
Encoded date : UTC 2012-02-18 11:01:48
Tagged date : UTC 2012-02-18 11:01:48
then I compressed it to a different format:
General
Complete name : I:\vods\mine\agh zvp.webm
Format : WebM
Format version : Version 2
File size : 62.5 MiB
Duration : 5mn 56s
Overall bit rate : 1 469 Kbps
Encoded date : UTC 2012-02-18 02:51:18
Writing application : mkvmerge v5.3.0 ('I could have danced') built on Feb 9 2012 10:38:07
Writing library : libebml v1.2.3 + libmatroska v1.3.0
Video
ID : 1
Format : VP8
Codec ID : V_VP8
Bit rate : 1 404 Kbps
Width : 792 pixels
Height : 556 pixels
Display aspect ratio : 1.424
Compression mode : Lossy
Language : English
Default : Yes
Forced : No
I didn't even bother with the audio because the length is already wrong
note that these are cropped from the original so the aspect ratio is different
iopq
20th February 2012, 23:52
OK, I used VLC and it gave me a video that's 7:52
but the sound is messed up
I have the sound in a .ogg file, how do I make a video with the correct sound and video?
I tried using Hybrid again, but somehow the video STILL plays only 5:56 even though I didn't even reencode it! Is it an mkvmerge bug or something? agh.webm plays fine but has sound issues, agh2.webm plays only 5:56 even though MediaInfo says 7:52
BUT THE VIDEO STREAM IS IDENTICAL
General
Unique ID : 292195485514170784172371890482949911985 (0xDBD2CDB344691D27A2CE3ADABEC3F5B1)
Complete name : I:\vods\mine\agh.webm
Format : WebM
Format version : Version 2
File size : 190 MiB
Duration : 7mn 52s
Overall bit rate mode : Variable
Overall bit rate : 3 377 Kbps
Writing application : Lavf53.2.0
Writing library : Lavf53.2.0
Video
ID : 2
Format : VP8
Codec ID : V_VP8
Duration : 7mn 52s
Bit rate : 3 106 Kbps
Width : 800 pixels
Height : 600 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.259
Stream size : 175 MiB (92%)
Default : Yes
Forced : No
Audio
ID : 1
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 7mn 52s
Bit rate mode : Variable
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 7.22 MiB (4%)
Writing library : libVorbis (Schaufenugget) (20101101 (Schaufenugget))
Default : Yes
Forced : No
Writing application : VLC media player
General
Complete name : I:\vods\mine\agh2.webm
Format : WebM
Format version : Version 2
File size : 186 MiB
Duration : 7mn 52s
Overall bit rate mode : Variable
Overall bit rate : 3 308 Kbps
Encoded date : UTC 2012-02-20 22:34:58
Writing application : mkvmerge v5.3.0 ('I could have danced') built on Feb 9 2012 10:38:07
Writing library : libebml v1.2.3 + libmatroska v1.3.0
Video
ID : 1
Format : VP8
Codec ID : V_VP8
Duration : 7mn 52s
Bit rate : 3 111 Kbps
Width : 800 pixels
Height : 600 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.259
Stream size : 175 MiB (94%)
Default : Yes
Forced : Yes
Audio
ID : 2
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 7mn 52s
Bit rate mode : Variable
Bit rate : 57.0 Kbps
Channel(s) : 1 channel
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 3.21 MiB (2%)
Writing library : libVorbis (Schaufenugget) (20101101 (Schaufenugget))
Default : Yes
Forced : No
QuantumRand
21st February 2012, 03:56
Mayhaps give Handbrake or FormatFactory a try. Both are very user friendly and give you the option of essentially selecting your source file and clicking go.
I personally use Handbrake since I like its lightweight installer, and I like being able to set advanced x.264 options in the GUI.
iopq
21st February 2012, 09:36
OK, handbrake worked, thanks :)
youtube complained the audio/video may not be synced, though, but it looked fine to me:
http://www.youtube.com/watch?v=1aX-J82zp_o
QuantumRand
21st February 2012, 12:07
Cool, glad you got it to work. I'd bet the 25FPS capture rate was the issue gumming up the other encoder you tried. That or perhaps the sheer bitrate, since each frame was captured as an entire bitmap.
The video looked fine to me on YouTube. It probably only gave you the A/V sync warning due to the couple of lag spikes.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.