kartaview / upload-scripts

Uploader tools for KartaView
MIT License
61 stars 30 forks source link

Cannot upload video #113

Closed BeJotEl closed 2 years ago

BeJotEl commented 3 years ago

I have uploaded several videos, all taken on one day with the same device (iPhone) The upload worked for the most of them but one. The sequence consists of 32 mp4 files and according to the app 1555 photos. Here is the debug output:

2021-06-25 21:49:27,946 osc_tools                          : DEBUG    Searching for Metadata-Video
2021-06-25 21:49:27,946 osc_tools.osc_discoverer           : DEBUG    searching for metadata ../Photos/1619864528/
2021-06-25 21:49:27,947 osc_tools.osc_discoverer           : DEBUG    will read uploaded indexes
2021-06-25 21:49:27,947 osc_tools.validators               : DEBUG      Validating sequence using <class 'validators.SequenceMetadataValidator'>
2021-06-25 21:49:27,947 osc_tools                          : WARNING      Found sequence at path ../Photos/1619864528/. Sequence type Metadata-Video.
2021-06-25 21:49:27,947 osc_tools                          : WARNING  Search completed.
2021-06-25 21:49:27,947 osc_tools                          : WARNING  

Starting to upload 1 sequences...
2021-06-25 21:49:27,947 osc_tools.logging_controller       : INFO     Logged in user: xxx. To log out delete /home/xxx/credentials.json
  0%|                                                    | 0/32 [00:00<?, ?it/s]

2021-06-25 21:51:09,180 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,209 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,214 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,219 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,228 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,237 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,237 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,237 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,248 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))
2021-06-25 21:51:09,267 osc_tools.osc_api_gateway          : DEBUG    Received exception on video upload ('Connection aborted.', timeout('The write operation timed out',))

It seems that the exception occurs after the upload of the first mp4 file.

salabogdan commented 2 years ago

@BeJotEl did you try again? did it work in the end? if not i would need the osc_sequence_id.txt file and the osc_sequence_upload_progress.txt from the folder containing the video files

brmonaghan commented 2 years ago

If you have a high latency ISP, like I did back in 2020, please use a faster WiFi service like Spectrum. The Video upload exception is caused by a timeout of your modem trying to upload the videos. If you can't afford a new ISP, or your country is not highspeed like us, then split the videos into separate folders and rename them SEQ1A, SEQ1B, and so on. Then try this script below FOR %%G IN (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) DO (python osc_tools.py upload -p C:\upload-scripts-master\SEQ1%%G)

BeJotEl commented 2 years ago

Meanwhile all files are uploaded. But I don't remember what I did to make it successful.