pytorch-coviar icon indicating copy to clipboard operation
pytorch-coviar copied to clipboard

how data_loader suport H.264?

Open BigBugGrow opened this issue 6 years ago • 3 comments

Hello,thanks for your awesome job! In geting_started,you said,"Currently we only support mpeg4 raw videos. Other codecs, e.g. H.264, coming soon. The mpeg4 raw videos can be obtained using FFmpeg" When can you support H.264? Or how should I modify the code coviar_data_loader.c to support H.264? Using FFmpeg convert my videos(H.264) to mpeg4 spend too much time.

Look forward to your reply!

BigBugGrow avatar Aug 23 '18 03:08 BigBugGrow

+1

yanxp avatar Aug 25 '18 08:08 yanxp

Hi thanks for the questions. Unfortunately, it might take a bit longer, but I'll keep you updated if I have any updates.

I'd also like to point out that H.264 uses also B-frames. To handle them, it requires some modification or additional mechanisms that are beyond what's discussed in the paper. Thus I would suggest try MPEG4 first (just to be safe) even if you eventually want to try H.264.

chaoyuaw avatar Aug 27 '18 16:08 chaoyuaw

can't I change this to the following? avcodec_find_decoder(AV_CODEC_ID_MPEG4) -> avcodec_find_decoder(AV_CODEC_ID_H264) and pCodecParserCtx=av_parser_init(AV_CODEC_ID_MPEG4) -> pCodecParserCtx=av_parser_init(AV_CODEC_ID_H264)

Interesting6 avatar Apr 03 '20 12:04 Interesting6