<!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> </p><p>I'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> </p><p>Whilst doing some testing with different command line options for MythTranscode, I wanted to see what the "-e OR --ostream" option does. From "mythtranscode --help", I'm told that I can use "mythtranscode --ostream ps" OR "mythtranscode --ostream dvd" depending on what output type I want.</p><p> </p><p>So, it looks like I need to use "--ostream ps" for my particular scenario...</p><p> </p><p>I tried "mythtranscode -i 1006_20120320192800.mpg --mpeg2 -o 1006_20120320192800.myth.ps.mpg --ostream ps --honorcutlist --showprogress" but then I get "Invalid 'ostream' type: ps"</p><p> </p><p>I've searched high and low, but I couldn't find any mention of this option not working for others.</p><p> </p><p>So, I decided to have a look at the code, specifically in main.cpp:</p><p> </p><pre><div id="LC354" style="background-color: rgb(255, 255, 204);"> if (cmdline.toBool("ostream"))</div><div id="LC355" style="background-color: transparent;"> {</div><div id="LC356" style="background-color: transparent;"> if (cmdline.toString("ostream") == "dvd")</div><div id="LC357" style="background-color: transparent;"> otype = REPLEX_DVD;</div><div id="LC358" style="background-color: transparent;"> else if (cmdline.toString("ostream") == "ts")</div><div id="LC359" style="background-color: transparent;"> otype = REPLEX_TS_SD;</div><div id="LC360" style="background-color: transparent;"> else</div><div id="LC361" style="background-color: transparent;"> {</div><div id="LC362" style="background-color: transparent;"> cerr << "Invalid 'ostream' type: "</div><div id="LC363" style="background-color: transparent;"> << cmdline.toString("ostream").toLocal8Bit().constData()</div><div id="LC364" style="background-color: transparent;"> << endl;</div><div id="LC365" style="background-color: transparent;"> return GENERIC_EXIT_INVALID_CMDLINE;</div><div id="LC366" style="background-color: transparent;"> }</div><div id="LC367" style="background-color: transparent;"> }</div><p> </p><p><span style="font-family: Arial;">Now, to my (non-developer, but I've dabbled with code) head, this doesn't look right. To me, the code is expecting "--ostream ts OR dvd", not "ps OR dvd" as the help output says it is.<br /><br /></span></p><p><span style="font-family: Arial;">Furthermore, if I do indeed give mythtranscode "--ostream ts", it proceeds, but I'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'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> </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>