Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying use webcam without success. #50

Open
adaliszk opened this issue Sep 13, 2015 · 5 comments
Open

Trying use webcam without success. #50

adaliszk opened this issue Sep 13, 2015 · 5 comments

Comments

@adaliszk
Copy link

I'm trying use my new webcam, but somehow the script is die.

Output:

adamos42@a42linux:~$ ./streamer.sh -save

Twitch Streamer for Linux (streamer.sh)
Copyright (c) 2013 - 2014, Giovanni Dante Grazioli (deroad)

Using global twitch key located in home directory
[+] Saving the video into streamer.flv instead of stream to Twitch.tv

Please setup the Audio Output to sink null (something like 'pavucontrol')
[+] Click, with the mouse, on the Window that you want to Stream

Webcam found!!
You should be online! Check on http://twitch.tv/ (Press CTRL+C to stop)

There isn't a WEBCAM_XY in the options, i'll generate the standard one (1590:10)
ffmpeg version N-73454-g9174866 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
  configuration: --enable-gpl --enable-gray --enable-runtime-cpudetect --enable-bzlib --enable-gnutls --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-openal --enable-zlib --enable-nonfree --enable-version3 --enable-x11grab
  libavutil      54. 28.100 / 54. 28.100
  libavcodec     56. 46.101 / 56. 46.101
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 21.100 /  5. 21.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, x11grab, from ':0.0+0,0':
  Duration: N/A, start: 1442132762.544342, bitrate: N/A
    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x24, 24 fps, 24 tbr, 1000k tbn, 24 tbc
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, alsa, from 'pulse':
  Duration: N/A, start: 1442132762.547805, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Please use -b:a or -b:v, -b is ambiguous
[video4linux2,v4l2 @ 0x21bdaa0] ioctl(VIDIOC_STREAMON): Input/output error
[Parsed_movie_0 @ 0x21bcd60] Failed to avformat_open_input '/dev/video0'
[AVFilterGraph @ 0x21d11c0] Error initializing filter 'movie' with args '/dev/video0:f=video4linux2'
Error opening filters!

The script is fresh downloaded from github, only I edited the webcam device location ( /dev/video0 )

@wargio
Copy link
Owner

wargio commented Sep 13, 2015

are you sure that's the correct char dev? check with another app like cheese or vlc. if they have problems with that, well, it's a driver problem, or is not supported by video4linux2

@adaliszk
Copy link
Author

char dev? I checked my webcam with cheese and it's worked.

@wargio
Copy link
Owner

wargio commented Sep 13, 2015

char device. check if cheese is actually using /dev/video0, because that's weird.

@adaliszk
Copy link
Author

Cheese using /dev/video0 and the camera is working fine.
Cheese Settings

@wargio
Copy link
Owner

wargio commented Sep 13, 2015

try to change the permissions: chmod 775 /dev/video0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants