zoukankan      html  css  js  c++  java
  • android.hardware.camera

    将照片保存在系统默认的DCIM文件夹下:
    File testFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), "TestCamera");//在DCIM文件夹里新建一个文件夹TestCamera
    testFile.mkdir();

    视频基础知识:
    • Few Basics : When we say a video file, ex : avi, it is combination of both audio and video
    • Video file = Video + Audio
    • Video = Codec + Muxer + Demuxer
    • codec = encoder + Decoder
    • => Video = encoder + decoder + Muxer + Demuxer(Mpeg4 + Mpeg4 + avi +avi - Example for avi container)
    • Audio = Codec + Muxer + Demuxer
    • codec = encoder + Decoder
    • => Audio = encoder + decoder + Muxer + Demuxer(mp2 + mp2 + avi + avi - Example for avi container)
    Codec(name is deriverd from a combination of en*co*der/*dec*oder) is just a part of format which defines the algorithms used to encode/decode a frame.
    AVI is not a codec, it is a container which uses Video codec of Mpeg4 and Audio codec of mp2.


    Muxer/demuxer is used to combine/separate the frames from a file used while encoding/decoding.So if you want to use avi format, you need to enable Video components + Audio components.Ex, for avi, you need to enable the following. mpeg4 Encoder, mpeg4 decoder, mp2 encoder, mp2 decoder, avi muxer, avi demuxer.

     MediaCodec:

    Codecs operate on three kinds of data: compressed data, raw audio data and raw video data.

    目前安卓视频有关的App
    美拍:FFMEG




    引用:
    1.AnDevCon 2014: Building a Custom Camera Application
    2.Developer.Android.com:Camera

  • 相关阅读:
    19.将写好的输出到本地 文件格式:Step
    18.对Topo进行打孔
    17.球体
    16.圆柱
    15.绘制圆锥
    14.Chamfer把正方体所有的边倒角
    13.绘制一个方体
    ①②坐标点
    esp8266接线
    IP解析
  • 原文地址:https://www.cnblogs.com/rockylearnstodevelop/p/5321923.html
Copyright © 2011-2022 走看看