2010-02-22 7 views
2

현재로서는 양질의 usb camera으로 작업하고 있습니다. 카메라의 비디오 화질은 드라이버와 함께 제공되는 뷰어에서 볼 때 매우 좋습니다 (C++을 사용하여 구현 된 것으로 추정됩니다). 예상대로 플래시는 동일한 수준의 품질을 제공 할 수 없습니다.플래시 : 카메라의 데이터 전송률/품질 향상

하지만 플래시가 실행되는 로컬 컴퓨터를 통해 설정을 완벽하게 제어 할 수 있다는 점을 감안할 때 내 로컬 비디오 스트림의 품질을 향상시키는 옵션은 무엇입니까?

답변

2

공공 기능 setQuality 사용 자세한 내용은

언어 버전 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Camera.html#setQuality%28%29 : ActionScript 3.0의 런타임 버전 : AIR 1.0, 플래시 플레이어 9

을 (대역폭 : INT, 품질 : INT) :

참조 무효

현재 나가는 비디오 피드의 초당 최대 대역폭 또는 필요한 화질을 설정합니다. 이 방법은 일반적으로 Flash Media Server를 사용하여 비디오를 전송하는 경우에만 적용 할 수 있습니다.

나가는 비디오 피드의 어느 요소를 응용 프로그램에서 더 중요한지 (대역폭 사용 또는 화질) 지정하려면이 방법을 사용하십시오.

* To indicate that bandwidth use takes precedence, pass a value for bandwidth and 0 for quality. Flash Player transmits video at the highest quality possible within the specified bandwidth. If necessary, Flash Player reduces picture quality to avoid exceeding the specified bandwidth. In general, as motion increases, quality decreases. 
* To indicate that quality takes precedence, pass 0 for bandwidth and a numeric value for quality. Flash Player uses as much bandwidth as required to maintain the specified quality. If necessary, Flash Player reduces the frame rate to maintain picture quality. In general, as motion increases, bandwidth use also increases. 
* To specify that both bandwidth and quality are equally important, pass numeric values for both parameters. Flash Player transmits video that achieves the specified quality and that doesn't exceed the specified bandwidth. If necessary, Flash Player reduces the frame rate to maintain picture quality without exceeding the specified bandwidth. 

매개 변수 대역폭 : INT - 현재 내보내는 비디오 피드가 초당 바이트, 사용할 수있는 최대 대역폭을 지정합니다. Flash Player 비디오가 품질 값을 유지하는 데 필요한만큼의 대역폭을 사용할 수 있도록 지정하려면 대역폭에 0을 전달합니다. 기본값은 토드가 지적 하듯 16384

quality:int — An integer that specifies the required level of picture quality, as determined by the amount of compression being applied to each video frame. Acceptable values range from 1 (lowest quality, maximum compression) to 100 (highest quality, no compression). To specify that picture quality can vary as needed to avoid exceeding bandwidth, pass 0 for quality. 
3

setQuality()가 좋은,하지만 당신은 해상도와 프레임 속도를 설정할 수 있습니다 setMode에 더 즉각적인 결과를()를 참조 할 수있다. 표준 카메라 피드를 설정 한 다음 비디오 객체의 크기를 640x480과 같은 것으로 변경하면 카메라 객체 자체에서 setMode (640, 480, 30)를 사용하지 않으면 픽셀 이중화를 사용하게됩니다.

setMode()를 사용하여 수동으로 설정하지 않으면 실제 비디오 입력이 160x120로 렌더링됩니다.

희망 하시겠습니까?