I have created using a webcam (and virtualdub) a short uncompressed avi in the yuy2 format. With VC# Express, it won't play if I use F5 to run it (ie Start Debugging) but it plays correctly if I use Ctrl-F5 (or Start Without Debugging).
It would be easier to test if you could upload your yuy12.avi in a testdata dir in svn.
-daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
More seriously, since this is multithreaded code that I ain't familiar with yet, the error message I get is:
System.InvalidOperationException: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.RectangleToScreen(Rectangle r)
at TestApp.TestAppForm.Repaint() in C:\my_doc\dowitchers\TestApp\TestAppForm.cs:line 289
at TestApp.TestAppForm.TestAppForm_PaintEvent(IDirectDraw7RendererFilter sender, Surface surface, Int32 arx, Int32 ary) in C:\my_doc\dowitchers\TestApp\TestAppForm.cs:line 202
at Dowitchers.Filters.DirectDraw7RendererFilter.Render(IMediaSample sample, Nullable`1 start, Nullable`1 stop, Int64 delay) in C:\my_doc\dowitchers\Dowitchers\Filters\DirectDraw7RendererFilter.cs:line 201
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have created using a webcam (and virtualdub) a short uncompressed avi in the yuy2 format. With VC# Express, it won't play if I use F5 to run it (ie Start Debugging) but it plays correctly if I use Ctrl-F5 (or Start Without Debugging).
It would be easier to test if you could upload your yuy12.avi in a testdata dir in svn.
-daniel
That's the better case, since you can break into the debugger to see why it is not playing ^_^
These uncompressed files are quite large, maybe after I ported huffyuv.
Btw I'm making my avis with ffdshow in virtualdub, it can output all kinds of uncompressed formats.
Maybe we should call this a feature ;-)
More seriously, since this is multithreaded code that I ain't familiar with yet, the error message I get is:
System.InvalidOperationException: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.RectangleToScreen(Rectangle r)
at TestApp.TestAppForm.Repaint() in C:\my_doc\dowitchers\TestApp\TestAppForm.cs:line 289
at TestApp.TestAppForm.TestAppForm_PaintEvent(IDirectDraw7RendererFilter sender, Surface surface, Int32 arx, Int32 ary) in C:\my_doc\dowitchers\TestApp\TestAppForm.cs:line 202
at Dowitchers.Filters.DirectDraw7RendererFilter.Render(IMediaSample sample, Nullable`1 start, Nullable`1 stop, Int64 delay) in C:\my_doc\dowitchers\Dowitchers\Filters\DirectDraw7RendererFilter.cs:line 201
ah, controls can be accessed from the thread which created them, strange that it didn't throw this exception always
testapp just got a face lift
Looks good from here.
-daniel