aspect-ratio

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.
antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

aspect-ratio

Postby antoine92330 » 15 Jun 2009 18:13

Hi !
Many thanks for the product and congratulations for the job.

I use heavily VLC ( and now testing rc3 ) to :
- view my Orange ADSL TV,
- capture it ( either RAW or online converted to mpg format )
- and finally I use VLC to convert the raw captured files ( *.ts ) into mpg files.

Eveything works just fine ( I dont need FRIPTV anymore ...;;))
BUT I have a problem with the aspect-ratio ( 4:3 or 16:9 ) : VLC reads OK the stream but the converted files ( mpg ) have a wrong aspect-ratio.
so I use the program PVAStrumento.exe to correct the mpg files produced by VLC to set them with a good aspect-ratio.

I have tried everything I could find to set my command line ( and even modify vlcrc ) with no success !!!

Can you help ?? I can send you a file *.ts a coverted file mpg a corrected file ( by PVAS ) etc...

many thanks
antoine

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: aspect-ratio

Postby thannoy » 16 Jun 2009 14:14

When you tried to modify vlcrc, did you try this kind of modification?

Code: Select all

# string (Source aspect ratio) aspect-ratio=16:9
By the way, if yoiu use command line, this option can be interresting:

Code: Select all

--aspect-ratio <string> Source aspect ratio This forces the source aspect ratio. For instance, some DVDs claim to be 16:9 while they are actually 4:3. This can also be used as a hint for VLC when a movie does not have aspect ratio information. Accepted formats are x:y (4:3, 16:9, etc.) expressing the global image aspect, or a float value (1.25, 1.3333, etc.) expressing pixel squareness.

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 16 Jun 2009 14:58

Hi thannoy,


- yes i modified "aspect-ratio" in vlcrc

- yes i've tried "--aspect-ratio=16:9" in the command line

and it works when you just read a file, but if you transcode the file ( or the input stream ), it has no effect on the converted file.
thanks for answer

antoine

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: aspect-ratio

Postby VLC_help » 16 Jun 2009 15:47

aspect-ratio is only for local playback.
http://wiki.videolan.org/Transcode
in that script width, height and crop options are used to change transcoding aspect ratio.

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 16 Jun 2009 16:26

to VLC_help

OK many thanks ! that's what i figured out ! aspect-ratio is only for local display.

But then VLC has somehow and somewhere a bug : with a good 16:9 *.ts stream, the output ( transcoded file ) gets a 2.21:1 ratio..

hope this will be fixed in a future version.

meanwhile I will look into the script you mentionned. But I have some streams 4:3 and some 16:9, how can I know in advance weither the stream will be in 4:3 or 16:9 ?

many thanks.

antoine

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: aspect-ratio

Postby VLC_help » 17 Jun 2009 17:29

Tool called Mediainfo should report aspect ratio of files. But in .ts files the aspect ratio can change dynamically so you can run into problems.

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 18 Jun 2009 10:05

Many thanks,

I understand the problem, i'll use mediainfo.

Antoine

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 19 Jun 2009 19:19

Hi !

mediainfo works fine and i've noticed that :

- whatever I try, the transcoded file has a 2.2 ratio ( instead of 16:9 or 4:3 etc..) and VLC displays it in a wrong aspect
- my problem is mentionned in the Ticket #2793 and is ranked as enhancement

so hope a new parameter in the transcode options will allow me to force the aspect-ratio.

many thanks
Antoine

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: aspect-ratio

Postby Arite » 20 Jun 2009 02:27

Do you get the same issue with VLC 1.0.0(-rc4)?:
http://download.videolan.org/pub/testin ... rc4/win32/

Arite.
Don't use PMs for support questions.

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 20 Jun 2009 10:18

Hi Arite

Yes I get the same result with these command lines :


""
OutputConversion = --sout=#transcode{vcodec=mp2v`,fps=25codec=mpga`,vb=4096`,ab=128`,channels=2}:standard{access=file`,mux=ps`,dst=%OutDir%\%OutNameNoExt%.mpg}
Run %RutaVlc% -vvv %OutputConversion% %Archivo% vlc://quit , %VlcDir%
""

should I add something in the transcode parameters ??

info from madiainfo
Image

Image

Antoine

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 20 Jun 2009 10:31

Hi Arite

here is the log of the program PVAStrumento
file input : the transcoded file
file output: same name_00.mpg

""""""""

PVAStrumento 2.1.0.22
Parsing jobfiler

***
*** PVAStrumento 2.1.0.22
*** running at 06-20-2009 10:22
***


Stream info for
C:\Enregistrements_TV\20090620100327\20090620100327.mpg ( the transcoded file )( the transcoded file )

Found 1 video stream.
Found 1 MPEG audio stream.

VIDEO #1
Resolution 544 x 576

Aspect ratio is 2.21:1
Frame rate 25.00 fps
Nominal bitrate 4096000 bps
VBV size 224 kB
First PTS: 00:37:28.236

MPEG AUDIO #1
MPEG1, Layer 2
joint stereo,
sampled at 48.0 kHz.
Bitrate 128 kbps
Each frame contains 24.0 ms audio (384 bytes)
First PTS: 00:37:27.079


<<Make PS>>
Input: C:\Enregistrements_TV\20090620100327\20090620100327.mpg
Options
.. fixing startup delay.
.. fixing stream synch.
.. keeping track of audio offset accumulation.
.. strict checking of audio framing.
.. falling back to relaxed semantics on TS
.. TS192 processing is active.
.. patching AR to 16/9.
.. dropping GOPs longer than 980 KB
.. splitting on change of video format.
.. splitting on change of audio format.
.. splitting on number of audio tracks.
.. do not use AC3 substream header (VDR)
.. write AC3 substream header
.. clearing CDF
.. creating new GOP timecodes.
.. Splitting output at 2000 MB

and here mediainfo display ( and VLC displays the file OK )

Image

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: aspect-ratio

Postby Arite » 20 Jun 2009 22:51

This is presumably to do with the PS muxer. Does the same thing happen for MPEG-TS (mux=ts)? Anyway, looks like a bug. There is a trac ticket similar to this (for H.264 though and MPEG-TS):
https://trac.videolan.org/vlc/ticket/2793

Arite.
Don't use PMs for support questions.

antoine92330
Blank Cone
Blank Cone
Posts: 14
Joined: 07 Dec 2008 16:50

Re: aspect-ratio

Postby antoine92330 » 21 Jun 2009 10:45

Hi Arite,

I agree looks like the same bug 2793

I've tried mux=ts
- with vcodec=mp4V the transcoded file is OK but mediainfo doent display any info for the aspect ratio..
- with vcodec=mp2v the transcoded file is NOK bad aspectration

hope this can help.

many thanks
i can easily do tests so dont hesistate...

Antoine

tigre
New Cone
New Cone
Posts: 1
Joined: 21 Jun 2009 11:29

Re: aspect-ratio

Postby tigre » 21 Jun 2009 11:39

all the video clips is like zoomed inn when trying to play on all of windows video players? Is it a virus or a controll miss?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: aspect-ratio

Postby VLC_help » 21 Jun 2009 15:33

Is it a virus or a controll miss?
I haven't never heard about virus that would zoom the video :D If the video itself isn't encoded like that, it might be setting in container format that changes output image (or if you use FFDshow, you might have changed some settings from its control panel).


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests