avi파일을 kmp플레이어등으로 실행시키고 재생정보를 보면 파일정보에 video가 두개가 있습니다. width와 height만 다른데요.
이게 블랙박스 동영상이라 헤더에 비디오를 두개 잡는것 같습니다. 이게 pc에서는 구분해서 두개를 다 띄워줄수 있는데요.
이걸 안드로이드에서 구분해보려고 하는데 비디오 뷰에 재생할때 어떤조건을 줘야 구분해서 재생시켜줄수가 있을까요?
아래는 다음팟으로 확인한 재생정보 입니다.
I:\NV_2031_0110_155929.avi
General
Complete name : I:\test.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 86.4 MiB
Video
Format : AVC
Format/Info : Advanced Video Codec
Codec ID : AVC1
Duration : 1mn 0s
Width : 1 280 pixels
Height : 720 pixels
Frame rate : 20.027 fps
Color space : YUV
Chroma subsampling : 4:2:0
Video
Format : AVC
Format/Info : Advanced Video Codec
Codec ID : AVC1
Duration : 1mn 0s
Width : 720 pixels
Height : 480 pixels
Frame rate : 10.017 fps
Color space : YUV
Chroma subsampling : 4:2:0
Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : FF
Duration : 7h 27mn
Bit rate : 48.0 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 8 000 Hz
Bit depth : 16 bits
Compression mode : Lossy
Text
Duration : 46s 0ms
오디오나 자막트랙을 변경하는 API가 최근에 추가되었으나. 비디오 트랙을 선택하는 API는 아직 없습니다. 무조건 처음 나오는 비디오 트랙만 지원됩니다. 480p는 소프트웨어 코덱으로도 잘 도니 해상도를 보고, 480p영상은 ffmpeg 같은 것으로 software 재생을 하시는게 좋을 듯 합니다.