jonataslaw / jonataslaw/VideoCompress

App crashes on some videos on iOS

Open
#31 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
262
Forks
344
PR merge metrics
No merged PRs in 30d

Description

EDIT TWO:
**This might be the fix: https://github.com/rurico/flutter_video_compress/pull/61/files I created a pull request based on this**

### Description
On iOS (possibly on Android too, but not tested extensively enough), with certain video files the app crashes. Is this the behavior if it finds a file it can not compress? If so, would it be possible to share a list with the video types that are supported?

**EDIT: Just tested on Android the problem does not persist.**

### Platform
IOS

### More info

The file with following media info does not work on iOS (complete different on phone as I transferred it to my desktop):

General
Complete name : C:\Users\Msi\Desktop\F910ADD0-059A-4592-9303-B22A0B810922.MP4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 6.38 MiB
Duration : 1 min 10 s
Overall bit rate mode : Variable
Overall bit rate : 754 kb/s
Encoded date : UTC 2015-04-27 16:53:10
Tagged date : UTC 2015-04-27 16:53:10
Writing application : Lavf52.62.0
Comment : FlixEngine_8.1.0.2

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=60
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 min 10 s
Bit rate : 655 kb/s
Width : 270 pixels
Height : 480 pixels
Display aspect ratio : 0.563
Frame rate mode : Variable
Frame rate : 30.000 FPS
Minimum frame rate : 29.412 FPS
Maximum frame rate : 30.303 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.168
Stream size : 5.51 MiB (86%)
Encoded date : UTC 2015-04-27 16:53:10
Tagged date : UTC 2015-04-27 16:53:10

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1 min 10 s
Bit rate mode : Variable
Bit rate : 96.0 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 spf)
Compression mode : Lossy
Stream size : 832 KiB (13%)
Encoded date : UTC 2015-04-27 16:53:10
Tagged date : UTC 2015-04-27 16:53:10

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.