Code: Select all
cvlc --repeat -vvv tcp/wav://7xxxxx --sout="#std{access=file,mux=ogg,dst=/home/VLC_audios/$(date +%Y%m%d_%H%M%S_audio).wav}"
I don't have great knowledge in cvlc so I would appreciate your help.
Code: Select all
cvlc --repeat -vvv tcp/wav://7xxxxx --sout="#std{access=file,mux=ogg,dst=/home/VLC_audios/$(date +%Y%m%d_%H%M%S_audio).wav}"
Of course:Can you share the broadcast ffmpeg command too ?
Code: Select all
while true;
do ffmpeg -ar 44100 -ac 1 -f alsa -i plughw:2,0 -f wav -listen 1 tcp://xxxxx:xxxxx@0.0.0.0:8554;
done
So which output should I use for the mux? wav directly?wav into ogg won't achieve anything
Code: Select all
while true; 130 ↵
do ffmpeg -ar 44100 -ac 1 -f pulse -i alsa_input.pci-0000_00_1f.3.analog-stereo.3 -f wav -listen 1 tcp://0.0.0.0:8554;
done
# ...
cvlc -vvv tcp://127.0.0.1:8554 --sout="#std{access=file,mux=wav,dst=audiotest$(date +%Y%m%d_%H%M%S_audio).wav}"
When I execute sh file it shows, but I tested and its recording.For wav, you can use the wav muxer, and let the correct demuxer open (avformat will get chosed).
Code: Select all
while true; 130 ↵ do ffmpeg -ar 44100 -ac 1 -f pulse -i alsa_input.pci-0000_00_1f.3.analog-stereo.3 -f wav -listen 1 tcp://0.0.0.0:8554; done # ... cvlc -vvv tcp://127.0.0.1:8554 --sout="#std{access=file,mux=wav,dst=audiotest$(date +%Y%m%d_%H%M%S_audio).wav}"
Code: Select all
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
alsa_input.pci-0000_00_1f.3.analog-stereo.3: No such process
Code: Select all
sep 08 09:30:39 PIZERO2A rc.local[515]: Error writing trailer of tcp://0.0.0.0:8554: Broken pipe
sep 08 09:30:39 PIZERO2A rc.local[515]: size= 290923kB time=00:59:59.78 bitrate= 662.1kbits/s speed=1.07x
sep 08 09:30:39 PIZERO2A rc.local[515]: video:0kB audio:290924kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: u
sep 08 09:30:39 PIZERO2A rc.local[515]: Conversion failed!
sep 08 09:30:40 PIZERO2A rc.local[515]: ffmpeg version 4.1.9-0+deb10u1+rpt1 Copyright (c) 2000-2022 the FFmpeg developers
sep 08 09:30:40 PIZERO2A rc.local[515]: built with gcc 8 (Raspbian 8.3.0-6+rpi1)
sep 08 09:30:40 PIZERO2A rc.local[515]: configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardened --incdir=/
sep 08 09:30:40 PIZERO2A rc.local[515]: WARNING: library configuration mismatch
sep 08 09:30:40 PIZERO2A rc.local[515]: avutil configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: avcodec configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: avformat configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: avdevice configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: avfilter configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: avresample configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: swscale configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: swresample configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: postproc configuration: --prefix=/usr --extra-version=0+deb10u1+rpt1 --toolchain=hardene
sep 08 09:30:40 PIZERO2A rc.local[515]: libavutil 56. 22.100 / 56. 22.100
sep 08 09:30:40 PIZERO2A rc.local[515]: libavcodec 58. 35.100 / 58. 35.100
sep 08 09:30:40 PIZERO2A rc.local[515]: libavformat 58. 20.100 / 58. 20.100
sep 08 09:30:40 PIZERO2A rc.local[515]: libavdevice 58. 5.100 / 58. 5.100
sep 08 09:30:40 PIZERO2A rc.local[515]: libavfilter 7. 40.101 / 7. 40.101
sep 08 09:30:40 PIZERO2A rc.local[515]: libavresample 4. 0. 0 / 4. 0. 0
sep 08 09:30:40 PIZERO2A rc.local[515]: libswscale 5. 3.100 / 5. 3.100
sep 08 09:30:40 PIZERO2A rc.local[515]: libswresample 3. 3.100 / 3. 3.100
sep 08 09:30:40 PIZERO2A rc.local[515]: libpostproc 55. 3.100 / 55. 3.100
Return to “VLC stream-output (sout)”
Users browsing this forum: No registered users and 13 guests