Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482906 - media-video/transcode-1.1.7-r1 segfault at end of pass1 encoding ffmpeg mpeg4
Summary: media-video/transcode-1.1.7-r1 segfault at end of pass1 encoding ffmpeg mpeg4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-29 12:11 UTC by Maik
Modified: 2013-08-29 17:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maik 2013-08-29 12:11:39 UTC
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.
Comment 1 Alexis Ballier gentoo-dev 2013-08-29 16:17:09 UTC
did you try -r3 ?
Comment 2 Maik 2013-08-29 17:40:24 UTC
Tried -r3 now. ffmpeg2.patch resolves the issue. So nevermind, sorry.