<div>Folks,</div>
<div> </div>
<div>After much experimentation and many CPU hours I think I've found a 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> </div>
<div>(If you don't mind re-encoding the video, and the attendant time and loss of quality, then "nuvexport" as recommended by many on this list is the easiest solution I've found).</div>
<div> </div>
<div>My magic spell is:</div>
<div> </div>
<div> 1) Use nuv2avi -i FILE.nuv -o OUT1.avi </div>
<div> to get the mpeg4 video and audio from the nuv into an avi file.</div>
<div> </div>
<div> Unfortunately I found that after this process the sound is corrupted when I play in mplayer and vlc on Windows (Myth's Internal player has no problems however).</div>
<div>SO:</div>
<div> </div>
<div>Either:</div>
<div> METHOD A</div>
<div> Split off the sound from OUT1.avi and re-multiplex....</div>
<div> ffmpeg -i OUT1.avi -vn -acodec copy OUT.mp3</div>
<div> ffmpeg -i OUT1.avi -map 0:0 -i OUT.mp3 -map 1:0 -acodec copy -vcodec copy FINAL.avi</div>
<div> </div>
<div>This didn't always work though so you could try:</div>
<div> </div>
<div> METHOD B</div>
<div> nuvexport --mode mp3 -i FILE.nuv (Use nuvexport to get the soundtrack via mythtranscode)</div>
<div> ffmpeg -i OUT1.avi -map 0:0 -i NUVEXPORTOUTPUT.mp3 -map 1:0 -acodec copy -vcodec copy FINAL.avi</div>
<div> </div>
<div> METHOD A uses the original soundtrack in the NUV and just re multiplexes it.</div>
<div> METHOD B gets mythtranscode to "play" 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'm not sure if nuv2avi was able to handle this.
</div>
<div> </div>
<div>(For links to nuv2avi search the mail archives).</div>
<div> </div>
<div>Problems:</div>
<div> </div>
<div>Aspect Ratio: For 4:3 files e.g. from a PVR-150 this process works well.</div>
<div> 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's probably easier to use nuvexport for this.</div>
<div> </div>
<div>I hope this helps someone in the future....</div>
<div> </div>
<div>and in future I'll probably be transcoding into avi in the first place...</div>
<div> </div>
<div>Cheers</div>
<div> </div>
<div>Steve</div>
<div> </div>
<div> </div>
<div><br> </div>