VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 31
Thread
  1. I'm struggling to get ffmpeg-php to compile. I've tried the release version of 0.8 and the svn version, but I'm getting the following errors:

    Any ideas?


    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:74: error: 'MAX_STREAMS' undeclared here (not in a function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_video_stream':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:154: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:154: error: (Each undeclared identifier is reported only once
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:154: error: for each function it appears in.)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_audio_stream':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:167: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_open_movie_file':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:260: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1086)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_decoder_context':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:486: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getComment':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:533: error: 'AVFormatContext' has no member named 'comment'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:533: error: 'AVFormatContext' has no member named 'comment'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getTitle':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:548: error: 'AVFormatContext' has no member named 'title'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:548: error: 'AVFormatContext' has no member named 'title'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAuthor':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:563: error: 'AVFormatContext' has no member named 'author'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:563: error: 'AVFormatContext' has no member named 'author'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getCopyright':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:577: error: 'AVFormatContext' has no member named 'copyright'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:577: error: 'AVFormatContext' has no member named 'copyright'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAlbum':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:592: error: 'AVFormatContext' has no member named 'album'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:592: error: 'AVFormatContext' has no member named 'album'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getGenre':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:606: error: 'AVFormatContext' has no member named 'genre'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:606: error: 'AVFormatContext' has no member named 'genre'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getTrackNumber':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:621: error: 'AVFormatContext' has no member named 'track'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getYear':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:634: error: 'AVFormatContext' has no member named 'year'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_framerate':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:680: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_framenumber':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:812: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_pixelformat':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:852: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getPixelFormat':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:870: warning: 'avcodec_get_pix_fmt_name' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3406)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_codec_name':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:965: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoCodec':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:991: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioCodec':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1011: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoStreamId':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1031: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioStreamId':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1053: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioChannels':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1091: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioSampleRate':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1127: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioBitRate':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1163: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoBitRate':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1183: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_read_av_frame':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1206: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1217: warning: implicit declaration of function 'avcodec_decode_video'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1221: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_av_frame':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1248: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1284: error: 'AVCodecContext' has no member named 'hurry_up'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1286: error: 'AVCodecContext' has no member named 'hurry_up'
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_sample_aspect_ratio':
    /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1445: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    make: *** [ffmpeg_movie.lo] Error 1
    Last edited by richiedood; 1st Jul 2011 at 19:08.
    Quote Quote  
  2. I was testing with broken and unsupported file types that ffmpeg couldn't cope with...
    Quote Quote  
  3. hello

    I just upgrade ffmpeg and now I can't have ffmpeg-php to install.. how did you solve this issue?

    thanks
    Quote Quote  
  4. what do you mean

    I can't have ffmpeg-php to install
    ?
    Quote Quote  
  5. well i get same errors as the one you show in the topic
    Quote Quote  
  6. can you post your errors?
    Quote Quote  
  7. there are the same as yours!! exact same log during make
    Quote Quote  
  8. sure
    Quote Quote  
  9. /root/ffmpeg-php/ffmpeg-php/trunk/ffmpeg-php/ffmpeg_movie.c:1284: error: 'AVCodecContext' has no member named 'hurry_up
    have you got this?
    Quote Quote  
  10. hurry up exactly!!
    Quote Quote  
  11. root@server:/root/ffmpeg-php# make
    /bin/bash /root/ffmpeg-php/libtool --mode=compile cc -I. -I/root/ffmpeg-php -DPHP_ATOM_INC -I/root/ffmpeg-php/include -I/root/ffmpeg-php/main -I/root/ffmpeg-php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/ffmpeg-php/ffmpeg_movie.c -o ffmpeg_movie.lo
    libtool: compile: cc -I. -I/root/ffmpeg-php -DPHP_ATOM_INC -I/root/ffmpeg-php/include -I/root/ffmpeg-php/main -I/root/ffmpeg-php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/ffmpeg-php/ffmpeg_movie.c -fPIC -DPIC -o .libs/ffmpeg_movie.o
    /root/ffmpeg-php/ffmpeg_movie.c:74: error: âMAX_STREAMSâ undeclared here (not in a function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_video_streamâ:
    /root/ffmpeg-php/ffmpeg_movie.c:154: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c:154: error: (Each undeclared identifier is reported only once
    /root/ffmpeg-php/ffmpeg_movie.c:154: error: for each function it appears in.)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_audio_streamâ:
    /root/ffmpeg-php/ffmpeg_movie.c:167: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_open_movie_fileâ:
    /root/ffmpeg-php/ffmpeg_movie.c:260: warning: âav_open_input_fileâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1105)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_decoder_contextâ:
    /root/ffmpeg-php/ffmpeg_movie.c:486: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getCommentâ:
    /root/ffmpeg-php/ffmpeg_movie.c:533: error: âAVFormatContextâ has no member named âcommentâ
    /root/ffmpeg-php/ffmpeg_movie.c:533: error: âAVFormatContextâ has no member named âcommentâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getTitleâ:
    /root/ffmpeg-php/ffmpeg_movie.c:548: error: âAVFormatContextâ has no member named âtitleâ
    /root/ffmpeg-php/ffmpeg_movie.c:548: error: âAVFormatContextâ has no member named âtitleâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAuthorâ:
    /root/ffmpeg-php/ffmpeg_movie.c:563: error: âAVFormatContextâ has no member named âauthorâ
    /root/ffmpeg-php/ffmpeg_movie.c:563: error: âAVFormatContextâ has no member named âauthorâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getCopyrightâ:
    /root/ffmpeg-php/ffmpeg_movie.c:577: error: âAVFormatContextâ has no member named âcopyrightâ
    /root/ffmpeg-php/ffmpeg_movie.c:577: error: âAVFormatContextâ has no member named âcopyrightâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAlbumâ:
    /root/ffmpeg-php/ffmpeg_movie.c:592: error: âAVFormatContextâ has no member named âalbumâ
    /root/ffmpeg-php/ffmpeg_movie.c:592: error: âAVFormatContextâ has no member named âalbumâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getGenreâ:
    /root/ffmpeg-php/ffmpeg_movie.c:606: error: âAVFormatContextâ has no member named âgenreâ
    /root/ffmpeg-php/ffmpeg_movie.c:606: error: âAVFormatContextâ has no member named âgenreâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getTrackNumberâ:
    /root/ffmpeg-php/ffmpeg_movie.c:621: error: âAVFormatContextâ has no member named âtrackâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getYearâ:
    /root/ffmpeg-php/ffmpeg_movie.c:634: error: âAVFormatContextâ has no member named âyearâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_framerateâ:
    /root/ffmpeg-php/ffmpeg_movie.c:680: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_framenumberâ:
    /root/ffmpeg-php/ffmpeg_movie.c:812: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_pixelformatâ:
    /root/ffmpeg-php/ffmpeg_movie.c:852: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getPixelFormatâ:
    /root/ffmpeg-php/ffmpeg_movie.c:870: warning: âavcodec_get_pix_fmt_nameâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3409)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_codec_nameâ:
    /root/ffmpeg-php/ffmpeg_movie.c:965: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getVideoCodecâ:
    /root/ffmpeg-php/ffmpeg_movie.c:991: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioCodecâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1011: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getVideoStreamIdâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1031: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioStreamIdâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1053: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioChannelsâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1091: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioSampleRateâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1127: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioBitRateâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1163: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getVideoBitRateâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1183: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_read_av_frameâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1206: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c:1217: warning: implicit declaration of function âavcodec_decode_videoâ
    /root/ffmpeg-php/ffmpeg_movie.c:1221: error: âPKT_FLAG_KEYâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_av_frameâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1248: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php/ffmpeg_movie.c:1284: error: âAVCodecContextâ has no member named âhurry_upâ
    /root/ffmpeg-php/ffmpeg_movie.c:1286: error: âAVCodecContextâ has no member named âhurry_upâ
    /root/ffmpeg-php/ffmpeg_movie.c: In function â_php_get_sample_aspect_ratioâ:
    /root/ffmpeg-php/ffmpeg_movie.c:1445: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    make: *** [ffmpeg_movie.lo] Erreur 1

    Yes I have this too, the log is exactly the same
    Quote Quote  
  12. yours is different

    it has an â
    Quote Quote  
  13. vous parlez francais?
    Quote Quote  
  14. oui je parle
    je pense que c est assez évident que le log est le meme, c est juste un probleme d encoding des caracteres car ils foutent l os en français,

    donc, si je peux me permettre, comment avec vous résolu ce souci? je viens d upgrader ffmpeg et bien sur il fallait que qq chose foire...
    Quote Quote  
  15. ok i ll try.. not sure it works on my cpu (x86-64) as i tried before .. that package solved my problem

    http://ffmpeg-php.svn.sourceforge.net/viewvc/ffmpeg-php/trunk/ffmpeg-php/

    but now it doesn't works with latest ffmpeg, i m trying your link
    Quote Quote  
  16. this is what i should use right?
    http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/

    just asking in case.. thanks
    Quote Quote  
  17. oui,
    why not the latest?
    Quote Quote  
  18. well i tried I get exact same problem
    Quote Quote  
  19. post erreure
    Quote Quote  
  20. l erreur est la meme
    Quote Quote  
  21. l'erreur a chaanged
    Quote Quote  
  22. /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:73: error: âMAX_STREAMSâ undeclared here (not in a function)
    oui c est vrai ca a changé!

    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_video_streamâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: (Each undeclared identifier is reported only once
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: for each function it appears in.)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_audio_streamâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:165: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_open_movie_fileâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:258: warning: âav_open_input_fileâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1105)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_decoder_contextâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:484: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getCommentâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: âAVFormatContextâ has no member named âcommentâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: âAVFormatContextâ has no member named âcommentâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getTitleâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: âAVFormatContextâ has no member named âtitleâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: âAVFormatContextâ has no member named âtitleâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAuthorâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: âAVFormatContextâ has no member named âauthorâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: âAVFormatContextâ has no member named âauthorâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getCopyrightâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: âAVFormatContextâ has no member named âcopyrightâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: âAVFormatContextâ has no member named âcopyrightâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAlbumâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: âAVFormatContextâ has no member named âalbumâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: âAVFormatContextâ has no member named âalbumâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getGenreâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: âAVFormatContextâ has no member named âgenreâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: âAVFormatContextâ has no member named âgenreâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getTrackNumberâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:619: error: âAVFormatContextâ has no member named âtrackâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getYearâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:632: error: âAVFormatContextâ has no member named âyearâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_framerateâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:678: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_framenumberâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:810: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_pixelformatâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:850: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getPixelFormatâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:868: warning: âavcodec_get_pix_fmt_nameâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3409)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_codec_nameâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:963: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getVideoCodecâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:989: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioCodecâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1009: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getVideoStreamIdâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1029: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioStreamIdâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1051: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioChannelsâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1089: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioSampleRateâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1125: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getAudioBitRateâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1161: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function âzim_ffmpeg_movie_getVideoBitRateâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1181: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_read_av_frameâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1204: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: implicit declaration of function âavcodec_decode_videoâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1219: error: âPKT_FLAG_KEYâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_av_frameâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1246: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1282: error: âAVCodecContextâ has no member named âhurry_upâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1284: error: âAVCodecContextâ has no member named âhurry_upâ
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function â_php_get_sample_aspect_ratioâ:
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:1443: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    make: *** [ffmpeg_movie.lo] Erreur 1
    Quote Quote  
  23. â_?

    you using french?>

    is not the same /root/ffmpeg-php-0.6.0
    Quote Quote  
  24. of course it s not the same, since I m not using the same packet i m using the one you told me... and who cares about the folder name, could be /root/bisounours/ would be the same
    Quote Quote  
  25. who cares? you do

    i dont have 152 like you do dodo

    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
    /root/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: (Each undeclared identifier is reported only once

    not the same buddy

    http://www.youtube.com/watch?v=FXqhKnv9y3c
    Last edited by richiedood; 9th Jul 2011 at 20:23.
    Quote Quote  
  26. why do you need ffmpeg-php?
    Quote Quote  
  27. more i read this more i think alcohol is bad.... has to be the worst "help" I ever received..
    Quote Quote  
  28. I am getting exctaly same error with both ffmpeg-php-0.6.0 and ffmpeg-php-0.5.3.1
    Has any one got it working ?
    Code:
    /bin/sh /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/libtool --mode=compile gcc  -I. -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/include -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/main -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
    mkdir .libs
     gcc -I. -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/include -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/main -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
    /bin/sh /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/libtool --mode=compile gcc  -I. -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/include -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/main -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c -o ffmpeg_movie.lo
     gcc -I. -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/include -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0/main -I/mnt/sdc1/usr/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c  -fPIC -DPIC -o .libs/ffmpeg_movie.o
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:73: error: 'MAX_STREAMS' undeclared here (not in a function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_video_stream':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: (Each undeclared identifier is reported only once
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: for each function it appears in.)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_audio_stream':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:165: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_open_movie_file':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:258: warning: 'av_open_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1113)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_decoder_context':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:484: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:513: warning: 'avcodec_open' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3744)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getComment':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: 'AVFormatContext' has no member named 'comment'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: 'AVFormatContext' has no member named 'comment'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getTitle':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: 'AVFormatContext' has no member named 'title'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: 'AVFormatContext' has no member named 'title'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAuthor':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: 'AVFormatContext' has no member named 'author'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: 'AVFormatContext' has no member named 'author'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getCopyright':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: 'AVFormatContext' has no member named 'copyright'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: 'AVFormatContext' has no member named 'copyright'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAlbum':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: 'AVFormatContext' has no member named 'album'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: 'AVFormatContext' has no member named 'album'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getGenre':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: 'AVFormatContext' has no member named 'genre'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: 'AVFormatContext' has no member named 'genre'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getTrackNumber':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:619: error: 'AVFormatContext' has no member named 'track'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getYear':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:632: error: 'AVFormatContext' has no member named 'year'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_framerate':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:678: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_framenumber':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:810: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_pixelformat':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:850: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getPixelFormat':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:868: warning: 'avcodec_get_pix_fmt_name' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3415)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_codec_name':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:963: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getVideoCodec':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:989: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioCodec':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1009: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getVideoStreamId':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1029: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioStreamId':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1051: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioChannels':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1089: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioSampleRate':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1125: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getAudioBitRate':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1161: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zif_ffmpeg_movie_getVideoBitRate':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1181: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_read_av_frame':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1204: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: implicit declaration of function 'avcodec_decode_video'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1219: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_av_frame':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1246: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1282: error: 'AVCodecContext' has no member named 'hurry_up'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1284: error: 'AVCodecContext' has no member named 'hurry_up'
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_sample_aspect_ratio':
    /mnt/sdc1/usr/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1443: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
    make: *** [ffmpeg_movie.lo] Error 1
    Quote Quote  
  29. not really a solution but for me downgrading to ffmpeg 0.7.1 did it
    http://ffmpeg.org/download.html

    I think ffmpeg 0.8 brought some major changes to the "api" and that could be the reason ffmpeg-php doesn't compile anymore
    s
    also since ffmpeg use git now, i don't really know how to get earlier release. before was; svn -r releasenumber

    but ffmpeg 0.7 is pretty recent anyway, i might just adopt it
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!