Commit Graph

558 Commits

Author SHA1 Message Date
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

```
2018-04-10 12:49:25 +02:00
Michel Promonet
6b4753c473 compile x86 with alsa 2018-04-06 20:23:47 +02:00
Michel Promonet
5bd57a9ca6 fix compilation with HAVE_ALSA 2018-04-06 20:20:08 +02:00
Michel Promonet
41589c8220 try to set audio payload according to audio capture format 2018-04-04 23:45:27 +02:00
Michel Promonet
14519538a9
Update README.md 2018-04-04 08:39:54 +02:00
Michel Promonet
6b440f64dc
Update README.md 2018-04-02 18:59:08 +02:00
Michel Promonet
932c83dc00 add an option -G to configure width x height x fps 2018-03-25 19:29:21 +02:00
Michel Promonet
1d40bf223a
add docker info in readme 2018-03-25 19:05:03 +02:00
Michel Promonet
465f1de284 for circelci try to use CIRCLE_TAG 2018-03-03 12:47:31 +01:00
Michel Promonet
c99b082dea for circelci install golang 2018-03-03 12:35:45 +01:00
Michel Promonet
846a668c3e add docker file 2018-03-03 12:01:49 +01:00
Michel Promonet
9cf3c9da00 try circleci for github release 2018-03-03 11:48:31 +01:00
Michel Promonet
55ea4b8932 fix unsigned/signed warning 2018-02-25 23:55:20 +01:00
Michel Promonet
556b5dfde4 remove EXCLUDE_FROM_ALL and use make install for building libv4l2cpp 2018-02-25 23:53:00 +01:00
Michel Promonet
ca56017164 move ifdef HAVE_ALSA to fix unused variable when ALSA is not available 2018-02-25 23:48:06 +01:00
Michel Promonet
45c48269f1 upgrade v4l2wrapper 2018-02-25 22:47:31 +01:00
mpromonet
593aa562b5 try apt-get install 2018-02-17 16:41:15 +00:00
mpromonet
18ff4c4266 add apt sources in travis 2018-02-17 15:58:55 +00:00
mpromonet
b86cb1381c upgrade minimal cmake release 2018-02-17 15:46:02 +00:00
mpromonet
3eb2d41138 retry mips build on travis 2018-02-17 15:45:07 +00:00
Michel Promonet
cd6d6f18dc try to collect artifacts after build jobs 2018-02-05 00:39:37 +01:00
Michel Promonet
06a2378549 try to collect artifacts after build jobs 2018-02-05 00:32:15 +01:00
Michel Promonet
956baa4723 try to collect artifacts after build jobs 2018-02-05 00:21:42 +01:00
Michel Promonet
4b0cef5568 try to collect artifacts after build jobs 2018-02-05 00:16:19 +01:00
Michel Promonet
691e8d9d90 try to collect artifacts after build jobs 2018-02-04 23:59:59 +01:00
Michel Promonet
f8e1d39bb6 try to collect artifacts after build jobs 2018-02-04 23:56:46 +01:00
Michel Promonet
0b1fffde1a Merge branch 'master' of https://github.com/mpromonet/v4l2rtspserver 2018-02-04 23:47:22 +01:00
Michel Promonet
b68dccd7d8 try to collect artifacts after build jobs 2018-02-04 23:47:14 +01:00
Michel Promonet
e0034bbcd3
add circleci badge 2018-02-04 22:11:05 +01:00
Michel Promonet
1c4dcc0f6e try to build mips 2018-02-04 21:55:36 +01:00
Michel Promonet
6dfe3cde9d try to build mips 2018-02-04 21:52:54 +01:00
Michel Promonet
29003ccb08 try to build rpi with circleci 2018-02-04 21:23:34 +01:00
Michel Promonet
da0b39b53e remvove sudo in circleci script 2018-02-04 21:13:12 +01:00
Michel Promonet
8e26a2420a remvove sudo in circleci script 2018-02-04 21:09:26 +01:00
Michel Promonet
b04fae0cd9 update image 2018-02-04 21:03:32 +01:00
Michel Promonet
6f5d715dd5
Update CMakeLists.txt 2018-02-04 19:16:40 +01:00
Michel Promonet
25cc9db83f
Update config.yml 2018-02-04 18:46:17 +01:00
Michel Promonet
de1e837d81
Update config.yml 2018-02-04 18:43:32 +01:00
Michel Promonet
2027b57b5d
Update config.yml
try t save artifact in circleci
2018-02-04 18:42:23 +01:00
Michel Promonet
11bd137c24 install cmake for circleci 2018-01-28 20:37:46 +01:00
Michel Promonet
2832ec5af6 set CMAKE_FIND_ROOT_PATH & CMAKE_STAGING_PREFIX 2018-01-28 19:29:40 +01:00
Michel Promonet
d75402184a Merge branch 'master' of https://github.com/mpromonet/v4l2rtspserver 2018-01-28 16:40:47 +01:00
Michel Promonet
fb4c72ce75 add circleci build 2018-01-28 16:34:11 +01:00
Michel Promonet
d4ffcf2180 more log for travis and give CMAKE_TOOLCHAIN_FILE an absolute path 2018-01-28 15:39:18 +01:00
Michel Promonet
09d5fe63f6 add log in CMakeList 2018-01-27 18:24:47 +01:00
Michel Promonet
60aa2f5b6d remove mips 2018-01-27 16:21:53 +01:00
Michel Promonet
1defac8a28 try again mips+xenial 2018-01-27 14:26:17 +01:00
Michel Promonet
be42d619bd rollback to trusty 2018-01-21 11:01:08 +01:00
Michel Promonet
453802c261 disable mips 2018-01-21 09:04:27 +01:00
Michel Promonet
8f89a96c49 upgrade to xenial 2018-01-20 22:42:21 +01:00