VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Hi all I have been going around searching so I do have minimal knowledge about this issue.
    I need help on the perfect settings for converting/encoding for youtube HD 1080p videos.

    Now the problem is, sometimes and not all the time the video I upload on youtube goes out of sync. Not the audio but the video. The video would lag or go slow for a few secs, then making the video out of sync with the audio. When I playback the video on my pc, it is perfectly fine. It doesn't go out of sync, but after uploading and going through youtube's conversion the video goes out of sync.

    The source videos are usually .tp or .ts files. I put them into MP4 containers.
    There are 2 programs I use. They are MEGUI and StaxRip and here are the settings I usually use:

    StaxRip:
    Video - Encoder profile "2pass x264 Film Medium" then change the tune setting to disabled.
    Audio - Audio profile "Advance | AAC 96 kbps"

    MEGUI:
    Video - Video preset "x264: DXVA-HD-HQ" then change bitrate to 4000kbps
    Audio - "Nero AAC NDAAC-HE-MultiChannel-HQ-192kbps"
    Quote Quote  
  2. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    a mediainfo text report of one that went out of sync might help, but if it doesn't happen to the same file all the time it's most likely something is wrong at your end not youtube.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  3. Yeah, my suggestion would be to download the YouTube version and check if it's really out of synch. My guess is that it isn't. Then while you're at it you can take aedipuss's suggestion and get the mediainfo report.
    Quote Quote  
  4. I did mediainfo report on the my file that has been converted and it seems that the video stream is 1s longer than the audio stream. I also see that AAC sampling rate is 48 KHz when youtube wants 41Khz. I'm thinking these things are the problem? What can I do to fix this?

    Here it is:

    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 95.9 MiB
    Duration : 3mn 14s
    Overall bit rate : 4 143 Kbps
    Encoded date : UTC 2010-01-02 05:07:20
    Tagged date : UTC 2010-01-02 05:07:20

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 3 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 3mn 14s
    Bit rate mode : Variable
    Bit rate : 4 000 Kbps
    Maximum bit rate : 6 278 Kbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 29.970 fps
    Resolution : 24 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.064
    Stream size : 92.6 MiB (97%)
    Writing library : x264 core 68 r1183M f21daff
    Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=4000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
    Encoded date : UTC 2010-01-02 05:07:20
    Tagged date : UTC 2010-01-02 05:07:21

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format version : Version 4
    Format profile : LC
    Format settings, SBR : Yes
    Format settings, PS : No
    Codec ID : 40
    Duration : 3mn 13s
    Bit rate mode : Variable
    Bit rate : 139 Kbps
    Maximum bit rate : 150 Kbps
    Channel(s) : 2 channels
    Channel positions : L R
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 3.22 MiB (3%)
    Encoded date : UTC 2010-01-02 05:07:21
    Tagged date : UTC 2010-01-02 05:07:21
    Quote Quote  
  5. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    the problem may be the vbr audio. nothing likes vbr audio. switch to cbr encoding and see if the problem goes away.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  6. I uploaded 600 videos to YouTube, all with VBR audio, and not one that YouTube reencoded was ever out of synch. Personally, I wouldn't think that would have anything to do with it. Almost all used 48kHz sampling as well.

    Was that MediaInfo report of the video downloaded from YouTube? If so, did it play out of synch? If not, get it so you can convince yourself the reencoding isn't the problem, but the transmission of the video from YouTube back to you. After all, didn't you say that sometimes they play out of synch and other times they don't?
    Quote Quote  
  7. This is original source file:
    Code:
    Format                           : MPEG-TS
    File size                        : 372 MiB
    Duration                         : 2mn 51s
    Overall bit rate                 : 18.2 Mbps
    
    Video
    ID                               : 17 (0x11)
    Menu ID                          : 1 (0x1)
    Format                           : MPEG Video
    Format version                   : Version 2
    Format profile                   : Main@High
    Format settings, Matrix          : Default
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 16.5 Mbps
    Nominal bit rate                 : 17.4 Mbps
    Width                            : 1 920 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate                       : 29.970 fps
    Standard                         : Component
    Colorimetry                      : 4:2:0
    Scan type                        : Interlaced
    Scan order                       : Bottom Field First
    Bits/(Pixel*Frame)               : 0.266
    Stream size                      : 337 MiB (91%)
    
    Audio
    ID                               : 20 (0x14)
    Menu ID                          : 1 (0x1)
    Format                           : AC-3
    Format/Info                      : Audio Coding 3
    Duration                         : 2mn 51s
    Bit rate mode                    : Constant
    Bit rate                         : 448 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 48.0 KHz
    Stream size                      : 9.15 MiB (2%)
    Language                         : Korean
    Here is my encoded video:
    Code:
    Format                           : MPEG-4
    Format profile                   : Base Media
    Codec ID                         : isom
    File size                        : 84.5 MiB
    Duration                         : 2mn 51s
    Overall bit rate                 : 4 134 Kbps
    Encoded date                     : UTC 2010-01-02 17:11:52
    Tagged date                      : UTC 2010-01-02 17:11:52
    
    Video
    ID                               : 1
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.1
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 3 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 4 000 Kbps
    Maximum bit rate                 : 6 699 Kbps
    Width                            : 1 920 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Constant
    Frame rate                       : 29.970 fps
    Resolution                       : 24 bits
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.064
    Stream size                      : 81.9 MiB (97%)
    Writing library                  : x264 core 68 r1183M f21daff
    Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=4000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
    Encoded date                     : UTC 2010-01-02 17:11:52
    Tagged date                      : UTC 2010-01-02 17:11:53
    
    Audio
    ID                               : 2
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : Yes
    Format settings, PS              : No
    Codec ID                         : 40
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 128 Kbps
    Maximum bit rate                 : 140 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 44.1 KHz
    Resolution                       : 16 bits
    Stream size                      : 2.61 MiB (3%)
    Encoded date                     : UTC 2010-01-02 17:11:53
    Tagged date                      : UTC 2010-01-02 17:11:53
    Here is youtube downloaded video that is out of sync:
    Code:
    Format                           : MPEG-4
    Format profile                   : Base Media / Version 2
    Codec ID                         : mp42
    File size                        : 65.4 MiB
    Duration                         : 3mn 6s
    Overall bit rate                 : 2 939 Kbps
    Encoded date                     : UTC 2010-01-02 18:36:40
    Tagged date                      : UTC 2010-01-02 18:36:40
    gsst                             : 0
    gstd                             : 187268
    gssd                             : B4A7DD3A5HH
    
    Video
    ID                               : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L3.1
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 3 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 3mn 6s
    Bit rate mode                    : Variable
    Bit rate                         : 2 816 Kbps
    Maximum bit rate                 : 5 453 Kbps
    Width                            : 1 278 pixels
    Height                           : 720 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Constant
    Frame rate                       : 29.970 fps
    Resolution                       : 24 bits
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.102
    Stream size                      : 62.7 MiB (96%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-02 18:36:40
    Tagged date                      : UTC 2010-01-02 18:36:42
    
    Audio
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : 40
    Duration                         : 3mn 6s
    Bit rate mode                    : Variable
    Bit rate                         : 120 Kbps
    Maximum bit rate                 : 149 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 44.1 KHz
    Resolution                       : 16 bits
    Stream size                      : 2.68 MiB (4%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-02 18:36:40
    Tagged date                      : UTC 2010-01-02 18:36:42
    Quote Quote  
  8. You're saying the source video is in synch, your reencoded video is in synch, but the version YouTube made and which you downloaded is out of synch when played on your computer? If so I apologize for being dead wrong and wasting your time. I guess the next step would be to take aedipuss's advice and upload a version with CBR audio to see if that fixes the problem.

    I should say, I guess, that all the 600 videos I uploaded used VBR MP3 audio, and not AAC audio.
    Quote Quote  
  9. Any help is appreciated no need for apologies.

    As soon as I get time I will do one with CBR/AAC and i will do another with VBR/MP3. I will post the results soon.

    If you don't mind me asking, what setting do you use when encoding for youtube uploads? and what program you use?
    Quote Quote  
  10. Settings? These weren't Hi-Def stuff. I made XviD AVIs frameserving AviSynth scripts into VDubMod. I did them all using constant quant 3. The MP3 audio was made using a BeSweet preset for Fast Standard.
    Quote Quote  
  11. Here are more MediaInfo from the same source file as previous post, encoded and downloaded off youtube.

    Encoded file with AAC/CBR:
    Code:
    Format                           : MPEG-4
    Format profile                   : Base Media / Version 2
    Codec ID                         : mp42
    File size                        : 115 MiB
    Duration                         : 3mn 5s
    Overall bit rate                 : 5 198 Kbps
    Encoded date                     : UTC 2010-01-03 06:10:40
    Tagged date                      : UTC 2010-01-03 06:10:40
    gsst                             : 0
    gstd                             : 186270
    gssd                             : B4A7DD365HH
    
    Video
    ID                               : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.0
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 3 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 3mn 5s
    Bit rate mode                    : Variable
    Bit rate                         : 5 074 Kbps
    Maximum bit rate                 : 9 555 Kbps
    Width                            : 1 918 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Constant
    Frame rate                       : 29.970 fps
    Resolution                       : 8 bits
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.082
    Stream size                      : 112 MiB (98%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 06:10:40
    Tagged date                      : UTC 2010-01-03 06:10:51
    
    Audio
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : 40
    Duration                         : 3mn 5s
    Bit rate mode                    : Variable
    Bit rate                         : 121 Kbps
    Maximum bit rate                 : 149 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 44.1 KHz
    Stream size                      : 2.68 MiB (2%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 06:10:40
    Tagged date                      : UTC 2010-01-03 06:10:51
    Youtube's file that is out of sync:
    Code:
    Format                           : MPEG-4
    Format profile                   : Base Media / Version 2
    Codec ID                         : mp42
    File size                        : 115 MiB
    Duration                         : 3mn 5s
    Overall bit rate                 : 5 198 Kbps
    Encoded date                     : UTC 2010-01-03 06:10:40
    Tagged date                      : UTC 2010-01-03 06:10:40
    gsst                             : 0
    gstd                             : 186270
    gssd                             : B4A7DD365HH
    
    Video
    ID                               : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.0
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 3 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 3mn 5s
    Bit rate mode                    : Variable
    Bit rate                         : 5 074 Kbps
    Maximum bit rate                 : 9 555 Kbps
    Width                            : 1 918 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Constant
    Frame rate                       : 29.970 fps
    Resolution                       : 24 bits
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.082
    Stream size                      : 112 MiB (98%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 06:10:40
    Tagged date                      : UTC 2010-01-03 06:10:51
    
    Audio
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : 40
    Duration                         : 3mn 5s
    Bit rate mode                    : Variable
    Bit rate                         : 121 Kbps
    Maximum bit rate                 : 149 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 44.1 KHz
    Resolution                       : 16 bits
    Stream size                      : 2.68 MiB (2%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 06:10:40
    Tagged date                      : UTC 2010-01-03 06:10:51
    Encoded file with MP3/ABR:
    Code:
    Format                           : MPEG-4
    Format profile                   : Base Media / Version 2
    Codec ID                         : mp42
    File size                        : 114 MiB
    Duration                         : 2mn 51s
    Overall bit rate                 : 5 561 Kbps
    Encoded date                     : UTC 2010-01-03 07:00:00
    Tagged date                      : UTC 2010-01-03 07:00:00
    gsst                             : 0
    gstd                             : 171943
    gssd                             : B4A7DD305HH
    
    Video
    ID                               : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.0
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 3 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 5 429 Kbps
    Maximum bit rate                 : 10.4 Mbps
    Width                            : 1 918 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Constant
    Frame rate                       : 30.000 fps
    Resolution                       : 8 bits
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.087
    Stream size                      : 111 MiB (98%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 07:00:00
    Tagged date                      : UTC 2010-01-03 07:00:04
    
    Audio
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : 40
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 129 Kbps
    Maximum bit rate                 : 148 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 44.1 KHz
    Stream size                      : 2.64 MiB (2%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 07:00:00
    Tagged date                      : UTC 2010-01-03 07:00:04
    Youtube's file that is sync:
    Code:
    Format                           : MPEG-4
    Format profile                   : Base Media / Version 2
    Codec ID                         : mp42
    File size                        : 114 MiB
    Duration                         : 2mn 51s
    Overall bit rate                 : 5 561 Kbps
    Encoded date                     : UTC 2010-01-03 07:00:00
    Tagged date                      : UTC 2010-01-03 07:00:00
    gsst                             : 0
    gstd                             : 171943
    gssd                             : B4A7DD305HH
    
    Video
    ID                               : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.0
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 3 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 5 429 Kbps
    Maximum bit rate                 : 10.4 Mbps
    Width                            : 1 918 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Constant
    Frame rate                       : 30.000 fps
    Resolution                       : 24 bits
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.087
    Stream size                      : 111 MiB (98%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 07:00:00
    Tagged date                      : UTC 2010-01-03 07:00:04
    
    Audio
    ID                               : 1
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format version                   : Version 4
    Format profile                   : LC
    Format settings, SBR             : No
    Codec ID                         : 40
    Duration                         : 2mn 51s
    Bit rate mode                    : Variable
    Bit rate                         : 129 Kbps
    Maximum bit rate                 : 148 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 44.1 KHz
    Resolution                       : 16 bits
    Stream size                      : 2.64 MiB (2%)
    Title                            : (C) 2007 Google Inc. v08.13.2007.
    Encoded date                     : UTC 2010-01-03 07:00:00
    Tagged date                      : UTC 2010-01-03 07:00:04
    So conclusion is... Don't use AAC? However my older vids that i uploaded onto youtube with AAC are fine. It's just this one video that youtube doesn't like AAC to go with.

    All these videos playback fine on my pc!
    Quote Quote  
  12. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    if those are all from the same source file than i would guess there is something wrong at your end. check the video durations. most the time your encodes end up at 3m 5s and are out of sync and after youtube processes them they are 2m 51s. one that works for you is 2m 51s after your encode and after youtube encodes.

    might be a glich in the source files somewhere.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  13. I don't understand why all the files play perfectly fine on my pc tho =\

    I gotta do more tests.. I will post results later
    Quote Quote  



Similar Threads