Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TO FFSERVER
- $ 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
- ffmpeg version N-81071-g9264bb7 Copyright (c) 2000-2016 the FFmpeg developers
- built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
- 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
- libavutil 55. 28.100 / 55. 28.100
- libavcodec 57. 50.100 / 57. 50.100
- libavformat 57. 44.100 / 57. 44.100
- libavdevice 57. 0.102 / 57. 0.102
- libavfilter 6. 47.100 / 6. 47.100
- libswscale 4. 1.100 / 4. 1.100
- libswresample 2. 1.100 / 2. 1.100
- libpostproc 54. 0.100 / 54. 0.100
- libva info: VA-API version 0.39.0
- libva info: va_getDriverName() returns 0
- libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
- libva info: Found init function __vaDriverInit_0_39
- libva info: va_openDriver() returns 0
- Guessed Channel Layout for Input Stream #0.0 : stereo
- Input #0, alsa, from 'hw:1':
- Duration: N/A, start: 1469178061.345843, bitrate: 1536 kb/s
- Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
- [video4linux2,v4l2 @ 0x385db20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
- Input #1, video4linux2,v4l2, from '/dev/video0':
- Duration: N/A, start: 0.000000, bitrate: 398131 kb/s
- Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 398131 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
- No pixel format specified, yuv422p for H.264 encoding chosen.
- Use -pix_fmt yuv420p for compatibility with outdated media players.
- [libx264 @ 0x386a480] VBV buffer (2000000) > level limit (960000)
- [libx264 @ 0x386a480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
- [libx264 @ 0x386a480] profile High 4:2:2, level 5.2, 4:2:2 8-bit
- [ffm @ 0x38595e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
- Last message repeated 2 times
- Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
- Metadata:
- creation_time : now
- encoder : Lavf57.44.100
- Stream #0:0: Video: h264 (libx264), yuv422p, 1920x1080, q=3-31, 1000 kb/s, 60 fps, 1000k tbn, 60 tbc
- Metadata:
- encoder : Lavc57.50.100 libx264
- Side data:
- cpb: bitrate max/min/avg: 2000000/0/1000000 buffer size: 2097152000 vbv_delay: -1
- Stream #0:1: Audio: wmav2, 22050 Hz, mono, fltp, 64 kb/s
- Metadata:
- encoder : Lavc57.50.100 wmav2
- Stream #0:2: Video: msmpeg4v3 (msmpeg4), yuv420p, 352x240, q=2-31, 256 kb/s, 60 fps, 1000k tbn, 15 tbc
- Metadata:
- encoder : Lavc57.50.100 msmpeg4
- Side data:
- cpb: bitrate max/min/avg: 512000/0/256000 buffer size: 327680 vbv_delay: -1
- Stream mapping:
- Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
- Stream #0:0 -> #0:1 (pcm_s16le (native) -> wmav2 (native))
- Stream #1:0 -> #0:2 (rawvideo (native) -> msmpeg4v3 (msmpeg4))
- Press [q] to stop, [?] for help
- [video4linux2,v4l2 @ 0x385db20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
- Last message repeated 7 times
- [video4linux2,v4l2 @ 0x385db20] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
- [video4linux2,v4l2 @ 0x385db20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
- Last message repeated 22 times
- [libx264 @ 0x386a480] Input picture width (1920) is greater than stride (736)
- Video encoding failed
- [libx264 @ 0x386a480] final ratefactor: 39.48
- [alsa @ 0x3844da0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
- Conversion failed!
- To file:
- $ 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
- ffmpeg version N-81071-g9264bb7 Copyright (c) 2000-2016 the FFmpeg developers
- built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
- 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
- libavutil 55. 28.100 / 55. 28.100
- libavcodec 57. 50.100 / 57. 50.100
- libavformat 57. 44.100 / 57. 44.100
- libavdevice 57. 0.102 / 57. 0.102
- libavfilter 6. 47.100 / 6. 47.100
- libswscale 4. 1.100 / 4. 1.100
- libswresample 2. 1.100 / 2. 1.100
- libpostproc 54. 0.100 / 54. 0.100
- libva info: VA-API version 0.39.0
- libva info: va_getDriverName() returns 0
- libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
- libva info: Found init function __vaDriverInit_0_39
- libva info: va_openDriver() returns 0
- Guessed Channel Layout for Input Stream #0.0 : stereo
- Input #0, alsa, from 'hw:1':
- Duration: N/A, start: 1469178103.716922, bitrate: 1536 kb/s
- Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
- [video4linux2,v4l2 @ 0x27a8b20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
- Input #1, video4linux2,v4l2, from '/dev/video0':
- Duration: N/A, start: 0.000000, bitrate: 398131 kb/s
- Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 398131 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
- 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.
- [mp4 @ 0x27a45e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
- Last message repeated 1 times
- Output #0, mp4, to 'test.mp4':
- Metadata:
- encoder : Lavf57.44.100
- 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
- Metadata:
- encoder : Lavc57.50.100 h264_vaapi
- Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
- Metadata:
- encoder : Lavc57.50.100 aac
- Stream mapping:
- Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (h264_vaapi))
- Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
- Press [q] to stop, [?] for help
- [video4linux2,v4l2 @ 0x27a8b20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
- Last message repeated 8 times
- [video4linux2,v4l2 @ 0x27a8b20] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
- [video4linux2,v4l2 @ 0x27a8b20] Dequeued v4l2 buffer contains corrupted data (0 bytes).
- Last message repeated 21 times
- [alsa @ 0x278fda0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
- 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