DreamingWell Logo

Transcoding MythTV for UPnP transport to a PS3

Posted by Travis Collins on August 3, 2008

MythTV has a builtin UPnP server that can serve recorded shows to the PS3's UPnP client. However, the format that MythTV records may not be directly compatible with the PS3s video client.

I use the following user job in MythTV to transcode recorded videos to a format that is compatible for the PS3 over UPNP. My PCHDTV-5500 card captures audio in MPEG-PS and the PS3 will only play MPEG-TS formats (thus the requirement to transcode the video file).

Be sure to change the two instances of "/storage/mythtv" to your appropriate mythtv video directory.

mythcommflag -c %CHANID% -s %STARTTIME% --gencutlist; mythtranscode -c %CHANID% -s %STARTTIME% -p autodetect -m -e dvd --honorcutlist; mv /storage/mythtv/%FILE%.tmp /storage/mythtv/%FILE%; mythcommflag -c %CHANID% -s %STARTTIME% --rebuild --clearcutlist;

This is script performs the following steps:

  1. converts the already created commercial list into a "cut list"
    • Requires that commercial flagging run before this user job

  2. transcodes the captured video to a tmp file.

    • this step also cuts commercials


  3. overwrites the original capture file with the new file

  4. rebuilds the commercial flags so that a normal myth frontend doesn't skip the commercials that have been cut in the transcoding

Enter the script above as a "User Job" and enable that user job on any recordings (under advanced options in MythWeb) you'd like to be able to view on your PS3.

 

Comments

You specify -e dvd. I have some HD MPEG2 TS files that I converted w/ your command, and which then would not play properly w/ VLC. However, specifying -e ps lets me play them in VLC. I have not tried -e ps w/ a PS3 (as I don't have one). Try it out, if you would.

Comment by Martine Marietta at September 23, 2008 8:40 PM


When you use the -e ps option, the PS3 fails to play audio.

Comment by Travis Collins at September 30, 2008 3:12 PM


You can replace instances "/storage/mythtv" with %DIR%

Comment by Jussi Saarinen at February 13, 2009 5:05 AM


I use the following command to fix the missing audio from the final transcoded file.

ffmpeg -i %DIR%/%FILE% -f mpegts -vcodec copy -acodec copy %DIR%/%FILE%

This will force it into a TS, which makes the PS3 happy

Comment by CB at May 16, 2009 10:29 AM


Post a comment




Remember Me?


(you may use HTML tags for style)

Twitter Status


Fatal error: Class 'Memcache' not found in /var/www/vhosts/dreamingwell.com/httpdocs/includes/interface.inc.php on line 251