0

file does not save sometimes. can someone please tell me the reason for it.

pipe = Popen(f'exiftool.exe -p "lib/ExifTool/gpx.fmt" -S -ext mov -ee "{video_file}" >> "temp/gpx.xml"', shell=True, stdout=PIPE)
  • 1
    See [this recent question](https://stackoverflow.com/questions/70611277/exiftool-export-json-with-python). Redirection is a property of the command shell and might not be available when calling from python. – StarGeek Jan 18 '22 at 15:52
  • You may have to capture the output in python and save it to a file, as the `-w` option doesn't work with the `-p` option used to create the GPX track. – StarGeek Jan 18 '22 at 15:59
  • i tried to capture output from python but it didn't capture all of the output. it capture only some lines – Yasiru Withanage Jan 19 '22 at 04:32
  • part of terminal output Warning: [Minor] Tag 'Doc29:gpsaltitude' not defined - data/2021_0429_171543_002.MOV Warning: [Minor] Tag 'Doc30:gpsaltitude' not defined - data/2021_0429_171543_002.MOV Warning: [Minor] Tag 'Doc39:gpsaltitude' not defined - data/2021_0429_171543_002.MOV – Yasiru Withanage Jan 19 '22 at 04:33
  • part of python output Warning: [Minor] Tag 'Doc29:gpsaltitude' not defined - data/2021_0429_171543_002.MOV Warning: [Minor] Tag 'Doc30:gpsaltitude' not defined - data/2021_0429_171543_002.MOV Warning: [Minor] Tag 'Doc39:gpsaltitude' not defined - data/2021_0429_171543_002.MOV – Yasiru Withanage Jan 19 '22 at 04:34

0 Answers0