sunlubo / SwiftFFmpeg

A Swift wrapper for the FFmpeg API
Apache License 2.0
511 stars 83 forks source link

Decode video example throws errors. #52

Open zSoNz opened 3 years ago

zSoNz commented 3 years ago

Hi I tried to execute decode example from lib (link bellow) and got this error. Maybe someone know why it's happens?

Снимок экрана 2021-07-07 в 15 24 30

https://github.com/sunlubo/SwiftFFmpeg/blob/master/Sources/SwiftFFmpegExamples/decode_video.swift

zSoNz commented 3 years ago

And it throws errors on this line

https://github.com/sunlubo/SwiftFFmpeg/blob/b656c2d7a1716ad86f023ea5c62262d83378edc7/Sources/SwiftFFmpegExamples/decode_video.swift#L38-L40

sunlubo commented 3 years ago

Your h264 file may be invalid.

zSoNz commented 3 years ago

@sunlubo , you mean file what I try to decode?

sunlubo commented 2 years ago

sorry for the delay, can you share your video file?