Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.98 KB | None | 0 0
  1. TO FFSERVER
  2. $ bin/ffmpeg -f alsa -i hw:1 -vaapi_device /dev/dri/renderD128 -i /dev/video0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -preset:v faster -c:a  aac -b:a 128k -ar 44100 http://localhost:8090/feed1.ffm
  3. ffmpeg version N-81071-g9264bb7 Copyright (c) 2000-2016 the FFmpeg developers
  4.   built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
  5.   configuration: --prefix=/home/streamit/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/streamit/ffmpeg_build/include --extra-ldflags=-L/home/streamit/ffmpeg_build/lib --bindir=/home/streamit/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-libmfx
  6.   libavutil      55. 28.100 / 55. 28.100
  7.   libavcodec     57. 50.100 / 57. 50.100
  8.   libavformat    57. 44.100 / 57. 44.100
  9.   libavdevice    57.  0.102 / 57.  0.102
  10.   libavfilter     6. 47.100 /  6. 47.100
  11.   libswscale      4.  1.100 /  4.  1.100
  12.   libswresample   2.  1.100 /  2.  1.100
  13.   libpostproc    54.  0.100 / 54.  0.100
  14. libva info: VA-API version 0.39.0
  15. libva info: va_getDriverName() returns 0
  16. libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
  17. libva info: Found init function __vaDriverInit_0_39
  18. libva info: va_openDriver() returns 0
  19. Guessed Channel Layout for Input Stream #0.0 : stereo
  20. Input #0, alsa, from 'hw:1':
  21.   Duration: N/A, start: 1469178061.345843, bitrate: 1536 kb/s
  22.     Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
  23. [video4linux2,v4l2 @ 0x385db20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
  24. Input #1, video4linux2,v4l2, from '/dev/video0':
  25.   Duration: N/A, start: 0.000000, bitrate: 398131 kb/s
  26.     Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 398131 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
  27. No pixel format specified, yuv422p for H.264 encoding chosen.
  28. Use -pix_fmt yuv420p for compatibility with outdated media players.
  29. [libx264 @ 0x386a480] VBV buffer (2000000) > level limit (960000)
  30. [libx264 @ 0x386a480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
  31. [libx264 @ 0x386a480] profile High 4:2:2, level 5.2, 4:2:2 8-bit
  32. [ffm @ 0x38595e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
  33.     Last message repeated 2 times
  34. Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  35.   Metadata:
  36.     creation_time   : now
  37.     encoder         : Lavf57.44.100
  38.     Stream #0:0: Video: h264 (libx264), yuv422p, 1920x1080, q=3-31, 1000 kb/s, 60 fps, 1000k tbn, 60 tbc
  39.     Metadata:
  40.       encoder         : Lavc57.50.100 libx264
  41.     Side data:
  42.       cpb: bitrate max/min/avg: 2000000/0/1000000 buffer size: 2097152000 vbv_delay: -1
  43.     Stream #0:1: Audio: wmav2, 22050 Hz, mono, fltp, 64 kb/s
  44.     Metadata:
  45.       encoder         : Lavc57.50.100 wmav2
  46.     Stream #0:2: Video: msmpeg4v3 (msmpeg4), yuv420p, 352x240, q=2-31, 256 kb/s, 60 fps, 1000k tbn, 15 tbc
  47.     Metadata:
  48.       encoder         : Lavc57.50.100 msmpeg4
  49.     Side data:
  50.       cpb: bitrate max/min/avg: 512000/0/256000 buffer size: 327680 vbv_delay: -1
  51. Stream mapping:
  52.   Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  53.   Stream #0:0 -> #0:1 (pcm_s16le (native) -> wmav2 (native))
  54.   Stream #1:0 -> #0:2 (rawvideo (native) -> msmpeg4v3 (msmpeg4))
  55. Press [q] to stop, [?] for help
  56. [video4linux2,v4l2 @ 0x385db20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
  57.     Last message repeated 7 times
  58. [video4linux2,v4l2 @ 0x385db20] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
  59. [video4linux2,v4l2 @ 0x385db20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
  60.     Last message repeated 22 times
  61. [libx264 @ 0x386a480] Input picture width (1920) is greater than stride (736)
  62. Video encoding failed
  63. [libx264 @ 0x386a480] final ratefactor: 39.48
  64. [alsa @ 0x3844da0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
  65. Conversion failed!
  66.  
  67. To file:
  68. $ bin/ffmpeg -f alsa -i hw:1 -vaapi_device /dev/dri/renderD128 -i /dev/video0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -preset:v faster -c:a  aac -b:a 128k -ar 44100 test.mp4
  69. ffmpeg version N-81071-g9264bb7 Copyright (c) 2000-2016 the FFmpeg developers
  70.   built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
  71.   configuration: --prefix=/home/streamit/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/streamit/ffmpeg_build/include --extra-ldflags=-L/home/streamit/ffmpeg_build/lib --bindir=/home/streamit/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-libmfx
  72.   libavutil      55. 28.100 / 55. 28.100
  73.   libavcodec     57. 50.100 / 57. 50.100
  74.   libavformat    57. 44.100 / 57. 44.100
  75.   libavdevice    57.  0.102 / 57.  0.102
  76.   libavfilter     6. 47.100 /  6. 47.100
  77.   libswscale      4.  1.100 /  4.  1.100
  78.   libswresample   2.  1.100 /  2.  1.100
  79.   libpostproc    54.  0.100 / 54.  0.100
  80. libva info: VA-API version 0.39.0
  81. libva info: va_getDriverName() returns 0
  82. libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
  83. libva info: Found init function __vaDriverInit_0_39
  84. libva info: va_openDriver() returns 0
  85. Guessed Channel Layout for Input Stream #0.0 : stereo
  86. Input #0, alsa, from 'hw:1':
  87.   Duration: N/A, start: 1469178103.716922, bitrate: 1536 kb/s
  88.     Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
  89. [video4linux2,v4l2 @ 0x27a8b20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
  90. Input #1, video4linux2,v4l2, from '/dev/video0':
  91.   Duration: N/A, start: 0.000000, bitrate: 398131 kb/s
  92.     Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 398131 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
  93. Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (test.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
  94. [mp4 @ 0x27a45e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
  95.     Last message repeated 1 times
  96. Output #0, mp4, to 'test.mp4':
  97.   Metadata:
  98.     encoder         : Lavf57.44.100
  99.     Stream #0:0: Video: h264 (h264_vaapi) (High) ([33][0][0][0] / 0x0021), vaapi_vld, 720x576, q=2-31, 60 fps, 15360 tbn, 60 tbc
  100.     Metadata:
  101.       encoder         : Lavc57.50.100 h264_vaapi
  102.     Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
  103.     Metadata:
  104.       encoder         : Lavc57.50.100 aac
  105. Stream mapping:
  106.   Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (h264_vaapi))
  107.   Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
  108. Press [q] to stop, [?] for help
  109. [video4linux2,v4l2 @ 0x27a8b20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
  110.     Last message repeated 8 times
  111. [video4linux2,v4l2 @ 0x27a8b20] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
  112. [video4linux2,v4l2 @ 0x27a8b20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
  113.     Last message repeated 21 times
  114. [alsa @ 0x278fda0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
  115. frame=    3 fps=0.0 q=-0.0 size=       9kB time=02:01:26.60 bitrate=   0.0kbits/frame=    3 fps=3.0 q=-0.0 size=      16kB time=02:01:26.60 bitrate=   0.0kbits/frame=    3 fps=2.0 q=-0.0 size=      24kB time=02:01:26.60 bitrate=   0.0kbits/frame=    3 fps=1.5 q=-0.0 size=      32kB time=02:01:26.60 bitrate=   0.0kbits/frame=    3 fps=1.2 q=-0.0 size=      40kB time=02:01:26.60 bitrate=   0.0kbits/frame=    3 fps=1.0 q=-0.0 size=      48kB time=02:01:26.60 bitrate=   0.1kbits/frame=    3 fps=0.8 q=-0.0 Lsize=     111kB time=02:01:26.63 bitrate=   0.1kbits/s speed=2.06e+03x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement