Skip to content

iscra/challenge-video-probe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video probe trial demo

Video probing service video-probe

  • probe endpoint -> creates info about video
  • long running operation -> use asynchronous API
  • using REST endpoint to push request into MQ
  • actual probe operation is asynchronous, consuming MQ

probe endpoint POST /probe { url: String }

  • push probe url as new requested operation into MQ

  • return immediately

  • Can be tested with

      curl localhost:8080/probe -XPOST -H "Content-Type: application/json" -d '{ "url": "http://localhost/videos/5.mp4"}'
    

Probe worker video-probe-worker

  • receive probe operations from MQ
  • download video, store locally in temp file
  • probe with ffmpeg
  • saves results into video info service
  • cleanup temp file

Video information service video-info

  • CRUD information about video
  • REST endpoints

POST /infos { name,format,duration }

  • called by probe worker to add video information

GET /infos?name={name}

  • example

      curl "http://localhost:8081/infos?name=2.mp4"
    

About

video probe demo (Spring Boot,ActiveMQ,ffmpeg)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages