Go to advanced search

by vadim
Thu Jun 11, 2015 2:15 pm
Forum: Graphics, sound and multimedia
Topic: Baby monitor with sound, video and more
Replies: 20
Views: 26884

Re: Baby monitor with sound, video and more

The soundcard driver initialises and starts the appropriate master clock on GPCLK0 that drives the ADC. As the sample rate is fixed the settings for GPCLK0 are fixed as well. The code is just a copy-paste from I2S driver with the only change for the appropriate memory addresses for control registers...
by vadim
Wed Feb 25, 2015 4:28 pm
Forum: Graphics, sound and multimedia
Topic: Baby monitor with sound, video and more
Replies: 20
Views: 26884

Re: AAC encoder

PedroGil91 wrote:Hi I´d like to know if i can use ffmpeg just for encoding audio in AAC
thanks
compile ffmpeg with aac support and use "-c:a aac" in the output part of ffmpeg command. see my example above.
by vadim
Wed Aug 06, 2014 12:53 pm
Forum: Graphics, sound and multimedia
Topic: Baby monitor with sound, video and more
Replies: 20
Views: 26884

Re: Baby monitor with sound, video and more

Where can I get the Schematic an code to this project? Don't feel like re-inventing the wheel! The purpose of the project was to re-invent baby cameras in order to understand how the damn thing can be built. :D Since then there has been significant development in Raspbian and Pi peripherals market....
by vadim
Sun Jul 27, 2014 9:35 pm
Forum: Graphics, sound and multimedia
Topic: Baby monitor with sound, video and more
Replies: 20
Views: 26884

Re: Baby monitor with sound, video and more

/usr/bin/ffmpeg -y \ -analyzeduration 100000 \ -v debug -fflags +nobuffer \ -r 25.126 \ -i /home/pi/live.h264 \ -f alsa -ar 32000 -ac 2 -i hw:1,0 \ -c:v copy \ -strict -2 \ -c:a aac -b:a 64k -ac 1 \ -f mpegts udp://224.0.0.1:5000?ttl=4&pkt_size=1400 This is multicast udp stream. Obviously you will ...
by vadim
Tue Jul 22, 2014 11:08 am
Forum: Graphics, sound and multimedia
Topic: Baby monitor with sound, video and more
Replies: 20
Views: 26884

Re: Baby monitor with sound, video and more

Jamesth, if ffmpeg works for you stick with it. I assume you compile it from the sources. You don't need ffserver, ffmpeg can easily stream or output files that a web server can further deliver to the clients. I think you first need to decide what clients to use and then their capabilities. In my ca...
by vadim
Wed Mar 12, 2014 10:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

Hello , i'm interested in sampling an analog audio signal , and acquire it with i2s bus on raspberry . I saw the c code posted by dariush ( http://www.raspberrypi.org/phpBB3/viewtopic.php?t=8496 ) but that was written before the RPi included the P5 connector. Is there a working example of a communi...
by vadim
Wed Mar 12, 2014 12:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

jotun, building the modules is the easy bit. The problem is that no generic platform devices are defined in bcm2708.c you can take a shortcut and define the platform devices for your card and codec in their drivers but that is a very bad style. alternatively, add generic devices ("sound card" and co...
by vadim
Mon Mar 10, 2014 11:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

Not sure why rpi-mbed is not in the stock kernel, I think it was generic enough.
Unfortunately, the only driver with capture link in the official kernel is "snd-hifiberry-digi" with wm8804 codec. But that is SPDIF.
by vadim
Mon Dec 23, 2013 5:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

BBUK, I think you need to set bitclock (frame length) in the card driver. There's a new function in 3.10.
by vadim
Sun Dec 22, 2013 1:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

rpi-dac is a generic driver that will provide output with many non-configurable NOS DACs in slave mode. i think we also need a generic in/out driver and one for RPi as slave. that should cover about 80% of use cases.
by vadim
Thu Dec 19, 2013 10:13 am
Forum: Advanced users
Topic: Broadcom chipset C code
Replies: 16
Views: 2820

Re: Broadcom chipset C code

For uniform addressing of all control registers, perhaps. There will be different shifts for other controls.
by vadim
Wed Dec 18, 2013 12:37 pm
Forum: Off topic discussion
Topic: What watch brand is better?
Replies: 18
Views: 3998

Re: What watch brand is better?

paulie wrote:I have seen a Breitling Hospitality area at RIAT in the past.
If you can afford a Breitling, you can probably afford Airshow tickets:-)
This is Raspberry Pi forum, not D-Wave Two! :lol:
by vadim
Wed Dec 18, 2013 12:15 am
Forum: Graphics, sound and multimedia
Topic: Wiring Raspberry and amplifier not USB
Replies: 3
Views: 1653

Re: Wiring Raspberry and amplifier not USB

I don't recommend powering from RPi. It's dangerous and too noisy for audio.
by vadim
Wed Dec 18, 2013 12:07 am
Forum: Graphics, sound and multimedia
Topic: Generating SMPTE timecode on the 3.5mm jack
Replies: 7
Views: 6683

Re: Generating SMPTE timecode on the 3.5mm jack

Why do you need to send data to output 25 times per second? I mean it's a known sequence so you can prepare a couple of seconds worth data and write it to the device less regularly. Or am I missing something?
by vadim
Mon Dec 16, 2013 2:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

not really a copy-paste as the name of platform device was changed. you will need to change it in card dai definition in card driver. don't forget to add platform devices for card and codec in bcm2708.c (same as for hifiberry that is already defined there)
by vadim
Mon Dec 16, 2013 11:53 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

build kernel version 3.10. you might have some issues after upgrading Pi to 3.10 and then running experimental 3.8 kernel.
just use rpi-3.10.y-asoc branch in git
by vadim
Wed Dec 11, 2013 3:23 pm
Forum: Other projects
Topic: RaspberryPi with stereoscopic vision
Replies: 9
Views: 3310

Re: RaspberryPi with stereoscopic vision

Anyone who has made USB 2.0 webcam work at FullHD in mjpg mode at 25-30 fps, raise your hand!
No hands? I thought so...
by vadim
Thu Nov 28, 2013 11:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

Morpheus, you should understand that Florian doesn't write drivers for DACs he doesn't have. Simply because they can't be tested. Having said that, most simple connections (not involving i2c or SPI) should work with a driver that already exists. A change of slave-master configuration and the set of ...
by vadim
Tue Nov 26, 2013 12:33 pm
Forum: General programming discussion
Topic: Run terminal command from webpage
Replies: 15
Views: 16643

Re: Run terminal command from webpage

check out RaspCtl
by vadim
Tue Nov 26, 2013 12:28 pm
Forum: Raspbian
Topic: Slow samba performance / timeout while copying of large file
Replies: 7
Views: 3019

Re: Slow samba performance / timeout while copying of large

Buffering makes sense because writing to USB HDD is a slow process. I bet you will see high waiting % in top. Remember, your USB subsystem is stressed twice with the same data, so when receiving it can't write at the same time.
by vadim
Tue Nov 26, 2013 11:19 am
Forum: Graphics, sound and multimedia
Topic: Resource light streaming of ALAC files to Airport Express
Replies: 1
Views: 800

Re: Resource light streaming of ALAC files to Airport Expres

Interesting, will look at it next week when back home.
by vadim
Tue Nov 26, 2013 11:13 am
Forum: OpenGLES
Topic: HDMI output with color depth more than 24bit
Replies: 3
Views: 3210

Re: HDMI output with color depth more than 24bit

If you have a device that is capable of correctly displaying 24bits I bet it's not a cheap RPi you're going to connect to it. Why bother about 36bits if all you see is 6 per channel?
by vadim
Mon Nov 25, 2013 7:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 474797

Re: I2S: Anyone got it running? (answer is yes!)

I believed in you! :D Sorry, I haven't tested yet and will have to postpone testing to next week. I'm still struggling to see the point of forcing different frame lengths for different sampling rates. I don't think that there are many DAC/ADC that would accommodate that (NOS in slave mode, perhaps),...
by vadim
Mon Nov 25, 2013 3:22 pm
Forum: Raspbian
Topic: Slow samba performance / timeout while copying of large file
Replies: 7
Views: 3019

Re: Slow samba performance / timeout while copying of large

Slow samba? :o Oh, they must have called it sarabande. :lol: Invented in hell, as Cervantes once said.
In short, don't use it.
by vadim
Fri Nov 22, 2013 9:58 pm
Forum: Graphics, sound and multimedia
Topic: Baby monitor with sound, video and more
Replies: 20
Views: 26884

Re: Baby monitor with sound, video and more

Eugene, with all respect, these solutions don't offer anything better than SeNS already has. I find ffserver useful only when there is need to provide many different streams, which RPi anyway is not capable of producing. aac encoding on the fly is extremely heavy, I don't get the reason for encoding...

Go to advanced search