[MEncoder-users] ID_VIDEO_ASPECT=0.0000 with mplayer -identify
Nico Sabbi
nicola_sabbi at fastwebnet.it
Fri Oct 6 23:49:21 CEST 2006
Ivo wrote:
>On Friday 06 October 2006 21:00, Ermanno wrote:
>
>
>>I already posted this to the mplayer-dvb ml but this seems the rigth
>>place to ask for this problem.
>>I am a user of vdr a nice program to turn the pc into a video-recorder,
>>it creates .vdr files from a dvb card (probably simply saves to a file
>>what the card generates), to trasform this files to avi I use the vdrrip
>>plugin which in turn uses mplayer to do the job. The problem is that the
>>latest versions of mplayer always returns ID_VIDEO_ASPECT=0.0000 for the
>>files generated by vdr and the plugin relies on this value to compute
>>the correct resize values. Most channels are 4:3 so a with quick&dirty
>>
>>
>
>For some files, the correct(ed) aspect ratio of the frames is somehow not
>known before at least one frame has been decoded. mplayer -identify -frames
>1 -ao null -vo null will yield the correct aspect ratio. Note that
>ID_VIDEO_ASPECT is printed twice in that case.
>
>--Ivo
>
>
uhm, in this case he's right. The code that assigned the aspect in video.c
(that I removed months ago) has to be added to vd_mpegpes.c
More information about the MEncoder-users
mailing list