non7top / coreavc-for-linux

Automatically exported from code.google.com/p/coreavc-for-linux
GNU General Public License v2.0
0 stars 0 forks source link

Patching problem #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  patch -p0 
</home/jernej/programi/mplayer-core/coreavc-for-linux/mplayer/dshowserver.patch 

What is the expected output? What do you see instead?
patching file libmpcodecs/vd.c
Hunk #1 succeeded at 40 (offset -3 lines).
Hunk #2 succeeded at 72 with fuzz 2 (offset -3 lines).
patching file Makefile
Hunk #1 succeeded at 20 with fuzz 2.
Hunk #2 FAILED at 530.
Hunk #3 FAILED at 909.
2 out of 3 hunks FAILED -- saving rejects to file Makefile.rej
The next patch would create the file libmpcodecs/vd_dshowserver.c

What version of the product are you using? On what operating system?
Mplayer SVN 32561; coreavc-for-linux SVN:115
Using Ubuntu 10.10 32-bit

Please provide any additional information below.
This problem has accoured after reinstalling ubuntu. This happens to on x64 
version.

Original issue reported on code.google.com by jernej.erpe@gmail.com on 28 Oct 2010 at 10:56

GoogleCodeExporter commented 9 years ago
I have tested a old svn mplayer (1year old) and it works without problem. I 
think that the problem is in new svn mplayer code that is a lot different then 
the old ones and therefore patch is wrongly applied.

Original comment by jernej.erpe@gmail.com on 3 Nov 2010 at 6:53

GoogleCodeExporter commented 9 years ago
Exactly the same issue here with mplayer Rev: 32594 Date: 2010-11-07. Coreavc 
Rev: 114
Date: 2010-03-12

Original comment by arn...@gmail.com on 7 Nov 2010 at 2:07

GoogleCodeExporter commented 9 years ago
same problem with 32678 svn version

Original comment by chris.se...@gmail.com on 12 Dec 2010 at 1:40

GoogleCodeExporter commented 9 years ago
Ok, the patch gave me the same error on the 1.0rc2 and 1.0rc3 version dating 
from 2007.
Then, maybe there's something wrong inside the patch itself.

Original comment by chris.se...@gmail.com on 12 Dec 2010 at 4:04

GoogleCodeExporter commented 9 years ago
the compilation exit with this error :
"libmpcodecs/vd.o:(.rodata+0xc): undefined reference to 
`mpcodecs_vd_dshowserver'
collect2: ld returned 1 exit status
make: *** [mplayer] Erreur 1"

Original comment by chris.se...@gmail.com on 12 Dec 2010 at 4:08

GoogleCodeExporter commented 9 years ago
Ok guys, I succeed patching makefile and vd.c files by myself by hand.
As said, the new revision change makefile command.
the patch want to place "         libmpcodecs/vd_dshowserver.c \"
before  "              $(SRCS_COMMON-yes)"
In the new file, It might be place at the 526. You all can do it by yourselves.
And in the new /libmpcodecs/vd.c file, the ligne to add after
"  extern const vd_functions_t mpcodecs_vd_dshow;" is 
"  extern const vd_functions_t mpcodecs_vd_dshowserver;", where the patch 
wanted to add "extern vd_functions_t mpcodecs_vd_dshowserver;" which is now a 
wrong call.
Hoping all that can help you all, even to make a new correct dshowserver.patch

Original comment by chris.se...@gmail.com on 19 Dec 2010 at 2:09

GoogleCodeExporter commented 9 years ago
I succeed patching and installing the last svn revision of the day.
I applied the rejections of the patch by myself.
CoreAVC leaves me with a blank screen when I play a movie
The console returns :
==========================================================================
Forced video codec: coreavcwindows
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
VO: [x11] 1280x536 => 1280x536 Planar YV12  [fs]
[swscaler @ 0x9873250] using unscaled yuv420p -> bgra special converter
dshowserver --codec CoreAVCDecoder.ax --size 1280x536 --guid 
09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x34363248 --bits 12 --outfmt 
0x32315659 --pid 24249 --id b77e9a50 --numpages 10 --port 34218 &
Starting wine dshowserver.exe.so
Opening device (port is 34218)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x50): stub
fixme:thread:SetThreadIdealProcessor (0x54): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using socket based mutex
Found DirectShow filterSelected video codec: [coreavcwindows] vfm: dshowserver 
(CoreAVC H.264 2.0 for x86 - http://corecodec.org/)
==========================================================================

What's wrong with mplayer, dshowserver and coreavc this time ?

Original comment by chris.se...@gmail.com on 21 Dec 2010 at 4:41

GoogleCodeExporter commented 9 years ago
M. Alan Nisota, please you give me a way with svn to downlaod an old revision 
of mplayer which is patchable with the 115 version of coreavc-for-linux.

Original comment by chris.se...@gmail.com on 25 Dec 2010 at 12:07

GoogleCodeExporter commented 9 years ago
Hi, Welcome back everybody.
The latest Mplayer works well with the lastest coreavcwindows 2.5.1
I succeeded patching the files manually
and compiled mplayer with the lastest dshowserver.
Some problem of blank screen were fixed by changing
the option 'demuxer=lavf' to 'demuxer=mkv'.
After that, everythings goes very well.
Even if you maybe don't have time to read it, thank M. Alan NISOTA.
If I can help you to rewrite the patch, tell me.
;-)

Original comment by chris.se...@gmail.com on 12 May 2011 at 12:34

GoogleCodeExporter commented 9 years ago
This problem can now be set to 'sold'

Original comment by chris.se...@gmail.com on 12 May 2011 at 12:35

GoogleCodeExporter commented 9 years ago
Chris,
No disrespect, but I cannot understand what you are trying to say.  It seems as 
though you have figured out how to fix the patch manually, but your 
instructions are not clear on how to do it.  Is there a link to the updated 
patch file?

Thanks

Original comment by bchrista...@gmail.com on 22 May 2011 at 4:34

GoogleCodeExporter commented 9 years ago
See attached a patch for the mplayer release 34280.
I made it by myself and it runs well for me.

Original comment by chris.se...@gmail.com on 31 Oct 2011 at 3:00

Attachments: