Skip to content

Commit

Permalink
[core/ffmpeg] Add support for FICV video codec
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Jun 30, 2018
1 parent 200e2d6 commit f1edd30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions avidemux_core/ADM_coreUtils/src/ADM_coreCodecMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const ffVideoCodec ffCodec[]=
{"MJPB", AV_CODEC_ID_MJPEGB, false, false, false},
{"FPS1", AV_CODEC_ID_FRAPS, false, false, false},
{"cvid", AV_CODEC_ID_CINEPAK, false, false, false},
{"FICV", AV_CODEC_ID_FIC, false, false, false},
// Need extradata
{"WMV2", AV_CODEC_ID_WMV2, true, false, false},
{"WMV1", AV_CODEC_ID_WMV1, true, false, false},
Expand Down
11 changes: 11 additions & 0 deletions avidemux_core/ADM_coreVideoCodec/src/ADM_ffmp43.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,17 @@ bool decoderFF::uncompress (ADMCompressedImage * in, ADMImage * out)
_context->reordered_opaque=(int64_t)in->demuxerPts;
}
out->_qStride = 0; //Default = no quant

// Don't trust the FICV decoder to set frame type and PTS
if(codecId == AV_CODEC_ID_FIC)
{
if(in->flags&AVI_KEY_FRAME)
_frame->pict_type=AV_PICTURE_TYPE_I;
else
_frame->pict_type=AV_PICTURE_TYPE_P;
_frame->reordered_opaque=(int64_t)in->demuxerPts;
}

#if 0
if (0 > ret && !hurryUp)
{
Expand Down
2 changes: 1 addition & 1 deletion cmake/admFFmpegBuild_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set(FFMPEG_BASE_DIR "${FFMPEG_EXTRACT_DIR}/ffmpeg")
set(FFMPEG_SOURCE_DIR "${FFMPEG_BASE_DIR}/source")
set(FFMPEG_BINARY_DIR "${FFMPEG_BASE_DIR}/build")

set(FFMPEG_DECODERS aac ac3 eac3 adpcm_ima_amv amv bmp cinepak cyuv dca dvbsub dvvideo ffv1 ffvhuff flv fraps h263 h264
set(FFMPEG_DECODERS aac ac3 eac3 adpcm_ima_amv amv bmp cinepak cyuv dca dvbsub dvvideo ffv1 ffvhuff fic flv fraps h263 h264
hevc huffyuv mjpeg
mjpegb mpeg2video mpeg4 msmpeg4v2 msmpeg4v3 msvideo1 nellymoser png qdm2 rawvideo snow
svq3 theora tscc mp2 mp3 mp2_float mp3_float
Expand Down

0 comments on commit f1edd30

Please sign in to comment.