Hi all, I had recorded the video streams using "FFMPEG". ffmpeg -vd /dev/video0 /root/axn.mpg When I playback the ".mpg" file using mplayer, I can able to see the video but no audio. How to rectify this ? Following are the output of mplayer for u'r perception. [root@Suriya root]# mplayer -v /root/star_30.mpg MPlayer dev-CVS-030729-17:46-3.2 (C) 2000-2003 MPlayer Team CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1) Detected cache-line size is 32 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 SSE Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory Reading config file /root/.mplayer/config Reading /root/.mplayer/codecs.conf: 60 audio & 150 video codecs CommandLine: '-v' '/root/star_30.mpg' get_path('font/font.desc') -> '/root/.mplayer/font/font.desc' Can't load font bitmap: cp1250-a.raw Can't load font bitmap: cp1250-a.raw init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Failed to open /dev/rtc: Device or resource busy (mplayer should be setuid root or /dev/rtc should be readable by the user.) Using usleep() timing get_path('input.conf') -> '/root/.mplayer/input.conf' Parsing input config file /root/.mplayer/input.conf Input config file /root/.mplayer/input.conf parsed: 52 binds Setting up LIRC support... mplayer: could not connect to socket mplayer: Connection refused Failed to open LIRC support. You will not be able to use your remote control. get_path('star_30.mpg.conf') -> '/root/.mplayer/star_30.mpg.conf' Playing /root/star_30.mpg Not an URL! [file] File size is 1138688 bytes STREAM: [file] /root/star_30.mpg STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) Checking for YUV4MPEG2 DEMUXER: freeing demuxer at 0x85364b8 ASF_check: not ASF guid! DEMUXER: freeing demuxer at 0x85364b8 Checking for NuppelVideo DEMUXER: freeing demuxer at 0x85364b8 Checking for REAL DEMUXER: freeing demuxer at 0x85364b8 Checking for SMJPEG DEMUXER: freeing demuxer at 0x85364b8 DEMUXER: freeing demuxer at 0x8536d20 Searching demuxer type for filename /root/star_30.mpg ext: .mpg Checking for MOV DEMUXER: freeing demuxer at 0x8536d20 Checking for VIVO header block 1 size: 0 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing demuxer at 0x8536d20 Checking for PVA DEMUXER: freeing demuxer at 0x8536d20 Checking for TS... TRIED UP TO POSITION 67071, FOUND 0, packet_size= 71 DEMUXER: freeing demuxer at 0x8536d20 system stream synced at 0xB (0)! ==> Found video stream: 0 MPEG-PS file format detected. ==> Found audio stream: 0 Searching for sequence header... OK! VIDEO: MPEG1 160x128 (aspect 1) 25.00 fps 200.0 kbps (25.0 kbyte/s) [V] filefmt:2 fourcc:0x10000001 size:160x128 fps:25.00 ftime:=0.0400 get_path('sub/') -> '/root/.mplayer/sub/' get_path('default.sub') -> '/root/.mplayer/default.sub' ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer mp3lib: made decode tables with MMX optimization mp3lib: using MMX optimized decore! MP3lib: init layer2&3 finished, tables done MPEG 1.0, Layer II, 44100 Hz 64 kbit Single-Channel, BPF: 208 Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0 AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 8000->176400 (64.0 kbit) Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== X11 opening display: :0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 800x600 with depth 24 and 32 bpp (":0" => local display) [x11] Detected wm supports NetWM. [x11] Detected wm supports STAYS_ON_TOP state. ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 160 x 128 (preferred csp: Mpeg PES) Trying filter chain: vo Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale vo The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1 Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2)) ========================================================================== Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit... [libaf] Adding filter dummy [dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2 AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian) ao2: 44100 Hz 2 chans Signed 16-bit (Little-Endian) audio_setup: using '/dev/dsp' dsp device audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian)) audio_setup: using 2 channels (requested: 2) audio_setup: using 48000 Hz samplerate (requested: 44100) audio_setup: frags: 4/4 (16384 bytes/frag) free: 65536 AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps) AO: Description: OSS/ioctl audio output AO: Author: A'rpi Building audio filter chain for 44100Hz/2ch/16bit -> 48000Hz/2ch/16bit... [dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2 [libaf] Adding filter resample [resample] Changing sample rate to 48000Hz [resample] Using integer processing and inexact frequecy conversion. [resample] New filter designed up: 160 down: 147 [dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2 [resample] Using integer processing and inexact frequecy conversion. Starting playback... [libaf] Reallocating memory in module resample, old len = 0, new len = 65536 VDec: vo config request - 160 x 128 (preferred csp: Planar YV12) Trying filter chain: vo VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (160x128->160x128,flags=0,'MPlayer',0x32315659) VO: [xv] 160x128 => 160x128 Planar YV12 VO: Description: X11/Xv VO: Author: Gerd Knorr and others Xvideo image format: 0x32595559 (YUY2) packed Xvideo image format: 0x32315659 (YV12) planar Xvideo image format: 0x30323449 (I420) planar Xvideo image format: 0x59565955 (UYVY) packed using Xvideo port 56 for hw scaling [xv] dx: 0 dy: 0 dw: 160 dh: 128 *** [vo] Allocating mp_image_t, 160x128x12bpp YUV planar, 30720 bytes *** [vo] Allocating mp_image_t, 160x128x12bpp YUV planar, 30720 bytes0% get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf' New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. [xv] dx: 0 dy: 0 dw: 160 dh: 128: 0.071 28/ 28 9% 16% 2.0% 1 0 0% [xv] dx: 0 dy: 0 dw: 788 dh: 520: 0.068 349/349 1% 5% 1.8% 3 0 0% MPEG Stream reached EOF 0.007 ct: 0.068 780/780 1% 3% 1.7% 3 0 0% ds_fill_buffer: EOF reached (stream: audio) MPEG Stream reached EOF 0.036 ct: 0.079 783/783 1% 3% 1.7% 3 0 0% ds_fill_buffer: EOF reached (stream: video) MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) EOF code: 1 31.2 A-V: 0.044 ct: 0.083 783/783 1% 3% 1.7% 3 0 0% Uninit audio filters... [libaf] Removing filter dummy [libaf] Removing filter resample uninit audio: mp3lib uninit video: libmpeg2 DEMUXER: freeing demuxer at 0x8536d20 DEMUXER: freeing sh_audio at 0x853cda8 DEMUXER: freeing sh_video at 0x850ec78 vo: uninit ... Exiting... (End of file) With Regards, S.Suriya Mohan. ___________________________________________________ Art meets Army ; Swapna Weds Capt. Rajsekhar. Find interesting matches on Rediff Matchmaker ! Visit http://matchmaker.rediff.com?1