title: Android Camera2 picture is black and video records only 1sec
body: <p>I am using Camera2 API with help of the two examples that you can find here:</p>
  
  <ul>
  <li><a href="https://github.com/googlesamples/android-Camera2Video/" rel="nofollow">GitHub - Camera2Video</a></li>
  <li><a href="https://github.com/googlesamples/android-Camera2Basic" rel="nofollow">GitHub - Camera2Basic</a></li>
  </ul>
  
  <p>I am using identical source code like in the above links, so I wont copy my Source here (unless you require some parts, I will edit my question and post it).</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>Ran some tests. When I try to play the video through my phone, it only displays the first frame and I can hear Audio (voices) that were actually in the recording. Once the video goes until end, the video somehow restarts automatically and displays the video as it should.</p>
  
  <p>However, when I try to play the video on my PC (copying it from Phone to Desktop), I only get black screen until the last frame. Last frame is shown, but the video does not play at all. I can hear Audio (voices) tho.</p>
  
  <p>I am thinking of maybe there's issue with some Video encoding / decoding?</p>
  
  <p><strong>ISSUE:</strong></p>
  
  <blockquote>
    <p>In my case the Video recording won't work. I
    can see both files in the directory that they should be on my Phone,
    but when I play the video
    (5 second video) <strong>first 4 seconds are black</strong>, then last second is like
    one Frame of what I recorded and that's it, yet file size seems big (160MB).</p>
  </blockquote>
  
  <p><strong>SCREENS:</strong></p>
  
  <ul>
  <li><em>Will post video once uploaded</em></li>
  </ul>
  
  <p>I do not know what is wrong, can someone please help?</p>