wmcbrine / pytivo

pyTivo is both an HMO and GoBack server. Similar to TiVo Desktop pyTivo loads many standard video compression codecs and outputs mpeg2 video to the TiVo. However, pyTivo is able to load MANY more file types than TiVo Desktop.
http://pytivo.org/
127 stars 42 forks source link

Uses all memory when navigating #29

Open tlc opened 6 years ago

tlc commented 6 years ago

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

tlc commented 6 years ago

I pulled the 1/1/2017 version and it happened with that one too.

tlc commented 6 years ago

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)