Commit Graph

500 Commits (1eb49791a17ed214b79b184defe59677cb8ddeb5)
 

Author SHA1 Message Date
mpromonet 6fdae72c09 fix -S in docker default command 6 years ago
Michel Promonet 64bec47c79 reduce docker size for x86 6 years ago
Michel Promonet 5d0469b11f reduce docker size for x86 6 years ago
Michel Promonet c1d23dcfab try to build docker for rpi 6 years ago
Michel Promonet c9c121306a try to build docker for rpi 6 years ago
Michel Promonet 2cb3762ab5 add make in dockerfile 6 years ago
Michel Promonet b35df2aaf5 use copy instead of add for docker 6 years ago
Michel Promonet 3511bbfbad build docker image from debian 6 years ago
Michel Promonet ff18c12a64
Update Dockerfile 6 years ago
Michel Promonet eec483bf81
Update MemoryBufferSink.h 6 years ago
Michel Promonet bf67b88aea
Merge pull request #120 from neheb/n
Add a few missing headers
6 years ago
Rosen Penev 9977cc5a4b Add a few missing headers
Helps to compile with alternative c++ libraries.
6 years ago
Michel Promonet 2e3bfd90f7 install pkg-config in docker build 6 years ago
Michel Promonet f0e1ebabba add include of string 6 years ago
Michel Promonet 5ea82aea28
Update README.md 6 years ago
Michel Promonet 30c5f88403
search live555 only in cmake root 6 years ago
Michel Promonet be6dc4592e
fix build 6 years ago
Michel Promonet 6e569797c0
replace std::stoi with atoi 6 years ago
Michel Promonet 7dbe1195b2 fix docker build 6 years ago
Michel Promonet a5ad056084 add gitlab ci 6 years ago
Michel Promonet b0072384c7
Update .travis.yml 6 years ago
mpromonet c6beba8b42 reduce number of buffer for HLS 6 years ago
mpromonet 1b81da88ba fix live555 build 6 years ago
mpromonet f2ff5f4ee1 fix service name 6 years ago
mpromonet a52ac5c37b add pkg-config to circleci build 6 years ago
mpromonet ef64a350ba remove obsolete -T option 6 years ago
mpromonet 7cd878c6db extract memory buffer from HLS mediasubsession 6 years ago
mpromonet fbdc2bc710 extract sendfile 6 years ago
mpromonet df5215a75f for #117: allow to stream over http without muxing unicast/multicast stream 6 years ago
mpromonet 252d613c9d fix path of installed hls 6 years ago
mpromonet 65560567c3 for #118: update service template to fix path to get index.html 6 years ago
mpromonet 95b0976fde fix JPEG quantization size 6 years ago
Michel Promonet b48c160520
Update MJPEGVideoSource.cpp 6 years ago
Michel Promonet 31f91beb4a
Update MJPEGVideoSource.cpp 6 years ago
mpromonet 3ecbb974c6 fix raw depth 6 years ago
mpromonet 7fef21b762 use cmake option to set c++11 6 years ago
Michel Promonet c960a44846 try to support video/RAW 6 years ago
Michel Promonet 5936006374 for #106 update install path 6 years ago
Michel Promonet d87bd7c584
Update README.md 6 years ago
Michel Promonet 7ead7613fe fox #100: try to add audio/PCMA & audio/PCMU 6 years ago
Michel Promonet 35218bac5d
Update README.md 6 years ago
Michel Promonet af948dfdd6
Merge pull request #95 from walterav1984/patch-1
Update README.md default alsa capture is S16_LE
6 years ago
Walter Sonius 0c1bb70761
Update README.md default alsa capture is S16_LE
Although the default RTP payload stream is S16_BE the "v4l2rtspserver" defaults to S16_LE while not specifying any format shown with the following use cases in this post.  See specifically `./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicb #noise, default is LE>BE!!!`.

This can be a bug in code or mistake in documentation you may choose what/where to fix :-).

Reproducable steps:
Add the following code to your `~/.asoundrc` that's in your `/home/pi` folder, `/etc/asound.conf` is not used in my example!
```
pcm.virtmica {
    type file
    format "raw"
    file "/dev/null"
    infile "/home/pi/music16le.raw"
    slave.pcm "default"
}
pcm.virtmicb {
    type file
    format "raw"
    file "/dev/null"
    infile "/home/pi/music16be.raw"
    slave.pcm "default"
}
pcm.virtmicc {
    type file
    format "raw"
    file "/dev/null"
    infile "/home/pi/music32le.raw"
    slave.pcm "default"
}
pcm.virtmicd {
    type file
    format "raw"
    file "/dev/null"
    infile "/home/pi/music32be.raw"
    slave.pcm "default"
}
```
Create some raw pcm music sources with `ffmpeg`, which I use a minute(s) long mp3 music file for (16bit 44100Hz stereo) in my example. Use filenames that resemble code above and use long enough samples as in minutes not seconds, since as soon as the v4l2rtspserver is started the music file starts playing and will not loop!

```
sudo apt-get install ffmpeg
ffmpeg -i music.mp3 -f s16le -acodec pcm_s16le /home/pi/music16le.raw
ffmpeg -i music.mp3 -f s16be -acodec pcm_s16be /home/pi/music16be.raw
ffmpeg -i music.mp3 -f s32le -acodec pcm_s32le /home/pi/music32le.raw
ffmpeg -i music.mp3 -f s32be -acodec pcm_s32be /home/pi/music32be.raw
```
Test `v4l2rtspserver` (before commit 41589c8) with the virtual alsa devices and sample files you just made:
```
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmica #you hear music
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmica -a S16_LE #you hear music
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmica -a S16_BE #noise

./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicb #noise, default is LE>BE!!!
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicb -a S16_LE #noise
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicb -a S16_BE #you hear music

./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicc #slow/offpitch music :-)
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicc -a S32_LE #recognizable interupted music with gaps
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicc -a S32_BE #noise with gaps

./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicd #noise
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicd -a S32_LE #noise with gaps
./v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0,virtmicd -a S32_BE #recognizable interupted music with gaps

```
6 years ago
Michel Promonet 6b4753c473 compile x86 with alsa 6 years ago
Michel Promonet 5bd57a9ca6 fix compilation with HAVE_ALSA 6 years ago
Michel Promonet 41589c8220 try to set audio payload according to audio capture format 6 years ago
Michel Promonet 14519538a9
Update README.md 6 years ago
Michel Promonet 6b440f64dc
Update README.md 6 years ago
Michel Promonet 932c83dc00 add an option -G to configure width x height x fps 6 years ago
Michel Promonet 1d40bf223a
add docker info in readme 6 years ago