Using transcode to do 2-pass mpeg4 encoding using ffmpeg encoder like this (example for first pass): transcode -i infile -w 1000,50 -F mpeg4 -b 128,0,2 -f 25.000 --export_par 142,100 -R 1 -y ffmpeg,null -o out.avi results in segfault (free: invalid pointer) this led me to an old ffmpeg bug: http://thread.gmane.org/20080713163609.GB10019@geppetto So the solution to this is to change the file export/export_ffmpeg.c, line 854 instead lavc_venc_context->rc_eq = lavc_param_rc_eq; it should read lavc_venc_context->rc_eq = av_strdup(lavc_param_rc_eq); Works for me. Regards.
did you try -r3 ?
Tried -r3 now. ffmpeg2.patch resolves the issue. So nevermind, sorry.