[mythtv-users] Transcoding MPEG2 HD Recording to MPEG2 SD

John Finlay finlay at moeraki.com
Fri Sep 25 20:18:34 UTC 2009


jansenj wrote:
>
>          
>
>     I use a command line like:
>
>     ffmpeg -i orig.mpg -target ntsc-dvd -sameq -acodec copy -async 1
>     transcoded.mpg
>
>
> I assume you would have to put this in a little script so that you can 
> rm orig.mpg, then rename transcoded.mpg to orig.mpg in order for the 
> database to know where the file is, otherwise you'd have to issue some 
> sort of database update command.  Would you have to re-issue any other 
> additional commands? 
To reinsert in the original location I use:

mv orig.mpg orig.mpg.old
mv transcoded.mpg orig.mpg
mythtranscode --mpeg2 --buildindex --allkeys --showprogress --infile 
orig.mpg

Then if the transcoded file has problems I still have the original.

John



More information about the mythtv-users mailing list