encode digit fényképezőre

 ( gorgo75 | 2006. március 31., péntek - 11:30 )

sziasztok.

Adott egy fényképező ami 640x480 ba csinál mjpeg filmeket 11000 hz-n 8 bites pcm mel.

Szeretnék ugyenilyen formátumot előállítani mencoderrel, és aztán lejátsztni vele :-O

tud valaki esetleg segíteni, aki naponta encode-ól?

itt az mplayer- vo null -ao null -v kimenet.

köszi Gergő

Playing 00001.avi.
[file] File size is 4108524 bytes
STREAM: [file] 00001.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:1040384
AVI file format detected.
list_end=0x15A
======= AVI Header =======
us/frame: 100000 (fps=10.000)
max bytes/sec: 876224
padding: 0
MainAVIHeader.dwFlags: (65552) HAS_INDEX WAS_CAPTUREFILE
frames total: 66 initial: 0
streams: 2
Suggested BufferSize: 86520
Size: 640 x 480
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: mjpg (67706A6D)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 1000000/100000 = 10.000
Start: 0 Len: 66
Suggested BufferSize: 86520
Quality 10000
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 480
biPlanes 1
biBitCount 24
biCompression 1196444237='MJPG'
biSizeImage 921600
===========================
list_end=0x138
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 11024/1 = 11024.000
Start: 0 Len: 72758
Suggested BufferSize: 11024
Quality 10000
Sample size: 1
==========================
found 'wf', 16 bytes of 18
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 11024
avg byte/sec: 11024
Block align: 1
bits/sample: 8
cbSize: 0
===========================
hdr=Digitization Time size=26
Digitization Time: SUN MAR 26 13:03:18 2006

list_end=0x17A
hdr=Software size=12
Software : CanonMVI02
list_end=0x3EAC54
Found movie at 0x80C - 0x3EAC54
Reading INDEX block, 73 chunks for 66 frames (fpos=0x3eac5c)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x2B1C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=4031946 (66) audio size=72758 (72758)
VIDEO: [MJPG] 640x480 24bpp 10.000 fps 4887.2 kbps (596.6 kbyte/s)
[V] filefmt:3 fourcc:0x47504A4D size:640x480 fps:10.00 ftime:=0.1000
Clip info:
Digitization Time: SUN MAR 26 13:03:18 2006

Software: CanonMVI02
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 11024 Hz, 1 ch, u8, 88.2 kbit/100.00% (ratio: 11024->11024)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Building audio filter chain for 11024Hz/1ch/u8 -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 11024Hz/1ch/u8
[dummy] Was reinitialized: 11024Hz/1ch/u8
AO: [null] 11024Hz 1ch u8 (1 bps)
AO: Description: Null audio output
AO: Author: Tobias Diedrich
Building audio filter chain for 11024Hz/1ch/u8 -> 11024Hz/1ch/u8...
[dummy] Was reinitialized: 11024Hz/1ch/u8
[dummy] Was reinitialized: 11024Hz/1ch/u8
Starting playback...
XXX initial v_pts=0.900 a_pos=11024 (1.000)
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 640 x 480 (preferred csp: Planar 422P)
Trying filter chain: vo
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x50323234)
VO: [null] 640x480 => 640x480 Planar 422P
VO: Description: Null video output
VO: Author: Aaron Holtzman
*** [vo] Allocating mp_image_t, 640x480x16bpp YUV planar, 614400 bytes
ds_fill_buffer: EOF reached (stream: audio) 1 ??% ??% ??,?% 1 0 35%
*** [vo] Allocating mp_image_t, 640x480x16bpp YUV planar, 614400 bytes
ds_fill_buffer: EOF reached (stream: video) 66 5% 0% 4.5% 1 0 0%
EOF code: 1 6.5 A-V: -0.261 ct: -0.029 66/ 66 5% 0% 4.5% 1 0 0%

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: pcm
uninit video: ffmpeg

Hozzászólás megjelenítési lehetőségek

A választott hozzászólás megjelenítési mód a „Beállítás” gombbal rögzíthető.

Néhány paraméter:

-oac pcm : hang pcm
-srate 11000 : hang mintavételezése
-ovc lavc : video kódolása lavc-vel
-lavcopts vcodec=mjpeg : lavc mjpeg codec-je
-vf scale=640:480 : nagyítás/kicsinyítés 640x480-ra, ha kell

Egyébként érdemes átfutni az mplayer man oldalait ott sok egyéb paraméter használatát megtalálod (fps,vbitrate, stb) és persze magyar nyelvű változat is van.

köszi ez még menne, de a hang 8 bites kell , hogy legyen :-( pcm

Szerintem nezd meg ffmpeg-gel, szvsz az jobban parameterezheto, de lehet, hogy csak nekem all jobban kezre :))