не могу просмотреть видео-ролик (не хватает кодека?)

Обсудить вопросы и проблемы с видео

Модератор: Модераторы разделов

Ответить
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

не могу просмотреть видео-ролик

Сообщение vr13 »

я никогда не сталкивался мультимедией (кроме примитивного - "посмотреть" или "послушать" через mplayer) и не уверен, что могу сформулировать вопрос, поэтому извините за, может быть, неумелое объяснение проблемы:

принесли файл .mpg (сказали что win винде "играет" нормально - сам проверить не могу в виду отсутствия таковой под руками). при попытке проиграть его через mplayer, это воспроизводится, но с какими-то дикими скачками: полуторагигабайтный файл (час с чем-то записи - это лыжная гонка нескольколетней давности, записанная, на сколько я понимаю с телевизора) заканчивается меньше чем за минуту с вот такой диагностикой:

Код: Выделить всё

$ mplayer  test.mpg
MPlayer SVN-r34445-4.5.3 (C) 2000-2011 MPlayer Team

Playing test.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG2  704x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=1.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=2.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 704x576 => 768x576 Planar YV12
A:  88.4 V:   4.0 A-V: 84.381 ct: -0.125  94/ 94  2%  3%  2.6% 0 0
[mp2float @ 0x7f1130e35140]Header missing
A:  88.8 V:   4.5 A-V: 84.309 ct: -0.081 105/105  2%  3%  2.4% 0 0
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 21 5
[mpeg2video @ 0x7f1130e35140]slice mismatch
[mpeg2video @ 0x7f1130e35140]invalid cbp at 18 25
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 26
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 28
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 29
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 8 30
[mpeg2video @ 0x7f1130e35140]00 motion_type at 12 31
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 32
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 34
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 6 35
[mpeg2video @ 0x7f1130e35140]Warning MVs not available
[mpeg2video @ 0x7f1130e35140]concealing 1364 DC, 1364 AC, 1364 MV errors
A: 342.1 V:  95.2 A-V:246.941 ct:  0.028 268/268  1%  3%  3.7% 1 0
[mp2float @ 0x7f1130e35140]Header missing
A: 342.6 V:  95.9 A-V:246.648 ct:  0.100 286/286  1%  3%  3.5% 4 0
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 29 17
[mpeg2video @ 0x7f1130e35140]invalid cbp at 1 19
[mpeg2video @ 0x7f1130e35140]slice mismatch
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 21 21
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 1 25
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 2 24
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 1 24
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 17 26
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 14 30
[mpeg2video @ 0x7f1130e35140]slice mismatch
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 9 29
[mpeg2video @ 0x7f1130e35140]invalid cbp at 36 30
[mpeg2video @ 0x7f1130e35140]invalid cbp at 7 31
[mpeg2video @ 0x7f1130e35140]invalid cbp at 11 35
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 18 34
[mpeg2video @ 0x7f1130e35140]invalid cbp at 1 35
[mpeg2video @ 0x7f1130e35140]concealing 836 DC, 836 AC, 836 MV errors
A: 346.0 V: 345.9 A-V:  0.068 ct:  0.480 381/381  1%  3%  2.7% 4 0
[mp2float @ 0x7f1130e35140]Header missing
A: 937.4 V: 346.8 A-V:590.624 ct:  0.564 402/402  2%  3%  7.1% 8 0
[mpeg2video @ 0x7f1130e35140]00 motion_type at 18 28
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]invalid cbp at 12 17
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 18
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 1 19
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 20
[mpeg2video @ 0x7f1130e35140]00 motion_type at 27 21
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 22
[mpeg2video @ 0x7f1130e35140]00 motion_type at 9 23
[mpeg2video @ 0x7f1130e35140]00 motion_type at 20 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 25
[mpeg2video @ 0x7f1130e35140]00 motion_type at 15 26
[mpeg2video @ 0x7f1130e35140]00 motion_type at 6 27
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 6 28
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 20 29
[mpeg2video @ 0x7f1130e35140]00 motion_type at 9 30
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 3 31
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 8 33
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 35
[mpeg2video @ 0x7f1130e35140]Warning MVs not available
[mpeg2video @ 0x7f1130e35140]concealing 880 DC, 880 AC, 880 MV errors
A: 940.0 V: 939.9 A-V:  0.168 ct:  0.860 476/476  2%  3%  6.0% 8 0
[mp2float @ 0x7f1130e35140]Header missing
A:1745.2 V: 940.4 A-V:804.784 ct:  0.916 490/490  2%  3% 11.5% 12 0
[mpeg2video @ 0x7f1130e35140]invalid mb type in P Frame at 32 17
[mpeg2video @ 0x7f1130e35140]00 motion_type at 29 22
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 8 23
[mpeg2video @ 0x7f1130e35140]00 motion_type at 23 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 25
[mpeg2video @ 0x7f1130e35140]00 motion_type at 6 26
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 10 28
[mpeg2video @ 0x7f1130e35140]slice mismatch
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 22 31
[mpeg2video @ 0x7f1130e35140]00 motion_type at 8 32
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 34
[mpeg2video @ 0x7f1130e35140]00 motion_type at 7 35
[mpeg2video @ 0x7f1130e35140]Warning MVs not available
[mpeg2video @ 0x7f1130e35140]concealing 836 DC, 836 AC, 836 MV errors
A:2674.2 V:1748.4 A-V:925.840 ct:  1.020 572/572  2%  3% 15.1% 13 0
[mp2float @ 0x7f1130e35140]Header missing
A:2674.4 V:1748.8 A-V:925.568 ct:  1.060 582/582  2%  3% 14.8% 16 0
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 17
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 18
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 19
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 20
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 21
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 22
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 23
[mpeg2video @ 0x7f1130e35140]00 motion_type at 9 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 25
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 26
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 28
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 29
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 2 30
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 0 31
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 32
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 33
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 34
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 35
[mpeg2video @ 0x7f1130e35140]concealing 836 DC, 836 AC, 836 MV errors
A:2676.7 V:2676.7 A-V: -0.000 ct:  0.985 639/639  2%  2% 13.5% 16 0
[mp2float @ 0x7f1130e35140]Header missing
A:2734.8 V:2677.2 A-V: 57.652 ct:  1.033 651/651  2%  2% 13.6% 16 0
[mpeg2video @ 0x7f1130e35140]00 motion_type at 34 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 18 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 25
[mpeg2video @ 0x7f1130e35140]00 motion_type at 7 26
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 28
[mpeg2video @ 0x7f1130e35140]00 motion_type at 10 29
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 30
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 31
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 32
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 33
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 34
[mpeg2video @ 0x7f1130e35140]00 motion_type at 10 35
[mpeg2video @ 0x7f1130e35140]concealing 572 DC, 572 AC, 572 MV errors
A:2953.4 V:2738.3 A-V:215.102 ct:  0.924 734/734  2%  2% 13.0% 17 0
[mp2float @ 0x7f1130e35140]Header missing
A:2953.8 V:2739.0 A-V:214.852 ct:  0.992 751/751  2%  2% 12.7% 20 0
[mpeg2video @ 0x7f1130e35140]00 motion_type at 23 3
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 8
[mpeg2video @ 0x7f1130e35140]invalid mb type in B Frame at 34 9
[mpeg2video @ 0x7f1130e35140]invalid cbp at 11 10
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 11
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 12
[mpeg2video @ 0x7f1130e35140]slice mismatch
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 14
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 15
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 16
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 41 17
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 18
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 19
[mpeg2video @ 0x7f1130e35140]00 motion_type at 18 20
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 21
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 22
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 23
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 25
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 26
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 2 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 28
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 29
[mpeg2video @ 0x7f1130e35140]00 motion_type at 6 30
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 31
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 5 32
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 33
[mpeg2video @ 0x7f1130e35140]00 motion_type at 0 34
[mpeg2video @ 0x7f1130e35140]00 motion_type at 2 35
[mpeg2video @ 0x7f1130e35140]concealing 1452 DC, 1452 AC, 1452 MV errors
A:3119.4 V:2958.7 A-V:160.727 ct:  1.124 877/877  2%  2% 11.4% 21 0
[mp2float @ 0x7f1130e35140]Header missing
A:3119.7 V:2959.1 A-V:160.596 ct:  1.160 886/886  2%  2% 11.3% 22 0
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]invalid cbp at 1 17
[mpeg2video @ 0x7f1130e35140]00 motion_type at 30 18
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 30 19
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 20
[mpeg2video @ 0x7f1130e35140]00 motion_type at 2 21
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 9 23
[mpeg2video @ 0x7f1130e35140]00 motion_type at 18 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 9 25
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 2 26
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 6 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 28
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 11 29
[mpeg2video @ 0x7f1130e35140]00 motion_type at 23 30
[mpeg2video @ 0x7f1130e35140]invalid mb type in P Frame at 24 31
[mpeg2video @ 0x7f1130e35140]00 motion_type at 23 32
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 33
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 17 35
[mpeg2video @ 0x7f1130e35140]concealing 1056 DC, 1056 AC, 1056 MV errors
A:3293.3 V:3123.3 A-V:170.028 ct:  0.860 968/968  2%  2% 11.0% 23 0
[mp2float @ 0x7f1130e35140]Header missing
A:3293.6 V:3123.8 A-V:169.817 ct:  0.916 982/982  2%  2% 10.8% 25 0
[mpeg2video @ 0x7f1130e35140]00 motion_type at 14 30
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 0 13
[mpeg2video @ 0x7f1130e35140]00 motion_type at 8 14
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 3 15
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 0 16
[mpeg2video @ 0x7f1130e35140]slice mismatch
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 9 18
[mpeg2video @ 0x7f1130e35140]00 motion_type at 28 19
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 5 21
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 5 22
[mpeg2video @ 0x7f1130e35140]00 motion_type at 26 23
[mpeg2video @ 0x7f1130e35140]00 motion_type at 3 24
[mpeg2video @ 0x7f1130e35140]00 motion_type at 4 25
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 39 27
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 28
[mpeg2video @ 0x7f1130e35140]00 motion_type at 37 29
[mpeg2video @ 0x7f1130e35140]00 motion_type at 6 30
[mpeg2video @ 0x7f1130e35140]00 motion_type at 2 32
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 9 33
[mpeg2video @ 0x7f1130e35140]00 motion_type at 1 34
[mpeg2video @ 0x7f1130e35140]invalid mb type in P Frame at 22 34
[mpeg2video @ 0x7f1130e35140]concealing 968 DC, 968 AC, 968 MV errors
A:3296.7 V:3296.7 A-V:  0.001 ct:  1.048 1062/1062  2%  2% 10.0% 25 0
[mp2float @ 0x7f1130e35140]Header missing
A:3665.8 V:3297.1 A-V:368.724 ct:  1.088 1072/1072  2%  2% 11.0% 29 0
[mpeg2video @ 0x7f1130e35140]mb incr damaged
[mpeg2video @ 0x7f1130e35140]00 motion_type at 10 34
[mpeg2video @ 0x7f1130e35140]00 motion_type at 26 35
[mpeg2video @ 0x7f1130e35140]concealing 880 DC, 880 AC, 880 MV errors
A:3721.0 V:3668.9 A-V: 52.074 ct:  1.012 1147/1147  2%  2% 10.5% 29 0
[mp2float @ 0x7f1130e35140]Header missing
A:3721.3 V:3669.2 A-V: 52.024 ct:  1.044 1155/1155  2%  2% 10.4% 29 0
[mpeg2video @ 0x7f1130e35140]ac-tex damaged at 43 28
[mpeg2video @ 0x7f1130e35140]concealing 352 DC, 352 AC, 352 MV errors
A:3723.9 V:3723.9 A-V:  0.000 ct:  1.144 1224/1224  2%  2%  9.8% 29 0
[mp2float @ 0x7f1130e35140]incomplete frame
A:3724.2 V:3724.2 A-V:  0.008 ct:  1.151 1232/1232  2%  2% 10.1% 29 0

Exiting... (End of file)


причем между "скачками" на экране и видео, и звук вполне нормальный. файл не "битый", по крайней мере md5sum одинакова и у меня, и там где я брал этот ролик. вопрос состоит в "можно ли исправить" и как это сделать

спасибо
Спасибо сказали:
Аватара пользователя
romuil
Сообщения: 2095
Статус: Ромунцель
ОС: ALTLinux Sisyphus

Re: не могу просмотреть видео-ролик

Сообщение romuil »

В файле битый видеопоток. Если попробовать vlc или xine?
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

vlc - пробовал, та же диагностика. xine сейчас проверю
Спасибо сказали:
Аватара пользователя
antonio276
Сообщения: 94

Re: не могу просмотреть видео-ролик

Сообщение antonio276 »

С подобными файлами вполне справляется и totem и другие проигрыватели, вот только следует установить нормальные кодеки.
Проигрыватель может быть любой, этож линь)
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

romuil писал(а):
18.12.2011 22:22
В файле битый видеопоток. Если попробовать vlc или xine?

файл не битый. только что еще раз уточнил. xine - тоже ошибается. равно как и totem
antonio276 писал(а):
18.12.2011 22:29
вот только следует установить нормальные кодеки.

не спорю. а какие кодеки - нормальные? из диагностики в первом сообщении темы это не очевидно?

[ot]: а как в винде посмотреть каким кодеком просматривается? я было спросил, отвечено - "обычным виндовс медиа-плеером"
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20752
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: не могу просмотреть видео-ролик

Сообщение Bizdelnick »

vr13 писал(а):
18.12.2011 23:14
файл не битый.

А обилие слов "damaged" и "invalid" в логе Вас не смущает?
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
romuil
Сообщения: 2095
Статус: Ромунцель
ОС: ALTLinux Sisyphus

Re: не могу просмотреть видео-ролик

Сообщение romuil »

vr13 писал(а):
18.12.2011 23:14
romuil писал(а):
18.12.2011 22:22
В файле битый видеопоток. Если попробовать vlc или xine?

файл не битый. только что еще раз уточнил. xine - тоже ошибается. равно как и totem
antonio276 писал(а):
18.12.2011 22:29
вот только следует установить нормальные кодеки.

не спорю. а какие кодеки - нормальные? из диагностики в первом сообщении темы это не очевидно?

[ot]: а как в винде посмотреть каким кодеком просматривается? я было спросил, отвечено - "обычным виндовс медиа-плеером"

Это точно битый файл. То, что он читается в WMP означает только то, что там другой декодер, а ffmpeg+libav на нем обламываются.
покажи вывод
ffprobe file
и попробуй
vlc --codec libmpeg2 file
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

romuil писал(а):
18.12.2011 23:22
ffprobe file

Код: Выделить всё

$ ffprobe test.mpg
ffprobe version 0.9, Copyright (c) 2007-2011 the FFmpeg developers
  built on Dec 18 2011 18:00:38 with gcc 4.5.3
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --optflags='-O2 -g0 -march=core2 -msse4 -mcx16 -mpopcnt -msahf -ftree-loop-distribution -ftree-loop-linear -mmmx -floop-interchange -floop-strip-mine -floop-block -fomit-frame-pointer -pipe' --extra-cflags='-O2 -g0 -march=core2 -msse4 -mcx16 -mpopcnt -msahf -ftree-loop-distribution -ftree-loop-linear -mmmx -floop-interchange -floop-strip-mine -floop-block -fomit-frame-pointer -pipe' --extra-cxxflags='-O2 -g0 -march=core2 -msse4 -mcx16 -mpopcnt -msahf -ftree-loop-distribution -ftree-loop-linear -mmmx -floop-interchange -floop-strip-mine -floop-block -fomit-frame-pointer -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-indev=v4l --disable-indev=oss --disable-indev=  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mpeg @ 0x7d6430] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from 'test.mpg':
  Duration: N/A, start: 0.193367, bitrate: N/A
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 704x576 [SAR 12:11 DAR 4:3], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s

и попробуй

Код: Выделить всё

$ vlc --codec libmpeg2 test.mpg
VLC media player 1.1.12 The Luggage (revision exported)
[0x106e120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
ac-tex damaged at 21 5
slice mismatch
invalid cbp at 18 25
00 motion_type at 5 26
00 motion_type at 5 27
00 motion_type at 5 28
00 motion_type at 0 29
ac-tex damaged at 8 30
00 motion_type at 12 31
00 motion_type at 0 32
mb incr damaged
00 motion_type at 5 34
ac-tex damaged at 6 35
Warning MVs not available
ac-tex damaged at 29 17
invalid cbp at 1 19
slice mismatch
invalid mb type in B Frame at 21 21
invalid mb type in B Frame at 1 25
invalid mb type in B Frame at 2 24
ac-tex damaged at 1 24
ac-tex damaged at 17 26
invalid mb type in B Frame at 14 30
slice mismatch
ac-tex damaged at 9 29
invalid cbp at 36 30
invalid cbp at 7 31
invalid cbp at 11 35
invalid mb type in B Frame at 18 34
invalid cbp at 1 35
00 motion_type at 18 28
mb incr damaged
invalid cbp at 12 17
00 motion_type at 4 18
ac-tex damaged at 1 19
00 motion_type at 4 20
00 motion_type at 27 21
00 motion_type at 1 22
00 motion_type at 9 23
00 motion_type at 20 24
00 motion_type at 3 25
00 motion_type at 15 26
00 motion_type at 6 27
ac-tex damaged at 6 28
invalid mb type in B Frame at 20 29
00 motion_type at 9 30
ac-tex damaged at 3 31
mb incr damaged
00 motion_type at 8 33
mb incr damaged
00 motion_type at 1 35
Warning MVs not available
invalid mb type in P Frame at 32 17
00 motion_type at 29 22
ac-tex damaged at 8 23
00 motion_type at 23 24
00 motion_type at 5 25
00 motion_type at 6 26
00 motion_type at 3 27
00 motion_type at 10 28
slice mismatch
mb incr damaged
00 motion_type at 22 31
00 motion_type at 8 32
mb incr damaged
00 motion_type at 5 34
00 motion_type at 7 35
Warning MVs not available
mb incr damaged
00 motion_type at 0 17
00 motion_type at 0 18
00 motion_type at 0 19
00 motion_type at 0 20
00 motion_type at 1 21
00 motion_type at 0 22
00 motion_type at 0 23
00 motion_type at 9 24
00 motion_type at 0 25
00 motion_type at 4 26
00 motion_type at 0 27
00 motion_type at 5 28
00 motion_type at 0 29
ac-tex damaged at 2 30
ac-tex damaged at 0 31
00 motion_type at 3 32
00 motion_type at 4 33
00 motion_type at 0 34
00 motion_type at 0 35
00 motion_type at 34 24
00 motion_type at 18 24
00 motion_type at 1 25
00 motion_type at 7 26
00 motion_type at 4 27
00 motion_type at 5 28
00 motion_type at 10 29
00 motion_type at 3 30
00 motion_type at 3 31
00 motion_type at 3 32
00 motion_type at 3 33
00 motion_type at 3 34
00 motion_type at 10 35
00 motion_type at 23 3
00 motion_type at 0 8
invalid mb type in B Frame at 34 9
invalid cbp at 11 10
00 motion_type at 0 11
00 motion_type at 0 12
slice mismatch
00 motion_type at 3 14
00 motion_type at 0 15
00 motion_type at 3 16
ac-tex damaged at 41 17
00 motion_type at 3 18
00 motion_type at 1 19
00 motion_type at 18 20
00 motion_type at 0 21
00 motion_type at 3 22
00 motion_type at 1 23
00 motion_type at 0 24
00 motion_type at 0 25
00 motion_type at 5 26
ac-tex damaged at 2 27
00 motion_type at 1 28
00 motion_type at 3 29
00 motion_type at 6 30
00 motion_type at 0 31
ac-tex damaged at 5 32
00 motion_type at 3 33
00 motion_type at 0 34
00 motion_type at 2 35
mb incr damaged
invalid cbp at 1 17
00 motion_type at 30 18
ac-tex damaged at 30 19
00 motion_type at 4 20
00 motion_type at 2 21
mb incr damaged
ac-tex damaged at 9 23
00 motion_type at 18 24
00 motion_type at 9 25
ac-tex damaged at 2 26
ac-tex damaged at 6 27
00 motion_type at 4 28
ac-tex damaged at 11 29
00 motion_type at 23 30
invalid mb type in P Frame at 24 31
00 motion_type at 23 32
00 motion_type at 1 33
mb incr damaged
00 motion_type at 17 35
00 motion_type at 14 30
ac-tex damaged at 0 13
00 motion_type at 8 14
ac-tex damaged at 3 15
ac-tex damaged at 0 16
slice mismatch
ac-tex damaged at 9 18
00 motion_type at 28 19
mb incr damaged
00 motion_type at 5 21
ac-tex damaged at 5 22
00 motion_type at 26 23
00 motion_type at 3 24
00 motion_type at 4 25
mb incr damaged
00 motion_type at 39 27
00 motion_type at 1 28
00 motion_type at 37 29
00 motion_type at 6 30
00 motion_type at 2 32
ac-tex damaged at 9 33
00 motion_type at 1 34
invalid mb type in P Frame at 22 34
mb incr damaged
00 motion_type at 10 34
00 motion_type at 26 35
ac-tex damaged at 43 28

^C[0x11048c0] signals interface error: Caught Interrupt signal, exiting...
status change: ( stop state: 0 )
status change: ( quit )


лан, спасибо всем за помощь. завтра проверю файл на битость на конторской винде и расскажу

*** update as of 19.12 ***

посмотрел на винде, файл действительно не битый, просматривается штатной медийной игралкой без проблем, а при помощи виндового vlc это легко преобразовалось в "нормальный" формат и без теперь без проблем воспроизводится через mplayer. вот информация по кодеку, что видит vlc на винде:
codec.png


соответственно, проблема решена, и вопрос переходит в теоретическую плоскость: получается что такого кодека на linux нет. или я не знаю, как его искать. подскажите на будущее?
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

Rodegast писал(а):
19.12.2011 14:25
1) Запусти mplayer -fps 50

тоже самое что и раньше, только в то время когда играет, а не ошибается, fps действительно удваивается (лыжники бегут быстрее :))
2) Что mediainfo пишет?

Код: Выделить всё

General
Complete name                            : test.mpg
Format                                   : MPEG-PS
File size                                : 1.70 GiB
Overall bit rate mode                    : Variable
Writing library                          : (c) 1998-2009 Womble Multimedia, Inc. / MPEG Video Wizard (03/2009) / Jun 24 2009

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=24
Bit rate mode                            : Variable
Maximum bit rate                         : 15.0 Mbps
Width                                    : 704 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan order                               : Top Field First
Compression mode                         : Lossy
Writing library                          : (c) 1998-2009 Womble Multimedia, Inc. / MPEG Video Wizard (03/2009) / Jun 24 2009

Audio
ID                                       : 192 (0xC0)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy

Menu


в теперешнем представлении о проблеме (главное - это "правильный кодек", как было сказано выше), попытался найти этот кодек. судя по написанному, искомое находится тут. таким образом возникает новый вопрос, можно ли к какому-нить медиа-плееру "прикрутить" 32-битный кодек?
Спасибо сказали:
Аватара пользователя
Rodegast
Сообщения: 337
ОС: Linux
Контактная информация:

Re: не могу просмотреть видео-ролик

Сообщение Rodegast »

Не в кодеке дело ;) Твоё видео кодировано в MPEG2, а он в любом случае поддерживается. Скорее всего в файле или с частотой перемудрили или это ошибка чтения из MPEG-PS.
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

Rodegast писал(а):
19.12.2011 20:01
Не в кодеке дело ;) Твоё видео кодировано в MPEG2, а он в любом случае поддерживается. Скорее всего в файле или с частотой перемудрили или это ошибка чтения из MPEG-PS.

иными словами - вариантов прочесть нет. правильно понимаю?

винда при этом читает нормально (говорилось выше). для полноты картины на днях еще макос поробую, думается, что и там прочтется
Спасибо сказали:
Аватара пользователя
sspphheerraa
Сообщения: 1375
ОС: Gentoo

Re: не могу просмотреть видео-ролик

Сообщение sspphheerraa »

Файл не совсем "правильный".
Например, это

Код: Выделить всё

Scan type                                : Progressive
Scan order                               : Top Field First

обычно не наблюдается вместе.

Попробуйте сделать так.
1. Размуксите этот файл с помощью projectx.

Код: Выделить всё

$ projectx file.mpg -demux

2. Заново смуксите видео и звук с помощью mplex (входит в состав mjpegtools).

Код: Выделить всё

$ mplex -f 8 file.m2v file.mp2 -o file-proper.mpg


Попробуйте после этого его проиграть.


Sspphheerraa
Спасибо сказали:
Аватара пользователя
Rodegast
Сообщения: 337
ОС: Linux
Контактная информация:

Re: не могу просмотреть видео-ролик

Сообщение Rodegast »

Я не думаю что у тебя серьёзная проблема. Поиграйся с частотой попробуй -fps 25.
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

sspphheerraa писал(а):
19.12.2011 22:44
Попробуйте сделать так.
1. Размуксите этот файл с помощью projectx

выдает много диагностики типа:

Код: Выделить всё

!> found syncword @ 1005996
!> missing syncword @  1088365, @ 00:00:33.600
!> PTS without a frame (1088777/1088778)
!> found syncword @ 1089348
audio frames: wri-pre-skip-ins-add 1517-0-0-0-0 @ 00:00:36.408 done...
---> new File: '/home/smbone/backup/test.mp2'

summary of created media files:
.Video (m2v):   910 Frames      00:00:36.400            '/home/smbone/backup/test.m2v'
Audio 00 (mp2): 1517 Frames     00:00:36.408    0-0-0-0 '/home/smbone/backup/test.mp2'
=> 18,232,114 bytes written...
-> we have 115 warnings/errors.

и останавливается, записав примерно 1% исходного файла
2. Заново смуксите видео и звук с помощью mplex (входит в состав mjpegtools).

сделал
Попробуйте после этого его проиграть.

то что получилось, является несколькими не смежными "склеенными" частями начала исходного файла, которые проигрываются без ошибок. т.е - все равно не лечится

спасибо. это кажется советом с большим пониманием проблемы, чем проиграть файл с другим fps :)
Спасибо сказали:
Аватара пользователя
sspphheerraa
Сообщения: 1375
ОС: Gentoo

Re: не могу просмотреть видео-ролик

Сообщение sspphheerraa »

Файл большой? Можно получить кусок на исследование?
Sspphheerraa
Спасибо сказали:
Аватара пользователя
vr13
Сообщения: 876
ОС: gentoo

Re: не могу просмотреть видео-ролик

Сообщение vr13 »

sspphheerraa писал(а):
22.12.2011 14:52
Файл большой? Можно получить кусок на исследование?

файл 1.8гб, могу отдать хоть все (скажите, куда выложить). отрезать кусочек - тоже могу, если расскажете как это сделать корректно с т.з содержимого
Спасибо сказали:
Аватара пользователя
sspphheerraa
Сообщения: 1375
ОС: Gentoo

Re: не могу просмотреть видео-ролик

Сообщение sspphheerraa »

vr13 писал(а):
23.12.2011 15:23
sspphheerraa писал(а):
22.12.2011 14:52
Файл большой? Можно получить кусок на исследование?

файл 1.8гб, могу отдать хоть все (скажите, куда выложить). отрезать кусочек - тоже могу, если расскажете как это сделать корректно с т.з содержимого

ответил в личку
Sspphheerraa
Спасибо сказали:
Аватара пользователя
sspphheerraa
Сообщения: 1375
ОС: Gentoo

Re: не могу просмотреть видео-ролик

Сообщение sspphheerraa »

Файл (во всяком случае, тот что я скачал) битый 100%.. У меня он глючит везде (включая винду и vlc).
Да и к тому же, сам файл занимает 1.8 Гб, а запакованный в архив bz2 - 22 Мб. Видео вообще-то почти не сжимается архиваторами. Здесь похоже, что основная часть файла просто нули.

Ну не может полутора часовой фильм ужаться bz2-ом с 1.8 Гб до 22 Мб.
Sspphheerraa
Спасибо сказали:
Ответить