Buffering from USB hard drive
#1
I upgraded my Pi B to a Pi2 and installed OE6.0.0 on a new card. I have a 2tb usb drive attached via a powered USB hub, the same drive and hub I used with the Pi B that did not have any buffering problems. Now, I am having so many problems with videos buffering that they are unwatchable. I have tried various combinations of hardware acceleration settings, adjust display rate refresh, resolutions, and refresh rates and nothing seems to really help. I have also tried various buffer settings and overclocked.

Here is a copy of the debug log: http://sprunge.us/ZgIb

And here is a mediainfo of a problem video
Code:
General
Unique ID : 222813560169623422662834990718541528840 (0xA7A054AC55B5FDDE9F7741F040C27F08)
Complete name : /Users/username/Desktop/Big.Hero.6.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 3.27 GiB
Duration : 1h 41mn
Overall bit rate : 4 602 Kbps
Encoded date : UTC 2015-02-04 20:17:04
Writing application : mkvmerge v6.2.0 ('Promised Land') built on Apr 28 2013 12:22:01
Writing library : libebml v1.3.0 + libmatroska v1.4.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 41mn
Bit rate : 3 091 Kbps
Width : 1 280 pixels
Height : 536 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.188
Stream size : 2.14 GiB (65%)
Writing library : x264 core 144 r2525 40bb568
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=3091 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1h 41mn
Bit rate mode : Constant
Bit rate : 1 509 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Frame rate : 93.750 fps (512 spf)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 1.07 GiB (33%)
Language : English
Default : Yes
Forced : No
Menu
00:00:00.000 : en:00:00:00.000
00:07:15.685 : en:00:07:15.685
00:14:37.835 : en:00:14:37.835
00:21:49.183 : en:00:21:49.183
00:24:32.888 : en:00:24:32.888
00:29:34.731 : en:00:29:34.731
00:36:58.091 : en:00:36:58.091
00:44:18.322 : en:00:44:18.322
00:50:49.088 : en:00:50:49.088
00:54:33.020 : en:00:54:33.020
01:00:44.140 : en:01:00:44.140
01:07:12.612 : en:01:07:12.612
01:11:54.644 : en:01:11:54.644
01:16:26.665 : en:01:16:26.665
01:24:44.162 : en:01:24:44.162
01:31:52.757 : en:01:31:52.757

I am at a complete loss and getting super frustrated with the Pi2 for not playing videos. Thanks for the help
Reply
#2
What exactly do you see?

What is your pi plugged into? AVR? TV?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
It freezes up for a few seconds, no video or audio playing, just as if the video were paused. It will then eventually continue like it was unpaused. Pausing and hitting play while it has frozen does not force it to continue, it remains frozen until it decides it is ready to continue.
It is plugged into a tv via hdmi.
Reply
#4
Remove your overclock, reboot, and try playing the same video.
Reply
#5
Better, but still pauses. Here is a new log file:
http://sprunge.us/GDFX
Reply
#6
Maybe an issue with your power supply or cable?
Reply
#7
Copy a file onto the Pi's sdcard or a usb stick. Remove the USB drive and check that the copied file plays okay.
Need to know if it's purely a USB disk issue, or a Kodi player issue (perhaps something not handled well with the encoding of the file).
Reply
#8
(2016-01-31, 16:22)doug Wrote: Maybe an issue with your power supply or cable?
The previous logs were created with the Pi2 receiving power from the USB hub (http://www.amazon.com/Plugable-7-Port-Sp...B003Z4G3I6 ).
Using the Canakit 5v 2.5a power supply does the same thing, here is a log: http://sprunge.us/GTgF

(2016-01-31, 16:40)popcornmix Wrote: Copy a file onto the Pi's sdcard or a usb stick. Remove the USB drive and check that the copied file plays okay.
Need to know if it's purely a USB disk issue, or a Kodi player issue (perhaps something not handled well with the encoding of the file).
It looks like a USB problem and not Kodi as it plays fine from the SD card. I have tried two different 2tb hard drives, both Western Digital. One is a My Passport and the other is a WD Essentials and they both have the same problem. So is there a list somewhere of acceptable hard drives? One is formatted ext4, the other exFAT. The My Passport formatted exFAT had no problems with my Pi B. Both drives are portable, but plugged into the powered USB hub so there is no problem with them being powered by the Pi2. Is there a format that will play videos better?
Reply
#9
Can you not just increase your buffer?
Reply
#10
The MyPassport should be fine - I run one myself with a Pi Zero and it works fine (NTFS formatted in my case as it shares sometimes with my PC). The only glitch I sometimes see with it is it can cause the Pi to reboot if plugged into the powered hub whilst the Pi is on (especially if the hub is also powering the Pi). Now using a PiDrive cable to power everything and so far working fine.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#11
Just to update everyone, there is a problem with the USB hub I was using. I added the max_usb_power=1 setting to config.txt to get the hard drive to power up from the Pi2 without the hub and everything runs great, no pauses or buffering issues at all.
Reply

Logout Mark Read Team Forum Stats Members Help
Buffering from USB hard drive0