Summary: | >=media-video/transcode-1.1.5-r1 fails to open ffmpeg+x264 codec | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bpshacklett, gentoobugzilla |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.mail-archive.com/transcode-devel@exit1.org/msg01001.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch adding video preset support
modified ebuild including the patch output of a failed run Fix invalid free when preset file not found |
Description
Dennis Schridde
2010-06-06 08:21:01 UTC
Created attachment 234305 [details, diff]
patch adding video preset support
Attached patch was submitted to the transcode-devel mailinglist. It adds ffmpeg preset support to transcode, which should fix this issue.
transcode-devel silently discards emails from not subscribed senders. The email now arrived at: http://www.mail-archive.com/transcode-devel@exit1.org/msg01001.html Posted a bump in transcode-devel, no reply so far. After reading http://www.mail-archive.com/transcode-devel@exit1.org/msg01003.html i´m thinking maybe we should file a bug against dvd::rip so they patch the call to transcode to make use of the new native api? Created attachment 256983 [details]
modified ebuild including the patch
a modified ebuild for the lazy, incorporating daniels patch.
Okay, with the patch applied i get this: [export_ffmpeg.so] Using FFMPEG codec 'h264' (FourCC 'h264', H264 (avc)). [export_ffmpeg.so] No profile selected [export_ffmpeg.so] warning: Error opening configuration file ./ffmpeg.cfg: No such file or directory [export_ffmpeg.so] Starting 1 thread(s) [export_ffmpeg.so] Set display aspect ratio to input [export_ffmpeg.so] Parsing ffmpeg preset 'medium' [export_ffmpeg.so] After parsing preset 'medium', 22 options are overridden: [export_ffmpeg.so] -- coder [export_ffmpeg.so] -- flags [export_ffmpeg.so] -- cmp [export_ffmpeg.so] -- partitions [export_ffmpeg.so] -- me_method [export_ffmpeg.so] -- subq [export_ffmpeg.so] -- me_range [export_ffmpeg.so] -- g [export_ffmpeg.so] -- keyint_min [export_ffmpeg.so] -- sc_threshold [export_ffmpeg.so] -- i_qfactor [export_ffmpeg.so] -- b_strategy [export_ffmpeg.so] -- qcomp [export_ffmpeg.so] -- qmin [export_ffmpeg.so] -- qmax [export_ffmpeg.so] -- qdiff [export_ffmpeg.so] -- bf [export_ffmpeg.so] -- refs [export_ffmpeg.so] -- directpred [export_ffmpeg.so] -- trellis [export_ffmpeg.so] -- flags2 [export_ffmpeg.so] -- wpredp [libx264 @ 0x22b25a0]using SAR=1/1 [libx264 @ 0x22b25a0]using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 0x22b25a0]requested bitrate is too low. estimated minimum is 13 kbps [export_ffmpeg.so] warning: could not open FFMPEG codec [encoder.c] warning: video export module error: init failed [transcode] critical: failed to init encoder I really don´t know if this is related, the exact same settings used to work before the x264 ffmpeg preset problem appeared. BPP Value = 0.15 2-pass encoding set reuse log set framerate set to 25 zoom to full frame container: ogg Verified that this patch is included in the 1.1.7 release. So, closing as FIXED I´ve just merged transcode-1.1.7 and it still fails. Added bonus: it segfaults now. I´m attaching a full log... Created attachment 295815 [details]
output of a failed run
reopened. Created attachment 317089 [details, diff] Fix invalid free when preset file not found The segfault was occurring because of an invalid free on a constant string right before the program quit anyway. This patch copies the name with av_strdup so it can be freed, which is consistent with the behavior that occurs if the user supplies a preset for ffmpeg in ffmpeg.cfg The patch also changes the error message so the user can tell it was the missing preset file which caused the program to terminate. I've only tested this with ffmpeg 0.11 and my patch in bug 419551 (In reply to comment #12) > Created attachment 317089 [details, diff] [details, diff] > Fix invalid free when preset file not found > > The segfault was occurring because of an invalid free on a constant string > right before the program quit anyway. > This patch copies the name with av_strdup so it can be freed, which is > consistent with the behavior that occurs if the user supplies a preset for > ffmpeg in ffmpeg.cfg > The patch also changes the error message so the user can tell it was the > missing preset file which caused the program to terminate. > I've only tested this with ffmpeg 0.11 and my patch in bug 419551 applied, thanks! |