StreaMonitor icon indicating copy to clipboard operation
StreaMonitor copied to clipboard

Incomplete temporary .ts files

Open dwa99 opened this issue 3 months ago • 5 comments

When I stop recordings from SC instead of .mp4 clips, app generates incomplete .tmp.ts files which are completely unreadable in media player. How to fix this ?

dwa99 avatar Sep 23 '25 20:09 dwa99

I think you're using the fork of xAstroBoy. Use the StripHelper to merge them.

DerBunteBall avatar Sep 23 '25 20:09 DerBunteBall

Im running the script in Windows, can you say something more, ie. what is StripHelper and what it does?

dwa99 avatar Sep 24 '25 05:09 dwa99

Which repository did you use to install?

I'm not sure what the mainline actually produces but I guess it should produce MP4 files. .tmp.ts is definitly produced by the fork I mentioned. If you used a fork or modified variant I'm nearly sure it's this.

There is a a utility in that repository which merges the .tmp.ts files and converts an MP4 out of that. This can be used on CLI as well as with a GUI. check the info in that repository.

If you used the mainline the problem might be something different.

DerBunteBall avatar Sep 24 '25 08:09 DerBunteBall

Thank you for clarification, I'm sure I run main repository. Script saves .mp4 files but sometimes (more or less 30% of captured streams) creates .tmp.ts files as output and I don't know what causes these disturbances.

dwa99 avatar Sep 24 '25 18:09 dwa99

This happens when ffmpeg stops and no following conversion is done.

The files should be playable e.g. with VLC which dan play MPEG-TS directly they also should be convertable with ffmpeg.

I'm not sure if mainline restarts recording for a still running stream if ffmpeg stops. So there might be multiple .tmp.ts files that can be concatinated and converter later.

DerBunteBall avatar Sep 24 '25 18:09 DerBunteBall