vlc 2.0 video resize problems

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
anonekku
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jul 2011 23:34

vlc 2.0 video resize problems

Postby anonekku » 30 Apr 2012 16:09

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.

anonekku
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jul 2011 23:34

Re: vlc 2.0 video resize problems

Postby anonekku » 10 May 2012 08:41

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.
Last edited by anonekku on 10 May 2012 09:38, edited 2 times in total.

anonekku
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jul 2011 23:34

Re: vlc 2.0 video resize problems

Postby anonekku » 15 May 2012 22:49

please fix this.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc 2.0 video resize problems

Postby Jean-Baptiste Kempf » 16 May 2012 09:27

please fix this.
Please file a bug on the VLC Trac.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

anonekku
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jul 2011 23:34

Re: vlc 2.0 video resize problems

Postby anonekku » 16 Jun 2012 01:25

please fix this.
Please file a bug on the VLC Trac.
https://trac.videolan.org/vlc/ticket/6948

thank you.

hariprasad
New Cone
New Cone
Posts: 4
Joined: 11 Jul 2012 12:22

Re: vlc 2.0 video resize problems

Postby hariprasad » 11 Jul 2012 13:13

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.

hariprasad
New Cone
New Cone
Posts: 4
Joined: 11 Jul 2012 12:22

Re: vlc 2.0 video resize problems

Postby hariprasad » 12 Jul 2012 19:35

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.

hariprasad
New Cone
New Cone
Posts: 4
Joined: 11 Jul 2012 12:22

Re: vlc 2.0 video resize problems

Postby hariprasad » 13 Jul 2012 14:22

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.

hariprasad
New Cone
New Cone
Posts: 4
Joined: 11 Jul 2012 12:22

Re: vlc 2.0 video resize problems

Postby hariprasad » 13 Jul 2012 17:38

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() );

anonekku
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jul 2011 23:34

Re: vlc 2.0 video resize problems

Postby anonekku » 12 Aug 2012 03:06

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

anonekku
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jul 2011 23:34

Re: vlc 2.0 video resize problems

Postby anonekku » 12 Aug 2012 08:39

video outside the player has resize problems still

proof here;

http://www.youtube.com/watch?v=xRXmv0QX4UI

please fix this


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests