[MEncoder-users] How to change the audio timestamps

Jorge Peixoto de Morais Neto please.no.spam.here at gmail.com
Fri May 30 00:17:02 CEST 2008


On Thu, May 29, 2008 at 6:22 AM, A. Schmid <sahib at phreaker.net> wrote:
> Jorge Peixoto de Morais Neto wrote:  
>> Hey, what if I capture sound directly from v4l instead of using alsa?  
>
> This is possible, provided that you TV-card supports it.
> Just use the -v option to get some more output about yout tv-card.  

I don't see anything related here:
mplayer -v -profile tv0 -frames 1 tv://Escola

MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) XP 2600+ (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/home/jorge/.mplayer/codecs.conf'
Reading /home/jorge/.mplayer/codecs.conf: Can't open
'/home/jorge/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': No such file or directory
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/jorge/.mplayer/fonts'
get_path('input.conf') -> '/home/jorge/.mplayer/input.conf'
Parsing input config file /home/jorge/.mplayer/input.conf
Input config file /home/jorge/.mplayer/input.conf parsed: 18 binds
get_path('menu.conf') -> '/home/jorge/.mplayer/menu.conf'
[libmenu] got keybinding element 275 UP=>[menu up].
[libmenu] got keybinding element 274 DOWN=>[menu down].
[libmenu] got keybinding element 273 LEFT=>[menu left].
[libmenu] got keybinding element 272 RIGHT=>[menu right].
[libmenu] got keybinding element 13 ENTER=>[menu ok].
[libmenu] got keybinding element 263 ESC=>[menu cancel].
[libmenu] got keybinding element 259 HOME=>[menu home].
[libmenu] got keybinding element 260 END=>[menu end].
[libmenu] got keybinding element 261 PGUP=>[menu pageup].
[libmenu] got keybinding element 262 PGDWN=>[menu pagedown].
[libmenu] got keybinding element 387 JOY_UP=>[menu up].
[libmenu] got keybinding element 386 JOY_DOWN=>[menu down].
[libmenu] got keybinding element 385 JOY_LEFT=>[menu left].
[libmenu] got keybinding element 384 JOY_RIGHT=>[menu right].
[libmenu] got keybinding element 404 JOY_BTN0=>[menu ok].
[libmenu] got keybinding element 405 JOY_BTN1=>[menu cancel].
[libmenu] got keybinding element 1288 AR_VUP=>[menu up].
[libmenu] got keybinding element 1289 AR_VDOWN=>[menu down].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1280 AR_PLAY=>[menu ok].
[libmenu] got keybinding element 1286 AR_MENU=>[menu cancel].
[libmenu] got keybinding element 1285 AR_PREV_HOLD=>[menu home].
[libmenu] got keybinding element 1283 AR_NEXT_HOLD=>[menu end].
[libmenu] got keybinding element 512 MOUSE_BTN0=>[menu click].
[libmenu] got keybinding element 514 MOUSE_BTN2=>[menu cancel].
[libmenu] got keybinding element 1284 AR_PREV=>[menu pageup].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu pagedown].
[libmenu] got keybinding element 256 BS=>[menu left].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1285 AR_PREV_HOLD=>[menu left].
[libmenu] got keybinding element 1283 AR_NEXT_HOLD=>[menu right].
Struct fs_cfg doesn't have any auto-close field
[MENU] bad attribute auto-close=yes in menu 'open_list' at line 57
Menu initialized: /home/jorge/.mplayer/menu.conf
get_path('Escola.conf') -> '/home/jorge/.mplayer/Escola.conf'

Playing tv://Escola.
get_path('sub/') -> '/home/jorge/.mplayer/sub/'
STREAM: [tv] tv://Escola
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: BT878 video (Prolink PixelView
 Tuner cap:
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner
 read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M;
5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Format GREY   ( 8 bits, 8 bpp, gray): Planar Y800
 Format HI240  ( 8 bits, 8 bpp, dithered color): Unknown 0x34324948
 Format RGB555 (16 bits, 15 bpp RGB, le): BGR 15-bit
 Format RGB555X (16 bits, 15 bpp RGB, be): Unknown 0x51424752
 Format RGB565 (16 bits, 16 bpp RGB, le): BGR 16-bit
 Format RGB565X (16 bits, 16 bpp RGB, be): Unknown 0x52424752
 Format BGR24  (24 bits, 24 bpp RGB, le): BGR 24-bit
 Format BGR32  (32 bits, 32 bpp RGB, le): BGRA
 Format RGB32  (32 bits, 32 bpp RGB, be): RGBA
 Format YUYV   (16 bits, 4:2:2, packed, YUYV): Packed YUY2
 Format YUYV   (16 bits, 4:2:2, packed, YUYV): Packed YUY2
 Format UYVY   (16 bits, 4:2:2, packed, UYVY): Packed UYVY
 Format YUV422P (16 bits, 4:2:2, planar, Y-Cb-Cr): Planar 422P
 Format YUV420 (12 bits, 4:2:0, planar, Y-Cb-Cr): Planar I420
 Format YVU420 (12 bits, 4:2:0, planar, Y-Cr-Cb): Planar YV12
 Format YUV411P (16 bits, 4:1:1, planar, Y-Cb-Cr): Planar 411P
 Format YUV410 ( 9 bits, 4:1:0, planar, Y-Cb-Cr): Planar IF09
 Format YVU410 ( 9 bits, 4:1:0, planar, Y-Cr-Cb): Planar YVU9
 Current format: YVU420
v4l2: current audio mode is : MONO
v4l2: unknown control: 1281
v4l2: set format: YVU420
v4l2: set input: 0
Selected norm : PAL-M
v4l2: set norm: PAL-M
v4l2: unknown control: 1363
Selected channel list: us-cable (including 133 channels)
TV channel names detected.
Selected channel: 15 - Escola (freq: 127.250)
Current frequency: 2036 (127.250)
v4l2: unknown control: 1363
Current frequency: 2036 (127.250)
==> Found video stream: 0  
v4l2: get format: YVU420
v4l2: get fps: 29.970030
v4l2: get width: 640
v4l2: get height: 480
Using a ring buffer for maximum 2 frames, 0 MB total size.
v4l2: set Brightness: 32768 [0, 65535]
v4l2: set Hue: 32768 [0, 65535]
v4l2: set Saturation: 32768 [0, 65535]
v4l2: set Contrast: 32768 [0, 65535]
v4l2: unknown control: 1363
get_path('sub/') -> '/home/jorge/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[VO_XV] Using Xv Adaptor #0 (NV Video Overlay)
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x00083e).
[xv common] Maximum source image dimensions: 2046x2046
Opening video filter: [screenshot]
Opening video filter: [crop w=626 x=0]
Crop: 626 x -1, 0 ; -1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: crop screenshot menu vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
REQ: flags=0x437  req=0x400
[swscaler @ 0x87568d8]No accelerated colorspace conversion found
[swscaler @ 0x87568d8]using unscaled yuv420p -> rgb24 special converter
REQ: flags=0x437  req=0x0
Unicode font: 255 glyphs.
REQ: flags=0x437  req=0x0
VO: [xv] 626x480 => 626x480 Planar YV12
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 65 for hw scaling
[xv] dx: 0 dy: 0 dw: 626 dh: 480
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
v4l2: going to capture
*** [crop] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [screenshot] Exporting mp_image_t, 626x480x12bpp YUV planar, 450720 bytes
*** [menu] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [vo] Exporting mp_image_t, 626x480x12bpp YUV planar, 450720 bytes
Unicode font: 255 glyphs.
Unicode font: 255 glyphs.
[xv] dx: 0 dy: 0 dw: 626 dh: 480
V:   0.0   1/  1 ??% ??% ??,?% 0 0 
EOF code: 1

Uninit video: raw
v4l2: 3 frames successfully processed, 3 frames dropped.
v4l2: up to 1 video frames buffered.
vo: uninit ...

Exiting... (End of file)



More information about the MEncoder-users mailing list