从相机应用程序捕获预览中的视频和图像捕获

时间:2019-02-19 05:56:13

标签: java android

我一直在尝试从摄像机回调中捕获mp4和图像。 我的图像带有绿色条纹。下面是我尝试的代码和结果图像image_result。我可以通过此onPreviewFrame方法创建mp4吗?

@echo off
:start
ping -n 2 www.google.com | findstr /i "ttl">nul
if not "%errorlevel%"=="0" (
    echo "Oops something is wrong, let's test gateway"
    goto testgate
) else (
    echo "Internet Still reachable"
    timeout 5 /nobreak>nul
    goto start
)

:testgate
ping -n 2 10.3.1.1 | findstr /i "ttl">nul
if not "%errorlevel%"=="0" (
    echo "Hmm, gateway also not reachable, will test VPN"
        for /f "tokens=2" %%i in ('powershell "Get-NetAdapter | select Name,Status" ^| findstr /i "VPN"') do (
           if /i "%%i"=="up" (
               echo "Adapter connection %%i, will retry internet ping now"
               goto start
     ) else  (
               echo Adapter connection Down or Disconnected
               echo let's start something up
               pause
               goto start
               goto :eof
           )
        )
      ) else (
          echo "Gateway Connection Is Up"
          goto start
 )

0 个答案:

没有答案