turran / gst-bt

BitTorrent related GStreamer elements
GNU Lesser General Public License v2.1
9 stars 1 forks source link

Playback doesn't start #4

Open hadess opened 9 years ago

hadess commented 9 years ago

For testing purposes, I downloaded http://yts.to/torrent/download/726E8B9C912596AD21278BBEF45C3C460900F35D.torrent

And tried with both the command-line mentioned in the README, and through gst-play-1.0 to start the playback, and I got:

0:00:00.045889755 12468      0x1e2d4a0 DEBUG                btdemux src/gst_bt_demux.cpp:782:gst_bt_demux_sink_chain:<btdemux0> Received buffer
0:00:00.045960767 12468      0x1e2d4a0 DEBUG                btdemux src/gst_bt_demux.cpp:782:gst_bt_demux_sink_chain:<btdemux0> Received buffer
0:00:00.045992323 12468      0x1e2d4a0 DEBUG                btdemux src/gst_bt_demux.cpp:782:gst_bt_demux_sink_chain:<btdemux0> Received buffer
0:00:00.046028512 12468      0x1e2d4a0 DEBUG                btdemux src/gst_bt_demux.cpp:782:gst_bt_demux_sink_chain:<btdemux0> Received buffer
0:00:00.046053650 12468      0x1e2d4a0 DEBUG                btdemux src/gst_bt_demux.cpp:810:gst_bt_demux_sink_event:<btdemux0> Received EOS
0:00:00.047534685 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'torrent_added_alert'
0:00:00.047564283 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'add_torrent_alert'
0:00:00.047576307 12468 0x7f355006bd90 INFO                 btdemux src/gst_bt_demux.cpp:1192:gst_bt_demux_handle_alert:<btdemux0> Start downloading
0:00:00.047586259 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:1195:gst_bt_demux_handle_alert:<btdemux0> num files: 2, num pieces: 740, piece length: 2097152
0:00:00.047691068 12468 0x7f355006bd90 INFO                 btdemux src/gst_bt_demux.cpp:1230:gst_bt_demux_handle_alert:<btdemux0> Adding stream src_00 for file 'Muck (2015) [1080p]/Muck.2015.1080p.BluRay.x264.YIFY.mp4',  start_piece: 0, start_offset: 0, end_piece: 738, end_offset: 2016417
0:00:00.047748724 12468 0x7f355006bd90 INFO                 btdemux src/gst_bt_demux.cpp:1230:gst_bt_demux_handle_alert:<btdemux0> Adding stream src_01 for file 'Muck (2015) [1080p]/WWW.YTS.RE.jpg',  start_piece: 738, start_offset: 2016417, end_piece: 739, end_offset: 127312
0:00:00.048017934 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'torrent_resumed_alert'
0:00:00.048044393 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'state_changed_alert'
0:00:00.048060888 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'torrent_checked_alert'
0:00:00.048643308 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:1140:gst_bt_demux_activate_streams:<btdemux0> Requesting stream src_00
0:00:00.048660117 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:397:gst_bt_demux_stream_activate:<'':src_00> Activating stream 'src_00', start: 0, start_offset: 0, end: 738, end_offset: 2016417, current: -1
0:00:00.048689828 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:362:gst_bt_demux_stream_add_piece:<'':src_00> Adding more pieces at 0, current: -1, max: 3
0:00:00.048733825 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:379:gst_bt_demux_stream_add_piece:<'':src_00> Requesting piece 0, prio: 7, current: -1, 
0:00:00.048747964 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:362:gst_bt_demux_stream_add_piece:<'':src_00> Adding more pieces at 1, current: -1, max: 3
0:00:00.048785286 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:379:gst_bt_demux_stream_add_piece:<'':src_00> Requesting piece 1, prio: 7, current: -1, 
0:00:00.048797928 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:362:gst_bt_demux_stream_add_piece:<'':src_00> Adding more pieces at 2, current: -1, max: 3
0:00:00.048829247 12468 0x7f355006bd90 DEBUG                btdemux src/gst_bt_demux.cpp:379:gst_bt_demux_stream_add_piece:<'':src_00> Requesting piece 2, prio: 7, current: -1, 
0:00:00.048893512 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'state_changed_alert'

0:00:00.048905283 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'torrent_finished_alert'
0:00:00.048914343 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'state_changed_alert'
0:00:00.127667707 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'tracker_error_alert'
0:00:00.210610891 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'external_ip_alert'
0:00:17.105567413 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'tracker_error_alert'
0:01:12.123228984 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'tracker_error_alert'
0:03:09.139556910 12468 0x7f355006bd90 LOG                  btdemux src/gst_bt_demux.cpp:1175:gst_bt_demux_handle_alert:<btdemux0> Received alert 'tracker_error_alert'

And it stops there. Maybe there's a genuine error, which would be fine, but it doesn't get back to the caller. Or maybe it's the lack of feedback mentioned in issue #2.

turran commented 9 years ago

Just tested the same torrent, is working here. The 'tracker_error_alert' is not a critical error, but an informative one, in case the tracker fails too many times, such tracker is dropped. See the libtorrent documentation.

You need to be patient with the torrent :). Even if the buffering says it is 0%, there's no way to increase the buffering level by bytes received from trackers, I had to do it by completed pieces received, the current number of pieces to get a 100% is 3, so you'll see the buffering increasing by 33% each time, but nothing in the middle. Of course depending on the bandwidth you might end having to wait a lot before the three pieces are completed.