[Bug 697690] New: gst-libav doesn't have the same multithread performance as ffplay
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Apr 10 00:53:09 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=697690
GStreamer | gst-libav | git
Summary: gst-libav doesn't have the same multithread
performance as ffplay
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-libav
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: fykcee1 at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
While playing back some films ffplay is seen more balanced CPU occupancy then
gstreamer.
Sample film:
http://dev.lemote.com/files/upload/software/temp/tears_of_steel_720p.mkv
Following change solves this:
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c
index 0e909a4..f96c21b 100644
--- a/ext/libav/gstavviddec.c
+++ b/ext/libav/gstavviddec.c
@@ -434,7 +434,7 @@ gst_ffmpegviddec_set_format (GstVideoDecoder * decoder,
} else
ffmpegdec->context->thread_count = ffmpegdec->max_threads;
- ffmpegdec->context->thread_type = FF_THREAD_SLICE;
+ ffmpegdec->context->thread_type = FF_THREAD_SLICE | FF_THREAD_FRAME;
/* open codec - we don't select an output pix_fmt yet,
* simply because we don't know! We only get it
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list