<div>Folks,</div>
<div>&nbsp;</div>
<div>After much experimentation and many CPU hours I think I&#39;ve found a&nbsp;formula that works for</div>
<div>converting mpeg4 nuv files e.g. transcoded from mpeg2 originals to save space into MPEG4 (DIVX) avi files WITHOUT reencoding.</div>
<div>&nbsp;</div>
<div>(If you don&#39;t mind re-encoding the video, and the attendant time and loss of quality,&nbsp;then &quot;nuvexport&quot; as recommended by many on this list is the easiest solution I&#39;ve found).</div>
<div>&nbsp;</div>
<div>My&nbsp;magic spell&nbsp;is:</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; 1) Use&nbsp;&nbsp;&nbsp; nuv2avi -i FILE.nuv -o OUT1.avi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to&nbsp;get the mpeg4 video and audio from the nuv into an avi file.</div>
<div>&nbsp;</div>
<div>&nbsp; Unfortunately I found that after this process the sound is corrupted when I play in mplayer and vlc on Windows (Myth&#39;s Internal player has no problems however).</div>
<div>SO:</div>
<div>&nbsp;</div>
<div>Either:</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; METHOD A</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Split off the sound from OUT1.avi and re-multiplex....</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ffmpeg -i OUT1.avi -vn -acodec copy OUT.mp3</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ffmpeg -i OUT1.avi -map 0:0 -i OUT.mp3 -map 1:0 -acodec copy -vcodec copy&nbsp;&nbsp; FINAL.avi</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
<div>This didn&#39;t always work though so you could try:</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;METHOD B</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nuvexport --mode mp3 -i FILE.nuv&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Use nuvexport to get the soundtrack via mythtranscode)</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ffmpeg -i OUT1.avi -map 0:0 -i NUVEXPORTOUTPUT.mp3 -map 1:0 -acodec copy -vcodec copy&nbsp;&nbsp; FINAL.avi</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;METHOD A uses the original soundtrack in the NUV and just re multiplexes it.</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;METHOD B gets mythtranscode to &quot;play&quot; the file into lame to reencode it into mp3 again. I suspect this might have been needed because the files I used it on were transcoded with an audio bit rate of 32000 rather than 48000. I&#39;m not sure if nuv2avi was able to handle this.
</div>
<div>&nbsp;</div>
<div>(For links to nuv2avi search the mail archives).</div>
<div>&nbsp;</div>
<div>Problems:</div>
<div>&nbsp;</div>
<div>Aspect Ratio: For 4:3 files e.g. from a PVR-150 this process works well.</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For other aspect ratios it all depends on what you are using to play the file back.</div>
<div>Software players like myth and mplayer are very flexible in how they display the avi.</div>
<div>Hardware players usually are not, this can mean that in order to get the picture right on your TV you need to reencode to the right size. It&#39;s probably easier to use nuvexport for this.</div>
<div>&nbsp;</div>
<div>I hope this helps someone in the future....</div>
<div>&nbsp;</div>
<div>and in future I&#39;ll probably be transcoding into avi in the first place...</div>
<div>&nbsp;</div>
<div>Cheers</div>
<div>&nbsp;</div>
<div>Steve</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>