a-schild / jave2

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project
GNU General Public License v3.0
1.2k stars 246 forks source link

How to get video data if there is no metadata #247

Open scholes25rus opened 7 months ago

scholes25rus commented 7 months ago

MultimediaObject: Invalid duration found Duration: N/A, start: 0.000000, bitrate: N/A 2023-11-28-28T09:31:22,148 ERROR [scheduling-1] r.i.e.u.s.FilesScheduler: ERROR in uploadVideoFiles: java.lang.NullPointerException: Cannot invoke "ws.schild.jave.info.VideoInfo.getSize()" because the return value of "ws.schild.jave.info.MultimediaInfo.getVideo()" is null 2023-11-28-28T09:31:22,148 ERROR [scheduling-1] o.s.a.i.SimpleAsyncUncaughtExceptionHandler: Unexpected exception occurred invoking async method: public void service.utils.schedulers.FilesScheduler.uploadVideoFiles() org.springframework.transaction.UnexpectedRollbackException Hello. I am getting this error in the logs. Can you please tell me how to get video data(resolution and duration) if there is no metadata?

a-schild commented 7 months ago

As each media file is different, we need a sample. Can you detect it from via the ffmpeg commandline?