pytorch-coviar
pytorch-coviar copied to clipboard
how data_loader suport H.264?
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!
+1
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.
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)