Commit Graph

466 Commits (c0226cbaf3cbec18b06212db307c2ec1fdb04ec8)
 

Author SHA1 Message Date
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 7 years ago
Michel Promonet 5bd57a9ca6 fix compilation with HAVE_ALSA 7 years ago
Michel Promonet 41589c8220 try to set audio payload according to audio capture format 7 years ago
Michel Promonet 14519538a9
Update README.md 7 years ago
Michel Promonet 6b440f64dc
Update README.md 7 years ago
Michel Promonet 932c83dc00 add an option -G to configure width x height x fps 7 years ago
Michel Promonet 1d40bf223a
add docker info in readme 7 years ago
Michel Promonet 465f1de284 for circelci try to use CIRCLE_TAG 7 years ago
Michel Promonet c99b082dea for circelci install golang 7 years ago
Michel Promonet 846a668c3e add docker file 7 years ago
Michel Promonet 9cf3c9da00 try circleci for github release 7 years ago
Michel Promonet 55ea4b8932 fix unsigned/signed warning 7 years ago
Michel Promonet 556b5dfde4 remove EXCLUDE_FROM_ALL and use make install for building libv4l2cpp 7 years ago
Michel Promonet ca56017164 move ifdef HAVE_ALSA to fix unused variable when ALSA is not available 7 years ago
Michel Promonet 45c48269f1 upgrade v4l2wrapper 7 years ago
mpromonet 593aa562b5 try apt-get install 7 years ago
mpromonet 18ff4c4266 add apt sources in travis 7 years ago
mpromonet b86cb1381c upgrade minimal cmake release 7 years ago
mpromonet 3eb2d41138 retry mips build on travis 7 years ago
Michel Promonet cd6d6f18dc try to collect artifacts after build jobs 7 years ago
Michel Promonet 06a2378549 try to collect artifacts after build jobs 7 years ago
Michel Promonet 956baa4723 try to collect artifacts after build jobs 7 years ago
Michel Promonet 4b0cef5568 try to collect artifacts after build jobs 7 years ago
Michel Promonet 691e8d9d90 try to collect artifacts after build jobs 7 years ago
Michel Promonet f8e1d39bb6 try to collect artifacts after build jobs 7 years ago
Michel Promonet 0b1fffde1a Merge branch 'master' of https://github.com/mpromonet/v4l2rtspserver 7 years ago
Michel Promonet b68dccd7d8 try to collect artifacts after build jobs 7 years ago
Michel Promonet e0034bbcd3
add circleci badge 7 years ago
Michel Promonet 1c4dcc0f6e try to build mips 7 years ago
Michel Promonet 6dfe3cde9d try to build mips 7 years ago
Michel Promonet 29003ccb08 try to build rpi with circleci 7 years ago
Michel Promonet da0b39b53e remvove sudo in circleci script 7 years ago
Michel Promonet 8e26a2420a remvove sudo in circleci script 7 years ago
Michel Promonet b04fae0cd9 update image 7 years ago
Michel Promonet 6f5d715dd5
Update CMakeLists.txt 7 years ago
Michel Promonet 25cc9db83f
Update config.yml 7 years ago
Michel Promonet de1e837d81
Update config.yml 7 years ago
Michel Promonet 2027b57b5d
Update config.yml
try t save artifact in circleci
7 years ago
Michel Promonet 11bd137c24 install cmake for circleci 7 years ago
Michel Promonet 2832ec5af6 set CMAKE_FIND_ROOT_PATH & CMAKE_STAGING_PREFIX 7 years ago
Michel Promonet d75402184a Merge branch 'master' of https://github.com/mpromonet/v4l2rtspserver 7 years ago