B. Camera Feeds
Another key technology of Oklahoma’s ATIS is an ondemand
video streaming architecture developed for the display
of camera feeds on the website. This architecture
implements camera streaming by obtaining images from
available webcams, saving those images on the ATIS server,
and redistributing the images to web page visitors. An Open
Camera Connection script connects to an available camera,
requests a Motion JPEG (MJPG) data stream from the
camera over HTTP, and parses the MJPG stream so that
individual images are saved on the server. New images from
the MJPG stream are saved in a single location, overwriting
previous images so that server hard drive space is used
efficiently. On a camera feed request, the ATIS server runs
the Open Camera Connection script to open a dedicated
connection to the requested web camera and stream images
from it for fifteen minutes. The server minimizes required
bandwidth by preventing more than one dedicated connection
at a time to be opened to a single camera.
Once camera images have been obtained by the ATIS
server, the images must be delivered to the viewer of the
ATIS website. Several potential delivery solutions were examined,
most of which involved providing a streaming video
format such as QuickTime, RealMedia, MJPG, or Flash. In
general however, all of these formats require that the user
have a plugin installed on their computer that is capable of
processing the video format. As the primary purpose of the
Oklahoma Pathfinder ATIS is to disseminate information to
the widest possible public audience (including a wide variety
of internet access devices), plugin requirement was viewed
as a major limitation. Thus, an in-house JavaScript based
image delivery solution is used instead.
The JavaScript delivery algorithms used by the Oklahoma
Pathfinder ATIS to deliver streaming video images have
proven to be very portable. The solution works successfully
in all major browsers, operating systems and internet-capable
mobile devices including the iPhone and Android phones.
In this solution, the user first obtains a camera image from
the server. Once that image has loaded, the same image is requested again via JavaScript. As the image on the server
is constantly overwritten with newer data, the next image
served to the user is a newer frame in the video feed. This
also allows the user to dynamically obtain frames at a rate
that is controlled by the user’s internet connection speed.
Thus, on slower connections, such as a mobile device over
3G, images may be shown to the website viewer at a rate of
two or three frames per second. On fast ethernet connections
images can arrive at a rate of up to twenty frames per
second. This delivery method leads to considerable overhead
in individual image requests. However, the overhead costs are
a trade-off for the portability of the solution.
An additional Loop Capture script was developed to support
ten second image loops. This script effectively samples a
video stream by establishing a connection to a web camera
then copying from the camera image at regular intervals.
These copied images are saved to successive loop images
which are transmitted to the web page viewer. When a user
requests a camera feed through the public interface to the
ATIS, if a ten second loop has not been captured for that
camera in the previous two minutes, the Loop Capture script
is run for the camera. If the same web camera is being viewed
on the private version of the ATIS, then the Loop Capture
script uses that open connection to perform the loop capture.
Otherwise, the Open Camera Connection script is run for
fifteen seconds so that a loop capture can be completed. The
loop images are delivered to the webpage viewer via the
same JavaScript delivery process described above. As new
loop images are captured they are immediately transmitted
to the user so that playback of the ten second loop begins
instantly upon clicking a camera.
ภาพ Bอีกหนึ่งเทคโนโลยีที่สำคัญของโอคลาโฮมาของ Atis เป็น ondemandสตรีมมิ่งวิดีโอสถาปัตยกรรมที่พัฒนาสำหรับการแสดงผลกล้องตัวดึงข้อมูลบนเว็บไซต์ สถาปัตยกรรมนี้ใช้กล้องสตรีมมิ่งโดยได้รับภาพจากเว็บแคมพร้อมบันทึกภาพเหล่านั้นใน Atis เซิร์ฟเวอร์กระจายภาพและให้ผู้เข้าชมหน้าเว็บ เปิดกล้องสคริปต์การเชื่อมต่อเชื่อมต่อกับกล้องที่มีอยู่ขอ Motion JPEG ( mjpg ) สตรีมข้อมูลจากกล้องผ่าน HTTP และแยกวิเคราะห์ mjpg กระแสดังนั้นภาพบุคคลจะถูกบันทึกไว้บนเซิร์ฟเวอร์ ภาพใหม่จากการ mjpg สตรีมจะถูกบันทึกไว้ในสถานที่เดียว เขียนทับภาพก่อนหน้านี้เพื่อให้เซิร์ฟเวอร์ฮาร์ดไดรฟ์พื้นที่ใช้ได้อย่างมีประสิทธิภาพ ในฟีดกล้องขอ , Atis เซิร์ฟเวอร์ทำงานเปิดสคริปต์เพื่อเปิดการเชื่อมต่อกล้องโดยเฉพาะการเชื่อมต่อกับกล้องเว็บและสตรีมภาพที่ร้องขอจากมัน สิบห้านาที ลดการใช้เซิร์ฟเวอร์แบนด์วิดธ์โดยการป้องกันการเชื่อมต่อมากกว่าหนึ่งโดยเฉพาะในเวลาที่จะเปิดในกล้องเดียวเมื่อภาพกล้องได้โดย Atisเซิร์ฟเวอร์ภาพจะต้องถูกส่งไปยังผู้ชมของเว็บไซต์ Atis . หลายอาจจัดส่งโซลูชั่นตรวจสอบซึ่งส่วนใหญ่เกี่ยวข้องกับสตรีมมิ่งวิดีโอให้รูปแบบเช่น QuickTime RealMedia , mjpg , หรือ , แฟลช ในทั่วไปอย่างไรก็ตาม ทั้งหมดของรูปแบบเหล่านี้ต้องการให้ผู้ใช้มีปลั๊กอินที่ติดตั้งบนคอมพิวเตอร์ของพวกเขาที่มีความสามารถของการประมวลผลวิดีโอในรูปแบบ เป็นวัตถุประสงค์หลักของโอคลาโฮมา Atis เพื่อเผยแพร่ข้อมูลการเบิกกว้างที่สุด ( รวมถึงประชาชนผู้ชมที่หลากหลายอุปกรณ์เข้าถึงอินเทอร์เน็ต ) , ความต้องการปลั๊กอินได้เข้าชมเป็นข้อจำกัดที่สำคัญ ดังนั้น ในบ้านตาม JavaScriptวิธีส่งภาพที่ใช้แทนจาวาสคริปต์ที่จัดส่งขั้นตอนวิธีการที่ใช้โดยโอกลาโฮมาผู้นำทาง Atis ส่งสตรีมมิ่งวิดีโอภาพมีพิสูจน์แล้วว่าเป็นแบบพกพามาก โซลูชั่นงานเรียบร้อยแล้วในเบราว์เซอร์ที่สำคัญทั้งหมดและระบบปฏิบัติการอินเทอร์เน็ตสามารถอุปกรณ์เคลื่อนที่รวมถึงโทรศัพท์ iPhone และ Androidในวิธีนี้ผู้ใช้ที่ได้รับกล้องภาพแรกจากเซิร์ฟเวอร์ เมื่อภาพมีโหลด ภาพเดียวกัน ขอร้องอีกครั้งผ่านทางจาวาสคริปต์ เป็นภาพบนเซิร์ฟเวอร์ตลอดเวลาเขียนทับด้วยข้อมูลใหม่ ภาพต่อไปบริการเพื่อผู้ใช้ที่เป็นกรอบที่ใหม่กว่าในวิดีโอ . นี้ยังช่วยให้ผู้ใช้แบบไดนามิกได้รับเฟรม ในอัตราที่ที่ถูกควบคุมโดยความเร็วในการเชื่อมต่ออินเทอร์เน็ตของผู้ใช้ดังนั้นในการเชื่อมต่อช้า เช่น โทรศัพท์มือถือมากกว่า3G , ภาพอาจจะแสดงให้ผู้ชมเว็บไซต์ในอัตราของ2 หรือ 3 เฟรมต่อวินาที ในการเชื่อมต่ออีเธอร์เน็ตอย่างรวดเร็วภาพที่สามารถมาถึงในอัตราถึง 20 เฟรมต่อ2 วิธีการจัดส่งนี้นำไปสู่ค่าใช้จ่ายมากในการร้องขอภาพบุคคล อย่างไรก็ตาม ต้นทุน ค่าใช้จ่าย เป็นฉันจะสำหรับพกพาของสารละลายเพิ่มห่วงจับสคริปต์ที่ถูกพัฒนาขึ้นเพื่อสนับสนุน10 ลูปภาพที่สอง ตัวอย่างสคริปต์นี้ได้อย่างมีประสิทธิภาพวิดีโอสตรีมโดยการสร้างการเชื่อมต่อกับกล้องเว็บแล้วคัดลอกจากภาพกล้องเป็นประจำเหล่านี้คัดลอกภาพบันทึกภาพต่อเนื่อง ห่วงซึ่งจะถูกส่งไปยังหน้าเว็บดู เมื่อผู้ใช้ขอฟีดกล้องผ่านทางอินเตอร์เฟซสาธารณะเพื่อAtis ถ้าสิบสองห่วง ไม่ได้ถูกจับที่กล้องในก่อนหน้านี้สองนาที , ห่วงยึดสคริปต์ใช้สำหรับกล้อง ถ้ากล้องเว็บเดียวกันถูกดูในรุ่นส่วนบุคคลของ Atis แล้วห่วงจับสคริปต์ที่ใช้เปิดการเชื่อมต่อการห่วงจับไม่งั้น เปิดการเชื่อมต่อสคริปต์ถูกเรียกใช้สำหรับกล้องวินาทีเพื่อให้หูจับสามารถสมบูรณ์ ที่ห่วงภาพจะส่งมอบให้กับผู้ชมเว็บเพจผ่านทางเดียวกันส่ง JavaScript กระบวนการที่อธิบายข้างต้น ใหม่ห่วงภาพจะจับพวกเขาทันทีส่งให้กับผู้ใช้เพื่อให้เล่น 2 ห่วง 10 เริ่มต้นได้ทันทีเมื่อคลิกที่กล้อง
การแปล กรุณารอสักครู่..
