Release gdrive - Google Drive Video/Music Add-on
(2014-11-15, 15:58)dmdsoftware Wrote:
(2014-11-15, 12:44)ashlar Wrote: Hi! Installed this new version, configured it with different chunk sizes but the result was always the same.

Basically, the file starts, it starts getting cached (as an .mp4 file, although it was an .mkv, but that doesn't seem to be the problem, as XBMC seems to parse it correctly) and it stops just as soon as playback starts.

I had a look at the log file and the crucial point seems to be this:
Code:
11:26:37 T:9104   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:2032486.394418, should be:2003383.045888, error:-29103.348530
11:26:38 T:9104   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_EOF
11:26:38 T:9104 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:26:39 T:6940 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
11:26:39 T:10044    INFO: CDVDPlayer::Process - eof reading from demuxer
11:26:39 T:10044  NOTICE: CDVDPlayer::OnExit()
11:26:39 T:10044  NOTICE: DVDPlayer: eof, waiting for queues to empty

Basically, it reaches end of file as soon as playback starts (I tried playing the cache file with MPC-HC and the same seems to happen).

The good news is: download speed is what is supposed to be, as fast as it can basically. Extra bad news is: even though the file stops playing, download keeps going. You need to exit XBMC to make it stop.

Full log here: http://pastebin.com/AfuF6aNf

Also, a strange thing: I uploaded a big file (it's a rip of my Planet Earth BluRay collection, 9GB with an average bitrate of about 23Mbps) to check download performance, anticipating your new build. Now, the plugin doesn't see the file. It sees the directory I created. I went to the web interface and, in fact, the file hadn't been processed yet. But now it's been processed and the plugin still doesn't see it.
EDIT: after 10 minutes or so that the file had been processed by Drive, it appeared in the plugin as well.

What was the size of the file you tested (in the first case)? The progress bar in the app only reflects the progress on the first 100 chunks, before it starts playback. It should continue to download the rest of the file after playback starts (or fails). You should see the filesize continuing to increase even if there is no activity going on. Then again, it could be the case where the plugin is erroring and stopping. When I tested, even if I caused the playback or plugin to error out, the thread downloading the video would continue.

I'm looking at the log you provided and doing some other testing on other files, but my first guess is the file was probably a large file and not enough of it was downloaded before the playback started. I should base the decision on how large the file is. That or there is an issue with MKV files.

Ignoring the progress bar, etc, are you seeing download speed issues when the file is downloading via the network tools? It is bypassing XBMC's buffering and caching controls.

As you guessed, the extension on the cache file doesn't matter. Matter of fact, most of my media files don't have extensions. Playback through normal means doesn't rely on the file type extension. With that said, I tested with MP4, AVI and MPG files of various types.

In your second case, while the file is in processing, it won't show up in the plugin as it's not classified as playback capable. I will probably start listing them perhaps with a denotation that it'll only playback in original format until processed.

EDIT: The termination because running for more than 5 seconds is a little disturbing. If the file indeed stopped downloading, that might be the case. I assume your file is of large size?

Followup:

I tried a 1080p MKV (it was only actually a 43 second video).

With the initial setting, I could see the video flash on the screen for a split second before returning to to XBMC. Changing the counter to 400 from 100, the playback started and lasted for about 3 seconds before closing. I could see from the playback bar that about 25 seconds of video was ready to playback. Continuing to dig, but there might be an issue with MKV files. I continue to test non-MKV and haven't encountered anything else with the same issue.

One of the features I was going to add was a "download then watch". That would definitely work with the MKV files.

(2014-11-15, 16:31)ashlar Wrote: The file is 7.9 GB, more or less.

I repeat the test right now, let me see... yup, it stops playback, going out to the plugin screen (with the files list), with no error message. Meanwhile, download keeps on going, at speeds averaging 95Mbps, more or less (hence, maxing out bandwidth for all practical purposes). When I exit XBMC, the download stops.

I now try with a much smaller file, let me see... nope, nothing changes, it still stops. This time after 7 seconds of playback (for a 750MB file). If I leave it alone, in background the download proceeds (at the fastest speed possible, as above) but once finished... its size is slightly different from the file I can download from the webapp. And when played back with MPC-HC (the cache.mp4 file, I mean), it exhibits the same behaviour. It stops at the same exact point where XBMC stops.

Tell me if there are more experiments or specific logs you might need.

Edit: I just double checked by downloading the same files I was trying to play from withing the plugin. Downloading them through the webapp produces exact replicas of the local files, perfectly playable, with no problem. In any case, the download speed is most definitely solved. Now, well, all the rest Smile Again, I'll help however I can.

Ah, yes, playback of the cache file demonstrates an issue I see. I think I know the issue now. One of the packets must be not getting saved properly, and MKV files can't tolerate that. Because my full downloaded MKV file fails at the same part even when played back through through Files. I guess AVI/MP4/MPEG files are more tolerable.

Should be easy to track down and fix Smile
Reply


Messages In This Thread
RE: [RELEASE] gdrive - Google Drive Video/Music Add-on - by dmdsoftware - 2014-11-15, 16:35
u - by Kraevin - 2015-05-13, 17:37
Logout Mark Read Team Forum Stats Members Help
gdrive - Google Drive Video/Music Add-on12