<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Transcoding AVCHD (.mts or .m2ts) files using mencoder on Linux</title>
	<atom:link href="http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/</link>
	<description>This site is solar powered!</description>
	<lastBuildDate>Sat, 19 May 2012 03:18:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: byte00</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-20170</link>
		<dc:creator>byte00</dc:creator>
		<pubDate>Sun, 08 May 2011 07:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-20170</guid>
		<description>Where does the resulted file is stored?</description>
		<content:encoded><![CDATA[<p>Where does the resulted file is stored?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TGM</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-18594</link>
		<dc:creator>TGM</dc:creator>
		<pubDate>Fri, 10 Sep 2010 22:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-18594</guid>
		<description>Sorry for the late reply but... HandBrake can do it!</description>
		<content:encoded><![CDATA[<p>Sorry for the late reply but&#8230; HandBrake can do it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17955</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Sun, 03 Jan 2010 19:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17955</guid>
		<description>Just wanted to thank you for your sample command. I had to tweak it a bit (I&#039;m transcoding for a netbook) but other than nixing the FPS and setting the output resolution to something more netbook appropriate, it worked like a charm. Great sound, great picture, no artifacts. Love it! I&#039;ll probably compile this into a quick bash script for handy&#039;s sake.</description>
		<content:encoded><![CDATA[<p>Just wanted to thank you for your sample command. I had to tweak it a bit (I&#8217;m transcoding for a netbook) but other than nixing the FPS and setting the output resolution to something more netbook appropriate, it worked like a charm. Great sound, great picture, no artifacts. Love it! I&#8217;ll probably compile this into a quick bash script for handy&#8217;s sake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slonmron</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17748</link>
		<dc:creator>slonmron</dc:creator>
		<pubDate>Sat, 04 Jul 2009 09:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17748</guid>
		<description>P.P.S. Forgot to mention that with the above tools and script the Audio-Video sync is OK ;)</description>
		<content:encoded><![CDATA[<p>P.P.S. Forgot to mention that with the above tools and script the Audio-Video sync is OK <img src='http://slacy.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slonmron</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17747</link>
		<dc:creator>slonmron</dc:creator>
		<pubDate>Sat, 04 Jul 2009 09:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17747</guid>
		<description>This january I used the following software to convert AVCHD m2ts files from a Sony HD video camera with internal hard drive (the camera is not mine and I don&#039;t remember the exact model):

1. xport Transport Stream Demuxer, version 1.01 (2008-02-26):
http://www.w6rz.net/xport.zip

2. ldecod from jm15.0
current version is newer - 15.1 (2009-01-29):
http://iphome.hhi.de/suehring/tml/download/jm15.1.zip

3. transcode-1.0.7

4. SVN versions of ffmpeg or mplayer(mencoder):
ffmpeg-20081230.r16400
mplayer-20081230.r28215


And this is the script using ffmpeg and pipe. Commented commands are experiments, so you can try those, too. I hope the HTML will not break the script text, because there is no preview of the comment:

#!/bin/bash

for xsrc in &quot;$@&quot;; do

    xdestavi=&quot;${xsrc}.avi&quot;
    xdestmpg=&quot;${xsrc}.mpg&quot;

    xac3=&quot;${xsrc}.ac3&quot;
    xwav=&quot;${xsrc}.wav&quot;
    xmp3=&quot;${xsrc}.mp3&quot;
    xyuv=&quot;${xsrc}.yuv&quot;

    uuidstring=`uuidgen`
    xyuvfifo=&quot;/tmp/${xsrc}.${uuidstring}.fifo.yuv&quot;

    xporthdmv -h &quot;$xsrc&quot; 1 1 1 &#124;&#124; exit 1
    mv bits0001.mpa $xac3


    transcode -i &quot;$xac3&quot; -y null,wav -o &quot;$xwav&quot;

#    lame &quot;$xwav&quot; &quot;$xmp3&quot;

    mkfifo &quot;$xyuvfifo&quot;

    #ldecod -i bits0001.mpv -o $xyuv
    ldecod -i bits0001.mpv -o &quot;$xyuvfifo&quot; &amp;

#   mencoder &quot;$xyuv&quot; \
#     -demuxer rawvideo -rawvideo w=1440:h=1080 -aspect 16:9 -ofps 29.97 \
#     -audiofile &quot;$xmp3&quot; -oac copy -ovc lavc \
#     -o &quot;$xdestavi&quot;

#   mencoder &quot;$xyuv&quot; \
#     -demuxer rawvideo -rawvideo w=1440:h=1080 -aspect 16/9 -ofps 29.97 \
#     -audiofile &quot;$xmp3&quot; -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:aspect
#     -o &quot;$xdestavi&quot;

#SL: tozi e OK
#   mencoder &quot;$xyuv&quot; \
#     -demuxer rawvideo -rawvideo w=1440:h=1080 -aspect 16/9 -ofps 25 \
#     -audiofile &quot;$xmp3&quot; -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:aspect
#     -o &quot;$xdestavi&quot;

#   ffmpeg -r 29.97 -s 1440x1080 -vcodec mpeg4 -sameq -i &quot;$xyuv&quot; \
#       -acodec copy -i &quot;$xmp3&quot; \
#       -b 15000k &quot;$xdestavi&quot;

#   ffmpeg -r 25 -s 1440x1080 -i &quot;$xyuv&quot; \
#       -i &quot;$xmp3&quot; -acodec copy -vcodec mpeg4 -b 6000k -aspect 16:9 \
#       &quot;$xdestavi&quot;

#SL: tva za DVD e OK
#SL: 1. no fifo
#   ffmpeg -r 25 -s 1440x1080 -i &quot;$xyuv&quot; \
#       -i &quot;$xwav&quot; -target pal-dvd -b 6000k -aspect 16:9 \
#       &quot;$xdestmpg&quot;

#SL: 2. fifo
    ffmpeg -r 25 -s 1440x1080 -i &quot;$xyuvfifo&quot; \
        -i &quot;$xwav&quot; -target pal-dvd -b 6000k -aspect 16:9 \
        &quot;$xdestmpg&quot;

    rm &quot;$xyuvfifo&quot;
done



### script end


p.s. There are two reasons not to use Sony&#039;s original software for the purpose:
* it runs only in Windows
* the results were not goot if large area of water is in the movie, e.g. swimming pool - the source m2ts file is OK, but the converted one had many &quot;still&quot; frames</description>
		<content:encoded><![CDATA[<p>This january I used the following software to convert AVCHD m2ts files from a Sony HD video camera with internal hard drive (the camera is not mine and I don&#8217;t remember the exact model):</p>
<p>1. xport Transport Stream Demuxer, version 1.01 (2008-02-26):<br />
<a href="http://www.w6rz.net/xport.zip" rel="nofollow">http://www.w6rz.net/xport.zip</a></p>
<p>2. ldecod from jm15.0<br />
current version is newer &#8211; 15.1 (2009-01-29):<br />
<a href="http://iphome.hhi.de/suehring/tml/download/jm15.1.zip" rel="nofollow">http://iphome.hhi.de/suehring/tml/download/jm15.1.zip</a></p>
<p>3. transcode-1.0.7</p>
<p>4. SVN versions of ffmpeg or mplayer(mencoder):<br />
ffmpeg-20081230.r16400<br />
mplayer-20081230.r28215</p>
<p>And this is the script using ffmpeg and pipe. Commented commands are experiments, so you can try those, too. I hope the HTML will not break the script text, because there is no preview of the comment:</p>
<p>#!/bin/bash</p>
<p>for xsrc in &#8220;$@&#8221;; do</p>
<p>    xdestavi=&#8221;${xsrc}.avi&#8221;<br />
    xdestmpg=&#8221;${xsrc}.mpg&#8221;</p>
<p>    xac3=&#8221;${xsrc}.ac3&#8243;<br />
    xwav=&#8221;${xsrc}.wav&#8221;<br />
    xmp3=&#8221;${xsrc}.mp3&#8243;<br />
    xyuv=&#8221;${xsrc}.yuv&#8221;</p>
<p>    uuidstring=`uuidgen`<br />
    xyuvfifo=&#8221;/tmp/${xsrc}.${uuidstring}.fifo.yuv&#8221;</p>
<p>    xporthdmv -h &#8220;$xsrc&#8221; 1 1 1 || exit 1<br />
    mv bits0001.mpa $xac3</p>
<p>    transcode -i &#8220;$xac3&#8243; -y null,wav -o &#8220;$xwav&#8221;</p>
<p>#    lame &#8220;$xwav&#8221; &#8220;$xmp3&#8243;</p>
<p>    mkfifo &#8220;$xyuvfifo&#8221;</p>
<p>    #ldecod -i bits0001.mpv -o $xyuv<br />
    ldecod -i bits0001.mpv -o &#8220;$xyuvfifo&#8221; &amp;</p>
<p>#   mencoder &#8220;$xyuv&#8221; \<br />
#     -demuxer rawvideo -rawvideo w=1440:h=1080 -aspect 16:9 -ofps 29.97 \<br />
#     -audiofile &#8220;$xmp3&#8243; -oac copy -ovc lavc \<br />
#     -o &#8220;$xdestavi&#8221;</p>
<p>#   mencoder &#8220;$xyuv&#8221; \<br />
#     -demuxer rawvideo -rawvideo w=1440:h=1080 -aspect 16/9 -ofps 29.97 \<br />
#     -audiofile &#8220;$xmp3&#8243; -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:aspect<br />
#     -o &#8220;$xdestavi&#8221;</p>
<p>#SL: tozi e OK<br />
#   mencoder &#8220;$xyuv&#8221; \<br />
#     -demuxer rawvideo -rawvideo w=1440:h=1080 -aspect 16/9 -ofps 25 \<br />
#     -audiofile &#8220;$xmp3&#8243; -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:aspect<br />
#     -o &#8220;$xdestavi&#8221;</p>
<p>#   ffmpeg -r 29.97 -s 1440&#215;1080 -vcodec mpeg4 -sameq -i &#8220;$xyuv&#8221; \<br />
#       -acodec copy -i &#8220;$xmp3&#8243; \<br />
#       -b 15000k &#8220;$xdestavi&#8221;</p>
<p>#   ffmpeg -r 25 -s 1440&#215;1080 -i &#8220;$xyuv&#8221; \<br />
#       -i &#8220;$xmp3&#8243; -acodec copy -vcodec mpeg4 -b 6000k -aspect 16:9 \<br />
#       &#8220;$xdestavi&#8221;</p>
<p>#SL: tva za DVD e OK<br />
#SL: 1. no fifo<br />
#   ffmpeg -r 25 -s 1440&#215;1080 -i &#8220;$xyuv&#8221; \<br />
#       -i &#8220;$xwav&#8221; -target pal-dvd -b 6000k -aspect 16:9 \<br />
#       &#8220;$xdestmpg&#8221;</p>
<p>#SL: 2. fifo<br />
    ffmpeg -r 25 -s 1440&#215;1080 -i &#8220;$xyuvfifo&#8221; \<br />
        -i &#8220;$xwav&#8221; -target pal-dvd -b 6000k -aspect 16:9 \<br />
        &#8220;$xdestmpg&#8221;</p>
<p>    rm &#8220;$xyuvfifo&#8221;<br />
done</p>
<p>### script end</p>
<p>p.s. There are two reasons not to use Sony&#8217;s original software for the purpose:<br />
* it runs only in Windows<br />
* the results were not goot if large area of water is in the movie, e.g. swimming pool &#8211; the source m2ts file is OK, but the converted one had many &#8220;still&#8221; frames</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17458</link>
		<dc:creator>J</dc:creator>
		<pubDate>Fri, 02 Jan 2009 11:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17458</guid>
		<description>if you can&#039;t open them, try some of the software listed here http://dotwhat.net/mts/9029/ worked fine for me</description>
		<content:encoded><![CDATA[<p>if you can&#8217;t open them, try some of the software listed here <a href="http://dotwhat.net/mts/9029/" rel="nofollow">http://dotwhat.net/mts/9029/</a> worked fine for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r0bertz</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17357</link>
		<dc:creator>r0bertz</dc:creator>
		<pubDate>Thu, 20 Nov 2008 18:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17357</guid>
		<description>I also get this:
[h264 @ 0x11e64b0]Missing reference picture 0min 21mb A-V:-0.014 [2870:384]
[h264 @ 0x11e64b0]illegal short term buffer state detected
[h264 @ 0x11e64b0]Missing reference picture 0min 21mb A-V:-0.014 [2870:384]
[h264 @ 0x11e64b0]Missing reference picture

my work around is add &quot;-demuxer lavf&quot;

I am now using this command to convert m2ts file:
mencoder $i -o ${i}.avi -vc ffh264 -demuxer lavf -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000  -fps 50 -vf scale=640:360</description>
		<content:encoded><![CDATA[<p>I also get this:<br />
[h264 @ 0x11e64b0]Missing reference picture 0min 21mb A-V:-0.014 [2870:384]<br />
[h264 @ 0x11e64b0]illegal short term buffer state detected<br />
[h264 @ 0x11e64b0]Missing reference picture 0min 21mb A-V:-0.014 [2870:384]<br />
[h264 @ 0x11e64b0]Missing reference picture</p>
<p>my work around is add &#8220;-demuxer lavf&#8221;</p>
<p>I am now using this command to convert m2ts file:<br />
mencoder $i -o ${i}.avi -vc ffh264 -demuxer lavf -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000  -fps 50 -vf scale=640:360</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linux-tipps.blogspot.com</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17206</link>
		<dc:creator>linux-tipps.blogspot.com</dc:creator>
		<pubDate>Mon, 18 Aug 2008 00:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17206</guid>
		<description>I&#039;m getting closer an closer, but I still have A-V delay problems.

here&#039;s my current script
http://linux-tipps.blogspot.com/2008/08/comfortable-direct-hd-video-encoding.html</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting closer an closer, but I still have A-V delay problems.</p>
<p>here&#8217;s my current script<br />
<a href="http://linux-tipps.blogspot.com/2008/08/comfortable-direct-hd-video-encoding.html" rel="nofollow">http://linux-tipps.blogspot.com/2008/08/comfortable-direct-hd-video-encoding.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linux-tipps.blogspot.com</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-17204</link>
		<dc:creator>linux-tipps.blogspot.com</dc:creator>
		<pubDate>Sun, 17 Aug 2008 20:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-17204</guid>
		<description>It works well for me but at some point mplayer produces only garbled video and keeps showing me. 

[h264 @ 0x11e64b0]Missing reference picture 0min  21mb  A-V:-0.014 [2870:384]
[h264 @ 0x11e64b0]illegal short term buffer state detected
[h264 @ 0x11e64b0]Missing reference picture 0min  21mb  A-V:-0.014 [2870:384]
[h264 @ 0x11e64b0]Missing reference picture

Any idea?</description>
		<content:encoded><![CDATA[<p>It works well for me but at some point mplayer produces only garbled video and keeps showing me. </p>
<p>[h264 @ 0x11e64b0]Missing reference picture 0min  21mb  A-V:-0.014 [2870:384]<br />
[h264 @ 0x11e64b0]illegal short term buffer state detected<br />
[h264 @ 0x11e64b0]Missing reference picture 0min  21mb  A-V:-0.014 [2870:384]<br />
[h264 @ 0x11e64b0]Missing reference picture</p>
<p>Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://slacy.com/blog/2008/02/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/comment-page-1/#comment-16918</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 24 Apr 2008 23:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://slacy.com/blog/index.php/2008/02/12/transcoding-avchd-mts-or-m2ts-files-using-mencoder-on-linux/#comment-16918</guid>
		<description>I&#039;m trying to get my mts files to play in Ubuntu 7.10.  I installed MPlayer using &#039;Add/Remove Apps&quot;, but it does not play these files.  Now I&#039;ll admit I have no idea what top-of-trunk means.  Is there anything special I need to do to play mts files?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to get my mts files to play in Ubuntu 7.10.  I installed MPlayer using &#8216;Add/Remove Apps&#8221;, but it does not play these files.  Now I&#8217;ll admit I have no idea what top-of-trunk means.  Is there anything special I need to do to play mts files?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

