Memory leak when output is network drive

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
randomnumbers
Posts: 2
Joined: Tue Aug 07, 2012 5:10 am

Memory leak when output is network drive

Post by randomnumbers »

I have a NAS that has my BRD rips as ISO files. I use Virtual CloneDrive to mount them and HandBrake to encode them to the same network drive. On some movies (about 25% of what I have tried since I got the NAS), the encode will result in 100% memory usage and my page file being chewed up, causing a 2-3 hour encode to be manually canceled incomplete after 10-12 hours. Once all the RAM is used, HandBrake naturally slows to .01 frame/s or so (from ~26 normally). It happens every time with these movies, and not at all on others. Windows resource manager reports that HandBrakeCLI.exe never goes over 1GB used RAM, however the 'Modified' RAM will continuously grow until there is no Free or Standby RAM remaining.

I managed to eliminate the problem by creating the output file on a local HD rather than the network drive. The same movies will encode fine without restarting the machine or remounting the ISO. Even running the same instance of HandBrake without restarting it works fine as long as the output file is changed to a local disk.

Bandwidth is not a problem. It never exceeds 4MB/s on a Gigabit connection.

Versions: 0.9.8 and svn4898 tested
Downloaded 7/18 and 8/6 from the HandBrake.fr site and nightly build depository
Windows GUI on Windows 7
16GB RAM
Most recently occurred with Little Red Riding Hood BRD and Rocknrolla BRD. Longest run is with Tinker, Tailor, Soldier, Spy (2nd log).
Initially had web browser open during encodes. After noticing memory problems I would only run HandBrake on a fresh reboot with no change. 16GB should be plenty regardless.
Consistently reproducible on these ISO files. I always use the High Profile preset.

I'm not sure how useful the logs will be since I canceled every encode or was forced to do a hard reboot since Windows got so grumpy with everything pushed into the page file.

Canceled at about 30% when I saw that over 10GB was in purgatory. No change when using the most recent nightly build.

Code: Select all

HandBrake 0.9.8 2012071700
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
Ram: 16334 MB, Screen: 1920x1080
Temp Dir: d:\Users\account\AppData\Local\Temp\
Install Dir: D:\Utils\Handbrake
Data Dir: d:\Users\account\AppData\Roaming\HandBrake\HandBrake\0.9.8.4861

-------------------------------------------

CLI Query:  -i E:\ -t 13 -c 1-13 -o "V:\Handbrake output\adfavbf.m4v"  -f mp4 -4  --decomb -w 1920 --loose-anamorphic  -e x264 -q 20 --vfr  -a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="d:\Users\account\AppData\Local\Temp\adfavbf-13-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
User Query: False

[23:50:23] hb_init: starting libhb thread
HandBrake 0.9.8 (2012071700) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening E:\...
[23:50:23] hb_scan: path=E:\, title_index=13
[23:50:23] scan: BD has 14 title(s)
[23:50:23] bd: scanning title 13
[23:50:23] bd: playlist 00100.MPLS
[23:50:23] bd: duration is 01:39:50 (5990025 ms)
[23:50:23] bd: video id=0x1011, stream type=H.264, format 1080p
[23:50:23] bd: aspect = 1.77778
[23:50:23] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[23:50:23] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[23:50:23] bd: audio id=0x1101, lang=Espanol (AC3), 3cc=spa
[23:50:23] bd: chap 1 packet=768, 507215 ms
[23:50:23] bd: chap 2 packet=1707651840, 441899 ms
[23:50:23] bd: chap 3 packet=3062099328, 514096 ms
[23:50:23] bd: chap 4 packet=4684534848, 531447 ms
[23:50:23] bd: chap 5 packet=6344160192, 451909 ms
[23:50:23] bd: chap 6 packet=7700323776, 507131 ms
[23:50:23] bd: chap 7 packet=9297789696, 610192 ms
[23:50:23] bd: chap 8 packet=11169755904, 606856 ms
[23:50:23] bd: chap 9 packet=13011850560, 537703 ms
[23:50:23] bd: chap 10 packet=14663759616, 690940 ms
[23:50:23] bd: chap 11 packet=16795058304, 308266 ms
[23:50:23] bd: chap 12 packet=17719429056, 282115 ms
[23:50:23] bd: chap 13 packet=18652472832, 250 ms
[23:50:23] bd: title 13 has 13 chapters
[23:50:23] scan: decoding previews for title 13
[23:50:23] scan: title angle(s) 1
[23:50:23] scan: audio 0x711100: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[23:50:23] scan: audio 0x1101: AC-3, rate=48000Hz, bitrate=640000 Espanol (AC3) (5.1 ch)
[23:50:23] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
Scanning title 13...
Scanning title 13...
[23:50:24] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 140/140/0/0, aspect 16:9, PAR 1:1
[23:50:24] stream: 4 good frames, 0 errors (0%)
[23:50:24] scan: title (0) job->width:1920, job->height:800
[23:50:24] libhb: scan thread found 1 valid title(s)
+ title 13:
  + playlist: 00100.MPLS
  + duration: 01:39:50
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 140/140/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:08:27
    + 2: cells 0->0, 0 blocks, duration 00:07:22
    + 3: cells 0->0, 0 blocks, duration 00:08:34
    + 4: cells 0->0, 0 blocks, duration 00:08:51
    + 5: cells 0->0, 0 blocks, duration 00:07:32
    + 6: cells 0->0, 0 blocks, duration 00:08:27
    + 7: cells 0->0, 0 blocks, duration 00:10:10
    + 8: cells 0->0, 0 blocks, duration 00:10:07
    + 9: cells 0->0, 0 blocks, duration 00:08:58
    + 10: cells 0->0, 0 blocks, duration 00:11:31
    + 11: cells 0->0, 0 blocks, duration 00:05:08
    + 12: cells 0->0, 0 blocks, duration 00:04:42
    + 13: cells 0->0, 0 blocks, duration 00:00:00
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 3, Espanol (AC3) (5.1 ch) (iso639-2: spa), 48000Hz, 640000bps
  + subtitle tracks:
Reading chapter markers from file d:\Users\account\AppData\Local\Temp\adfavbf-13-chapters.csv
[23:50:24] 1 job(s) to process
[23:50:24] starting job
[23:50:24] work: mixdown not specified, track 2 setting mixdown 6-channel discrete
[23:50:24] work: bitrate not specified, track 2 setting bitrate 640
[23:50:24] sync: expecting 143616 video frames
[23:50:24] job configuration:
[23:50:24]  * source
[23:50:24]    + E:\
[23:50:24]    + title 13, chapter(s) 1 to 13
[23:50:24]  * destination
[23:50:24]    + V:\Handbrake output\adfavbf.m4v
[23:50:24]    + container: MPEG-4 (.mp4 and .m4v)
[23:50:24]      + 64-bit formatting
[23:50:24]      + chapter markers
[23:50:24]  * video track
[23:50:24]    + decoder: h264
[23:50:24]      + bitrate 200 kbps
[23:50:24]    + frame rate: same as source (around 23.976 fps)
[23:50:24]    + loose anamorphic
[23:50:24]      + storage dimensions: 1920 * 1080 -> 1920 * 800, crop 140/140/0/0, mod 0
[23:50:24]      + pixel aspect ratio: 1 / 1
[23:50:24]      + display dimensions: 1920 * 800
[23:50:24]    + filter
[23:50:24]      + Decomb (default settings)
[23:50:24]    + encoder: H.264 (x264)
[23:50:24]      + options: b-adapt=2:rc-lookahead=50
[23:50:24]      + quality: 20.00 (RF)
[23:50:24]  * audio track 1
[23:50:24]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x711100)
[23:50:24]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[23:50:24]    + mixdown: Dolby Pro Logic II
[23:50:24]    + encoder: AAC (faac)
[23:50:24]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:50:24]  * audio track 2
[23:50:24]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x711100)
[23:50:24]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[23:50:24]    + mixdown: 6-channel discrete
[23:50:24]    + encoder: AC3 (ffmpeg)
[23:50:24]      + bitrate: 640 kbps, samplerate: 48000 Hz
[23:50:24] reader: first SCR 377816246 id 0x1011 DTS 377816246
[23:50:24] yadif thread started for segment 0
[23:50:24] yadif thread started for segment 1
[23:50:24] yadif thread started for segment 4
[23:50:24] yadif thread started for segment 3
[23:50:24] yadif thread started for segment 7
[23:50:24] yadif thread started for segment 2
[23:50:24] yadif thread started for segment 5
[23:50:24] yadif thread started for segment 6
[23:50:24] decomb thread started for segment 3
[23:50:24] decomb thread started for segment 2
[23:50:24] decomb thread started for segment 4
[23:50:24] decomb thread started for segment 0
[23:50:24] decomb thread started for segment 1
[23:50:24] decomb thread started for segment 7
[23:50:24] decomb thread started for segment 5
[23:50:24] encx264: min-keyint: 24, keyint: 240
[23:50:24] encx264: encoding with stored aspect 1/1
[23:50:24] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: [23:50:24] decomb thread started for segment 6
--tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 4.0
Stream with high frequencies VQ coding
[23:50:24] h264: "Chapter 1" (1) at frame 0 time 3754
Stream with high frequencies VQ coding
[23:50:24] sync: first pts is 3754
[23:58:45] h264: "Chapter 2" (2) at frame 12161 time 45653333
[00:05:32] h264: "Chapter 3" (3) at frame 22756 time 85424315
[00:13:47] h264: "Chapter 4" (4) at frame 35082 time 131693037
[00:22:00] h264: "Chapter 5" (5) at frame 47824 time 179523320
[00:29:10] h264: "Chapter 6" (6) at frame 58659 time 220195201
It looks like this one finished, but you can see it trucking through the first chapters to end up taking hours in the final chapters.

Code: Select all

HandBrake 0.9.8 2012071700
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
Ram: 16334 MB, Screen: 1920x1080
Temp Dir: d:\Users\account\AppData\Local\Temp\
Install Dir: D:\Utils\Handbrake
Data Dir: d:\Users\account\AppData\Roaming\HandBrake\HandBrake\0.9.8.4861

-------------------------------------------

CLI Query:  -i I:\ -t 17 -c 1-21 -o "V:\Handbrake output\Tinker Tailor Soldier Spyl.m4v"  -f mp4 -4  --decomb -w 1920 --loose-anamorphic  -e x264 -q 20 --vfr  -a 1,1 -E faac,ffac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3 --markers="d:\Users\account\AppData\Local\Temp\Tinker Tailor Soldier Spyl-17-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
User Query: False

[04:45:07] hb_init: starting libhb thread
HandBrake 0.9.8 (2012071700) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening I:\...
[04:45:07] hb_scan: path=I:\, title_index=17
[04:45:07] scan: BD has 25 title(s)
[04:45:07] bd: scanning title 17
[04:45:07] bd: playlist 00801.MPLS
[04:45:07] bd: duration is 02:07:40 (7660694 ms)
[04:45:07] bd: video id=0x1011, stream type=H.264, format 1080p
[04:45:07] bd: aspect = 1.77778
[04:45:07] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[04:45:07] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[04:45:07] bd: audio id=0x1101, lang=Espanol (DTS), 3cc=spa
[04:45:07] bd: audio id=0x1102, lang=Francais (DTS), 3cc=fra
[04:45:07] bd: audio id=0x1103, lang=English (AC3), 3cc=eng
[04:45:07] bd: chap 1 packet=768, 368701 ms
[04:45:07] bd: chap 2 packet=1773337344, 403486 ms
[04:45:07] bd: chap 3 packet=3808656192, 409450 ms
[04:45:07] bd: chap 4 packet=5794504512, 369869 ms
[04:45:07] bd: chap 5 packet=7602736704, 258716 ms
[04:45:07] bd: chap 6 packet=8894304768, 384217 ms
[04:45:07] bd: chap 7 packet=10869435648, 316774 ms
[04:45:07] bd: chap 8 packet=12427107648, 417083 ms
[04:45:07] bd: chap 9 packet=14403333504, 356105 ms
[04:45:07] bd: chap 10 packet=16105338432, 279237 ms
[04:45:07] bd: chap 11 packet=17484979776, 358733 ms
[04:45:07] bd: chap 12 packet=19262844096, 352685 ms
[04:45:07] bd: chap 13 packet=21055493760, 547088 ms
[04:45:07] bd: chap 14 packet=23646567360, 337587 ms
[04:45:07] bd: chap 15 packet=25313903808, 282865 ms
[04:45:07] bd: chap 16 packet=26737296576, 343092 ms
[04:45:07] bd: chap 17 packet=28346876160, 486652 ms
[04:45:07] bd: chap 18 packet=30794116416, 476642 ms
[04:45:07] bd: chap 19 packet=32982852288, 549382 ms
[04:45:07] bd: chap 20 packet=35846504640, 362070 ms
[04:45:07] bd: chap 21 packet=37481722176, 250 ms
[04:45:07] bd: title 17 has 21 chapters
[04:45:07] scan: decoding previews for title 17
[04:45:07] scan: title angle(s) 1
[04:45:07] scan: audio 0x711100: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[04:45:07] scan: audio 0x1101: DCA, rate=48000Hz, bitrate=768000 Espanol (DTS) (5.1 ch)
[04:45:07] scan: audio 0x1102: DCA, rate=48000Hz, bitrate=768000 Francais (DTS) (5.1 ch)
[04:45:07] scan: audio 0x1103: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (Dolby Surround)
[04:45:07] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
Scanning title 17...
Scanning title 17...
Scanning title 17...
Scanning title 17...
Scanning title 17...
Scanning title 17...
Scanning title 17...
Scanning title 17...
[04:45:09] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[04:45:09] stream: 9 good frames, 0 errors (0%)
[04:45:09] scan: title (0) job->width:1920, job->height:816
[04:45:09] libhb: scan thread found 1 valid title(s)
+ title 17:
  + playlist: 00801.MPLS
  + duration: 02:07:40
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 132/132/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:06:09
    + 2: cells 0->0, 0 blocks, duration 00:06:43
    + 3: cells 0->0, 0 blocks, duration 00:06:49
    + 4: cells 0->0, 0 blocks, duration 00:06:10
    + 5: cells 0->0, 0 blocks, duration 00:04:19
    + 6: cells 0->0, 0 blocks, duration 00:06:24
    + 7: cells 0->0, 0 blocks, duration 00:05:17
    + 8: cells 0->0, 0 blocks, duration 00:06:57
    + 9: cells 0->0, 0 blocks, duration 00:05:56
    + 10: cells 0->0, 0 blocks, duration 00:04:39
    + 11: cells 0->0, 0 blocks, duration 00:05:59
    + 12: cells 0->0, 0 blocks, duration 00:05:53
    + 13: cells 0->0, 0 blocks, duration 00:09:07
    + 14: cells 0->0, 0 blocks, duration 00:05:38
    + 15: cells 0->0, 0 blocks, duration 00:04:43
    + 16: cells 0->0, 0 blocks, duration 00:05:43
    + 17: cells 0->0, 0 blocks, duration 00:08:07
    + 18: cells 0->0, 0 blocks, duration 00:07:57
    + 19: cells 0->0, 0 blocks, duration 00:09:09
    + 20: cells 0->0, 0 blocks, duration 00:06:02
    + 21: cells 0->0, 0 blocks, duration 00:00:00
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 3, Espanol (DTS) (5.1 ch) (iso639-2: spa), 48000Hz, 768000bps
    + 4, Francais (DTS) (5.1 ch) (iso639-2: fra), 48000Hz, 768000bps
    + 5, English (AC3) (Dolby Surround) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
Reading chapter markers from file d:\Users\account\AppData\Local\Temp\Tinker Tailor Soldier Spyl-17-chapters.csv
[04:45:09] 1 job(s) to process
[04:45:09] starting job
[04:45:09] work: mixdown not specified, track 2 setting mixdown 6-channel discrete
[04:45:09] work: sanitizing track 2 audio bitrate 160 to 192
[04:45:09] sync: expecting 183672 video frames
[04:45:09] job configuration:
[04:45:09]  * source
[04:45:09]    + I:\
[04:45:09]    + title 17, chapter(s) 1 to 21
[04:45:09]  * destination
[04:45:09]    + V:\Handbrake output\Tinker Tailor Soldier Spyl.m4v
[04:45:09]    + container: MPEG-4 (.mp4 and .m4v)
[04:45:09]      + 64-bit formatting
[04:45:09]      + chapter markers
[04:45:09]  * video track
[04:45:09]    + decoder: h264
[04:45:09]      + bitrate 200 kbps
[04:45:09]    + frame rate: same as source (around 23.976 fps)
[04:45:09]    + loose anamorphic
[04:45:09]      + storage dimensions: 1920 * 1080 -> 1920 * 816, crop 132/132/0/0, mod 0
[04:45:09]      + pixel aspect ratio: 1 / 1
[04:45:09]      + display dimensions: 1920 * 816
[04:45:09]    + filter
[04:45:09]      + Decomb (default settings)
[04:45:09]    + encoder: H.264 (x264)
[04:45:09]      + options: b-adapt=2:rc-lookahead=50
[04:45:09]      + quality: 20.00 (RF)
[04:45:09]  * audio track 1
[04:45:09]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x711100)
[04:45:09]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[04:45:09]    + mixdown: Dolby Pro Logic II
[04:45:09]    + encoder: AAC (faac)
[04:45:09]      + bitrate: 160 kbps, samplerate: 48000 Hz
[04:45:09]  * audio track 2
[04:45:09]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x711100)
[04:45:09]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[04:45:09]    + mixdown: 6-channel discrete
[04:45:09]    + encoder: AC3 (ffmpeg)
[04:45:09]      + bitrate: 192 kbps, samplerate: 48000 Hz
[04:45:09] reader: first SCR 1044806 id 0x1011 DTS 1044806
[04:45:09] yadif thread started for segment 0
[04:45:09] yadif thread started for segment 1
[04:45:09] yadif thread started for segment 2
[04:45:09] yadif thread started for segment 3
[04:45:09] yadif thread started for segment 4
[04:45:09] yadif thread started for segment 5
[04:45:09] yadif thread started for segment 6
[04:45:09] yadif thread started for segment 7
[04:45:09] decomb thread started for segment 0
[04:45:09] decomb thread started for segment 1
[04:45:09] decomb thread started for segment 2
[04:45:09] decomb thread started for segment 3
[04:45:09] decomb thread started for segment 4
[04:45:09] decomb thread started for segment 5
[04:45:09] decomb thread started for segment 6
[04:45:09] decomb thread started for segment 7
[04:45:09] encx264: min-keyint: 24, keyint: 240
[04:45:09] encx264: encoding with stored aspect 1/1
[04:45:09] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 4.0
Stream with high frequencies VQ coding
Stream with high frequencies VQ coding
[04:45:09] h264: "Chapter 1" (1) at frame 0 time 3754
[04:45:09] sync: first pts is 3754
[04:53:01] h264: "Chapter 2" (2) at frame 8840 time 33187130
[05:02:23] h264: "Chapter 3" (3) at frame 18514 time 69500907
[05:12:01] h264: "Chapter 4" (4) at frame 28331 time 106351471
[05:20:58] h264: "Chapter 5" (5) at frame 37199 time 139639726
[05:27:09] h264: "Chapter 6" (6) at frame 43402 time 162924237
[05:36:40] h264: "Chapter 7" (7) at frame 52614 time 197503782
[05:44:01] h264: "Chapter 8" (8) at frame 60209 time 226013513
[05:53:33] h264: "Chapter 9" (9) at frame 70209 time 263551013
[06:01:18] h264: "Chapter 10" (10) at frame 78747 time 295600531
[07:07:56] h264: "Chapter 11" (11) at frame 85442 time 320731887
[08:15:42] h264: "Chapter 12" (12) at frame 94043 time 353017891
[09:16:16] h264: "Chapter 13" (13) at frame 102499 time 384759601
[10:16:49] h264: "Chapter 14" (14) at frame 115616 time 433997540
[11:38:13] h264: "Chapter 15" (15) at frame 123710 time 464380392
[12:20:29] h264: "Chapter 16" (16) at frame 130492 time 489838325
[13:23:57] h264: "Chapter 17" (17) at frame 138718 time 520716672
[15:42:54] h264: "Chapter 18" (18) at frame 150386 time 564515427
[15:52:56] h264: "Chapter 19" (19) at frame 161814 time 607413282
[17:46:15] h264: "Chapter 20" (20) at frame 174986 time 656857677
[19:28:21] reader: done. 3 scr changes
[19:28:58] h264: "Chapter 21" (21) at frame 183662 time 689425212
[19:30:18] work: average encoding speed for job is 3.461930 fps
[19:30:18] sync: got 183672 frames, 183672 expected
[19:30:19] h264-decoder done: 183672 frames, 0 decoder errors, 0 drops
[19:30:20] render: lost time: 0 (0 frames)
[19:30:20] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:1024  Avg QP:18.64  size:217976  PSNR Mean Y:44.50 U:49.55 V:49.31 Avg:45.54 Global:45.14
x264 [info]: frame P:55210 Avg QP:21.30  size: 89343  PSNR Mean Y:41.72 U:48.64 V:48.36 Avg:42.92 Global:42.41
x264 [info]: frame B:127437 Avg QP:22.82  size: 62659  PSNR Mean Y:40.75 U:48.31 V:48.11 Avg:42.10 Global:41.75
x264 [info]: consecutive B-frames:  1.0%  1.3% 54.6% 43.1%
x264 [info]: mb I  I16..4:  6.1% 81.9% 12.0%
x264 [info]: mb P  I16..4:  0.7% 21.6%  1.0%  P16..4: 34.9% 23.1% 13.1%  0.0%  0.0%    skip: 5.7%
x264 [info]: mb B  I16..4:  0.2%  8.9%  0.1%  B16..8: 52.6% 10.8%  3.2%  direct: 9.8%  skip:14.4%  L0:46.5% L1:47.3% BI: 6.2%
x264 [info]: 8x8 transform intra:94.3% inter:56.6%
x264 [info]: coded y,uvDC,uvAC intra: 97.2% 73.6% 33.6% inter: 60.4% 37.4% 0.4%
x264 [info]: i16 v,h,dc,p: 34%  6% 23% 37%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8%  7% 44%  7%  7%  7%  6%  7%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 11% 23% 10% 10%  9%  9%  8%  8%
x264 [info]: i8c dc,h,v,p: 64% 16% 17%  2%
x264 [info]: Weighted P-Frames: Y:1.6% UV:0.3%
x264 [info]: ref P L0: 42.8% 12.7% 30.7% 13.7%  0.1%
x264 [info]: ref B L0: 62.2% 29.4%  8.4%
x264 [info]: ref B L1: 86.6% 13.4%
x264 [info]: SSIM Mean Y:0.9378818 (12.068db)
x264 [info]: PSNR Mean Y:41.061 U:48.417 V:48.194 Avg:42.367 Global:41.951 kb/s:13723.16
[19:30:51] mux: track 0, 183671 frames, 13140941222 bytes, 13722.98 kbps, fifo 2048
[19:30:51] mux: track 1, 359096 frames, 152954495 bytes, 159.73 kbps, fifo 4096
[19:30:51] mux: track 2, 239397 frames, 183856896 bytes, 192.00 kbps, fifo 4096
[19:30:51] stream: 183673 good frames, 0 errors (0%)
[19:30:51] decomb: deinterlaced 0 | blended 60 | unfiltered 183611 | total 183671
[19:30:52] libhb: work result = 0
Encode done!
HandBrake has exited.
mduell
Veteran User
Posts: 7417
Joined: Sat Apr 21, 2007 8:54 pm

Re: Memory leak when output is network drive

Post by mduell »

This doesn't sound like a HandBrake created or controllable problem.
eTiMaGo
Posts: 1
Joined: Thu Aug 23, 2012 7:55 am

Re: Memory leak when output is network drive

Post by eTiMaGo »

It may not be directly related to Handbrake, but I had the exact same issue, causing me much headache...

So big thanks to randomnumbers for figuring this out :)
randomnumbers
Posts: 2
Joined: Tue Aug 07, 2012 5:10 am

Re: Memory leak when output is network drive

Post by randomnumbers »

mduell wrote:This doesn't sound like a HandBrake created or controllable problem.
Copying large files (i.e. entire BRD ISOs around 50GB) from within Windows via drag and drop, command line, shadow copy backup, or anything else do not cause this. The only time it happens is when HandBrake is encoding a file onto a network drive. Another thing that points to HandBrake as the culprit is the fact that the output file is much much smaller than my 16GB RAM but still fills it up. If it were a memory leak/garbage collection problem with Windows or something else interfering with the file system it would only be junked up with the amount already written (<1GB). Only HandBrake is dealing with data in the dozens of GB over time. It puzzles me too, because why would the location of the output file matter?
mduell
Veteran User
Posts: 7417
Joined: Sat Apr 21, 2007 8:54 pm

Re: Memory leak when output is network drive

Post by mduell »

randomnumbers wrote:Copying large files (i.e. entire BRD ISOs around 50GB) from within Windows via drag and drop, command line, shadow copy backup, or anything else do not cause this. The only time it happens is when HandBrake is encoding a file onto a network drive.
And this is relevant how?
randomnumbers wrote:Another thing that points to HandBrake as the culprit is the fact that the output file is much much smaller than my 16GB RAM but still fills it up.
How does this in any way point to a HandBrake problem?
randomnumbers wrote:If it were a memory leak/garbage collection problem with Windows or something else interfering with the file system it would only be junked up with the amount already written (<1GB). Only HandBrake is dealing with data in the dozens of GB over time. It puzzles me too, because why would the location of the output file matter?
If it was a memory leak/garbage collection problem with HandBrake, it would happen when doing i/o to any storage. The input and output are just a file to HandBrake, the storage abstraction is handled by the OS/Virtual CloneDrive/etc.
Ayoross
Posts: 48
Joined: Mon Jun 11, 2012 9:07 pm

Re: Memory leak when output is network drive

Post by Ayoross »

Try to use daemon tools.
Post Reply