Re: [FFmpeg-user] How to escape a URL passed to the underlying dash muxer via tee
On Tuesday, November 12, 2019, 8:31:09 PM CST, Dennis Mungai wrote: On Mon, 11 Nov 2019 at 15:14, Moritz Barsnick wrote: > > On Mon, Nov 11, 2019 at 11:46:16 +0300, Dennis Mungai wrote: > > How should one escape a URL passed to the underlying DASH muxer via tee? > > > > Here's the string I use from within a BASH script setting the muxer options: > > > > DASHOPTS='use_fifo=1:fifo_options=attempt_recovery=1:f=dash:seg_duration=6:window_size=6:utc_timing_url="https://time.akamai.com/?iso;' > > > > Doing so results in this: > > > > [tee @ 0x55746a001640] No option found near "//time.akamai.com/?iso" > > This indicates that the ':' in the URL was recognized as an option > delimiter. > > You could try adding a backslash before that colon. Or possibly this > will work: > DASHOPTS="use_fifo=1:fifo_options=attempt_recovery=1:f=dash:seg_duration=6:window_size=6:utc_timing_url='https://time.akamai.com/?iso'" > (i.e. using single quotes within the option string that ffmpeg actually > receives). > > Cheers, > Moritz Hmm, no dice. Both options result in the same error as before. Try this: 'https\\://time.akamai.com\\?iso' ___ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay
On Saturday, June 8, 2019, 3:34:27 PM CDT, Moritz Barsnick wrote: On Sat, Jun 08, 2019 at 15:50:35 +, Patrick Kirchner via ffmpeg-user wrote: > I have no luck with ffplay using "-af aresample=32000" and when I try to > change it to "-ac 2" I get this type of complaint: > [g726le @ 0x7f7070006600] Decoding more than one channel is not implemented. > Update your FFmpeg version to the newest one from Git. If the problem still > occurs, it means that your file has a feature which has not been implemented. "-ac 2" probably forces ffprobe to assume that the *input* has two channels, which apparently isn't supported. Did you read Carl Eugen's suggestion to try "-af aresample=ocl=stereo"? > With MPlayer, there are audio output options to chose either sdl or > alsa seperately, but it seems that ffplay can only use alsa along > with sdl. I believe it's SDL which has the ALSA implementation, ffplay only uses the SDL API. (I may be wrong though.) ffplay is sort of minimalistic feature-wise. Do you definitely need ffplay? Do you have access to mpv? Moritz --- Thanks Moritz! Using "-af aresample=ocl=stereo" resolved my issue and now the sound works great. Sorry, somehow I totally missed Carl Eugen's suggestion to try it. I searched through all the replies to my thread and I still can't find it but regardless it was the answer, so thank you very much for pointing it out and a big thanks to Carl Eugen for the correct answer to my problem. I've been hoping to use ffplay because of its quick startup time and low footprint. I had been using MPlayer since 2000 but wasn't aware of the MPV fork. I'll have to check it out, but for now I'm quite pleased that ffplay is working. Many thanks again to you and Carl for the assistance. :) Patrick. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay
On Monday, June 3, 2019, 10:56:24 PM CDT, Patrick Kirchner wrote: On Monday, June 3, 2019, 10:28:43 AM CDT, Moritz Barsnick wrote: On Mon, Jun 03, 2019 at 01:44:58 +, Patrick Kirchner via ffmpeg-user wrote: > SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels > No more combinations to try, audio open failed This means that ffplay's SDL audio implementation can't play to the available audio device. Perhaps ffplay doesn't automatically try to convert to a suitable format - assuming ALSA might accept 44.1 or 48 kHz. You could try to insert an audio filter into ffplay to change the sample rate (probably "-af aresample=48000"). mplayer most likely uses some other mechanism for playing audio, perhaps OSS, and therefore succeeds by default. Cheers, Moritz ___ Thanks Moritz. I tried a few rates but they all failed and looked like this: ffplay -fs -af aresample=48000 rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp ffplay version 4.1.3 Copyright (c) 2003-2019 the FFmpeg developers built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core-avx2 -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --enable-ffnvcodec --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx2 --disable-doc --disable-htmlpages --enable-manpages 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 Input #0, rtsp, from 'rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp': Metadata: title : Media Presentation comment : samsung Duration: N/A, start: -0.225000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 7.92 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s Stream #0:2: Data: none SDL_OpenAudio (1 channels, 48000 Hz): ALSA: Couldn't set audio channels SDL_OpenAudio (1 channels, 44100 Hz): ALSA: Couldn't set audio channels No more combinations to try, audio open failed [rtsp @ 0x7f2ba4000b80] max delay reached. need to consume packet [rtsp @ 0x7f2ba4000b80] RTP: missed 11 packets ^C 0.93 M-V: -0.001 fd= 0 aq= 0KB vq= 491KB sq= 0B f=0/0 When I play it with mplayer I have to actually use "mplayer -ao alsa" in order for it to work, so I think it's should be possible with ffplay and alsa as well. Looks like mplayer is bumping it
Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay
On Monday, June 3, 2019, 10:28:43 AM CDT, Moritz Barsnick wrote: On Mon, Jun 03, 2019 at 01:44:58 +, Patrick Kirchner via ffmpeg-user wrote: > SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels > No more combinations to try, audio open failed This means that ffplay's SDL audio implementation can't play to the available audio device. Perhaps ffplay doesn't automatically try to convert to a suitable format - assuming ALSA might accept 44.1 or 48 kHz. You could try to insert an audio filter into ffplay to change the sample rate (probably "-af aresample=48000"). mplayer most likely uses some other mechanism for playing audio, perhaps OSS, and therefore succeeds by default. Cheers, Moritz ___ Thanks Moritz. I tried a few rates but they all failed and looked like this: ffplay -fs -af aresample=48000 rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp ffplay version 4.1.3 Copyright (c) 2003-2019 the FFmpeg developers built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core-avx2 -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --enable-ffnvcodec --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx2 --disable-doc --disable-htmlpages --enable-manpages 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 Input #0, rtsp, from 'rtsp://nope:notmyrealpassword@192.168.1.20:554/profile3/media.smp': Metadata: title : Media Presentation comment : samsung Duration: N/A, start: -0.225000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 7.92 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s Stream #0:2: Data: none SDL_OpenAudio (1 channels, 48000 Hz): ALSA: Couldn't set audio channels SDL_OpenAudio (1 channels, 44100 Hz): ALSA: Couldn't set audio channels No more combinations to try, audio open failed [rtsp @ 0x7f2ba4000b80] max delay reached. need to consume packet [rtsp @ 0x7f2ba4000b80] RTP: missed 11 packets ^C 0.93 M-V: -0.001 fd= 0 aq= 0KB vq= 491KB sq= 0B f=0/0 When I play it with mplayer I have to actually use "mplayer -ao alsa" in order for it to work, so I think it's should be possible with ffplay and alsa as well. Looks like mplayer is bumping it up to 32000 and 2 channels: == Opening audio decoder: [ffmpe
Re: [FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay
On Sunday, June 2, 2019, 8:24:57 PM CDT, Carl Zwanzig wrote: On 6/2/2019 6:20 PM, Patrick Kirchner via ffmpeg-user wrote: > Any assistance would be greatly appreciated. Please post the full command output, and if you're using any version older than maybe 3 months, try the current one. Later, z! ___ I'm on Gentoo, kernel 5.1.6. Here's the full command and output: /usr/bin/ffplay -fs rtsp://nope:notmypassword@192.168.1.20:554/profile3/media.smp ffplay version 4.1.3 Copyright (c) 2003-2019 the FFmpeg developers built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core-avx2 -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --enable-ffnvcodec --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-lv2 --enable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx2 --disable-doc --disable-htmlpages --enable-manpages 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 Input #0, rtsp, from 'rtsp://nope:notmypassword@192.168.1.20:554/profile3/media.smp': Metadata: title : Media Presentation comment : samsung Duration: N/A, start: -0.184000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 19.92 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s Stream #0:2: Data: none SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels No more combinations to try, audio open failed ^C 1.19 M-V: -0.013 fd= 0 aq= 0KB vq= 271KB sq= 0B f=0/0 Thanks,PK ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Samsung HanWha QNV-7010RN Security Camera Stream - No Sound with ffplay
Hi - I'm trying to play the rtp stream from my Samsung HanWha security camera with ffplay but I can't get sound to work. The audio stream looks to be identified, but fails to play with: Duration: N/A, start: -0.184000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 19.92 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: adpcm_g726le, 8000 Hz, mono, s16, 32 kb/s Stream #0:2: Data: none SDL_OpenAudio (1 channels, 8000 Hz): ALSA: Couldn't set audio channels No more combinations to try, audio open failed Oddly, mplayer will play the audio stream, but chokes on the video, it identifies the audio with "Selected audio codec: [ffg726le] afm: ffmpeg (FFmpeg G.726 little endian Audio)" I'm trying to play it via an nVidia video card with HDMI out that carries the sound to my Yamaha a/v 7.1 receiver. Maybe it's just a problem with mapping it to the HDMI and audio channel up convert but I can't seem to figure out how to make it work. Any assistance would be greatly appreciated. Thanks,Patrick. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".