-
Notifications
You must be signed in to change notification settings - Fork 4
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
ffmpeg Invalid argment while running example.ts #170
Comments
Hello, @axacheng So, as for your issue, I am not sure what can be the root cause of it. I didn't have a chance to find something similar so far. The most closer error message is:
Just finger to the sky... Let's check whether your ffmpeg \
-rtsp_transport tcp \
-i rtsp://USERNAME:PASSWORD@finallyhome.tplinkdns.com:6666/stream2 \
-reset_timestamps 1 \
-strftime 1 \
-strftime_mkdir 1 \
-hls_time 600 \
-hls_list_size 0 \
-hls_segment_filename %Y.%m.%d-%H.%M.%S.mp4 \
./playlist.m3u8 Also, I am not sure about your Let me know how is it going. |
Hello Boonya Thank you for quick reply. I tried to run ffmpeg command from terminal and I got output file with current timestamp as well as playlist.m3u8 file. Everything just worked from ffmpeg command! From my last thread, I used DESTINATION="." for environment variable but I just used absolute path now. DESTINATION="/home/axa/" , but still got same error - cam:Invalid argument. I don't know where to set cam argument and not sure what suitable output format meant from Could you let me know what ffmpeg version you use and what nodejs version is ? Thank you |
Interesting. |
I have it tested on my Macbook Pro M1 where (nodejs 10.24 & nodejs 16.13) ffmpeg version installed:
Also it works to me on a RaspberryPi B3+ (Ubuntu Server 20.04.3 LTS) with nodejs 16.13 & ffmpeg installed:
|
This is my screenshot ~ I use Google Cloud GCE axa@wordpress-1-vm:~/default/rtsp-video-recorder$ cat /etc/debian_version
10.11
axa@wordpress-1-vm:~/default/rtsp-video-recorder$
axa@wordpress-1-vm:~/default/rtsp-video-recorder$ node -v
v10.24.0
axa@wordpress-1-vm:~/default/rtsp-video-recorder$ ffmpeg --version
ffmpeg version 4.1.8-0+deb10u1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr --extra-version=0+deb10u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found
axa@wordpress-1-vm:~/default/rtsp-video-recorder$ |
I have an idea! E.g. export TITLE="test-cam" Here is the "cam" word you may be experiencing this issue about. |
it's working now! Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) Wed Dec 01 2021 16:13:37 GMT+0000 (Coordinated Universal Time) |
Cool. "Thank you for flying with our airlines" ))) |
Hi boony
First of all, thanks you for developing this awesome node library, it'd be very useful for me and make my life easier to build a live streaming cache CDN. However, by some reason, I cannot make it work as I'm not sure the server side issue or ffmpeg decode issue. I got Unable to find a suitable output format for 'cam' this error mesg and node process got exited. I didn't see any 'cam' keyword in my code and your rtsp-video-recorder, so I assume it might be came from ffmpeg ?
Could you please verify it for me ?
Thank you so much.
The text was updated successfully, but these errors were encountered: