This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const os = require("os"); | |
const ffmpegPath = require("@ffmpeg-installer/ffmpeg").path; | |
const fluent_ffmpeg = require("fluent-ffmpeg"); | |
const ffprobePath = require('@ffprobe-installer/ffprobe').path; | |
const path = require('path'); | |
fluent_ffmpeg.setFfprobePath(ffprobePath); //this was key for me on GCF | |
fluent_ffmpeg.setFfmpegPath(ffmpegPath); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT extractvalue(value(exif), '//exifMetadata/GpsIfd/GPSLatitude' | |
, 'xmlns="http://xmlns.oracle.com/ord/meta/exif"') AS latitude | |
, extractvalue(value(exif), '//exifMetadata/GpsIfd/GPSLongitude' | |
, 'xmlns="http://xmlns.oracle.com/ord/meta/exif"') AS longitude | |
FROM photos | |
, TABLE((ordsys.ordimage.getmetadata(photo_image, 'EXIF'))) exif | |
WHERE photo_id = :ID /* optional filter */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create or replace function latest_page_viewed(p_page_list in varchar2 | |
, p_app_id in number | |
, p_session_id in number) | |
-- p_page_list is expected set of pages in colon dilimited format eg '1000:1001:10002' | |
return number | |
is | |
l_latest_page number; | |
begin | |
select page_id |