Page 1 of 1
vlc 2.0 video resize problems
Posted: 30 Apr 2012 16:09
by anonekku
playing the video outside the player has resize problems.
proof here;
http://www.youtube.com/watch?v=maZSMuNHYtM
used random youtube videos as examples.
preferences>interface>integrate video in interface uncheck
and;
preferences>tools>show settings all>video>window properties
change video width height and x y coordinates.
for example 320x240 x960 y6 on a 1280x1024 resolution.
640x480 or any video scales to 320x240 at first,
but if you open a new video it resizes to video size.
so i think it resets to "-1" for width and height.
it seems to resize on the 3rd video not 2nd or randomly.
vlc 1.x didn't do this so now i hope it gets fixed.
please help, anyone.
Re: vlc 2.0 video resize problems
Posted: 10 May 2012 08:41
by anonekku
on windows xp 32bit sp3 by the way.
edit 1;
and by 2.0 i mean 2.x or the latest version.
uninstalled and reinstalled;
vlc-2.0.1-win32.exe
deleting all preferences and cache and everything.
still has resize problems.
vlc-1.1.11-win32.exe
still has playback problems.
its like choose your poison.
edit 2;
gotta integrate video in player until this is fixed.
dont like it because the player gets in the videos way.
also wastes precious resolution space.
[x] integrate video in interface
[ ] resize interface to video size
have to exit and re-open vlc for any option to work.
dont know if thats a related or unrelated error.
can make more videos if you want me to.
if you dont believe me or dont try it yourself.
is anyone going to fix this?
or right now is there a way i can fix it myself?
any help appreciated thanks.
Re: vlc 2.0 video resize problems
Posted: 15 May 2012 22:49
by anonekku
please fix this.
Re: vlc 2.0 video resize problems
Posted: 16 May 2012 09:27
by Jean-Baptiste Kempf
please fix this.
Please file a bug on the
VLC Trac.
Re: vlc 2.0 video resize problems
Posted: 16 Jun 2012 01:25
by anonekku
please fix this.
Please file a bug on the
VLC Trac.
https://trac.videolan.org/vlc/ticket/6948
thank you.
Re: vlc 2.0 video resize problems
Posted: 11 Jul 2012 13:13
by hariprasad
Hi all!!! I am working on this bug video Resize problems (Ticket No : #6948). I started going through the files "Main Interface.cpp" and "Directx" and "giwin32" files. Could any one please suggest me the correct approach to this problem. This problem was not there in 1.x versions.
Re: vlc 2.0 video resize problems
Posted: 12 Jul 2012 19:35
by hariprasad
Hi, I am working on the bug video resize problems. The video resizing check box is disabled when the video is not integrated with the interface. Was that done on purpose. Here is snippet of the code : vlc source code : vlc-2.0.2/modules/gui/qt4/components/simplepreferences.cpp Line No 586, 587
CONFIG_BOOL( "embedded-video", embedVideo );
CONFIG_BOOL( "qt-video-autoresize", resizingBox );
CONNECT( ui.embedVideo, toggled( bool ), ui.resizingBox, setEnabled( bool ) );
ui.resizingBox->setEnabled( ui.embedVideo->isChecked() );
Please tell me if this is not the place where i should post my technical queries.
Re: vlc 2.0 video resize problems
Posted: 13 Jul 2012 14:22
by hariprasad
Hi all,
I have gone through the VLC code and have been working on the bug VLC re size problem for some time. Kindly spend some time going through my comment.These are the few reasons which i feel are responsible for this bug.And also whenever the video is embedded in the interface and re size interface button is checked , ideally the interface size should change with the video size, but it is not happening i think this is also a bug. As discussed in my previous reply re size button is disabled when the video is not embedded in the interface.
1) In the source code vlc-2.0.2/src/video_output/video_output.c (Line Number : 630-640) , The new display windows interface is re sized with the native video size when the video is not embedded in the interface.
2) For the same reason when the video is embedded in the interface the interface is not re sizing with the video size .
3) The Embedded video signal is connected to the re size interface slot.Code Details : vlc source code : vlc-2.0.2/modules/gui/qt4/components/simplepreferences.cpp Line No 586, 587
kindly post your comments and correct me if i am wrong. Thank you very much for your time and concern.
Re: vlc 2.0 video resize problems
Posted: 13 Jul 2012 17:38
by hariprasad
Hi all,
I am Hari Prasad. I have worked on video re-size problems (ticket # 6948). I think i figured out the reason behind this video re size problems. While generating the next video widget (vlc-2.0.2/src/video_output/video_output.c Line No : 590-600) the window size is overridden by the new video by default. I have added an if - else condition to fix this bug. I hope it is not disturbing the rest of the code. I have also edited the simple preferences file to enable the auto resize button even when the video embedded check box is checked. Attached are the diff files of the two files i have edited.
Kindly go through the attached diff files. I would be very happy to receive any comments. Thank you very much for your time.
With Regards
Waddi Hari Prasad
Diff File video output :
623,626c623,624
< if (var_InheritBool( vout, "qt-video-autoresize"))
< vout_window_SetSize(window, cfg_override.width, cfg_override.height);
< else
< vout_window_SetSize(window,vout->p->window.cfg.width, vout->p->window.cfg.height);
---
> vout_window_SetSize(window,
> cfg_override.width, cfg_override.height);
Diff file simplepreferences
587a588,589
> CONNECT( ui.embedVideo, toggled( bool ), ui.resizingBox, setEnabled( bool ) );
> ui.resizingBox->setEnabled( ui.embedVideo->isChecked() );
Re: vlc 2.0 video resize problems
Posted: 12 Aug 2012 03:06
by anonekku
thank you very much hariprasad
unfortunately its still not working in the latest build
can you give me a link to 1 of your builds that works?
thank you very much
Re: vlc 2.0 video resize problems
Posted: 12 Aug 2012 08:39
by anonekku
video outside the player has resize problems still
proof here;
http://www.youtube.com/watch?v=xRXmv0QX4UI
please fix this