Page 1 of 1

Is there a way to stretch to a specified width/height

Posted: 01 Mar 2005 19:30
by rick_f
I have a 16:9 tv, my wife does not like the "black" bars on the side of the screen so watchs tv using the stretch mode. I know this screws up the aspect ratio and stretches everything out. But she seems to enjoy it.

Now I use VLC in fullscreen mode and watch primarily 4:3 encoded mpgs (From a PVR). I would like a similar feature to stretch the movie to fill the screen.

I have tried forcing the aspect ratio to 16:9 but this will fit the image to the right and left sides but introduce black bars on the top and bottom and actually really squish the movie.

So what other settings can I try?

Thanks,

Rick

Transcoding an option?

Posted: 03 Mar 2005 22:12
by rick_f
Bump.. I have seen a potential way to do something like this but I can not get it to work..

Can I potentially use transcoding to resize the mpeg stream on the fly to a new width/height and display the new sized image?

Then if that is possible, how? And can I still use the skip forward features while watching the transcoding?

Thank you.

Rick

Posted: 03 Mar 2005 22:16
by markfm
I think you could, for example, size the output plus apply a crop filter, which will cut the final output to the crop size.

Not positive, but worth a try...

Posted: 04 Mar 2005 22:06
by rick_f
I do not need to apply and crop filters since the video itself does not have any black bars.

Can someone please provide me a sample of transcoding the resizes and sends the transcoding to the display. I can not seem to get this to work..

Granted I am a newbie at setting up VLC but here is my attempt..

Code: Select all

vlc -vvv input_stream --sout '#transcode{width=720,height=480}'

Does not seem to work or do anything.. What am I missing?

Rick

Posted: 07 Mar 2005 18:25
by rick_f
So no help with the actual command to transcode to a specified size and display the results? I am still having no luck getting this to work.

Anyone??

Posted: 07 Mar 2005 22:01
by dionoea
i think you need to specify the transcode video codec and bitrate, else it won't apply your settings. Try #transcode{vcodec=mp2v,vb=4096,height=12,width=42} . The problem is that it will take quite a lot of cpu (but it's streamable).

Another solution is to use the --height and --width vlc options. (these should be available somewhere in the prefs)

Posted: 08 Mar 2005 14:35
by rick_f
Ok, the transcode solution did not seem to work as it would not change it's aspect ratio for me. But I did finally come up with a workable solution.

If I set aspect=1.0 and then turn on fullscreen the video will properly fill the entire screen. Granted some vidoes may be stretched depending on their original aspecty ratio but this is what I was looking for.

Thanks for the suggestions.

Rick