[mythtv-users] Lossless cut error - last video segment not included in resulting video file

Doug Vaughan r.d.vaughan at rogers.com
Thu Nov 1 17:39:08 UTC 2012


Robert,
Unfortunately Lossless Cut gets no indication frommkvmerge that it did 
not append the last segment so it automatically cleans up the temporary 
workpath directory. There is awayfor you to easily recreate the 
individual segment files.

Run Lossless Cut from the command line on the recording with the issue 
but add the "-k" option:
 > ./lossless_cut -f "/path to/recorded.mpg" -m "/path to save to" -k
The -k will prevent the log file from being deleted. Now open the log 
file up with a text editor, unless you changed the workpath, it willlook 
something like "/tmp/2575_20121101110000.log"

In the log file is every command line that was executed to do a Lossless 
Cut including the one that made all the segments before they were 
merged. You can copy that line and then paste it into a terminal session 
then hit enter.After it is done you will have all the segment files.

Search for "mkvmerge perform cuts command". e.g.:
2012-10-12 14:43:21,335 - INFO - mkvmerge perform cuts command:
 > mkvmerge -o "/tmp/lossless_cut/1081_20121012003000-%04d.mkv" --split 
parts:00:00:01.001001001-00:06:48.708708709,00:09:09.749749750-00:14:59.199199199,00:18:29.709709710-00:22:37.157157157,00:24:47.420754087-00:26:48.208208208 
"/mythtv_storage2/recordings/1081_20121012003000.mpg"

In this same log there is the merge command, search for "mkvmerge create 
final mkv video file command".

FYI: The same HDHomerun user who experienced this issue also has another 
channel specific issue(ABC), where Lossless Cut creates audio only 
cutswith no video track. During my investigation it was noticedthat 
these recordings could be compressed in an archive (bz2) over 50% 
smaller than the original file. Normally you do not get anywhere close 
tothat kind of compression with an mpg file. It was the only thing that 
stood out with these files otherwise they played fine even after 
extraction from the archive. This is still an outstanding issuewhich is 
mentioned on the wiki's Known Limitations section.

Good luck and I hope you spot something. I am very interested in 
including the HDHomerun as a fully supported recording device.

Thanks

Doug


More information about the mythtv-users mailing list