Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 600

Broken Tutorial for Video Reading and Writing C++?

$
0
0
Hi I was trying to use this [tutorial](http://docs.opencv.org/2.4.1/doc/tutorials/highgui/video-write/video-write.html) to do some video manipulation with OpenCV, but the program there doesn't seem to even run and results in this error: 2016-12-31 14:17:14.509 process[9002:114718] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVAssetWriterInput initWithMediaType:outputSettings:sourceFormatHint:] AVVideoSettings dictionary must specify a positive width' *** First throw call stack: ( 0 CoreFoundation 0x00007fffcf4d20db __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fffe4164a2a objc_exception_throw + 48 2 AVFoundation 0x00007fffcbb6e728 -[AVAssetWriterInput dealloc] + 0 3 AVFoundation 0x00007fffcbb6e0b3 +[AVAssetWriterInput assetWriterInputWithMediaType:outputSettings:] + 52 4 libopencv_highgui.2.4.dylib 0x0000000107139132 _ZN26CvVideoWriter_AVFoundationC2EPKcid6CvSizei + 682 5 libopencv_highgui.2.4.dylib 0x0000000107136dd3 _Z32cvCreateVideoWriter_AVFoundationPKcid6CvSizei + 69 6 libopencv_highgui.2.4.dylib 0x000000010712a848 cvCreateVideoWriter + 80 7 libopencv_highgui.2.4.dylib 0x000000010712b24a _ZN2cv11VideoWriter4openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEidNS_5Size_IiEEb + 58 8 process 0x0000000106c11fa0 main + 1232 9 libdyld.dylib 0x00007fffe4a46255 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6 Is it broken or am I doing something wrong when running the program? Thanks!

Viewing all articles
Browse latest Browse all 600