<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.0.5-31880">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>MythTranscode options</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hello all,</p><p>&nbsp;</p><p>I&#39;ve been looking into using MythTranscode to try to perform a lossless transcode of some of my recordings from MPEG2 TS to MPEG2 PS for playback on one of our UPnP TVs.</p><p>&nbsp;</p><p>Whilst doing some testing with different command line options for MythTranscode, I wanted to see what the &quot;-e OR --ostream&quot; option does. From &quot;mythtranscode --help&quot;, I&#39;m told that I can use &quot;mythtranscode --ostream ps&quot; OR &quot;mythtranscode --ostream dvd&quot; depending on what output type I want.</p><p>&nbsp;</p><p>So, it looks like I need to use &quot;--ostream ps&quot; for my particular scenario...</p><p>&nbsp;</p><p>I tried &quot;mythtranscode -i 1006_20120320192800.mpg --mpeg2 -o 1006_20120320192800.myth.ps.mpg --ostream ps --honorcutlist --showprogress&quot; but then I get &quot;Invalid &#39;ostream&#39; type: ps&quot;</p><p>&nbsp;</p><p>I&#39;ve searched high and low, but I couldn&#39;t find any mention of this option not working for others.</p><p>&nbsp;</p><p>So, I decided to have a look at the code, specifically in main.cpp:</p><p>&nbsp;</p><pre><div id="LC354" style="background-color: rgb(255, 255, 204);">&nbsp;&nbsp;&nbsp;&nbsp;if (cmdline.toBool(&quot;ostream&quot;))</div><div id="LC355" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;{</div><div id="LC356" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (cmdline.toString(&quot;ostream&quot;) == &quot;dvd&quot;)</div><div id="LC357" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;otype = REPLEX_DVD;</div><div id="LC358" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (cmdline.toString(&quot;ostream&quot;) == &quot;ts&quot;)</div><div id="LC359" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;otype = REPLEX_TS_SD;</div><div id="LC360" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else</div><div id="LC361" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</div><div id="LC362" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cerr &lt;&lt; &quot;Invalid &#39;ostream&#39; type: &quot;</div><div id="LC363" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;&lt; cmdline.toString(&quot;ostream&quot;).toLocal8Bit().constData()</div><div id="LC364" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;&lt; endl;</div><div id="LC365" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return GENERIC_EXIT_INVALID_CMDLINE;</div><div id="LC366" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div><div id="LC367" style="background-color: transparent;">&nbsp;&nbsp;&nbsp;&nbsp;}</div><p>&nbsp;</p><p><span style="font-family: Arial;">Now, to my (non-developer, but I&#39;ve dabbled with code) head, this doesn&#39;t look right. To me, the code is expecting &quot;--ostream ts OR dvd&quot;, not &quot;ps OR dvd&quot; as the help output says it is.<br /><br /></span></p><p><span style="font-family: Arial;">Furthermore, if I do indeed give mythtranscode &quot;--ostream ts&quot;, it proceeds, but I&#39;m not sure if this does actually give me a PS or TS output file -- will check this later to make sure -- however the rest of the code suggest to me that it will give a TS container.<br /><br /></span></p><p><span style="font-family: Arial;">Can anyone verify this behaviour on their end too?<br /></span></p><p><span style="font-family: Arial;"><br />I&#39;m using the following Myth version:<br /></span></p><p><span style="font-family: Arial;"><br />joe@MythTVServer1:~$ mythtranscode --version<br />Please attach all output as a file in bug reports.<br />MythTV Version : v0.25-rc-35-g15a7daf<br />MythTV Branch : master<br />Network Protocol : 72<br />Library API : 0.25.20120315-2<br />QT Version : 4.6.2<br />Options compiled in:<br /> linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_ceton using_hdpvr using_iptv using_ivtv using_joystick_menu using_libcrypto using_libdns_sd using_libxml2 using_lirc using_mheg using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_v4l1 using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg using_libxml2<br /></span></p><p>&nbsp;</p><p><span style="font-family: Arial;">If the above is indeed right, then I apologise - I am merely trying to give something back to the community - I do not mean any offence with this email.<br /></span></p><p><span style="font-family: Arial;"><br />Cheers,</span><span style="font-family: Arial;"><br /></span></p><p><span style="font-family: Arial;"><br />Joe</span></p></pre>
</body>
</html>