Advertisement
Guest User

ffmpeg not receiving video from v4l2 device

a guest
Jan 28th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.57 KB | None | 0 0
  1. ffmpeg -vsync 1 -f video4linux2 -pix_fmt uyvy422 -s 720x576 -aspect 4:3 -i /dev/video1 -f pulse -acodec pcm_s32le -ar 48000 -i alsa_input.1.analog-stereo -acodec ac3 -ab 192k -ac 2 -vcodec mpeg2video -pix_fmt uyvy422 -threads 2 -b:v 3500k -bt 500k -bf 2 test.avi
  2.  
  3. No frames get encoded :
  4.  
  5. ffmpeg version 0.10.6 Copyright (c) 2000-2012 the FFmpeg developers
  6.   built on Nov 13 2012 16:03:45 with gcc 4.6.3
  7.   configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopencv --enable-libopenjpeg --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libdirac --enable-libv4l2 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxvid
  8.   libavutil      51. 35.100 / 51. 35.100
  9.   libavcodec     53. 61.100 / 53. 61.100
  10.   libavformat    53. 32.100 / 53. 32.100
  11.   libavdevice    53.  4.100 / 53.  4.100
  12.   libavfilter     2. 61.100 /  2. 61.100
  13.   libswscale      2.  1.100 /  2.  1.100
  14.   libswresample   0.  6.100 /  0.  6.100
  15.   libpostproc    52.  0.100 / 52.  0.100
  16. [video4linux2,v4l2 @ 0x1e4d6c0] The v4l2 frame is 391680 bytes, but 829440 bytes are expected
  17. [video4linux2,v4l2 @ 0x1e4d6c0] Estimating duration from bitrate, this may be inaccurate            
  18. Input #0, video4linux2,v4l2, from '/dev/video1':                                                    
  19.   Duration: N/A, bitrate: 165888 kb/s
  20.     Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 165888 kb/s, 25 tbr, 1000k tbn, 25 tbc
  21. [pulse @ 0x1e53fe0] Estimating duration from bitrate, this may be inaccurate
  22. Input #1, pulse, from 'alsa_input.1.analog-stereo':                                                
  23.   Duration: N/A, start: 0.014507, bitrate: N/A
  24.     Stream #1:0: Audio: pcm_s32le, 48000 Hz, 2 channels, s32, 3072 kb/s
  25. File 'test.avi' already exists. Overwrite ? [y/N] y
  26. Incompatible pixel format 'uyvy422' for codec 'mpeg2video', auto-selecting format 'yuv422p'
  27. [buffer @ 0x1e54800] w:720 h:576 pixfmt:uyvy422 tb:1/1000000 sar:0/1 sws_param:                    
  28. [buffersink @ 0x1e4b7c0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
  29. [scale @ 0x1e4be00] w:720 h:576 fmt:uyvy422 -> w:720 h:576 fmt:yuv422p flags:0x4
  30. Incompatible sample format 's32' for codec 'ac3', auto-selecting format 'flt'
  31. [ac3 @ 0x1e38c00] channel_layout not specified
  32. [ac3 @ 0x1e38c00] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
  33. Output #0, avi, to 'test.avi':
  34.   Metadata:
  35.     ISFT            : Lavf53.32.100
  36.     Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv422p, 720x576, q=2-31, 3500 kb/s, 25 tbn, 25 tbc
  37.     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, flt, 192 kb/s
  38. Stream mapping:
  39.   Stream #0:0 -> #0:0 (rawvideo -> mpeg2video)
  40.   Stream #1:0 -> #0:1 (pcm_s32le -> ac3)
  41. Press [q] to stop, [?] for help
  42. frame=    0 fps=  0 q=0.0 Lsize=      10kB time=00:00:00.00 bitrate=   0.0kbits/s    
  43. video:0kB audio:0kB global headers:0kB muxing overhead inf%
  44. Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement