@gubu, thanks for the link to the sync video, it is great to see the delay between audio and video. To rule out gstreamer of the equation, I have tried to transcode the video by doing:
gst-launch-1.0 filesrc location=Videos/sync-test.mp4 ! decodebin name=demux demux. ! queue ! audioconvert ! lamemp3enc ! mux. qtmux name=mux ! filesink location=recode.mp4 demux. ! queue ! videoconvert ! x264enc ! mux.
The resulting file has correct synchronization, so all points to pulseaudio or android drivers to be the culprit here.
@gubu, thanks for the link to the sync video, it is great to see the delay between audio and video. To rule out gstreamer of the equation, I have tried to transcode the video by doing:
gst-launch-1.0 filesrc location= Videos/ sync-test. mp4 ! decodebin name=demux demux. ! queue ! audioconvert ! lamemp3enc ! mux. qtmux name=mux ! filesink location=recode.mp4 demux. ! queue ! videoconvert ! x264enc ! mux.
The resulting file has correct synchronization, so all points to pulseaudio or android drivers to be the culprit here.