Page 1 of 1

aspect-ratio

Posted: 15 Jun 2009 18:13
by antoine92330
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

Re: aspect-ratio

Posted: 16 Jun 2009 14:14
by thannoy
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.

Re: aspect-ratio

Posted: 16 Jun 2009 14:58
by antoine92330
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

Re: aspect-ratio

Posted: 16 Jun 2009 15:47
by VLC_help
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.

Re: aspect-ratio

Posted: 16 Jun 2009 16:26
by antoine92330
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

Re: aspect-ratio

Posted: 17 Jun 2009 17:29
by VLC_help
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.

Re: aspect-ratio

Posted: 18 Jun 2009 10:05
by antoine92330
Many thanks,

I understand the problem, i'll use mediainfo.

Antoine

Re: aspect-ratio

Posted: 19 Jun 2009 19:19
by antoine92330
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

Re: aspect-ratio

Posted: 20 Jun 2009 02:27
by Arite
Do you get the same issue with VLC 1.0.0(-rc4)?:
http://download.videolan.org/pub/testin ... rc4/win32/

Arite.

Re: aspect-ratio

Posted: 20 Jun 2009 10:18
by antoine92330
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

Re: aspect-ratio

Posted: 20 Jun 2009 10:31
by antoine92330
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

Re: aspect-ratio

Posted: 20 Jun 2009 22:51
by Arite
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.

Re: aspect-ratio

Posted: 21 Jun 2009 10:45
by antoine92330
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

Re: aspect-ratio

Posted: 21 Jun 2009 11:39
by tigre
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?

Re: aspect-ratio

Posted: 21 Jun 2009 15:33
by VLC_help
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).