Page 1 of 1

Scaling error when modifying libswscale library

Posted: 03 Sep 2009 00:13
by s.g.
Using the source code for VLC 1.0.0, in the file vlc\extras\contrib\src\ffmpeg\libswscale\swscale_internal.h, I am increasing the value of VOF from 2048 to 20480 so that larger image/video resolutions may be displayed.

Once I do this, using cygwin, I do a "make clean", "make", and then "make install" in the directory vlc\extras\contrib\src\ffmpeg.
Then I go into the directory vlc\modules\video_filter and do a "make clean" and then a "make" in order to generate a new libswscale_plugin.dll file.

I then add this new libswscale_plugin.dll file to the plugin directory of fresh VLC 1.0.0 binaries that I have downloaded from VideoLan.

Now, whenever I load in any image size (whether it be 640x480 or 4096x4096), I always get the following error:
"No suitable decoder module:
VLC does not support the audio or video "fake". Unfortunately there is no way for you to fix this."

However, if I replace the libswscale_plugin.dll with the original one that came with the fresh VLC 1.0.0 binaries, everything is fine again and I can run those image sizes.

Any suggestions as to what I am doing wrong, or as to how to allow for larger images/videos sizes?

Thanks.

Re: Scaling error when modifying libswscale library

Posted: 03 Sep 2009 19:45
by VLC_help
Open Tools -> Messages... (set Verbosity to 2) before opening the media file and it should display more messages.

Re: Scaling error when modifying libswscale library

Posted: 03 Sep 2009 21:19
by s.g.
Here is some of the output that shows the three error messages that are reported (note that no image is ever displayed)...Are there other modules I need to recompile if I make changes to libswscale?
.
.
.
main debug: looking for decoder module: 36 candidates
main debug: creating access '' path='C:\Documents and Settings\Steven Webb\Desktop\STUFF-KEEP\images\circle640x480.jpg'
main debug: looking for access module: 5 candidates
vcd debug: trying .cue file: C:\Documents and Settings\Steven Webb\Desktop\STUFF-KEEP\images\circle640x480.cue
vcd debug: could not find .cue file
access_file debug: opening file `C:\Documents and Settings\Steven Webb\Desktop\STUFF-KEEP\images\circle640x480.jpg'
main debug: using access module "access_file"
main debug: TIMER module_need() : 39.000 ms - Total 39.000 ms / 1 intvls (Avg 39.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 20 ms
main debug: pre-buffering done 1024 bytes in 0s - 49 kbytes/s
main debug: removing module "access_file"
main debug: looking for decoder module: 36 candidates
avcodec debug: libavcodec initialized (interface 0x342000)
avcodec debug: using direct rendering
avcodec debug: ffmpeg codec (Motion JPEG Video) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 1566.000 ms - Total 1566.000 ms / 1 intvls (Avg 1566.000 ms)
main debug: looking for video filter2 module: 20 candidates
main debug: TIMER module_need() : 609.000 ms - Total 609.000 ms / 1 intvls (Avg 609.000 ms)
main debug: no video filter found
avcodec debug: ffmpeg codec (Motion JPEG Video) stopped
main debug: removing module "avcodec"
fake error: unable to read image file C:\Documents and Settings\Steven Webb\Desktop\STUFF-KEEP\images\circle640x480.jpg
invmem error: --vmem-width and --vmem-height must be > 0
main debug: TIMER module_need() : 3039.000 ms - Total 3039.000 ms / 1 intvls (Avg 3039.000 ms)
main error: no suitable decoder module for fourcc `fake'.
VLC probably does not support this sound or video format.
main debug: killing decoder fourcc `fake', 0 PES in FIFO
main debug: `C:\Documents and Settings\Steven Webb\Desktop\STUFF-KEEP\images\circle640x480.jpg' successfully opened
main debug: Buffering 0%
.
.
.

Thanks

Re: Scaling error when modifying libswscale library

Posted: 03 Sep 2009 21:44
by s.g.
One thing to add, is even if I just leave the VOF value as its original value, and then perform the compile procedure I described above, I get the same error.

Re: Scaling error when modifying libswscale library

Posted: 05 Sep 2009 10:12
by VLC_help
One thing to add, is even if I just leave the VOF value as its original value, and then perform the compile procedure I described above, I get the same error.
Then I would have to guess that for some reason the .DLL you generate, isn't fully compatible with VLC.