Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner


Reply
 
Share Thread Tools Display Modes
Old 04-10-2009, 12:50 PM   #1
Low Bitrate
 
Join Date: Feb 2007
Location: Taylorsville, UT
Posts: 108
Extide is an unknown quantity at this point
DVR Capability for Radio?!

So, I am working on a C# app to allow DVR capability to radio (or just about any line-audio source). Anyone else out there done anything similar? I am fairly close to getting it to work.

Buffer in memory or on disk? (Maybe configurable?) -- For now I will do in memory as it will be a lot easier, but I will have to watch memory usage.

I am working mainly to target the SiLabs tuner as that's what I have...


The "front end" I am working on is more of a POC for a few things.
-.net 3.5 on carpc
-sqlce on carpc
-LinQ to SQLCE and LinQ to objects
-Designed for function over form at this point

Music database with realtime search and dynamic playlist capabilities.
Hopefully eventually add support to subclass iGuidance screen to have GPS map in app.
I have not yet decided how I will play media. I am thinking of including support to natively decode most audio files (mp3, wma, flac, ogg are my main interests).
Maybe more stuff....

VERY EARLY ALPHA screenshot of music browser control:
__________________
Car: 2004 GTI VR6 24v Turbo 2.8L, GT35R, 630cc, Unitronic, Bosch 044, etc, etc..
Main PC: Q9550@4Ghz, 8GB DDR2, Asus P5Q-E, Win 7 x64 RTM, Scythe Mugen2, 128GB G.Skill Falcon, 2x ATI4850 512MB Crossfire, Auzentech X-Fi Forte, Grado Labs SR-80
Extide is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 04-10-2009, 01:01 PM   #2
Constant Bitrate
 
Join Date: Mar 2009
Location: near Rochester, NY
Posts: 214
strikeback03 is an unknown quantity at this point
http://cgi.ebay.com/Visteon-Zoom-HDZ...QQcmdZViewItem

that software claims to be able to do it for HD radio. I'd love to be able to hit a button listening to XM or whatever to save a copy of the transmission.
strikeback03 is offline   Reply With Quote
Old 04-10-2009, 01:35 PM   #3
Low Bitrate
 
Join Date: Feb 2007
Location: Taylorsville, UT
Posts: 108
Extide is an unknown quantity at this point
So far I have enough code to record to disk, and then also playback the file from disk. Now I just need to make it so I can navigate through the file at will (dvr style). I wonder how I will be able to deal with trimming the front side off as the file will get pretty big over time (it is basically un-compresed wav data).

I think I might also use the bass.net audio library, it looks like it supports just about everything I need.

This isn't going to be as hard as I thought it might be!

Anyways I will keep posting updates as they come. (I am not really interested in existing solutions unless they are in C# and open source as I want to make this, part for fun, part to be able to make it do exactly what I want.)

-James
__________________
Car: 2004 GTI VR6 24v Turbo 2.8L, GT35R, 630cc, Unitronic, Bosch 044, etc, etc..
Main PC: Q9550@4Ghz, 8GB DDR2, Asus P5Q-E, Win 7 x64 RTM, Scythe Mugen2, 128GB G.Skill Falcon, 2x ATI4850 512MB Crossfire, Auzentech X-Fi Forte, Grado Labs SR-80
Extide is offline   Reply With Quote
Old 04-10-2009, 01:36 PM   #4
North of the land of Hey Huns
 
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,036
malcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to all
This is fairly awesome, I'll keep an eye on this
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
malcom2073 is offline   Reply With Quote
Old 04-10-2009, 03:27 PM   #5
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,933
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
Quote: Originally Posted by Extide View Post
So, I am working on a C# app to allow DVR capability to radio (or just about any line-audio source). Anyone else out there done anything similar? I am fairly close to getting it to work.

A few years ago, I wanted the same type recorder capability. Since I run Ride Runner, I decided I wanted a command line interface that could record from several different sources (FM, XM, Internet radio, YouTube, etc.) and save an MP3 using the title/artist from RDS or internet stream title with one click. Took me about 6 months to find and another 2 to program my buttons, but I settled on a commercial app called Loop Recorder (expensive as hell, but does everything I want and more).
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
GizmoQ is offline   Reply With Quote
Old 04-10-2009, 04:11 PM   #6
Low Bitrate
 
Join Date: Feb 2007
Location: Taylorsville, UT
Posts: 108
Extide is an unknown quantity at this point
Cool. I have it basically working now, will need to test with some different audio sources to make sure.

Record stream goes back to position 0 at end of buffer
Play stream also loops back to start at the end, follows the record position.
Playback seek fwd & back works.

Currently I am looking around at free and preferably open source audio libraries for decoding mp3, flac, wma, ogg, etc. I have found a few but I am not completely happy yet.

Oh, this is also going to be fully opensource and free. I have an SVN server where my code is at. I just need to setup a public read only account for everyone. If people want to contribute I will give out account with write access. Give me a little bit to set things up and whatnot.
__________________
Car: 2004 GTI VR6 24v Turbo 2.8L, GT35R, 630cc, Unitronic, Bosch 044, etc, etc..
Main PC: Q9550@4Ghz, 8GB DDR2, Asus P5Q-E, Win 7 x64 RTM, Scythe Mugen2, 128GB G.Skill Falcon, 2x ATI4850 512MB Crossfire, Auzentech X-Fi Forte, Grado Labs SR-80
Extide is offline   Reply With Quote
Old 04-11-2009, 09:09 AM   #7
Newbie
 
Join Date: Aug 2007
Posts: 9
rtgree01 is an unknown quantity at this point
I have wanted something similar. Everything you've mentioned sounds great.... but there are times when I want to pause or rewind the live audio feed....
As an example.... I'm spaced out on my drive to work... the radio starts playing the traffic report... I'm barely paying attention until I hear a particular street, but missed that there was an accident on it.... if I could rewind 15 seconds and hear what it was, that would be nice...
It looks like you were most concerned about recording songs and labeling them with their information... and that is great. But I would love to have the "Pause Live Audio" capability....

I am a developer, so I could be interested in helping out where I can....

Ryan
rtgree01 is offline   Reply With Quote
Old 04-11-2009, 10:32 PM   #8
Variable Bitrate
 
Join Date: Jul 2006
Posts: 269
barnyard is an unknown quantity at this point
What he said...
__________________
D201GLY2
512 Megs RAM
8" Lilliput
Onstar GPS mod
XM
Visteon HDZ300
barnyard is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 04-13-2009, 12:53 PM   #9
Low Bitrate
 
Join Date: Feb 2007
Location: Taylorsville, UT
Posts: 108
Extide is an unknown quantity at this point
Yeah. sorry the screen shots only show the music interface -- the radio screen is only a few buttons right now, but you will have pause, rewind, etc capability for live radio. I am going to allow you to specify an on-disk buffer size (of like 100MB or whatever) that it will record the audio into FIFO style, and just loop back to the beginning of the file after recording to the end, then you can playback from any point in the file (directly following the record stream or whatever). 100mb should get about 10 mins, the audio data is essentially raw uncompressed PCM data, so 16bit * 44.1khz = 705600 bits a second, which is ~86KB a sec. (Can't remember if that accounts for stereo or just one channel) I was ill all this past weekend so I didn't get to work on it, but will spend some more time this week. Anyways it will be easy to use, just like a DVR for TV. I am only really designing it for the SiLabs FM Tuner (because that's what I have) but since it really is like a wav in / wav out record / play system it could theoretically be adapted for almost anything...
__________________
Car: 2004 GTI VR6 24v Turbo 2.8L, GT35R, 630cc, Unitronic, Bosch 044, etc, etc..
Main PC: Q9550@4Ghz, 8GB DDR2, Asus P5Q-E, Win 7 x64 RTM, Scythe Mugen2, 128GB G.Skill Falcon, 2x ATI4850 512MB Crossfire, Auzentech X-Fi Forte, Grado Labs SR-80

Last edited by Extide; 04-13-2009 at 12:59 PM.
Extide is offline   Reply With Quote
Old 04-13-2009, 02:59 PM   #10
Variable Bitrate
 
Join Date: Jul 2006
Posts: 269
barnyard is an unknown quantity at this point
Awesome! Looking forward this
__________________
D201GLY2
512 Megs RAM
8" Lilliput
Onstar GPS mod
XM
Visteon HDZ300
barnyard is offline   Reply With Quote
Old 05-12-2009, 07:03 PM   #11
Low Bitrate
 
Join Date: Feb 2007
Location: Taylorsville, UT
Posts: 108
Extide is an unknown quantity at this point
Got some work done

Worked on this a bit today .. the app is kind of a mess at the moment as I decided to change around the way a lot of stuff works and not everything is really updated yet. Not much works in here except the media scanner, playlist browser/creator and the radio record/play currently kind of works. You can't currently record and play at the same time or it will record what itself is playing UNLESS you select something external as your record device, and make sure that that device isnt actually playing thru the speakers. In any case you can kind of get a sneak peek.

Requires Visual Studio 2008
Written in C#
Uses SQLServer Compact Edition, and Windows Media Player SDK

This is more of a development snapshot than anything.. have fun!

BTW This project is going to take me a WHILE to complete, it isnt really forgotten about but I can't really spend much time on it.

Attached Files
File Type: zip Cadence_ALPHA_SRC.zip (755.6 KB, 13 views)
__________________
Car: 2004 GTI VR6 24v Turbo 2.8L, GT35R, 630cc, Unitronic, Bosch 044, etc, etc..
Main PC: Q9550@4Ghz, 8GB DDR2, Asus P5Q-E, Win 7 x64 RTM, Scythe Mugen2, 128GB G.Skill Falcon, 2x ATI4850 512MB Crossfire, Auzentech X-Fi Forte, Grado Labs SR-80
Extide is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Road Camera HD - Backup camera viewer and Mobile DVR plugin tempgp RR Plugins 90 09-20-2009 05:46 PM
DVR for Dashcam ddiesel2006 General Hardware Discussion 1 03-19-2009 09:31 AM
Mini Spy Camera Series Products from Actfind.com - Mini SD DVR gmrain386 Classifieds 0 01-28-2009 08:54 AM
Does Pioneer DEH-P605 have AUX capability? s2zeller Newbie 3 09-06-2008 02:42 PM
DVR option with IR Camera... Emo Input Devices 0 02-23-2006 11:19 AM



All times are GMT -5. The time now is 07:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics