Media
Streaming pulse default audio to http server
You play some audio on the linux laptop and would like to stream it at the same time over the world over HTTP using vlc. This command will create HTTP local stream for pulse detault audio:
cvlc -vvv pulse://alsa_output.pci-0000_00_1b.0.analog-stereo.monitor --sout '#transcode{acodec=mpga,ab=320,channels=3}:standard{access=http,dst=0.0.0.0:8080/pc.mp3}'
on the client you have to specify URL:
http://your-media-server:8080/pc.mp3
Converting ts stream to mp4 encoded with h264
ffmpeg -i inputstream-video.ts -c:v libx264 -c:a copy output-video.mp4
Removing audio from the mp4 file
You remove audio by using the -an flag.
ffmpeg -i example.mkv -c copy -an example-nosound.mkv
Full ffmpeg documentation here.