Commit Graph

85 Commits (master)

Author SHA1 Message Date
Michel Promonet e9322f114d
Update README.md 16 hours ago
Michel Promonet 890cdbe5ae fix #331: remove submodule hls.js 2 weeks ago
Michel Promonet 44ea524f72
Update README.md 3 weeks ago
Michel Promonet 2ac76dbc08
Update README.md 1 month ago
Michel Promonet 80ddc6c4ea
Update README.md 1 month ago
Michel Promonet 0fd4cb9f6b
Update README.md 2 years ago
Michel Promonet 79a13bd8c5
Update README.md 2 years ago
Michel Promonet f0a658fb51
Update README.md 3 years ago
Michel Promonet 59f1d89126
Update README.md 4 years ago
Michel Promonet 0047f32967
Update README.md 4 years ago
mpromonet 5538fc6833 fix #168: precise in readme that audio support depends on ALSA availalibility at build time 4 years ago
Michel Promonet ba0e642233
Update README.md 4 years ago
Michel Promonet 93cb266f06
Update README.md 5 years ago
Michel Promonet 7902a9fd45
Update README.md 5 years ago
mpromonet 9931b87c42 for #147: allow to open device in blocking mode adding option -B 5 years ago
Michel Promonet 90ff059ba1
Update README.md 5 years ago
Michel Promonet e988000578
Update README.md 5 years ago
mpromonet 4a85611e24 add -G in readme 5 years ago
Michel Promonet fe681c3269
Update README.md 5 years ago
Michel Promonet 8c092f2821 add cirrus build 5 years ago
Michel Promonet 5ea82aea28
Update README.md 6 years ago
mpromonet ef64a350ba remove obsolete -T option 6 years ago
Michel Promonet d87bd7c584
Update README.md 6 years ago
Michel Promonet 35218bac5d
Update README.md 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 14519538a9
Update README.md 6 years ago
Michel Promonet 6b440f64dc
Update README.md 6 years ago
Michel Promonet 1d40bf223a
add docker info in readme 6 years ago
Michel Promonet e0034bbcd3
add circleci badge 6 years ago
Michel Promonet 9dd20de21f
Update README.md 7 years ago
Michel Promonet 16f8164e0c
Update README.md 7 years ago
Michel Promonet 048e04e5e0
Update README.md 7 years ago
mpromonet e286bad341 update readme 7 years ago
The Codacy Badger af7c528c1d Add Codacy badge 7 years ago
Michel Promonet 4cb4c35d0f Update audio supported format in readme 7 years ago
Michel Promonet 7a2eb4237d add explaination on md5 password in readme 7 years ago
Michel Promonet d37c888e43 add download bagde 7 years ago
Michel Promonet 12d876adc0 Update README.md 7 years ago
Michel Promonet 271a91dfc4 Update README.md 7 years ago
Michel Promonet 728f8e8893 Update README.md 7 years ago
Michel Promonet 4ccf72a752 update readme 8 years ago
Michel Promonet 7ee9e13290 add release link in readme 8 years ago
mpromonet af18d537ce fix #31: update command line description indicating -F0 disable fps setting 8 years ago
mpromonet 6df105f9ee update readme removing last line 8 years ago
mpromonet dbee10479c first commit 8 years ago
mpromonet 0067d28b66 update README 8 years ago
mpromonet 96f8347c03 update README 8 years ago
mpromonet ecd403584d fix #25 : fix error in live555 gen makefile command 8 years ago
mpromonet f1abe10d32 fix #24: error in wget command 8 years ago
mpromonet c29cef007e update command line description in README + print HLS/MPEG-DASH url 8 years ago