FS#4075 - xvidcap doesn't work ("could not open codec")
Attached to Project:
Arch Linux
Opened by Michal Krenek (Mikos) - Monday, 27 February 2006, 17:11 GMT
Last edited by Damir Perisa (damir.perisa) - Friday, 07 July 2006, 20:17 GMT
Opened by Michal Krenek (Mikos) - Monday, 27 February 2006, 17:11 GMT
Last edited by Damir Perisa (damir.perisa) - Friday, 07 July 2006, 20:17 GMT
|
Details
If I try recording video of my desktop, xvidcap crashes with
this error message:
[mpeg1video @ 0xb7927cb0]only YUV420 is supported could not open codec It is not codec-specific, if I try for example mpeg4, it gives similar error message. I have tried it in regular X.Org 7.0 and also in Xgl with same results. Many people have exactly same problem with xvidcap (http://bbs.archlinux.org/viewtopic.php?p=145860). |
This task depends upon
Closed by Damir Perisa (damir.perisa)
Sunday, 03 December 2006, 00:16 GMT
Reason for closing: Deferred
Additional comments about closing: xvidcap works again, but with less features (upstream effect)
Sunday, 03 December 2006, 00:16 GMT
Reason for closing: Deferred
Additional comments about closing: xvidcap works again, but with less features (upstream effect)
at least capturing to individual frames stil works.
This may be of some help.
http://sentinel.dk/hypermail/motion-user/0022.html
Xvidcap now works, but after few seconds (about 30 seconds or so) of recording to MPEG (or MPEG4) it gives me segmentation fault. So I think that this ffmpeg-related patch isn't perfect.
% ] xvidcap --time 400.0 --cap_geometry 1280x1024+0+0 --gui no --file capture.mpeg
With that, it won't segfault after 30-40 seconds. Change the time to whatever (it has to be float: nnn.n), change geometry to whatever you want to capture (xvidcap --help explains it), no gui is important, and the file must be a .mpeg if you want a direct movie capture.
(gdb) run --time 400.0 --cap_geometry 1280x1024+0+0 --gui no --file capture.mpeg
Starting program: /usr/bin/xvidcap --time 400.0 --cap_geometry 1280x1024+0+0 --gui no --file capture.mpeg
[Thread debugging using libthread_db enabled]
[New Thread -1220060768 (LWP 6904)]
Warning: Cannot convert string "*-lucida-medium-r-*-*-12-*" to type FontStruct
[mpeg1video @ 0xb7eadcb0]removing common factors from framerate
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220060768 (LWP 6904)]
0x08052605 in paintMousePointer (x=0xbfdd8584, y=0xbfdd8580, mjob=0x807ea48, image=0x8095c80) at capture.c:175
175 *cursor &= ((~ image->red_mask) & (~ image->green_mask) & (~
(gdb) bt
#0 0x08052605 in paintMousePointer (x=0xbfdd8584, y=0xbfdd8580, mjob=0x807ea48, image=0x8095c80) at capture.c:175
#1 0x08053840 in TCbCaptureSHM (xtp=0x807ea48, id=0xbfdd8608) at capture.c:634
#2 0xb7a6b829 in DoOtherSources () from /usr/lib/libXt.so.6
#3 0xb7a6bad9 in XtAppNextEvent () from /usr/lib/libXt.so.6
#4 0xb7a609cc in XtAppMainLoop () from /usr/lib/libXt.so.6
#5 0x0804c7a9 in XVC_RunGUI () at xt_control.c:232
#6 0x0804c4fa in main (argc=9, argv=0xbfdd8a64) at main.c:442
(gdb) run --time 400.0 --cap_geometry 1280x1024+0+0 --gui no --file capture.mpeg
Starting program: /usr/bin/xvidcap --time 400.0 --cap_geometry 1280x1024+0+0 --gui no --file capture.mpeg
[Thread debugging using libthread_db enabled]
[New Thread -1220044384 (LWP 31607)]
Warning: Cannot convert string "*-lucida-medium-r-*-*-12-*" to type FontStruct
[mpeg1video @ 0xb7eb1cb0]removing common factors from framerate
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220044384 (LWP 31607)]
0x08052605 in paintMousePointer (x=0xbf9dcc84, y=0xbf9dcc80, mjob=0x807e9d8, image=0x8095c70) at capture.c:175
175 capture.c: No such file or directory.
in capture.c
(gdb) bt
#0 0x08052605 in paintMousePointer (x=0xbf9dcc84, y=0xbf9dcc80, mjob=0x807e9d8, image=0x8095c70) at capture.c:175
#1 0x08053840 in TCbCaptureSHM (xtp=0x807e9d8, id=0xbf9dcd08) at capture.c:634
#2 0xb7a6f829 in DoOtherSources () from /usr/lib/libXt.so.6
#3 0xb7a6fad9 in XtAppNextEvent () from /usr/lib/libXt.so.6
#4 0xb7a649cc in XtAppMainLoop () from /usr/lib/libXt.so.6
#5 0x0804c7a9 in XVC_RunGUI () at xt_control.c:232
#6 0x0804c4fa in main (argc=9, argv=0xbf9dd164) at main.c:442