LINUX.ORG.RU

История изменений

Исправление wolverin, (текущая версия) :

так вроде ЧТО-ТО работает, но по факту хз чем занято, видео нет на сервере, загрузка цпу нулевая

./ffmpeg-ubrv -f v4l2 -input_format h264 -video_size 1280x720 -hwaccel vdpau -i /dev/video0 -c:v cedrus264 -pix_fmt nv12 -f rtsp -rtsp_transport tcp rtsp://....ru:/123456789
ffmpeg version git-2015-01-22-f86a076 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 18 2024 12:09:53 with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libv4l2 --disable-doc
  libavutil      54.  6.100 / 54.  6.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  2.100 / 56.  2.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.102 /  5.  0.102
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 4165345.507402, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709), 1280x720, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 2000k tbc
[swscaler @ 0xf3f6e0] deprecated pixel format used, make sure you did set range correctly
[VDPAU SUNXI] VE version 0x1680 opened.
[rtp @ 0x101e2f0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Output #0, rtsp, to 'rtsp://....ru:/123456789':
  Metadata:
    encoder         : Lavf56.2.100
    Stream #0:0: Video: h264 (cedrus264), nv12, 1280x720, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.0.101 cedrus264
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
Input stream #0:0 frame changed from size:1280x720 fmt:yuvj420p to size:1280x720 fmt:yuv420p
frame=   41 fps=1.0 q=30.0 size=N/A time=00:00:00.00 bitrate=N/A dup=19 drop=1

Исправление wolverin, :

так вроде ЧТО-ТО работает, но по факту хз чем занято, видео нет на сервере

./ffmpeg-ubrv -f v4l2 -input_format h264 -video_size 1280x720 -hwaccel vdpau -i /dev/video0 -c:v cedrus264 -pix_fmt nv12 -f rtsp -rtsp_transport tcp rtsp://....ru:/123456789
ffmpeg version git-2015-01-22-f86a076 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 18 2024 12:09:53 with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libv4l2 --disable-doc
  libavutil      54.  6.100 / 54.  6.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  2.100 / 56.  2.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.102 /  5.  0.102
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 4165345.507402, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709), 1280x720, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 2000k tbc
[swscaler @ 0xf3f6e0] deprecated pixel format used, make sure you did set range correctly
[VDPAU SUNXI] VE version 0x1680 opened.
[rtp @ 0x101e2f0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Output #0, rtsp, to 'rtsp://....ru:/123456789':
  Metadata:
    encoder         : Lavf56.2.100
    Stream #0:0: Video: h264 (cedrus264), nv12, 1280x720, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.0.101 cedrus264
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
Input stream #0:0 frame changed from size:1280x720 fmt:yuvj420p to size:1280x720 fmt:yuv420p
frame=   41 fps=1.0 q=30.0 size=N/A time=00:00:00.00 bitrate=N/A dup=19 drop=1

Исходная версия wolverin, :

так вроде ЧТО-ТО работает, но по факту хз чем занято, видео нет на сервере

./ffmpeg-ubrv -f v4l2 -input_format h264 -video_size 1280x720 -re -hwaccel vdpau -i /dev/video0 -c:v cedrus264 -pix_fmt nv12 -f rtsp -rtsp_transport tcp rtsp://....ru:/123456789
ffmpeg version git-2015-01-22-f86a076 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 18 2024 12:09:53 with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libv4l2 --disable-doc
  libavutil      54.  6.100 / 54.  6.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  2.100 / 56.  2.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.102 /  5.  0.102
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 4165345.507402, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709), 1280x720, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 2000k tbc
[swscaler @ 0xf3f6e0] deprecated pixel format used, make sure you did set range correctly
[VDPAU SUNXI] VE version 0x1680 opened.
[rtp @ 0x101e2f0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Output #0, rtsp, to 'rtsp://....ru:/123456789':
  Metadata:
    encoder         : Lavf56.2.100
    Stream #0:0: Video: h264 (cedrus264), nv12, 1280x720, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.0.101 cedrus264
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
Input stream #0:0 frame changed from size:1280x720 fmt:yuvj420p to size:1280x720 fmt:yuv420p
frame=   41 fps=1.0 q=30.0 size=N/A time=00:00:00.00 bitrate=N/A dup=19 drop=1