안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요.
서버의 동영상을 스트리밍 하는 도중에 이상한 점이 발견되어 질문드립니다.
약간의 형식은 다른데 크게 봤을 때, 똑같은 mp4 파일인데 어떤 동영상은
재생이 잘되고, 어떤 동영상은 "스트리밍할 수 없는 동영상입니다."라는 문구와 함께
재생이 되지 않더군요
아래 정보들이 있는데요. 혹시 아시는 것 있으시면 답글 부탁드립니다!!
재생 불가능 동영상
General
Complete name : C:\Documents and Settings\MYHOME\바탕 화면\2010-08-26.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 6.50 MiB
Duration : 15s 872ms
Overall bit rate : 3 434 Kbps
Video #2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Muxing mode : Container profile=Unknown@12.3
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15s 799ms
Bit rate mode : Variable
Bit rate : 3 385 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 1.500
Frame rate mode : Variable
Frame rate : 29.369 fps
Minimum frame rate : 17.241 fps
Maximum frame rate : 31.250 fps
Standard : NTSC
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.334
Stream size : 6.38 MiB (98%)
Audio #1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 15s 872ms
Bit rate mode : Variable
Bit rate : 59.4 Kbps
Nominal bit rate : 62.8 Kbps
Maximum bit rate : 66.5 Kbps
Channel(s) : 1 channel
Channel positions : C
Sampling rate : 16.0 KHz
Resolution : 16 bits
Stream size : 115 KiB (2%)
재생 가능 동영상
General
Complete name : C:\Documents and Settings\MYHOME\바탕 화면\Unexpect2001_512kb.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 5.51 MiB
Duration : 1mn 19s
Overall bit rate : 580 Kbps
Movie name : Unexpected Perspectives - http://www.archive.org/details/Unexpect2001
Performer : Scott Dickey
Screenplay by : Scott Dickey
Encoded date : 2001
Tagged date : UTC 2008-11-30 16:36:17
Writing application : Lavf51.10.0
Video #1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L1.3
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 19s
Bit rate mode : Variable
Bit rate : 511 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4/3
Frame rate mode : Constant
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.222
Stream size : 4.85 MiB (88%)
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
Audio #2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1mn 19s
Bit rate mode : Variable
Bit rate : 64.2 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 623 KiB (11%)
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
서버의 동영상을 스트리밍 하는 도중에 이상한 점이 발견되어 질문드립니다.
약간의 형식은 다른데 크게 봤을 때, 똑같은 mp4 파일인데 어떤 동영상은
재생이 잘되고, 어떤 동영상은 "스트리밍할 수 없는 동영상입니다."라는 문구와 함께
재생이 되지 않더군요
아래 정보들이 있는데요. 혹시 아시는 것 있으시면 답글 부탁드립니다!!
재생 불가능 동영상
General
Complete name : C:\Documents and Settings\MYHOME\바탕 화면\2010-08-26.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 6.50 MiB
Duration : 15s 872ms
Overall bit rate : 3 434 Kbps
Video #2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Muxing mode : Container profile=Unknown@12.3
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15s 799ms
Bit rate mode : Variable
Bit rate : 3 385 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 1.500
Frame rate mode : Variable
Frame rate : 29.369 fps
Minimum frame rate : 17.241 fps
Maximum frame rate : 31.250 fps
Standard : NTSC
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.334
Stream size : 6.38 MiB (98%)
Audio #1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 15s 872ms
Bit rate mode : Variable
Bit rate : 59.4 Kbps
Nominal bit rate : 62.8 Kbps
Maximum bit rate : 66.5 Kbps
Channel(s) : 1 channel
Channel positions : C
Sampling rate : 16.0 KHz
Resolution : 16 bits
Stream size : 115 KiB (2%)
재생 가능 동영상
General
Complete name : C:\Documents and Settings\MYHOME\바탕 화면\Unexpect2001_512kb.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 5.51 MiB
Duration : 1mn 19s
Overall bit rate : 580 Kbps
Movie name : Unexpected Perspectives - http://www.archive.org/details/Unexpect2001
Performer : Scott Dickey
Screenplay by : Scott Dickey
Encoded date : 2001
Tagged date : UTC 2008-11-30 16:36:17
Writing application : Lavf51.10.0
Video #1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L1.3
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 19s
Bit rate mode : Variable
Bit rate : 511 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4/3
Frame rate mode : Constant
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.222
Stream size : 4.85 MiB (88%)
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
Audio #2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1mn 19s
Bit rate mode : Variable
Bit rate : 64.2 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 623 KiB (11%)
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
2010.09.08 23:46:19
http://blog.naver.com/daetery/150079101870
링크된 프로그램으로 두 파일을 열어 보시면 두 번째 파일은 헤더 부분이 파일 앞쪽에 있을 겁니다.
OpenCORE에서 스트리밍 재생 시 헤더 부분을 미리 로딩한 뒤에 재생을 시작하기 때문에, 헤더가 파일 뒤쪽에 있으면 caching을 못해서 정상 재생을 못 합니다.
링크된 프로그램으로 두 파일을 열어 보시면 두 번째 파일은 헤더 부분이 파일 앞쪽에 있을 겁니다.
OpenCORE에서 스트리밍 재생 시 헤더 부분을 미리 로딩한 뒤에 재생을 시작하기 때문에, 헤더가 파일 뒤쪽에 있으면 caching을 못해서 정상 재생을 못 합니다.
위 글 참고하세요.