Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deploy C# application with C organized dll Pin
Luc Pattyn24-Jul-10 1:10
sitebuilderLuc Pattyn24-Jul-10 1:10 
QuestionBinaryFormater FileStream structure Pin
Mark H Bishop23-Jul-10 10:28
Mark H Bishop23-Jul-10 10:28 
AnswerRe: BinaryFormater FileStream structure Pin
Pete O'Hanlon23-Jul-10 11:07
mvePete O'Hanlon23-Jul-10 11:07 
QuestionLive GPS data and Video synchronized recording and playback Pin
faheemnadeem23-Jul-10 7:48
faheemnadeem23-Jul-10 7:48 
AnswerRe: Live GPS data and Video synchronized recording and playback Pin
Ennis Ray Lynch, Jr.23-Jul-10 9:15
Ennis Ray Lynch, Jr.23-Jul-10 9:15 
GeneralRe: Live GPS data and Video synchronized recording and playback Pin
faheemnadeem23-Jul-10 11:31
faheemnadeem23-Jul-10 11:31 
QuestionRe: Live GPS data and Video synchronized recording and playback Pin
vijayr10-Nov-10 23:04
vijayr10-Nov-10 23:04 
AnswerRe: Live GPS data and Video synchronized recording and playback Pin
faheemnadeem15-Nov-10 2:29
faheemnadeem15-Nov-10 2:29 
Hi,
Sorry i am a bit late replying to your question. Anyways there were many ways to implement the syncing of GPS data with a video file. I completed my project sometime ago. In my case i had to implement a very precise synchronization because I had an airborne stabilized articulated camera which has to lock on a certain location and the data was simultaneously play backed with the video and it was very easy to spot sync discrepancies.

Solutions:
1. In real-time while recording one can take the time-stamp from the video when GPS data arrived, store it in a hash-table and while playing it back just search for the closest time stamp from the hash-table matching with current video time after some fixed interval (200ms). This method introduced some time delay as the data display event is to be fired after fixed time interval. (Works well nonetheless).

2. See the basic algorithm to sync subtitle (.srt) files on video. It can be used as well with some modifications.

3. In my case i had to be able to playback recording in a video only, Video + Data and Data only modes with varying playback speeds. No problem for video only mode. For data only mode I used two timers. At start or zero time I read the first NMEA string from the recorded text file. Note: Time stamps are attached with each NMEA string like in .srt file (a unique time not a range). i also read the the second string time and saved a copy of it. Parsed and displayed the first NMEA strings data, took the difference of two time stamps and set the second timer to fire at the next time interval which took the second line and did the same things and sets the first timer as in the previous case. Thus providing synchronization's with minimal delay. Playing it varying speeds is also easy as you have to just divide or multiply the timer value with playback speed. Same procedure follows with video and NMEA data synchronization.

The last case is difficult to implement if you are using a seek bar as well but provides the best synchronization with least processing.

I hope you got some clue to the solution.
Bye...
GeneralRe: Live GPS data and Video synchronized recording and playback [modified] Pin
vijayr15-Nov-10 19:05
vijayr15-Nov-10 19:05 
GeneralRe: Live GPS data and Video synchronized recording and playback Pin
faheemnadeem15-Nov-10 19:34
faheemnadeem15-Nov-10 19:34 
GeneralRe: Live GPS data and Video synchronized recording and playback Pin
vijayr15-Nov-10 20:17
vijayr15-Nov-10 20:17 
QuestionCant copy a complete text file Pin
ayandelhi23-Jul-10 6:44
ayandelhi23-Jul-10 6:44 
AnswerRe: Cant copy a complete text file Pin
riced23-Jul-10 6:51
riced23-Jul-10 6:51 
GeneralRe: Cant copy a complete text file Pin
ayandelhi23-Jul-10 6:59
ayandelhi23-Jul-10 6:59 
AnswerRe: Cant copy a complete text file Pin
Richard MacCutchan23-Jul-10 6:56
mveRichard MacCutchan23-Jul-10 6:56 
AnswerRe: Cant copy a complete text file Pin
Luc Pattyn23-Jul-10 7:00
sitebuilderLuc Pattyn23-Jul-10 7:00 
AnswerRe: Cant copy a complete text file Pin
kevinnicol23-Jul-10 7:07
kevinnicol23-Jul-10 7:07 
GeneralRe: Cant copy a complete text file Pin
ayandelhi23-Jul-10 7:23
ayandelhi23-Jul-10 7:23 
GeneralRe: Cant copy a complete text file Pin
ayandelhi23-Jul-10 7:25
ayandelhi23-Jul-10 7:25 
QuestionMessage Removed Pin
23-Jul-10 6:22
professionalN_tro_P23-Jul-10 6:22 
AnswerRe: Open With (my App) Pin
Samuel Cherinet23-Jul-10 6:34
Samuel Cherinet23-Jul-10 6:34 
AnswerRe: Open With (my App) Pin
Yusuf23-Jul-10 6:37
Yusuf23-Jul-10 6:37 
AnswerRe: Open With (my App) Pin
Luc Pattyn23-Jul-10 6:58
sitebuilderLuc Pattyn23-Jul-10 6:58 
Questionproblem displaying Pin
Dhyanga23-Jul-10 6:17
Dhyanga23-Jul-10 6:17 
AnswerRe: problem displaying Pin
PIEBALDconsult23-Jul-10 6:23
mvePIEBALDconsult23-Jul-10 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.