Transcoding with Force aspect ratio

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Transcoding with Force aspect ratio

Postby kodela » 31 Mar 2014 10:51

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.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Transcoding with Force aspect ratio

Postby kodela » 08 Apr 2014 23:43

Can no one say something about?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Transcoding with Force aspect ratio

Postby mederi » 09 Apr 2014 12:46

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.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Transcoding with Force aspect ratio

Postby kodela » 10 Apr 2014 12:53

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

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Transcoding with Force aspect ratio

Postby kodela » 14 Apr 2014 23:36

Can really no one say whether the transcoding with stretching is possible?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Transcoding with Force aspect ratio

Postby mederi » 15 Apr 2014 16:33

I tried to transcode a video sample with some resizing options, but could not get any good results.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Transcoding with Force aspect ratio

Postby kodela » 15 Apr 2014 17:46

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.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Transcoding with Force aspect ratio

Postby kodela » 20 Sep 2014 14:16

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 115 guests