Page 1 of 1

Transcoding with Force aspect ratio

Posted: 31 Mar 2014 10:51
by kodela
Is it possible to force the aspect ratio for transcoding a video?
If so, what settings are required?

The height should be maintained. The width should be doubled.

The solution posted here is not suitable, it makes the video wider, but also higher and is then trimmed in the height.

Re: Transcoding with Force aspect ratio

Posted: 08 Apr 2014 23:43
by kodela
Can no one say something about?

Re: Transcoding with Force aspect ratio

Posted: 09 Apr 2014 12:46
by mederi
Check this thread: https://forum.videolan.org/viewtopic.ph ... 31#p380583
Try some different combinations of values.
If you will find out, that it does not work, file a bug report.

Re: Transcoding with Force aspect ratio

Posted: 10 Apr 2014 12:53
by kodela
Hallo mederi,

probably the problem I have described no good and I shall therefore describe it in detail again.

A 3D video in side-by-side format to be converted to a 2D video.

Here is an example:

Image

For this purpose, the right half of the image to be cut off.
This was achieved under the version 2.0.8 with the following command line string:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" D:\VLC\3D_Test_1.mp4 --sout=#transcode{vcodec=h264,vb=1700,vfilter=croppadd{cropright=640},acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst=D:\\VLC\\\3D_Test_2.mp4}
After the video from the example looks like this:

Image

In a second step the video to be stretched to the original width.

For playback possible. They can be either

- in Preferences - All - Video the option Monitor pixel aspect ratio set on 0.5, or
- in Preferences - Simple - Video set for the option Force Aspect Ratio the originally aspect ratio (in this example 16:9).

So the video is played back:

Image

How can the video be stored in this stretched form?

For the Croppadd filter I find no setting for stretching to double pixel width or forcing a fixed aspect ratio.

I can adjust the aspect ratio on the canvas video filter. But the adaptation to the given aspect ratio, while retaining the proportionality. When it is stretched in the width, is extended in the height.

How can I solve this problem?

Thanks for any help,
kodela

Re: Transcoding with Force aspect ratio

Posted: 14 Apr 2014 23:36
by kodela
Can really no one say whether the transcoding with stretching is possible?

Re: Transcoding with Force aspect ratio

Posted: 15 Apr 2014 16:33
by mederi
I tried to transcode a video sample with some resizing options, but could not get any good results.

Re: Transcoding with Force aspect ratio

Posted: 15 Apr 2014 17:46
by kodela
Hello mederi,

thank you for your attempts.

It really seems to be such that the VLC can play a video stretched, but he can not save it stretched.

That is very unfortunate.

Re: Transcoding with Force aspect ratio

Posted: 20 Sep 2014 14:16
by kodela
Hello mederi,

I have the solution, not the VLC, but about Handbrake.

Here's my approach with the example video (640x720 resolution):

Set in section Picture for Anamorphic Custom.
Set for DisplayWidth 1280.
Set for PAR Width 2.
Set for PAR Height 1.

The remaining settings can be left in place.

After converting the video has a resolution of 640x720 unchanged, but is displayed with 1280x720.

kodela