View Full Version : How to test ffmpeg with pthread support?
_xxl
30th January 2007, 20:39
I have compiled latest ffmpeg with pthread support.
I would like to test multithreaded encoding for MPEG4/2/1, H263 and DV.
Yong
30th January 2007, 23:52
Here are some examples basic encoding options for mpeg1:
-qdiff 3 -qcomp 0.5 -qblur 0.5 -b_qfactor 1.50 -b_qoffset 1.00 -i_qfactor 0.8
Optional:
-b_strategy -brd_scale -bidir_refine -dark_mask 0.1 -p_mask 0.1 -lumi_mask 0.2 -tcplx_mask 0.0 -scplx_mask 0.0 -border_mask 0.0
-mbd rd -flags cbp+qprd+trell+mv0+naq+aic -dia_size 2 -pre_dia_size 2 -preme 2 -rd 2 -bf 2
For mpeg2 only:
-pix_fmt yuv422p -dc 11
for h263+ only:
-flags +loop+mv4+umv+aiv+slice+obmc
For mpeg4 only:
+mv4+qpel
Dont know about dv, but there is not much options for mjpeg may be just -pix_fmt and some rc options.
You could just use:
ffmpeg -i myvideo.avs -vcodec mpeg2video myvideo.mpg :p
_xxl
31st January 2007, 00:00
Multithreaded: -threads 2?
Inventive Software
31st January 2007, 02:07
Doesn't ffmpeg --help chuck out a load of options for you?
kingsingh
19th August 2008, 16:26
I have compiled latest ffmpeg with pthread support.
I would like to test multithreaded encoding:
MPEG4/2/1,H263(+),MJPEG and DV.
Does anybody know what cmd should I run for testing?
Are you still able to compile with pthread support? I am getting the following error when I try:
In file included from c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/pthread.h:288,
from libavcodec/pthread.c:24:
c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sched.h:152: error: expected ')' before 'pid'
c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sched.h:154: error: expected ')' before 'pid'
make: *** [libavcodec/pthread.o] Error 1
_xxl
19th August 2008, 17:39
In file included from c:/mingw/bin/../lib/gcc/i686-pc-
> mingw32/4.2.4/../../../../include/pthread.h:288,
> from libavcodec/pthread.c:25:
> c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.4/../../../../include/
> sched.h:152: error: expected ')' before 'pid'
> c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.2.4/../../../../include/
> sched.h:154: error: expected ')' before 'pid'
> make: *** [libavcodec/pthread.o] Error 1
The same here. I had tried to compile ffmpeg-mt.
Maybe caused by the -std=c99 -D*SOURCE stuff that was recently added to mainline?
Pthread.c can't be compiled if -D_POSIX_C_SOURCE=200112 is used.
Kurtnoise
26th August 2008, 20:55
Don't know whether or not you read the ML, but I've got the same problem. To fix it I updated to the last CVS entry and that did the trick...
btw, I use gcc version 4.3.0 (20080305) available on SF. Hope this helps.
Mr VacBob
28th August 2008, 19:59
If you're still getting crashes when running it, try calling ff_check_alignment from decode_frame_thread and see if it errors.
ffmpeg
30th August 2008, 18:03
I use gcc 4.3.1 and pthread cvs which can compile FFmpeg SVN
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.