LINUX.ORG.RU

MJPEG->mpeg4 with mencoder - проблемма со звуком.


0

0

MJPEG->mpeg4 with mencoder - проблемма со звуком.
Есть у меня видео сделанное цифровым фотиком (mjpeg) которое mplayer
нормально показывает.
mplayer -identify выдаёт следующее:

.......................
Playing pict0021.mov.
Cache fill:  0,00% (0 bytes)    QuickTime/MOV file format detected.
--------------
MOV track #0: 54 chunks, 803 samples
Image size: 320 x 240 (24 bpp)
Display size: 320 x 240
Fourcc: jpeg  Codec: 'Photo - JPEG'
--------------
MOV track #1: 54 chunks, 0 samples
Audio bits: 8  chans: 1  rate: 7875
Fourcc: raw
--------------
MOV: longest streams: A: #1 (54 samples)  V: #0 (803 samples)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 7875 Hz, 1 ch, 8 bit (0x8), ratio: 7875->7875 (63,0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
ID_FILENAME=pict0021.mov
ID_VIDEO_FORMAT=jpeg
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=15,000
ID_VIDEO_ASPECT=0,0000
ID_AUDIO_CODEC=pcm
ID_AUDIO_FORMAT=raw
ID_AUDIO_BITRATE=63000
ID_AUDIO_RATE=7875
ID_AUDIO_NCH=1
ID_LENGTH=0
vo: X11 running at 1024x768 with depth 15 and 15 bpp (":0.0" => local display)
Opening video filter: [eq]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
...................................
anonymous

Продолжение:
Пробую я его пререгнать в mpeg4, например:

# mencoder -ovc lavc -lavcopts vcodec=mpeg4:vhq -oac mp3lame pict0021.mov -o 1.avi
.....................................
success: format: 0  data: 0x0 - 0xF802AC
QuickTime/MOV file format detected.
--------------
MOV track #0: 54 chunks, 803 samples
Image size: 320 x 240 (24 bpp)
Display size: 320 x 240
Fourcc: jpeg  Codec: 'Photo - JPEG'
--------------
MOV track #1: 54 chunks, 0 samples
Audio bits: 8  chans: 1  rate: 7875
Fourcc: raw
--------------
MOV: longest streams: A: #1 (54 samples)  V: #0 (803 samples)
[V] filefmt:7  fourcc:0x6765706A  size:320x240  fps:15,00  ftime:=0,0667
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 7875 Hz, 1 ch, 8 bit (0x8), ratio: 7875->7875 (63,0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
MP3 audio selected
Building audio filter chain for 7875Hz/1ch/8bit -> 7875Hz/1ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
VDec: vo config request - 320 x 240 (preferred csp: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
...........................

В конце mencoder пишет:

Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 4:3.
Video stream:  731,139 kbit/s  (91392 bps)  size: 4411203 bytes  48,267 secs  803 frames
Audio stream:      nan kbit/s  (-2147483648 bps)  size: 0 bytes  0,000 secs

и соответственно в получившемся видео нет звука. Пробовал подставлять в mencoder разные
опции - всё равно нет звука.
Ну и соответвенно вопрос: можно ли как нибудь перекодировать со звуком?

anonymous
()
Ответ на: комментарий от anonymous

Попробуй -oac copy для начала. Если пройдет, тогда будешь уже в своем avi звук отдельно делать.

jackill ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.