Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Media

Android Media For Ringtones, Video, TV, Audio or anything else Multimedia related...



Reply
 
LinkBack Thread Tools
Old June 7th, 2011, 03:36 AM   #1 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Notsure handbrake encoded video has audio out of sync for web optimized

I'm having a problem with a movie file that I've encoded with handbrake when I play it on my android device from the web.

the file plays fine on my pc, if I transfer it to my device then it plays fine there but if I try to view it streaming to my device (hosted on amazon cloud front) then the audio is very slightly out of sync with the video.

even half a second out of sync and it's immediately obvious that the a/v doesn't match up properly.

I used the web optimized/2 pass/128kb audio/700 bit rate settings as mp4 and it even plays on iphone which is what I want but on my nexus one and my friends htc desire it plays out of sync.

it's driving me crazy!

I need to be able to encode a video that is compatible with android, iphone and pc as a stream via amazon cloudfront and it seems I can only get 2 out of 3

if I use something like AVS converter, it'll play fine on pc and android but fail on iphone.

if I use camtasia then it'll play on all 3 but the android will complain that the video is not web optimized. At least it will play though so I'm stuck with using camtasia to encode videos that have me speaking in them which isn't ideal.

has anyone experienced audio/video sync issues with streaming moves that were encoded with handbrake on android?

here's an example video encoded with handbrake that is very slightly out of sync on my android but plays fine on iphone, pc and mac

CommentLuv Videos handbrake

please help android forums, you're my only hope.... (

andynexus is offline  
Reply With Quote
Sponsors
Old June 7th, 2011, 04:52 AM   #2 (permalink)
Master
 
Usta's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 2,584
 
Device(s): HTC Desire
Thanks: 127
Thanked 813 Times in 327 Posts
Default

Can you get MediaInfo application on PC, then open the Handbrake and AVS converted videos, select text output and paste the info here? This will help us analyze the converted videos and see what makes one work and the other not.
__________________
Oxygen v2.2.2 (Android v2.3.5), Apharev S-OFF, ClockworkMod v2.5.0.7, Root FAQ, Video Guide
Usta is offline  
Reply With Quote
Old June 7th, 2011, 05:02 AM   #3 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks Usta,

here's the handbrake video that has sync issues on android

Code:
General
Complete name                    : F:\My Documents\commentluv\freeversion pre-launch\sales\sales-production-v2_handbrake.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 22.4 MiB
Duration                         : 3mn 45s
Overall bit rate                 : 832 Kbps
Encoded date                     : UTC 2011-06-07 06:52:53
Tagged date                      : UTC 2011-06-07 06:54:51
Writing application              : HandBrake 0.9.5 2011010300

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : Main@L3.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 3mn 45s
Bit rate mode                    : Variable
Bit rate                         : 700 Kbps
Width                            : 640 pixels
Height                           : 352 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 29.970 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.104
Stream size                      : 18.8 MiB (84%)
Writing library                  : x264 core 112
Encoding settings                : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=2 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=0 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=29 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=700 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Encoded date                     : UTC 2011-06-07 06:52:53
Tagged date                      : UTC 2011-06-07 06:54:51
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 3mn 45s
Bit rate mode                    : Variable
Bit rate                         : 128 Kbps
Maximum bit rate                 : 239 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 3.45 MiB (15%)
Language                         : English
Encoded date                     : UTC 2011-06-07 06:52:53
Tagged date                      : UTC 2011-06-07 06:54:51
and here's the camtasia version that works but says it's not web optimized
Code:
General
Complete name                    : F:\My Documents\commentluv\freeversion pre-launch\sales\sales-big-camtasia.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 21.2 MiB
Duration                         : 3mn 46s
Overall bit rate                 : 788 Kbps
Encoded date                     : UTC 2011-06-05 22:23:47
Tagged date                      : UTC 2011-06-05 22:23:47

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L3.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 3mn 45s
Bit rate mode                    : Variable
Bit rate                         : 660 Kbps
Maximum bit rate                 : 819 Kbps
Width                            : 640 pixels
Height                           : 360 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 30.000 fps
Standard                         : NTSC
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.095
Stream size                      : 17.8 MiB (84%)
Language                         : English
Encoded date                     : UTC 2011-06-05 22:23:47
Tagged date                      : UTC 2011-06-05 22:23:47
Color primaries                  : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics         : BT.601-6 525, BT.601-6 625, BT.1358 525, BT.1358 625, BT.1700 NTSC, SMPTE 170M
Matrix coefficients              : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 3mn 46s
Bit rate mode                    : Constant
Bit rate                         : 125 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 3.36 MiB (16%)
Language                         : English
Encoded date                     : UTC 2011-06-05 22:23:47
Tagged date                      : UTC 2011-06-05 22:23:47
and here's a video that plays fine on Android but wont play on iphone

Code:
General
Complete name                    : F:\My Documents\commentluv\freeversion pre-launch\sales\sales-production-v2-avs.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 22.5 MiB
Duration                         : 3mn 45s
Overall bit rate                 : 835 Kbps
Encoded date                     : UTC 2011-06-04 09:45:08
Tagged date                      : UTC 2011-06-04 09:45:08
Writing library                  : AVS 

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : Main@L5.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 2 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 3mn 45s
Bit rate mode                    : Variable
Bit rate                         : 700 Kbps
Width                            : 640 pixels
Height                           : 360 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 29.970 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.101
Stream size                      : 18.9 MiB (84%)
Language                         : English
Encoded date                     : UTC 2011-06-04 09:45:08
Tagged date                      : UTC 2011-06-04 09:45:08

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 3mn 45s
Bit rate mode                    : Constant
Bit rate                         : 128 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 3.38 MiB (15%)
Language                         : English
Encoded date                     : UTC 2011-06-04 09:45:08
Tagged date                      : UTC 2011-06-04 09:45:08
thanks for taking a look!
andynexus is offline  
Reply With Quote
Old June 7th, 2011, 05:41 AM   #4 (permalink)
Master
 
Usta's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 2,584
 
Device(s): HTC Desire
Thanks: 127
Thanked 813 Times in 327 Posts
Default

I can see two issues here:

1) Instead of the Main/High Profile use the Basic Profile. This can be set if you select "Universal" preset in Handbrake (see also the guide in my signature). With the other converters, you need to check in their options/preferences.

2) Audio is converted with a variable bit rate, where it should be done with a constant bitrate. I don't think you can change that in Handbrake.
So for this web streaming purpose, you are probably better off with using other converters where you can set that option.

If you do both, you should be able to get all 3 features that you need.
Usta is offline  
Reply With Quote
Old June 7th, 2011, 09:51 AM   #5 (permalink)
 
Join Date: Apr 2010
Posts: 5,873
 
Device(s):
Thanks: 0
Thanked 626 Times in 534 Posts
Default

Ditto to what Usta said, thats exactly what I was thinking. Also try turning CABAC off in the advanced settings to see if that helps.
sitlet is offline  
Reply With Quote
Old October 22nd, 2011, 09:18 PM   #6 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, i am converting a dvd to mp4 using Handbrake (iphone/ipod preset for baseline profile) ...the mp4 (x264) file plays fine on iphone and android...but then what i need to do is chop up that mp4 into segments which play on iphone but the audio is out of sync on android (the audio starts immediately and is out of sync with video)....the reason i am trying to edit this way is because handbrake is the only x264 encoder that gives me the file size and quality i need, every other encoder doesn't even come close (even x264Encoder with all the paramaters nowhere near Handbrake)...so is this possible to fix? i really appreciate any responses and help!!
iritter is offline  
Reply With Quote
Reply

Bookmarks

Tags
android, audio, handbrake, streaming, sync


Go Back   Android Forums > Android Discussion > Android Media User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 03:06 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo