View Single Post
Old 29th June 2009, 22:24   #1  |  Link
bartnovsky
Registered User
 
Join Date: Feb 2009
Location: Russia, Moscow
Posts: 29
DirectShow access crash

I need to simultaneously capture and encode video(via x264) and sound(via ffmpeg to mp3, for example) from BlackMagic Intensity capture card. Here is simple script, which i used for this purpose:
v = DirectShowSource("video.grf", audio=false, fps=25, framecount=4000).ConvertToYV12
a = DirectShowSource("sound.grf", video=false, fps=25, framecount=4000)
AudioDub(a,v)
where "video.grf" and "sound.grf" are the corresponding capture graphs. When i launch encoding separately, everything is fine. But parallel starting of encoding processes from command line leads to breakdown of the one (the other is working correctly at the same time). Here are examples of error messages:
[ffmpeg]:
Input #0, avs, from 'sony_1080i.avs':
Duration: 00:00:10.00, start: 0.000000, bitrate: 0 kb/s
Stream #0.0: Video: rawvideo, rgb32, 804x80, 49397 kb/s, 24.00 tb(r)
Output file does not contain any stream
[x264]:
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'sony_1080i.avs'
The usage of two separate avs scripts cannot solve this problem. Everything is fine also when i use *.avi clip in the first call of DirectShowSource. Could anyone help or suggest more convenient way to achive the goal described above?
bartnovsky is offline   Reply With Quote