[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

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 

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.



More information about the mythtv-users mailing list