Hi guys, I'm doing a term paper about parallel programming and my teacher asked me to parallelize a piece of code at production. So, I found FFmpeg, which work with a big array and has good chance to be parallelized, but I'm having a hard time looking into the code and find a good and the right piece to work out. If someone has some document which I didn't find before and could help me with this I appreciate. Sorry if this isn't the right place to send this. att, -- Luiz Guilherme Castilho Martins cel: 9920 5877 msn: luizgui@gmail.com
On Mon, Aug 19, 2013 at 08:40:52PM -0300, LuizGuilherme CM wrote:
Hi guys, I'm doing a term paper about parallel programming and my teacher asked me to parallelize a piece of code at production. So, I found FFmpeg, which work with a big array and has good chance to be parallelized, but I'm having a hard time looking into the code and find a good and the right piece to work out. If someone has some document which I didn't find before and could help me with this I appreciate. Sorry if this isn't the right place to send this. att,
what do you mean with "parallelize" ? multi threading, SIMD, gpu ? [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Many things microsoft did are stupid, but not doing something just because microsoft did it is even more stupid. If everything ms did were stupid they would be bankrupt already.
On Monday, August 19, 2013, LuizGuilherme CM wrote:
Hi guys, I'm doing a term paper about parallel programming and my teacher asked me to parallelize a piece of code at production. So, I found FFmpeg, which work with a big array and has good chance to be parallelized, but I'm having a hard time looking into the code and find a good and the right piece to work out.
Most common/popular codecs are already highly parallelized. Also FFmpeg has a special framework for easing parallelizing, not sure whether this is what your teacher wants.
If someone has some document which I didn't find before and could help me with this I appreciate.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD<http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b992fcbc53325577ad838dcf62519ff38493121;hb=HEAD> ? Sorry if this isn't the right place to send this.
att, -- Luiz Guilherme Castilho Martins cel: 9920 5877 msn: luizgui@gmail.com _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
On Monday, August 19, 2013, Timothy Gu wrote:
On Monday, August 19, 2013, LuizGuilherme CM wrote:
Hi guys, I'm doing a term paper about parallel programming and my teacher asked me to parallelize a piece of code at production. So, I found FFmpeg, which work with a big array and has good chance to be parallelized, but I'm having a hard time looking into the code and find a good and the right piece to work out.
Most common/popular codecs are already highly parallelized. Also FFmpeg has a special framework for easing parallelizing, not sure whether this is what your teacher wants.
If someone has some document which I didn't find before and could help me with this I appreciate.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD<http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b992fcbc53325577ad838dcf62519ff38493121;hb=HEAD> ?
I assume multithreading is your definition of "parallelization". Timothy
actually I'm little lost too, but, I assume for all the things we talked, I'll use threads with loops restructuring and data dependences techniques. We talked about FFmpeg were already highly parallelized, and because of that I'm here, I'm spend some time looking into the code and didn't have a good result with it. In case of I can't work out with FFmpeg, I have to find something else.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD< http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b99...
?
I hadn't checked but I will check it out. Tks sorry by my english :P On Mon, Aug 19, 2013 at 9:43 PM, Timothy Gu <timothygu99@gmail.com> wrote:
On Monday, August 19, 2013, Timothy Gu wrote:
On Monday, August 19, 2013, LuizGuilherme CM wrote:
Hi guys, I'm doing a term paper about parallel programming and my teacher asked me to parallelize a piece of code at production. So, I found FFmpeg, which work with a big array and has good chance to be parallelized, but I'm having a hard time looking into the code and find a good and the right piece to work out.
Most common/popular codecs are already highly parallelized. Also FFmpeg has a special framework for easing parallelizing, not sure whether this is what your teacher wants.
If someone has some document which I didn't find before and could help me with this I appreciate.
I assume multithreading is your definition of "parallelization".
Timothy _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
-- Luiz Guilherme Castilho Martins cel: 9920 5877 msn: luizgui@gmail.com
On Mon, Aug 19, 2013 at 10:08:26PM -0300, LuizGuilherme CM wrote:
actually I'm little lost too, but, I assume for all the things we talked, I'll use threads with loops restructuring and data dependences techniques. We talked about FFmpeg were already highly parallelized, and because of that I'm here, I'm spend some time looking into the code and didn't have a good result with it. In case of I can't work out with FFmpeg, I have to find something else.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD< http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b99...
?
I hadn't checked but I will check it out. Tks
if you want to add multithreading support to some parts, also take a look at https://github.com/FFmpeg/FFmpeg/commit/a75529e81ea14c6d7c449e205aef97a0acb2... and https://github.com/FFmpeg/FFmpeg/commit/83f97355927f8e5f343fc04039e658cadc5c... these show the changes that simple codecs and filters needed for multithreading support [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In fact, the RIAA has been known to suggest that students drop out of college or go to community college in order to be able to afford settlements. -- The RIAA
On 20.08.2013, at 03:24, Michael Niedermayer <michaelni@gmx.at> wrote:
On Mon, Aug 19, 2013 at 10:08:26PM -0300, LuizGuilherme CM wrote:
actually I'm little lost too, but, I assume for all the things we talked, I'll use threads with loops restructuring and data dependences techniques. We talked about FFmpeg were already highly parallelized, and because of that I'm here, I'm spend some time looking into the code and didn't have a good result with it. In case of I can't work out with FFmpeg, I have to find something else.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD< http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b99...
?
I hadn't checked but I will check it out. Tks
if you want to add multithreading support to some parts, also take a look at https://github.com/FFmpeg/FFmpeg/commit/a75529e81ea14c6d7c449e205aef97a0acb2... and https://github.com/FFmpeg/FFmpeg/commit/83f97355927f8e5f343fc04039e658cadc5c...
these show the changes that simple codecs and filters needed for multithreading support
There is also libswscale that might have some tight loops that might be interesting to optimize stand-alone for practicing, even though I am not sure they are as interesting for us as a project since they can be parallelized through slices in the filter and are rarely the bottleneck (only ARM SIMD would be a major improvement I'd expect...).
Am 20.08.13 03:24, schrieb Michael Niedermayer:
On Mon, Aug 19, 2013 at 10:08:26PM -0300, LuizGuilherme CM wrote:
actually I'm little lost too, but, I assume for all the things we talked, I'll use threads with loops restructuring and data dependences techniques. We talked about FFmpeg were already highly parallelized, and because of that I'm here, I'm spend some time looking into the code and didn't have a good result with it. In case of I can't work out with FFmpeg, I have to find something else.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD< http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b99...
?
I hadn't checked but I will check it out. Tks
if you want to add multithreading support to some parts, also take a look at https://github.com/FFmpeg/FFmpeg/commit/a75529e81ea14c6d7c449e205aef97a0acb2... and https://github.com/FFmpeg/FFmpeg/commit/83f97355927f8e5f343fc04039e658cadc5c...
these show the changes that simple codecs and filters needed for multithreading support
We should add these examples to doc/multithreading.txt. -Thilo
On Tue, Aug 20, 2013 at 11:01:42AM +0200, Thilo Borgmann wrote:
Am 20.08.13 03:24, schrieb Michael Niedermayer:
On Mon, Aug 19, 2013 at 10:08:26PM -0300, LuizGuilherme CM wrote:
actually I'm little lost too, but, I assume for all the things we talked, I'll use threads with loops restructuring and data dependences techniques. We talked about FFmpeg were already highly parallelized, and because of that I'm here, I'm spend some time looking into the code and didn't have a good result with it. In case of I can't work out with FFmpeg, I have to find something else.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD< http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b99...
?
I hadn't checked but I will check it out. Tks
if you want to add multithreading support to some parts, also take a look at https://github.com/FFmpeg/FFmpeg/commit/a75529e81ea14c6d7c449e205aef97a0acb2... and https://github.com/FFmpeg/FFmpeg/commit/83f97355927f8e5f343fc04039e658cadc5c...
these show the changes that simple codecs and filters needed for multithreading support
We should add these examples to doc/multithreading.txt.
sounds like a good idea [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Let us carefully observe those good qualities wherein our enemies excel us and endeavor to excel them, by avoiding what is faulty, and imitating what is excellent in them. -- Plutarch
On 8/20/13, Michael Niedermayer <michaelni@gmx.at> wrote:
On Mon, Aug 19, 2013 at 10:08:26PM -0300, LuizGuilherme CM wrote:
actually I'm little lost too, but, I assume for all the things we talked, I'll use threads with loops restructuring and data dependences techniques. We talked about FFmpeg were already highly parallelized, and because of that I'm here, I'm spend some time looking into the code and didn't have a good result with it. In case of I can't work out with FFmpeg, I have to find something else.
Did you check http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt ;hb=HEAD< http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/multithreading.txt;h=2b99...
?
I hadn't checked but I will check it out. Tks
if you want to add multithreading support to some parts, also take a look at https://github.com/FFmpeg/FFmpeg/commit/a75529e81ea14c6d7c449e205aef97a0acb2... and https://github.com/FFmpeg/FFmpeg/commit/83f97355927f8e5f343fc04039e658cadc5c...
these show the changes that simple codecs and filters needed for multithreading support
There are simpler, i would say trivial examples for codecs multithreading (both frame and slice).
[...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In fact, the RIAA has been known to suggest that students drop out of college or go to community college in order to be able to afford settlements. -- The RIAA
participants (6)
-
LuizGuilherme CM -
Michael Niedermayer -
Paul B Mahol -
Reimar Döffinger -
Thilo Borgmann -
Timothy Gu