I try to extract GPS metadata using exiftool
$ exiftool input.mov (attached)
Which able to display GPS data.
However when try to run with some app (eg:from http://www.registratorviewer.com) the GPS data is not display.
Perhap there is another way. I would like to ask:
if one would know how to extract GPS data (if need) in order to
display location on the map while play that movie
Here the metada:
ExifTool Version Number : 9.85
File Name : input.mov
Directory : .
File Size : 391 MB
File Modification Date/Time : 2015:02:17 21:19:42+07:00
File Access Date/Time : 2015:02:19 17:23:53+07:00
File Inode Change Date/Time : 2015:02:19 17:23:25+07:00
File Permissions : rwxrwxrwx
File Type : MOV
MIME Type : video/quicktime
Major Brand : Apple QuickTime (.MOV/QT)
Minor Version : 0.0.0
Compatible Brands : qt
Movie Data Size : 409646393
Movie Data Offset : 36
Movie Header Version : 0
Create Date : 2015:02:17 14:19:43
Modify Date : 2015:02:17 14:23:00
Time Scale : 600
Duration : 0:03:17
Preferred Rate : 1
Preferred Volume : 100.00%
Preview Time : 0 s
Preview Duration : 0 s
Poster Time : 0 s
Selection Time : 0 s
Selection Duration : 0 s
Current Time : 0 s
Next Track ID : 3
Track Header Version : 0
Track Create Date : 2015:02:17 14:19:43
Track Modify Date : 2015:02:17 14:23:00
Track ID : 1
Track Duration : 0:03:17
Track Layer : 0
Track Volume : 0.00%
Image Width : 1920
Image Height : 1080
Clean Aperture Dimensions : 1920x1080
Production Aperture Dimensions : 1920x1080
Encoded Pixels Dimensions : 1920x1080
Graphics Mode : ditherCopy
Op Color : 32768 32768 32768
Compressor ID : avc1
Source Image Width : 1920
Source Image Height : 1080
X Resolution : 72
Y Resolution : 72
Compressor Name : H.264
Bit Depth : 24
Video Frame Rate : 25.5
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2015:02:17 14:19:43
Media Modify Date : 2015:02:17 14:23:00
Media Time Scale : 44100
Media Duration : 0:03:17
Media Language Code : und
Balance : 0
Handler Class : Data Handler
Handler Vendor ID : Apple
Handler Description : Core Media Data Handler
Audio Format : mp4a
Audio Channels : 1
Audio Bits Per Sample : 16
Audio Sample Rate : 44100
Purchase File Format : mp4a
Handler Type : Metadata Tags
Make (tha-TH) : Apple
Creation Date (tha-TH) : 2015:02:17 21:19:43+07:00
GPS Coordinates (tha-TH) : 5 deg 46' 19.20" N, 101 deg 4' 19.92" E, 287 m Above Sea Level
Software (tha-TH) : 8.1.3
Model (tha-TH) : iPhone 5
Make (tha) : Apple
Software Version (tha) : 8.1.3
Content Create Date (tha) : 2015:02:17 21:19:43+07:00
GPS Coordinates (tha) : 5 deg 46' 19.20" N, 101 deg 4' 19.92" E, 287 m Above Sea Level
Model (tha) : iPhone 5
Make : Apple
Creation Date : 2015:02:17 21:19:43+07:00
GPS Coordinates : 5 deg 46' 19.20" N, 101 deg 4' 19.92" E, 287 m Above Sea Level
Software : 8.1.3
Model : iPhone 5
Software Version : 8.1.3
Content Create Date : 2015:02:17 21:19:43+07:00
Avg Bitrate : 16.6 Mbps
GPS Altitude : 287 m
GPS Altitude Ref : Above Sea Level
GPS Latitude : 5 deg 46' 19.20" N
GPS Longitude : 101 deg 4' 19.92" E
GPS Position : 5 deg 46' 19.20" N, 101 deg 4' 19.92" E
Image Size : 1920x1080
Megapixels : 2.1
Rotation : 90
Related
The mp4 video is hosted on s3 and cloudfront, with the following media info. Link here.
General
Complete name : tkfinder.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 14.9 MiB
Duration : 41 s 867 ms
Overall bit rate : 2 990 kb/s
Writing application : Lavf58.76.100
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High#L5.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 41 s 867 ms
Bit rate : 2 984 kb/s
Width : 2 924 pixels
Height : 1 672 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.010
Stream size : 14.9 MiB (100%)
Title : Core Media Video
Writing library : x264 core 163
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / 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=1 / chroma_qp_offset=-2 / threads=24 / lookahead_threads=4 / 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=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Problem: mp4 video not playing on firefox or ios mobile, but work fine in chrome and safari.
Is any thing issues on format or encoding setting or on S3 setting?
I changed the FPS to 30 and the resolution to 720, and now it works on my iOS device but still not on Firefox. However I converted a webm version, which works on Firefox.
I use FreeBSD 13.1 GhostBSD.org Chromium works to play your videos. Firefox does not. It has to do with the capabilities of the FireFox Browser that it does not play MP
https://support.mozilla.org/en-US/kb/block-autoplay
Firefox blocks all media with sound from playing automatically, by default. If you want a website to automatically play media or make other changes to your autoplay settings, you can use one of the methods below.
You can google on this:
https://www.google.com/search?q=firefox+play+video+automatically&oq=firefox+play+v&aqs=chrome.3.69i57j0i512l4j0i22i30l2j69i60.12086j0j7&sourceid=chrome&ie=UTF-8
My MPEG-TS video has problem playing on iOS via HTTP Live Streaming. The iPhone can play the file, but it seems it lost half of its frames. The video is slow and not continuous and smooth on the iPhone, but the VLC can play the stream without problems. I have posted the information of the mpegts file, it was encoded under profile High#L4.0 H264. iPhone 5c or 5s should have the ability to handle it.
Information probed by mediainfo command:
General
ID : 1 (0x1)
Complete name : segment00007.ts
Format : MPEG-TS
File size : 169 KiB
Duration : 5s 990ms
Overall bit rate mode : Variable
Overall bit rate : 216 Kbps
Video
ID : 65 (0x41)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High#L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Codec ID : 27
Duration : 6s 63ms
Bit rate : 206 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Stream size : 152 KiB (90%)
$ avconv -i segment00007.ts
avconv version 9.14-6:9.14-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 13:57:40 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=327815314, dts=327815357, size=7191
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=327997410, dts=327997563, size=7232
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=328104538, dts=328104565, size=1458
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=328117902, dts=328118015, size=1476
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=328141590, dts=328141634, size=1573
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=328165614, dts=328165629, size=1913
[mpegts # 0x16e7840] Invalid timestamps stream=0, pts=328180354, dts=328180554, size=7192
[mpegts # 0x16e7840] max_analyze_duration reached
Input #0, mpegts, from 'segment00007.ts':
Duration: 00:00:06.08, start: 3642.385822, bitrate: 227 kb/s
Program 1
Stream #0.0[0x41]: Video: h264 (High), yuv420p, 640x480, 30.08 fps, 90k tbn
At least one output file must be specified
Im trying to train a haar cascade. For that as a test run, I'm taking 5 positive images (which have the image). I use a program called objectmarker.exe to mark the object in the image and store the coordinates as well as the height and width of the rectangle in a text file (positives.txt)
Now when I try to create a .vec file using the the text file from command line, the program executes, but i get the following:
positive(1).txt : parse errorDone. Created 0 samples
The .vec file does get generated but if i try to view it, it opens a window and crashes.
I use the following code
C:\Sahil\Major Project\Haartraining Stuff\Haartraining Stuff\STEPS\step 02>openc
v_createsamples.exe -info positives.txt -num5 -vec vec5.vec -w 20 -h 20
Info file name: positives.txt
Img file name: (NULL)
Vec file name: vec5.vec
BG file name: (NULL)
Num: 1000
BG color: 0
BG threshold: 80
Invert: FALSE
Max intensity deviation: 40
Max x angle: 1.1
Max y angle: 1.1
Max z angle: 0.5
Show samples: FALSE
Width: 20
Height: 20
Create training samples from images collection...
positives.txt(1) : parse errorDone. Created 0 samples
my postives.txt is in the following format
C:/Sahil/Major Project/Haartraining Stuff/Haartraining Stuff/STEPS/step 02/rawdata/00007 001 (3).bmp_0000_0065_0107_0107_0199.bmp 1 1 2 106 193
C:/Sahil/Major Project/Haartraining Stuff/Haartraining Stuff/STEPS/step 02/rawdata/00007 001 (4).bmp_0000_0065_0107_0107_0199.bmp 1 1 2 108 195
C:/Sahil/Major Project/Haartraining Stuff/Haartraining Stuff/STEPS/step 02/rawdata/00007 001.bmp_0000_0065_0107_0107_0199.bmp 1 2 5 110 195
C:/Sahil/Major Project/Haartraining Stuff/Haartraining Stuff/STEPS/step 02/rawdata/img1.bmp 1 4 4 103 190
C:/Sahil/Major Project/Haartraining Stuff/Haartraining Stuff/STEPS/step 02/rawdata/img2.bmp 1 3 5 118 217
kindly suggest what i can do to correct this error. as i cannot proceed further
How is opencv_createsamples.exe distinguishing image file names? It might be written not to check white characters in paths/file names. Try without spaces either in the paths and file names.
My machine has nvidia Tesla K20m gpu. I would like to know gpu utilzation, memory utilization, temperature and fan speed. So I have used nvidia-smi to know the details. Nvidia-smi log is as follows
==============NVSMI LOG==============
Timestamp : Tue Dec 10 11:06:11 2013
Driver Version : 319.49
Attached GPUs : 1
GPU 0000:84:00.0
Product Name : Tesla K20m
Display Mode : Disabled
Display Active : Disabled
Persistence Mode : Enabled
Accounting Mode : Disabled
Accounting Mode Buffer Size : 128
Driver Model
Current : N/A
Pending : N/A
Serial Number : 0325212069909
GPU UUID : GPU-8b890015-e683-4061-6596-d27716c2900b
VBIOS Version : 80.10.11.00.0B
Inforom Version
Image Version : 2081.0208.01.07
OEM Object : 1.1
ECC Object : 3.0
Power Management Object : N/A
GPU Operation Mode
Current : Compute
Pending : Compute
PCI
Bus : 0x84
Device : 0x00
Domain : 0x0000
Device Id : 0x102810DE
Bus Id : 0000:84:00.0
Sub System Id : 0x101510DE
GPU Link Info
PCIe Generation
Max : 2
Current : 1
Link Width
Max : 16x
Current : 16x
Fan Speed : N/A
Performance State : P8
Clocks Throttle Reasons
Idle : Active
Applications Clocks Setting : Not Active
SW Power Cap : Not Active
HW Slowdown : Not Active
Unknown : Not Active
Memory Usage
Total : 4799 MB
Used : 11 MB
Free : 4788 MB
Compute Mode : Default
Utilization
Gpu : 0 %
Memory : 0 %
Ecc Mode
Current : Enabled
Pending : Enabled
ECC Errors
Volatile
Single Bit
Device Memory : 0
Register File : 0
L1 Cache : 0
L2 Cache : 0
Texture Memory : 0
Total : 0
Double Bit
Device Memory : 0
Register File : 0
L1 Cache : 0
L2 Cache : 0
Texture Memory : 0
Total : 0
Aggregate
Single Bit
Device Memory : 0
Register File : 0
L1 Cache : 0
L2 Cache : 0
Texture Memory : 0
Total : 0
Double Bit
Device Memory : 0
Register File : 0
L1 Cache : 0
L2 Cache : 0
Texture Memory : 0
Total : 0
Retired Pages
Single Bit ECC : 0
Double Bit ECC : 0
Pending : No
Temperature
Gpu : 29 C
Power Readings
Power Management : Supported
Power Draw : 25.44 W
Power Limit : 225.00 W
Default Power Limit : 225.00 W
Enforced Power Limit : 225.00 W
Min Power Limit : 150.00 W
Max Power Limit : 225.00 W
Clocks
Graphics : 324 MHz
SM : 324 MHz
Memory : 324 MHz
Applications Clocks
Graphics : 705 MHz
Memory : 2600 MHz
Default Applications Clocks
Graphics : 705 MHz
Memory : 2600 MHz
Max Clocks
Graphics : 758 MHz
SM : 758 MHz
Memory : 2600 MHz
Compute Processes : None
How to know fan speed. Is there any plug-in? Can anyone help me?
Have you tried nvclock ? It works for my Tesla K40M.
I'm trying to get gps coordinates of a video inside the camera roll on ios, I was able to import the video, but I can't seem to find a way to access metadata. I'm fairly certain that video do contain gps coordinates because within Photos app on the iphone you can plot them on a map within "Places" tab.
Any ideas?
I found 2 tools that can do the job:
1. ffmpeg
Linux static build, or Windows static build
ffmpeg -i iphone_video.mov
Example outputs (omit some other meta outputs):
......
com.apple.quicktime.location.ISO6709: +34.0216-128.1216+151.584/
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 6s
com.apple.quicktime.software: 11.4.1
com.apple.quicktime.creationdate: 2018-09-22T09:21:33-0700
......
2. ExifTool by Phil Harvey
exiftool -location:all iphone_video.mov
Example outputs:
GPS Coordinates : 34 deg 1' 17.76" N, 128 deg 7' 17.76" W, 151.584 m
Above Sea Level
GPS Altitude : 151.584 m
GPS Altitude Ref : Above Sea Level
GPS Latitude : 33 deg 1' 17.76" N
GPS Longitude : 117 deg 7' 17.76" W
GPS Position : 33 deg 1' 17.76" N, 117 deg 7' 17.76" W
And here's document from Apple: QuickTime file format specification