В прошлом году я купил систему камер видеонаблюдения h264 и настроил ее для передачи видео по FTP на свой компьютер. Мне удалось воспроизвести видео (хотя оно и воспроизводилось немного быстро) на Ubuntu 11.04 с помощью mplayer.
Несколько месяцев назад я выполнил свежую установку 12.04, и я не могу воспроизвести видео с помощью mplayer, smplayer или VLC. У меня установлены видео пакеты с ограниченным форматом, и когда я играю с любым из плееров, я получаю только серое видео.
При вызове mplayer из командной строки для воспроизведения видео без опций, я получаю много таких ошибок:
[h264 @ 0x7f278c61f280]concealing 1320 DC, 1320 AC, 1320 MV errors
No pts value from demuxer to use for frame!
pts after filters MISSING
Я не эксперт в области видео, и у меня много вопросов. тупиков, когда гуглил для этого. Может кто-нибудь дать совет о том, как воспроизводить эти видео?
Вот вывод mediainfo для образца файла.
mediainfo -f sec-cam01-m-20120921-212454.h264
General
Count : 278
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Complete name : sec-cam01-m-20120921-212454.h264
File name : sec-cam01-m-20120921-212454
File extension : h264
Format : AVC
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Format/Extensions usually used : avc h264
Commercial name : AVC
Internet media type : video/H264
Codec : AVC
Codec : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://developers.videolan.org/x264.html
Codec/Extensions usually used : avc h264
File size : 1097315
File size : 1.05 MiB
File size : 1 MiB
File size : 1.0 MiB
File size : 1.05 MiB
File size : 1.046 MiB
File last modification date : UTC 2012-09-22 01:27:12
File last modification date (local) : 2012-09-21 21:27:12
Video
Count : 205
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : Baseline@L4.0
Format settings : 1 Ref Frames
Format settings, CABAC : No
Format settings, CABAC : No
Format settings, ReFrames : 1
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=3
Internet media type : video/H264
Codec : AVC
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://developers.videolan.org/x264.html
Codec profile : Baseline@L4.0
Codec settings : 1 Ref Frames
Codec settings, CABAC : No
Codec_Settings_RefFrames : 1
Width : 704
Width : 704 pixels
Height : 480
Height : 480 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 1.467
Display aspect ratio : 3:2
Standard : NTSC
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Редактировать: Вот пример видео с использованием той же кодировки: https://www.dropbox.com/s/l5acwzy8rtqn9xe/sec-cam08-m-20121118-105815.h264 ( видео не совпадает с выводом mediainfo)