Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199448 - media-gfx/blender-2.45: ffmpeg input is broken
Summary: media-gfx/blender-2.45: ffmpeg input is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 15:41 UTC by Maciej Pawlik
Modified: 2007-11-18 19:19 UTC (History)
1 user (show)

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


Attachments
Source frame (good.png,39.06 KB, image/png)
2007-11-17 15:41 UTC, Maciej Pawlik
Details
Corrupted image (same source as previous attatchment) in blender (error.png,69.62 KB, image/png)
2007-11-17 15:42 UTC, Maciej Pawlik
Details
Fixed patch. (blender-2.44-swscale.patch,3.96 KB, text/plain)
2007-11-17 18:02 UTC, Maciej Pawlik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pawlik 2007-11-17 15:41:10 UTC
When using blender-2.45 with ffmpeg flag, and most recent ffmpeg-0.4.9_p20070616-r2, adding any *.avi file as an input for texture (or source in 'sequence') results in corrupted image (attatchments).

Reproducible: Always

Steps to Reproduce:
1. emerge =blender-2.45
2. emerge =media-video/ffmpeg-0.4.9_p20070616-r2
3. add .avi file as texture source
Actual Results:  
Corrupted image instead of actual movie.


Last working configuration (and workaround):
media-video/ffmpeg-0.4.9_p20070616 (no swscaler)

and modified blender-2.45:
--- blender-2.45.ebuild 2007-09-22 01:14:57.000000000 +0200
+++ blender-2.45.ebuild.1       2007-11-17 16:38:13.000000000 +0100
@@ -58,7 +58,6 @@
        cd ${S}
        epatch ${FILESDIR}/blender-2.37-dirs.patch
        epatch ${FILESDIR}/blender-2.44-scriptsdir.patch
-       epatch ${FILESDIR}/blender-2.44-swscale.patch
 
        if use ffmpeg ; then
                cd ${S}/extern

I think, that this swscale patch is not taking care of input, because output to ffmeg works fine.
Comment 1 Maciej Pawlik 2007-11-17 15:41:45 UTC
Created attachment 136172 [details]
Source frame
Comment 2 Maciej Pawlik 2007-11-17 15:42:47 UTC
Created attachment 136174 [details]
Corrupted image (same source as previous attatchment) in blender
Comment 3 Luca Barbato gentoo-dev 2007-11-17 15:59:45 UTC
that's annoying, instruct me on how to reproduce the issue please.
Comment 4 Maciej Pawlik 2007-11-17 17:50:38 UTC
Start blender, choose "4-sequence" window sheme (center-top list), and move mouse cursor to middle window. Then press space, and click "movie", choose a file, place it somewhere in the window, then move the time slider over the clip and observe the results in preview (black window on top right, middle mouse pans the view).
Comment 5 Maciej Pawlik 2007-11-17 18:02:16 UTC
Created attachment 136183 [details]
Fixed patch.

Ok, found it!:)

There was an error in old version of this patch. In ffmpeg_fetchibuf() pixel formats were in wrong order. I've noticed it while comparing new code to the old commented-out.
Comment 6 Luca Barbato gentoo-dev 2007-11-17 18:39:40 UTC
patch update committed, thanks again