FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
582 stars 105 forks source link

Cannot compilue under Ubuntu Trusty 14.04 #234

Closed StuxSoftware closed 8 years ago

StuxSoftware commented 8 years ago
src/core/track.cpp: In lambda function:
src/core/track.cpp:243:34: error: ‘av_rescale’ was not declared in this scope
   return av_rescale(Dur, Num, Den);
                                  ^
src/core/track.cpp: In member function ‘void FFMS_Track::FillAudioGaps()’:
src/core/track.cpp:247:73: error: ‘const void ExpectedSamples’ has incomplete type
  const auto ExpectedSamples = DurationToSamples(back().PTS - front().PTS);
                                                                         ^
src/core/track.cpp:269:74: error: ‘const void ExpectedStartSample’ has incomplete type
   const auto ExpectedStartSample = DurationToSamples(Frame.PTS - FirstPTS);
                                                                          ^
make: *** [src/core/track.lo] Error 1
fcaneva-arg commented 8 years ago

The following fixes should be done in order to compile in Ubuntu 14.04:

#       include <libavutil/pixdesc.h>
#       define FFMS_PIX_FMT(x) PIX_FMT_##x
#       define FFMS_PIX_FMT_FLAG(x) PIX_FMT_##x

The only step I can't make through by now is building src/index/ffmsindex, which requires undefined (just not found) symbols av_get_pix_fmt(char const*) and av_rescale(long, long, long). If I find both symbols, then I'd be able to finish building.