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

streams not working due to "invalid arguments" #1593

Closed
spamwax opened this issue Feb 12, 2025 · 3 comments
Closed

streams not working due to "invalid arguments" #1593

spamwax opened this issue Feb 12, 2025 · 3 comments
Labels
question Further information is requested

Comments

@spamwax
Copy link

spamwax commented Feb 12, 2025

I have V3 and copied the latest version of go2rtc to the bin folder. The go2rtc page works and shows me the stream options. (Before using the updated go2rtc, I was also getting errors like streams: exec: exit status 1)

However, none of the links work and these are the error/log messages:

streams: exec/rtsp
ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11.4.0 (Buildroot 2023.02.2)
  configuration: --enable-cross-compile --cross-prefix=/root/buildroot/buildroot-2023.02.2/output/host/bin/mipsel-buildroot-linux-musl- --sysroot=/root/buildroot/buildroot-2023.02.2/output/host/mipsel-buildroot-linux-musl/sysroot --host-cc=/usr/bin/gcc --arch=mipsel --target-os=linux --disable-stripping --pkg-config=/root/buildroot/buildroot-2023.02.2/output/host/bin/pkg-config --enable-static --..., exec/rtsp
[alsa @ 0x77ced810] cannot set channel count to 1 (Invalid argument)
dsnooper0: I/O error
, exec/rtsp
[alsa @ 0x77be7030] cannot set channel count to 1 (Invalid argument)
dsnooper0: I/O error

The log page of go2rtc also shows [exec] /dev/video1: Invalid argument. However inspecting the SD card, I see bunch of videos recorded!

10:39:21.142 PM	debug	[exec] dsnooper0: I/O error
10:39:21.141 PM	debug	[exec] cannot set channel count to 1 (Invalid argument)
10:39:21.140 PM	debug	[exec] [alsa @ 0x77be7030]
10:39:21.130 PM	debug	[exec] run rtsp args=ffmpeg,-hide_banner,-f,alsa,-ac,1,-i,dsnooper0,-c:a,libfdk_aac,-afterburner,1,-channels,1,-b:a,128k,-profile:a,aac_he,-ar,16000,-strict,experimental,-muxdelay,0,-muxpreload,0,-ac:a,1,-f,rtsp,rtsp://127.0.0.1:8554/90bb93a3a637f9828b44429bcc080e69
10:39:21.128 PM	debug	[exec] dsnooper0: I/O error
10:39:21.128 PM	debug	[exec] cannot set channel count to 1 (Invalid argument)
10:39:21.127 PM	debug	[exec] [alsa @ 0x77ced810]
10:39:21.055 PM	debug	[exec] run rtsp args=ffmpeg,-hide_banner,-f,alsa,-ac,1,-i,dsnooper0,-c:a,copy,-muxdelay,0,-muxpreload,0,-f,rtsp,rtsp://127.0.0.1:8554/a3531bdb975041cb28b412d35fa90eb0
10:39:21.053 PM	debug	[exec] /dev/video1: Invalid argument
10:39:21.022 PM	debug	[exec] ioctl(VIDIOC_G_FMT): Invalid argument
10:39:21.021 PM	debug	[exec] [video4linux2,v4l2 @ 0x7797b820]
10:39:20.962 PM	debug	[exec] libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
10:39:20.889 PM	debug	[exec] built with gcc 11.4.0 (Buildroot 2023.02.2)
configuration: --enable-cross-compile --cross-prefix=/root/buildroot/buildroot-2023.02.2/output/host/bin/mipsel-buildroot-linux-musl- --sysroot=/root/buildroot/buildroot-2023.02.2/output/host/mipsel-buildroot-linux-musl/sysroot --host-cc=/usr/bin/gcc --arch=mipsel --target-os=linux --disable-stripping --pkg-config=/root/buildroot/buildroot-2023.02.2/output/host/bin/pkg-config --enable-static --disable-shared --prefix=/usr --enable-avfilter --disable-version3 --enable-logging --enable-optimizations --disable-extra-warnings --enable-avdevice --enable-avcodec --enable-avformat --enable-network --disable-gray --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-hardcoded-tables --disable-mipsdsp --disable-mipsdspr2 --disable-msa --enable-hwaccels --disable-cuda --disable-cuvid --disable-nvenc --disable-avisynth --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libdc1394 --disable-libgsm --disable-libilbc --disable-libvo-amrwbenc --disable-symver --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --disable-ffplay --disable-libv4l2 --enable-avresample --enable-ffprobe --disable-libxcb --enable-postproc --enable-swscale --disable-encoders --enable-encoder=flv --enable-encoder=aac --enable-encoder=pcm_s16be --enable-encoder=pcm_s16le --enable-encoder=pcm_alaw --enable-encoder=pcm_mulaw --enable-encoder=libmp3lame --enable-encoder=libfdk_aac --enable-encoder=png --enable-encoder=ljpeg --enable-encoder=mjpeg --enable-encoder=libx264 --enable-encoder=libopus --disable-decoders --enable-decoder=h264 --enable-decoder=pcm_u8 --enable-decoder=flv --enable-decoder=pcm_s16be --enable-decoder=pcm_s16le --enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw --enable-decoder=mp3 --enable-decoder=png --enable-decoder=ljpeg --enable-decoder=mjpeg --enable-decoder=h264 --enable-decoder=libopus --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=rtsp --enable-muxer=segment --enable-muxer=stream_segment --enable-muxer=flv --enable-muxer=image2 --enable-muxer=hls --enable-muxer=mp3 --enable-muxer=pcm_s16le --disable-demuxers --enable-demuxer=h264 --enable-demuxer=rtsp --enable-demuxer=image2 --enable-demuxer=hls --enable-demuxer=mp3 --enable-demuxer=pcm_s16le --disable-parsers --enable-parser=h264 --enable-parser=png --disable-bsfs --enable-bsf=h264_metadata --disable-protocols --enable-protocol=file --enable-protocol=tcp --enable-protocol=udp --enable-protocol=pipe --enable-protocol=rtmp --enable-protocol=rtmps --enable-protocol=hls --enable-protocol=https --disable-filters --enable-filter=null --enable-filter=anullsrc --enable-filter=aresample --enable-filter=scale --enable-filter=volume --enable-filter=adelay --enable-indevs --enable-alsa --enable-outdevs --enable-pthreads --enable-zlib --disable-bzlib --enable-libfdk-aac --disable-libcdio --disable-gnutls --disable-openssl --disable-libdrm --disable-libopenh264 --disable-vaapi --disable-vdpau --disable-mmal --disable-omx --disable-omx-rpi --disable-libopencv --enable-libopus --disable-libvpx --disable-libass --disable-libbluray --disable-libmfx --disable-librtmp --enable-libmp3lame --disable-libmodplug --disable-libspeex --disable-libtheora --disable-iconv --disable-libfreetype --disable-fontconfig --disable-libopenjpeg --enable-libx264 --disable-libx265 --disable-libdav1d --disable-x86asm --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-avx2 --disable-armv6 --disable-armv6t2 --disable-vfp --disable-neon --disable-mipsfpu --disable-asm --disable-altivec --extra-libs=-latomic --disable-pic --cpu=generic --enable-indev=alsa --enable-outdev=alsa --enable-libmp3lame --enable-version3 --enable-mbedtls
10:39:20.882 PM	debug	[exec] ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers
10:39:20.730 PM	trace	[api] GET /api/streams 192.168.13.200:57290
10:39:20.624 PM	debug	[exec] run rtsp args=ffmpeg,-fflags,+genpts+flush_packets+nobuffer+bitexact,-flags,+low_delay,-thread_queue_size,100,-analyzeduration,50,-probesize,50,-pix_fmt,yuv420p,-r,30,-i,/dev/video1,-flags,+global_header,-movflags,+empty_moov+default_base_moof+frag_keyframe,-framerate,30,-video_size,1920x1080,-pix_fmt,yuv420p,-c:v,copy,-copyts,-rtsp_transport,tcp,-f,rtsp,rtsp://127.0.0.1:8554/3ba820499deccf7796557c6a56681894

And this is my config file

@spamwax spamwax changed the title streams no working due to "invalid arguments" streams not working due to "invalid arguments" Feb 12, 2025
@spamwax
Copy link
Author

spamwax commented Feb 12, 2025

wrong repo, closing

@spamwax spamwax closed this as completed Feb 12, 2025
@AlexxIT AlexxIT added the question Further information is requested label Feb 12, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 12, 2025

You using outdated ffmpeg. Go2rtc requires ffmpeg 5+.

@spamwax
Copy link
Author

spamwax commented Feb 13, 2025

I see, thanks for the hint. since I was using go2rtc as part of https://github.com/gtxaspec/wz_mini_hacks, I did not have muck control over the version of the ffmpeg. Also the Wyze camera I am using had a firmware unsupported by z_mini_hacks.

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

No branches or pull requests

2 participants