Repository: flutter
Issue: [camera] recording video of 200MS duration is not possible on android
Labels: platform-android,p: camera,package,has reproducible steps,P3,team-android,triaged-android,found in release: 3.24

### Steps to reproduce

Test 1:
1. Start recording video using ```await controller?.startVideoRecording()``` 
2. Wait till 200 MS
3. Call ```controller?.stopVideoRecording()```

Test 2:
1. Start recording video using ```await controller?.startVideoRecording()``` 
2. Wait till 2 seconds
3. Call ```controller?.stopVideoRecording()```

### Expected results

Test 1:
- Video with 200MS runtime should be generated

Test 2:
- Video with 2 seconds runtime should be generated

### Actual results

Test 1:
- .temp file is returned with 0 byte size

Test 2:
- .temp file is returned (if you extension change to .mp4 it will be video with 1.7 seconds)

### Code sample

<details open><summary>Code sample</summary>
Test 1:

```dart
    await controller?.startVideoRecording();
    await Future.delayed(const Duration(milliseconds: 200), () {});
    final video = await controller!.stopVideoRecording();
    video.path.logI;
    (await video.length()).logI;
```

Test 2:
```dart
    await controller?.startVideoRecording();
    await Future.delayed(const Duration(milliseconds: 2000), () {});
    final video = await controller!.stopVideoRecording();
    video.path.logI;
    (await video.length()).logI;
```
</details>


### Additional Info
- Test 1 fails with error if we are not using camerax implementation.
- Look into [.temp file issue](https://github.com/flutter/flutter/issues/148335) for additional context.

### Logs

<details open><summary>Logs</summary>

Test 1:
```console
I/flutter (25587): │ 💡 /data/user/0/com.zizle.dev/cache/REC7265390614749397427.temp
I/flutter (25587): │ 💡 0
```

Test 2:
```console
I/flutter (25587): │ 💡 /data/user/0/com.zizle.dev/cache/REC1589270164385580655.temp
I/flutter (25587): │ 💡 4187259
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.4.1 23E224 darwin-x64, locale
    en-US)
    • Flutter version 3.22.3 on channel stable at /Users/tagline/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (6 weeks ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/tagline/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.92.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (4 available)
    • IV2201 (mobile)         • PRHYZHS8WC6LUOTO          • android-arm64  •
      Android 13 (API 33)
    • iPhone 12 Mini (mobile) • 00008101-001039AC0AF1003A • ios            • iOS
      15.4.1 19E258
    • macOS (desktop)         • macos                     • darwin-x64     •
      macOS 14.4.1 23E224 darwin-x64
    • Chrome (web)            • chrome                    • web-javascript •
      Google Chrome 128.0.6613.84

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>