Hello everyone

I am trying to stream my webcam to youtube. Here is the command i use:

ffmpeg -re -f v4l2 -input_format mjpeg -s 640x480 -hwaccel cuvid -c:v mjpeg_cuvid -i /dev/video1 -c:v libx264 -an -f flv rtmp://a.rtmp.youtube.com/live2/key

and the error i get :

ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --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-cuda --enable-cuvid --enable-nvenc --bindir=/usr/bin
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 8778.032889, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (mjpeg_cuvid) -> h264 (libx264))
Press [q] to stop, [?] for help
[mjpeg_cuvid @ 0x2b31700] ignoring invalid SAR: 0/0
Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[video4linux2,v4l2 @ 0x2b2f9a0] Some buffers are still owned by the caller on close.
Conversion failed!


if anyone has idea how to stream the webcam and what i am doing wrong please let me know.

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to