<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ian Grant wrote:
<blockquote cite="mid99E066E5F33FD7861DF29D09@chm-comp25.chm.bris.ac.uk"
 type="cite">
  <pre wrap="">--On 28 February 2006 2:02 PM -0500 Chris Pinkham <a class="moz-txt-link-rfc2396E" href="mailto:cpinkham@bc2va.org">&lt;cpinkham@bc2va.org&gt;</a> 
wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I received your files and they have the correct aspect in them, they have
an aspect of 2, so I assume that is still your modified code that passes
2.0 to SetVideoAspect. What does your nuvinfo say about the
transcoded.nuv file you emailed me?  Here's the output from mine:

P&lt;/tmp/ctp&gt; nuvinfo transcoded.nuv | more

info for: transcoded.nuv

                 aspect:  2
  audio_bits_per_sample:  16


--
Chris

    </pre>
  </blockquote>
  <pre wrap=""><!---->
First, thanks for looking at them.

That is.. bizarre -- here is my output:

info for: transcoded.nuv

                 aspect:  4:3
               aspect_f:  1.33333333333333
  audio_bits_per_sample:  16

info for: original.nuv

                 aspect:  16:9
               aspect_f:  1.77777777777778
          audio_bitrate:  256000
  audio_bits_per_sample:  16

How can that be? You're right, they are transcoded with 
SetVideoAspect(2.000).


Ian.

  </pre>
</blockquote>
<br>
Okay, so I found the following code in nuvinfo:<br>
<br>
             # Make some corrections for myth bugs<br>
156             $info{'audio_sample_rate'} = 44100 if
($info{'audio_sample_rate'} == 42501 || $info{'audio_sample_rate'} =~
/^44\d\d\d$/);<br>
157             $info{'aspect'} = '4:3';<br>
<br>
This appears to return 4:3 for nuv files regardless of what is in the
file?! I commented out line 157 there and I now get the correct aspect
ratio reported by nuvinfo, which is as you experienced above.<br>
Unfortunately they still play as 4:3 in VLC/MPC, so I must assume that
the error is in the detection with the player.<br>
<br>
On a side note, it appears nuvinfo uses 'mplayer -identify' to get the
aspect ratio for mpg files (or nuvs which are really mpeg).<br>
When I do mplayer -identify on a transcoded nuv file, it reports
'ID_VIDEO_ASPECT=0.0000'<br>
<br>
Here's what I think: mythtranscode writes the aspect ratio into the nuv
container, but not into the MPEG4 stream that is inside. MPEG2 mpg
files do contain this aspect ratio in the file.<br>
VLC/MPC client is unable to get the aspect ratio out of the nuv
container, and so attempts to use the aspect ratio in the video stream,
which works for MPEG2, but not transcoded MPEG4 streams.<br>
Probably a 'normal' Myth frontend doesn't experience this problem
because it can properly read the nuv container. Unfortunately I don't
have a proper frontend.<br>
What does anyone think? Am I wrong..?<br>
<br>
<br>
Ian.<br>
<br>
<br>
</body>
</html>