<div class="gmail_quote">Hi guys,<div><br></div><div>I have a set of .MTS files that I'm trying to splice. If I start at 0:00:00, the output video works fine. But if I start splicing any time after 0:00:00, the output video is empty. I've used the exact same command line with other .MTS files and had no problem. It seems like something specific to this Panasonic Lumix camera. MP4 and MOV files work fine too.</div>
<div><br></div><div>This repros in FFmpeg HEAD-8dfb13e, 0.10.2, and 0.8.3.
</div><div><br></div><div>Any ideas? Thanks!</div>
<div><br></div><div><div><font face="'courier new', monospace">Users-MacBook-Pro:ffmpeg-0.10.2 user$ <b>./ffmpeg <span style="background-color:rgb(255,255,0)">-ss 00:00:01</span> -t 00:00:25 -i 00004.MTS -threads 3 -acodec copy -vcodec copy "output.MTS"</b></font></div>
<div><font face="'courier new', monospace">ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers</font></div><div><font face="'courier new', monospace"> built on Apr 15 2012 23:02:27 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)</font></div>
<div><font face="'courier new', monospace"> configuration: --enable-static --disable-shared --disable-outdev=sdl --enable-runtime-cpudetect --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --arch=x86_64 --sysroot=/Developer/SDKs/MacOSX10.7.sdk --extra-cflags='-isysroot /Developer/SDKs/MacOSX10.7.sdk'</font></div>
<div><font face="'courier new', monospace"> libavutil 51. 35.100 / 51. 35.100</font></div><div><font face="'courier new', monospace"> libavcodec 53. 61.100 / 53. 61.100</font></div><div><font face="'courier new', monospace"> libavformat 53. 32.100 / 53. 32.100</font></div>
<div><font face="'courier new', monospace"> libavdevice 53. 4.100 / 53. 4.100</font></div><div><font face="'courier new', monospace"> libavfilter 2. 61.100 / 2. 61.100</font></div><div><font face="'courier new', monospace"> libswscale 2. 1.100 / 2. 1.100</font></div>
<div><font face="'courier new', monospace"> libswresample 0. 6.100 / 0. 6.100</font></div><div><font face="'courier new', monospace">Input #0, mpegts, from '00004.MTS':</font></div><div><font face="'courier new', monospace"> Duration: 00:01:24.57, start: 0.632622, bitrate: 15063 kb/s</font></div>
<div><font face="'courier new', monospace"> Program 1 </font></div><div><font face="'courier new', monospace"> Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 119.88 tbc</font></div>
<div><font face="'courier new', monospace"> Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s</font></div><div><font face="'courier new', monospace"> Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)</font></div>
<div><font face="'courier new', monospace">[mpegts @ 0x7f990c054000] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts</font></div><div><font face="'courier new', monospace">Output #0, mpegts, to 'output.MTS':</font></div>
<div><font face="'courier new', monospace"> Metadata:</font></div><div><font face="'courier new', monospace"> encoder : Lavf53.32.100</font></div><div><font face="'courier new', monospace"> Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 59.94 tbc</font></div>
<div><font face="'courier new', monospace"> Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s</font></div><div><font face="'courier new', monospace">Stream mapping:</font></div><div>
<font face="'courier new', monospace"> Stream #0:0 -> #0:0 (copy)</font></div><div><font face="'courier new', monospace"> Stream #0:1 -> #0:1 (copy)</font></div><div><font face="'courier new', monospace">Press [q] to stop, [?] for help</font></div>
<div><font face="'courier new', monospace">frame= 0 fps= 0 q=-1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s frame= 0 fps= 0 q=-1.0 Lsize= 657kB time=00:00:00.00 bitrate= 0.0kbits/s </font></div>
<div><font face="'courier new', monospace"><span style="background-color:rgb(255,255,0)">video:0kB audio:586kB</span><span> global headers:0kB muxing overhead 11.940537%</span></font></div>
<div><br></div></div><div><br></div><div><font face="arial, helvetica, sans-serif">If I use -ss 0:00:00, it works fine:</font></div><div><div><font face="'courier new', monospace">Users-MacBook-Pro:ffmpeg-0.10.2 user$ <b>./ffmpeg <span style="background-color:rgb(255,255,0)">-ss 00:00:00</span> -t 00:00:25 -i 00004.MTS -threads 3 -acodec copy -vcodec copy "output.MTS"</b></font></div>
<div><font face="'courier new', monospace">ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers</font></div><div><font face="'courier new', monospace"> built on Apr 15 2012 23:02:27 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)</font></div>
<div><font face="'courier new', monospace"> configuration: --enable-static --disable-shared --disable-outdev=sdl --enable-runtime-cpudetect --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --arch=x86_64 --sysroot=/Developer/SDKs/MacOSX10.7.sdk --extra-cflags='-isysroot /Developer/SDKs/MacOSX10.7.sdk'</font></div>
<div><font face="'courier new', monospace"> libavutil 51. 35.100 / 51. 35.100</font></div><div><font face="'courier new', monospace"> libavcodec 53. 61.100 / 53. 61.100</font></div><div><font face="'courier new', monospace"> libavformat 53. 32.100 / 53. 32.100</font></div>
<div><font face="'courier new', monospace"> libavdevice 53. 4.100 / 53. 4.100</font></div><div><font face="'courier new', monospace"> libavfilter 2. 61.100 / 2. 61.100</font></div><div><font face="'courier new', monospace"> libswscale 2. 1.100 / 2. 1.100</font></div>
<div><font face="'courier new', monospace"> libswresample 0. 6.100 / 0. 6.100</font></div><div><font face="'courier new', monospace">Input #0, mpegts, from '00004.MTS':</font></div><div><font face="'courier new', monospace"> Duration: 00:01:24.57, start: 0.632622, bitrate: 15063 kb/s</font></div>
<div><font face="'courier new', monospace"> Program 1 </font></div><div><font face="'courier new', monospace"> Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 119.88 tbc</font></div>
<div><font face="'courier new', monospace"> Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s</font></div><div><font face="'courier new', monospace"> Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)</font></div>
<div><font face="'courier new', monospace">File 'output.MTS' already exists. Overwrite ? [y/N] y</font></div><div><font face="'courier new', monospace">muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts</font></div>
<div><font face="'courier new', monospace">Output #0, mpegts, to 'output.MTS':</font></div><div><font face="'courier new', monospace"> Metadata:</font></div><div><font face="'courier new', monospace"> encoder : Lavf53.32.100</font></div>
<div><font face="'courier new', monospace"> Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 59.94 tbc</font></div><div><font face="'courier new', monospace"> Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s</font></div>
<div><font face="'courier new', monospace">Stream mapping:</font></div><div><font face="'courier new', monospace"> Stream #0:0 -> #0:0 (copy)</font></div><div><font face="'courier new', monospace"> Stream #0:1 -> #0:1 (copy)</font></div>
<div><font face="'courier new', monospace">Press [q] to stop, [?] for help</font></div><div><font face="'courier new', monospace">frame= 640 fps= 0 q=-1.0 size= 40390kB time=00:00:21.33 bitrate=15506.5kbits/sframe= 750 fps= 0 q=-1.0 Lsize= 46332kB time=00:00:25.00 bitrate=15177.2kbits/s </font></div>
<div><font face="'courier new', monospace"><span style="background-color:rgb(255,255,0)">video:42293kB audio:586kB</span> global headers:0kB muxing overhead 8.053502%</font></div><div style="font-family:arial,helvetica,sans-serif">
<br></div><div style="font-family:arial,helvetica,sans-serif"><br></div></div><div style="font-family:arial,helvetica,sans-serif">The input video can be downloaded here: <a href="http://dl.dropbox.com/u/28441949/00004.MTS" target="_blank">http://dl.dropbox.com/u/28441949/00004.MTS</a> </div>
<div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Here's what MediaInfo says about the input video:</div>
<div>
<div><font face="'courier new', monospace">General</font></div><div><font face="'courier new', monospace">ID : 0 (0x0)</font></div><div><font face="'courier new', monospace">Complete name : K:\PRIVATE\AVCHD\BDMV\STREAM\00004.MTS</font></div>
<div><font face="'courier new', monospace">Format : BDAV</font></div><div><font face="'courier new', monospace">Format/Info : Blu-ray Video</font></div><div>
<font face="'courier new', monospace">File size : 152 MiB</font></div>
<div><font face="'courier new', monospace">Duration : 1mn 24s</font></div><div><font face="'courier new', monospace">Overall bit rate : 15.1 Mbps</font></div><div><font face="'courier new', monospace">Maximum Overall bit rate : 18.0 Mbps</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">Video</font></div><div><font face="'courier new', monospace">ID : 4113 (0x1011)</font></div>
<div><font face="'courier new', monospace">Menu ID : 1 (0x1)</font></div><div><font face="'courier new', monospace">Format : AVC</font></div><div><font face="'courier new', monospace">Format/Info : Advanced Video Codec</font></div>
<div><font face="'courier new', monospace">Format profile : High@L4.0</font></div><div><font face="'courier new', monospace">Format settings, CABAC : No</font></div><div><font face="'courier new', monospace">Format settings, ReFrames : 1 frame</font></div>
<div><font face="'courier new', monospace">Frame mode : Frame doubling</font></div><div><font face="'courier new', monospace">Codec ID : 27</font></div><div><font face="'courier new', monospace">Duration : 1mn 24s</font></div>
<div><font face="'courier new', monospace">Bit rate mode : Variable</font></div><div><font face="'courier new', monospace">Bit rate : 14.3 Mbps</font></div><div>
<font face="'courier new', monospace">Maximum bit rate : 16.6 Mbps</font></div>
<div><font face="'courier new', monospace">Width : 1 280 pixels</font></div><div><font face="'courier new', monospace">Height : 720 pixels</font></div>
<div>
<font face="'courier new', monospace">Display aspect ratio : 16:9</font></div><div><font face="'courier new', monospace">Frame rate : 29.970 fps</font></div><div><font face="'courier new', monospace">Standard : NTSC</font></div>
<div><font face="'courier new', monospace">Color space : YUV</font></div><div><font face="'courier new', monospace">Chroma subsampling : 4:2:0</font></div><div><font face="'courier new', monospace">Bit depth : 8 bits</font></div>
<div><font face="'courier new', monospace">Scan type : Progressive</font></div><div><font face="'courier new', monospace">Bits/(Pixel*Frame) : 0.516</font></div><div><font face="'courier new', monospace">Stream size : 144 MiB (95%)</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">Audio</font></div><div><font face="'courier new', monospace">ID : 4352 (0x1100)</font></div>
<div><font face="'courier new', monospace">Menu ID : 1 (0x1)</font></div><div><font face="'courier new', monospace">Format : AC-3</font></div><div><font face="'courier new', monospace">Format/Info : Audio Coding 3</font></div>
<div><font face="'courier new', monospace">Mode extension : CM (complete main)</font></div><div><font face="'courier new', monospace">Codec ID : 129</font></div><div>
<font face="'courier new', monospace">Duration : 1mn 24s</font></div><div><font face="'courier new', monospace">Bit rate mode : Constant</font></div><div><font face="'courier new', monospace">Bit rate : 192 Kbps</font></div>
<div><font face="'courier new', monospace">Channel(s) : 2 channels</font></div><div><font face="'courier new', monospace">Channel positions : Front: L R</font></div><div>
<font face="'courier new', monospace">Sampling rate : 48.0 KHz</font></div><div><font face="'courier new', monospace">Bit depth : 16 bits</font></div><div><font face="'courier new', monospace">Compression mode : Lossy</font></div>
<div><font face="'courier new', monospace">Stream size : 1.94 MiB (1%)</font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">Text</font></div>
<div><font face="'courier new', monospace">ID : 4608 (0x1200)</font></div><div><font face="'courier new', monospace">Menu ID : 1 (0x1)</font></div><div>
<font face="'courier new', monospace">Format : PGS</font></div><div><font face="'courier new', monospace">Codec ID : 144</font></div><div><font face="'courier new', monospace">Duration : 1mn 24s</font></div>
</div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"><br></font></div>
</div><br>