pytivo
pytivo copied to clipboard
Uses all memory when navigating
I recently upgraded to your 5/9/2018 commit via git pull. When navigating to a certain directory of .mp4 files, pyTivo quickly consumes all free memory (~6 of my 8 gig) on my Ubuntu 16.04 machine. I watch it with htop, it takes only a few seconds.
This directory contains files I've captured off a live stream.
The memory problems happens when I enter the directory, not transferring a file.
I moved the .meta directory and verified that it happens with just the .mp4 files.
I am attaching the output of ffprobe on one of the files. probe03.txt
I pulled the 1/1/2017 version and it happened with that one too.
I tried leaving individual files in the directory. The probe of the file that causes it is linked above. This is a diff of that probe with one from a similar file that does not cause the problem.
The "03.mp4" file below is the problem one. It has a higher bitrate. The file plays OK in VLC.
$ diff probe0?.txt
13c13
< Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'REDACTED 2018-08-01.mp4':
---
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'REDACTED 2018-08-03.mp4':
19,20c19,20
< Duration: 01:00:19.99, start: 0.010000, bitrate: 4280 kb/s
< Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, Closed Captions, 4176 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
---
> Duration: 01:00:10.01, start: 0.007007, bitrate: 5041 kb/s
> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, Closed Captions, 4183 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)