First, a little about the file:
ffprobe video.mp4
ffprobe version 0.7.11, Copyright (c) 2007-2011 the FFmpeg developers
built on Mar 26 2012 12:49:08 with clang 3.0 (tags/Apple/clang-211.12)
configuration: --prefix=/opt/local --enable-gpl --enable-postproc
--enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis
--enable-libtheora --enable-libdirac --enable-libschroedinger
--enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx
--enable-libspeex --mandir=/opt/local/share/man --enable-shared
--enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc6d904ac00] multiple edit list entries, a/v
desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.11.100
Duration: 00:00:20.18, start: 0.000000, bitrate: 643 kb/s
Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16, 125 kb/s
Stream #0.1(eng): Audio: aac, 48000 Hz, mono, s16, 80 kb/s
Stream #0.2(eng): Video: h264 (High), yuv420p, 352x240 [PAR 40:33 DAR
16:9], 430 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc
If I play it on VLC for instance, its default behavior is to play both
audio streams, but I'd like to be able to select which audio stream to play
in the MediaPlayer. If I just open the file directly from the file manager
it won't play at all. In the device's simulator sometimes it plays the
audio but the video won't appear, although the used codecs are reported to
be supported according to documentation.
I looked all over but didn't find any reference to this. Anyone knows if
this it is possible to programmatically select with the audio stream to
play, with Android's multimedia framework? Or perhaps one could guide me to
some documentation about it?
Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en