Advertisement
Guest User

Untitled

a guest
Oct 29th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. I'm using this video4linux2 kernel driver. http://code.google.com/p/easycap-somagic-linux/
  2.  
  3. ################################VLC Command
  4. $ vlc v4l2:///dev/video0 :input-slave="alsa://plughw:1,0"
  5.  
  6. ################################VLC Codec info
  7. Stream 0
  8. Type: Video
  9. Codec: Packed YUV 4:2:2, U:Y:V:Y (UYVY)
  10. Resolution: 720x487
  11. Display resolution: 720x487
  12. Frame rate: 4293.967360
  13. Stream 1
  14. Type: Audio
  15. Codec: PCM S16 LE (s16l)
  16. Channels: Stereo
  17. Sample rate: 48000 Hz
  18. Bits per sample: 16
  19.  
  20. ################################V4L2 info
  21. $ v4l2-ctl --all
  22. Driver Info (not using libv4l2):
  23. Driver name : SMI Grabber DEV
  24. Card type : EasyCAP DC60
  25. Bus info : usb-0000:00:02.1-2
  26. Driver version: 3.6.3
  27. Capabilities : 0x04000001
  28. Video Capture
  29. Streaming
  30. Format Video Capture:
  31. Width/Height : 720/487
  32. Pixel Format : 'UYVY'
  33. Field : Interlaced
  34. Bytes per Line: 1440
  35. Size Image : 701280
  36. Colorspace : Broadcast NTSC/PAL (SMPTE170M/ITU601)
  37. Video input : 0 (CVBS: ok)
  38. Video Standard = 0x0000b000
  39. NTSC-M/M-JP/M-KR
  40. Streaming Parameters Video Capture:
  41. Frames per second: 29.970 (30000/1001)
  42. Read buffers : 2
  43.  
  44. ################################FFmpeg command
  45. $ ffmpeg -v verbose -f video4linux2 -i /dev/video0 -c:v libx264 -preset ultrafast cast.mkv
  46. ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  47. built on Oct 23 2012 21:43:58 with gcc 4.7.2 (GCC)
  48. configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libfdk-aac --enable-libaacplus --enable-libv4l2 --enable-gpl --enable-nonfree --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
  49. libavutil 51. 73.101 / 51. 73.101
  50. libavcodec 54. 59.100 / 54. 59.100
  51. libavformat 54. 29.104 / 54. 29.104
  52. libavdevice 54. 2.101 / 54. 2.101
  53. libavfilter 3. 17.100 / 3. 17.100
  54. libswscale 2. 1.101 / 2. 1.101
  55. libswresample 0. 15.100 / 0. 15.100
  56. libpostproc 52. 0.100 / 52. 0.100
  57. [video4linux2,v4l2 @ 0x25ed260] [3]Capabilities: 5000001
  58. [video4linux2,v4l2 @ 0x25ed260] Querying the device for the current frame size
  59. [video4linux2,v4l2 @ 0x25ed260] Setting frame size to 720x487
  60. [video4linux2,v4l2 @ 0x25ed260] The V4L2 driver changed the video from 720x487 to 720x486
  61. [video4linux2,v4l2 @ 0x25ed260] The v4l2 frame is 633600 bytes, but 524880 bytes are expected
  62. [video4linux2,v4l2 @ 0x25ed260] Estimating duration from bitrate, this may be inaccurate
  63. Input #0, video4linux2,v4l2, from '/dev/video0':
  64. Duration: N/A, bitrate: 125845 kb/s
  65. Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x486, 125845 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
  66. File 'cast.mkv' already exists. Overwrite ? [y/N] y
  67. w:720 h:486 pixfmt:yuv420p tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2
  68. [libx264 @ 0x25ee900] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
  69. [libx264 @ 0x25ee900] profile Constrained Baseline, level 3.1
  70. [libx264 @ 0x25ee900] 264 - core 124 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
  71. Output #0, matroska, to 'cast.mkv':
  72. Metadata:
  73. encoder : Lavf54.29.104
  74. Stream #0:0: Video: h264, yuv420p, 720x486, q=-1--1, 1k tbn, 29.97 tbc
  75. Stream mapping:
  76. Stream #0:0 -> #0:0 (rawvideo -> libx264)
  77. Press [q] to stop, [?] for help
  78. [video4linux2,v4l2 @ 0x25ed260] The v4l2 frame is 701280 bytes, but 524880 bytes are expected
  79. /dev/video0: Invalid data found when processing input
  80. No more output streams to write to, finishing.
  81. frame= 0 fps=0.0 q=0.0 Lsize= 1kB time=00:00:00.00 bitrate= 0.0kbits/s
  82. video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1529.411765%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement