When I try to transcode a video in VLC using the h264 video codec and mp4a audio codec, the audio and video is consistently out of sync by about 1 second. As part of my debugging process, I tried using MediaCoder with the same codecs and similar settings and the audio / video was also out of sync, which seems to hint at some incompatibility with some of the settings I'm using. Here is the command line:
vlc -v "myvideo.avi" -I dummy --sout "#transcode{soverlay, ab=64, samplerate=44100,channels=2, acodec=mp4a, vcodec=h264, width=480,height=320,fps=25,vb=400,venc=x264{vbv-bufsize=10000, partitions=all,level=12,no-cabac, subme=7, threads
=4, ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2, direct=auto,qcomp=0.0, qpmax=51}}:gather:rtp{mp4a-latm, sdp=rtsp://0.0.0.0:1234/stream.sdp}"
Anyone have an idea of what might be wrong?
Thanks!
Marc