Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (50)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (9268)

  • flutter : Getting width and height of video using

    2 mai 2019, par ebg11

    I am trying to retrieve the width and height of a video using flutter. I have tried using ffmpeg

    _flutterFFmpeg.getMediaInformation(file.path);

    but the width and height are occasionally flipped. I have noticed
    "rotate" -> "90" and "displaymatrix" -> "rotation of -90.00 degrees" are present in the meta data returned.

    Is there a bug free method of using the rotate/display matrix to determine the true width/height of the video or is there a better method/library that can help me here ?

    Thanks.

  • Trouble linking own application using ffmpeg/libav

    2 mai 2019, par Kiamur

    I have a source, that I’d like to build and link against the libav library on Linux.
    I followed the compilation guide of ffmpeg here : https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
    Everything works.
    I build the included examples like this : FFmpeg : building example C codes
    It also works.

    Now, I’d like to build my own little applications, where I try to learn about using libav. My current problem is, that by using the command line

    gcc muxing.c -g -I ../../../ffmpeg_build/include/ -L ../../../ffmpeg_build/lib/ -lavdevice -lavformat -lavfilter -lavcodec -lswresample -lswscale -lavutil -lm -lz -lpthread -lfdk-aac -lmp3lame -lx264 -lva -lX11

    I get to this point :

    muxing.c: In function ‘write_audio_frame’:
    muxing.c:354:5: warning: ‘avcodec_encode_audio2’ is deprecated [-Wdeprecated-declarations]
        ret = avcodec_encode_audio2(codecContext, &pkt, frame, &got_packet);
        ^~~
    In file included from ../../../ffmpeg_build/include/libavformat/avformat.h:317:0,
                    from muxing.c:42:
    ../../../ffmpeg_build/include/libavcodec/avcodec.h:5418:5: note: declared here
    int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
        ^~~~~~~~~~~~~~~~~~~~~
    muxing.c: In function ‘write_video_frame’:
    muxing.c:524:5: warning: ‘avcodec_encode_video2’ is deprecated [-Wdeprecated-declarations]
        ret = avcodec_encode_video2(codecContext, &pkt, frame, &got_packet);
        ^~~
    In file included from ../../../ffmpeg_build/include/libavformat/avformat.h:317:0,
                    from muxing.c:42:
    ../../../ffmpeg_build/include/libavcodec/avcodec.h:5457:5: note: declared here
    int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
        ^~~~~~~~~~~~~~~~~~~~~
    /usr/bin/ld: ../../../ffmpeg_build/lib//libx264.a(opencl-8.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
    //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status

    Then I read, in order to overcome this linker error, I have to append -ldl to my command line, but then I get this :

    ../../../ffmpeg_build/lib//libavcodec.a(libopusdec.o): In function `libopus_flush':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:204: undefined reference to `opus_multistream_decoder_ctl'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusdec.o): In function `libopus_decode':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:169: undefined reference to `opus_multistream_decode_float'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:165: undefined reference to `opus_multistream_decode'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:174: undefined reference to `opus_strerror'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusdec.o): In function `libopus_decode_close':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:145: undefined reference to `opus_multistream_decoder_destroy'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusdec.o): In function `libopus_decode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:101: undefined reference to `opus_multistream_decoder_create'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:105: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:111: undefined reference to `opus_multistream_decoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:113: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:126: undefined reference to `opus_multistream_decoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusdec.c:129: undefined reference to `opus_strerror'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusenc.o): In function `libopus_encode':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:487: undefined reference to `opus_multistream_encode'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:483: undefined reference to `opus_multistream_encode_float'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:492: undefined reference to `opus_strerror'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusenc.o): In function `libopus_encode_close':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:530: undefined reference to `opus_multistream_encoder_destroy'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusenc.o): In function `libopus_encode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:348: undefined reference to `opus_multistream_encoder_create'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:358: undefined reference to `opus_multistream_surround_encoder_create'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:365: undefined reference to `opus_strerror'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusenc.o): In function `libopus_configure_encoder':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:121: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:123: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:128: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:131: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:134: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:136: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:139: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:142: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:145: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:148: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:153: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:156: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:161: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:164: undefined reference to `opus_strerror'
    ../../../ffmpeg_build/lib//libavcodec.a(libopusenc.o): In function `libopus_encode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:410: undefined reference to `opus_multistream_encoder_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:412: undefined reference to `opus_strerror'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libopusenc.c:426: undefined reference to `opus_multistream_encoder_destroy'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisenc.o): In function `libvorbis_encode_frame':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:287: undefined reference to `vorbis_analysis_buffer'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:294: undefined reference to `vorbis_analysis_wrote'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:310: undefined reference to `vorbis_analysis_blockout'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:311: undefined reference to `vorbis_analysis'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:313: undefined reference to `vorbis_bitrate_addblock'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:317: undefined reference to `vorbis_bitrate_flushpacket'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:302: undefined reference to `vorbis_analysis_wrote'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisenc.o): In function `libvorbis_encode_close':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:180: undefined reference to `vorbis_analysis_wrote'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:182: undefined reference to `vorbis_block_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:183: undefined reference to `vorbis_dsp_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:184: undefined reference to `vorbis_info_clear'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisenc.o): In function `libvorbis_encode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:203: undefined reference to `vorbis_info_init'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisenc.o): In function `libvorbis_setup':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:98: undefined reference to `vorbis_encode_setup_vbr'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:107: undefined reference to `vorbis_encode_setup_managed'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:114: undefined reference to `vorbis_encode_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:121: undefined reference to `vorbis_encode_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:127: undefined reference to `vorbis_encode_ctl'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:160: undefined reference to `vorbis_encode_setup_init'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisenc.o): In function `libvorbis_encode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:208: undefined reference to `vorbis_analysis_init'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:214: undefined reference to `vorbis_block_init'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:220: undefined reference to `vorbis_comment_init'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:222: undefined reference to `vorbis_comment_add_tag'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:224: undefined reference to `vorbis_analysis_headerout'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisenc.c:257: undefined reference to `vorbis_comment_clear'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `decode_frame':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:161: undefined reference to `vpx_codec_decode'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `vpx_decode':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:221: undefined reference to `vpx_codec_get_frame'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `decode_frame':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:162: undefined reference to `vpx_codec_error'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:163: undefined reference to `vpx_codec_error_detail'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:161: undefined reference to `vpx_codec_decode'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:162: undefined reference to `vpx_codec_error'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `vpx_decode':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:222: undefined reference to `vpx_codec_get_frame'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:201: undefined reference to `vpx_codec_vp9_dx_algo'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:201: undefined reference to `vpx_codec_vp8_dx_algo'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `vpx_free':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:269: undefined reference to `vpx_codec_destroy'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:271: undefined reference to `vpx_codec_destroy'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `vpx_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:53: undefined reference to `vpx_codec_version_str'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:54: undefined reference to `vpx_codec_build_config'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:56: undefined reference to `vpx_codec_dec_init_ver'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:59: undefined reference to `vpx_codec_error'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `vp8_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:278: undefined reference to `vpx_codec_vp8_dx_algo'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxdec.o): In function `vp9_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxdec.c:298: undefined reference to `vpx_codec_vp9_dx_algo'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `vpx_encode':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:1118: undefined reference to `vpx_codec_encode'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:1126: undefined reference to `vpx_codec_encode'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `queue_frames':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:979: undefined reference to `vpx_codec_get_cx_data'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:981: undefined reference to `vpx_codec_get_cx_data'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `log_encoder_error':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:164: undefined reference to `vpx_codec_error'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:165: undefined reference to `vpx_codec_error_detail'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `codecctl_int':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:298: undefined reference to `vpx_codec_control_'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `vpx_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:524: undefined reference to `vpx_codec_get_caps'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:527: undefined reference to `vpx_codec_version_str'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:528: undefined reference to `vpx_codec_build_config'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:533: undefined reference to `vpx_codec_enc_config_default'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:534: undefined reference to `vpx_codec_err_to_string'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:719: undefined reference to `vpx_codec_enc_init_ver'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:727: undefined reference to `vpx_codec_enc_init_ver'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:812: undefined reference to `vpx_img_wrap'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:820: undefined reference to `vpx_img_wrap'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `vp8_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:1279: undefined reference to `vpx_codec_vp8_cx'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `vp9_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:1309: undefined reference to `vpx_codec_vp9_cx'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `codecctl_intp':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:320: undefined reference to `vpx_codec_control_'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpxenc.o): In function `vpx_free':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:344: undefined reference to `vpx_codec_destroy'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpxenc.c:346: undefined reference to `vpx_codec_destroy'
    ../../../ffmpeg_build/lib//libavcodec.a(libx265.o): In function `libx265_encode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libx265.c:84: undefined reference to `x265_api_get_173'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libx265.c:86: undefined reference to `x265_api_get_173'
    ../../../ffmpeg_build/lib//libavcodec.a(libx265.o): In function `libx265_encode_init_csp':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libx265.c:494: undefined reference to `x265_api_get_173'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libx265.c:496: undefined reference to `x265_api_get_173'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libx265.c:498: undefined reference to `x265_api_get_173'
    ../../../ffmpeg_build/lib//libavcodec.a(libvpx.o): In function `ff_vp9_init_static':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpx.c:73: undefined reference to `vpx_codec_vp9_cx'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvpx.c:73: undefined reference to `vpx_codec_get_caps'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_close':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:191: undefined reference to `vorbis_block_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:192: undefined reference to `vorbis_dsp_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:193: undefined reference to `vorbis_info_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:194: undefined reference to `vorbis_comment_clear'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_frame':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:169: undefined reference to `vorbis_synthesis'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:175: undefined reference to `vorbis_synthesis_pcmout'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:179: undefined reference to `vorbis_synthesis_read'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:170: undefined reference to `vorbis_synthesis_blockin'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:48: undefined reference to `vorbis_info_init'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:49: undefined reference to `vorbis_comment_init'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:97: undefined reference to `vorbis_synthesis_headerin'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_close':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:191: undefined reference to `vorbis_block_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:192: undefined reference to `vorbis_dsp_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:193: undefined reference to `vorbis_info_clear'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:194: undefined reference to `vorbis_comment_clear'
    ../../../ffmpeg_build/lib//libavcodec.a(libvorbisdec.o): In function `oggvorbis_decode_init':
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:109: undefined reference to `vorbis_synthesis_init'
    /home/ritter/ffmpeg_sources/ffmpeg/libavcodec/libvorbisdec.c:110: undefined reference to `vorbis_block_init'
    ../../../ffmpeg_build/lib//libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
    /home/ritter/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:1490: undefined reference to `vaGetDisplay'
    /home/ritter/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:1514: undefined reference to `vaGetDisplayDRM'
    ../../../ffmpeg_build/lib//libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_derive':
    /home/ritter/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:1561: undefined reference to `vaGetDisplayDRM'
    ../../../ffmpeg_build/lib//libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_create':
    /home/ritter/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:461: undefined reference to `vdp_device_create_x11'
    collect2: error: ld returned 1 exit status

    So, what can I do, to get it compiled and linked fully ?

  • FFMPEG extracting 1 second resized with copy codec

    28 avril 2019, par boblapointe

    How can I extract 1 second ( using fast seek ) from a video, resize it, using vp9 ? I always get the same errors. Here are the bare bone commands I’m trying :

    ffmpeg -ss 00:00:10 -i test.webm -to 00:00:01 -filter:v "scale=min(iw\,1280):min(ih\,720):force_original_aspect_ratio=decrease" -c:v libvpx-vp9 -y output.webm

    It returns :

    "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

    After playing around I realize that this will work :

    ffmpeg -ss 00:00:10 -i test.webm -to 00:00:01 -c copy -y output.webm

    Not ideal but at least it works, so I add the filter :

    ffmpeg -ss 00:00:10 -i test.webm -to 00:00:01 -filter:v "scale=min(iw\,1280):min(ih\,720):force_original_aspect_ratio=decrease" -c copy -y output.webm

    Ant then I get :

    "Filtering and streamcopy cannot be used together."

    I’ve tried all kinds of combinations, unsuccessfully. Any hint would be appreciated. Thank you


    Here is the full log of the first command :

        ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
          built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
          configuration : —prefix=/usr —extra-version=0ubuntu0.18.04.1 —toolchain=hardened —libdir=/usr/lib/x86_64-linux-gnu —incdir=/usr/include/x86_64-linux-gnu —enable-gpl —disable-stripping —enable-avresample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libcdio —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable-libmp3lame —enable-libmysofa —enable-libopenjpeg —enable-libopenmpt —enable-libopus —enable-libpulse —enable-librubberband —enable-librsvg —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzmq —enable-libzvbi —enable-omx —enable-openal —enable-opengl —enable-sdl2 —enable-libdc1394 —enable-libdrm —enable-libiec61883 —enable-chromaprint —enable-frei0r —enable-libopencv —enable-libx264 —enable-shared
          libavutil      55. 78.100 / 55. 78.100
          libavcodec     57.107.100 / 57.107.100
          libavformat    57. 83.100 / 57. 83.100
          libavdevice    57. 10.100 / 57. 10.100
          libavfilter     6.107.100 /  6.107.100
          libavresample   3.  7.  0 /  3.  7.  0
          libswscale      4.  8.100 /  4.  8.100
          libswresample   2.  9.100 /  2.  9.100
          libpostproc    54.  7.100 / 54.  7.100
        Splitting the commandline.
        Reading option ’-ss’ ... matched as option ’ss’ (set the start time offset) with argument ’00:00:10’.
        Reading option ’-i’ ... matched as input url with argument ’test.webm’.
        Reading option ’-to’ ... matched as option ’to’ (record or transcode stop time) with argument ’00:00:01’.
        Reading option ’-filter:v’ ... matched as option ’filter’ (set stream filtergraph) with argument ’scale=min(iw\,1280):min(ih\,720):force_original_aspect_ratio=decrease’.
        Reading option ’-c:v’ ... matched as option ’c’ (codec name) with argument ’libvpx-vp9’.
        Reading option ’-y’ ... matched as option ’y’ (overwrite output files) with argument ’1’.
        Reading option ’-v’ ... matched as option ’v’ (set logging level) with argument ’debug’.
        Reading option ’output.webm’ ... matched as output url.
        Finished splitting the commandline.
        Parsing a group of options : global .
        Applying option y (overwrite output files) with argument 1.
        Applying option v (set logging level) with argument debug.
        Successfully parsed a group of options.
        Parsing a group of options : input url test.webm.
        Applying option ss (set the start time offset) with argument 00:00:10.
        Successfully parsed a group of options.
        Opening an input file : test.webm.
        [NULL @ 0x55ce679f8920] Opening ’test.webm’ for reading
        [file @ 0x55ce679f9340] Setting default whitelist ’file,crypto’
        [matroska,webm @ 0x55ce679f8920] Format matroska,webm probed with size=2048 and score=100
        st:0 removing common factor 1000000 from timebase
        [matroska,webm @ 0x55ce679f8920] Before avformat_find_stream_info() pos : 566 bytes read:32768 seeks:0 nb_streams:1
        [matroska,webm @ 0x55ce679f8920] All info found
        [matroska,webm @ 0x55ce679f8920] After avformat_find_stream_info() pos : 72449 bytes read:72449 seeks:0 frames:1
        Input #0, matroska,webm, from ’test.webm’ :
          Metadata :
            ENCODER : Lavf57.83.100
          Duration : 00:00:15.03, start : 5.016000, bitrate : 1146 kb/s
            Stream #0:0(eng), 1, 1/1000 : Video : vp9 (Profile 0), 1 reference frame, yuv420p(tv), 1280x720, 0/1, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
            Metadata :
              DURATION : 00:00:15.025000000
        Successfully opened the file.
        Parsing a group of options : output url output.webm.
        Applying option to (record or transcode stop time) with argument 00:00:01.
        Applying option filter:v (set stream filtergraph) with argument scale=min(iw\,1280):min(ih\,720):force_original_aspect_ratio=decrease.
        Applying option c:v (codec name) with argument libvpx-vp9.
        Successfully parsed a group of options.
        Opening an output file : output.webm.
        [file @ 0x55ce67b1e820] Setting default whitelist ’file,crypto’
        Successfully opened the file.
        detected 8 logical cores
        Stream mapping :
          Stream #0:0 -> #0:0 (vp9 (native) -> vp9 (libvpx-vp9))
        Press [q] to stop, [?] for help
        cur_dts is invalid (this is harmless if it occurs once at the start per stream)
            Last message repeated 1 times
        [matroska,webm @ 0x55ce679f8920] first_dts 5016 not matching first dts 10395 (pts 10395, duration 41) in the queue
        cur_dts is invalid (this is harmless if it occurs once at the start per stream)
            Last message repeated 6 times
        [Parsed_scale_0 @ 0x55ce67a7c520] Setting ’w’ to value ’min(iw,1280)’
        [Parsed_scale_0 @ 0x55ce67a7c520] Setting ’h’ to value ’min(ih,720)’
        [Parsed_scale_0 @ 0x55ce67a7c520] Setting ’force_original_aspect_ratio’ to value ’decrease’
        [Parsed_scale_0 @ 0x55ce67a7c520] Setting ’flags’ to value ’bicubic’
        [Parsed_scale_0 @ 0x55ce67a7c520] w:min(iw,1280) h:min(ih,720) flags :’bicubic’ interl:0
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] Setting ’video_size’ to value ’1280x720’
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] Setting ’pix_fmt’ to value ’0’
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] Setting ’time_base’ to value ’1/1000’
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] Setting ’pixel_aspect’ to value ’1/1’
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] Setting ’sws_param’ to value ’flags=2’
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] Setting ’frame_rate’ to value ’24000/1001’
        [graph 0 input from stream 0:0 @ 0x55ce67a7cea0] w:1280 h:720 pixfmt:yuv420p tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2
        [format @ 0x55ce67ad7d60] compat : called with args=[yuv420p|yuva420p|yuv422p|yuv440p|yuv444p|gbrp]
        [format @ 0x55ce67ad7d60] Setting ’pix_fmts’ to value ’yuv420p|yuva420p|yuv422p|yuv440p|yuv444p|gbrp’
        [AVFilterGraph @ 0x55ce67aec740] query_formats : 6 queried, 5 merged, 0 already done, 0 delayed
        [Parsed_scale_0 @ 0x55ce67a7c520] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0x4
        [libvpx-vp9 @ 0x55ce67b32200] v1.7.0
        [libvpx-vp9 @ 0x55ce67b32200] —prefix=/usr —enable-pic —enable-shared —disable-install-bins —disable-install-srcs —size-limit=16384x16384 —enable-postproc —enable-multi-res-encoding —enable-temporal-denoising —enable-vp9-temporal-denoising —enable-vp9-postproc —target=x86_64-linux-gcc
        [libvpx-vp9 @ 0x55ce67b32200] vpx_codec_enc_cfg
        [libvpx-vp9 @ 0x55ce67b32200] generic settings
          g_usage :                      0
          g_threads :                    8
          g_profile :                    0
          g_w :                          320
          g_h :                          240
          g_bit_depth :                  8
          g_input_bit_depth :            8
          g_timebase :                   1/30
          g_error_resilient :            0
          g_pass :                       0
          g_lag_in_frames :              25
        [libvpx-vp9 @ 0x55ce67b32200] rate control settings
          rc_dropframe_thresh :          0
          rc_resize_allowed :            0
          rc_resize_up_thresh :          60
          rc_resize_down_thresh :        30
          rc_end_usage :                 0
          rc_twopass_stats_in :          (nil)(0)
          rc_target_bitrate :            256
        [libvpx-vp9 @ 0x55ce67b32200] quantizer settings
          rc_min_quantizer :             0
          rc_max_quantizer :             63
        [libvpx-vp9 @ 0x55ce67b32200] bitrate tolerance
          rc_undershoot_pct :            25
          rc_overshoot_pct :             25
        [libvpx-vp9 @ 0x55ce67b32200] decoder buffer model
          rc_buf_sz :                    6000
          rc_buf_initial_sz :            4000
          rc_buf_optimal_sz :            5000
        [libvpx-vp9 @ 0x55ce67b32200] 2 pass rate control settings
          rc_2pass_vbr_bias_pct :        50
          rc_2pass_vbr_minsection_pct :  0
          rc_2pass_vbr_maxsection_pct :  2000
        [libvpx-vp9 @ 0x55ce67b32200] keyframing settings
          kf_mode :                      1
          kf_min_dist :                  0
          kf_max_dist :                  128
        [libvpx-vp9 @ 0x55ce67b32200]
        [libvpx-vp9 @ 0x55ce67b32200] vpx_codec_enc_cfg
        [libvpx-vp9 @ 0x55ce67b32200] generic settings
          g_usage :                      0
          g_threads :                    0
          g_profile :                    0
          g_w :                          1280
          g_h :                          720
          g_bit_depth :                  8
          g_input_bit_depth :            8
          g_timebase :                   1001/24000
          g_error_resilient :            0
          g_pass :                       0
          g_lag_in_frames :              25
        [libvpx-vp9 @ 0x55ce67b32200] rate control settings
          rc_dropframe_thresh :          0
          rc_resize_allowed :            0
          rc_resize_up_thresh :          60
          rc_resize_down_thresh :        30
          rc_end_usage :                 0
          rc_twopass_stats_in :          (nil)(0)
          rc_target_bitrate :            200
        [libvpx-vp9 @ 0x55ce67b32200] quantizer settings
          rc_min_quantizer :             0
          rc_max_quantizer :             63
        [libvpx-vp9 @ 0x55ce67b32200] bitrate tolerance
          rc_undershoot_pct :            25
          rc_overshoot_pct :             25
        [libvpx-vp9 @ 0x55ce67b32200] decoder buffer model
          rc_buf_sz :                    6000
          rc_buf_initial_sz :            4000
          rc_buf_optimal_sz :            5000
        [libvpx-vp9 @ 0x55ce67b32200] 2 pass rate control settings
          rc_2pass_vbr_bias_pct :        50
          rc_2pass_vbr_minsection_pct :  0
          rc_2pass_vbr_maxsection_pct :  2000
        [libvpx-vp9 @ 0x55ce67b32200] keyframing settings
          kf_mode :                      1
          kf_min_dist :                  0
          kf_max_dist :                  128
        [libvpx-vp9 @ 0x55ce67b32200]
        [libvpx-vp9 @ 0x55ce67b32200] vpx_codec_control
        [libvpx-vp9 @ 0x55ce67b32200]   VP8E_SET_CPUUSED :             1
        [libvpx-vp9 @ 0x55ce67b32200]   VP8E_SET_ARNR_MAXFRAMES :      0
        [libvpx-vp9 @ 0x55ce67b32200]   VP8E_SET_ARNR_STRENGTH :       3
        [libvpx-vp9 @ 0x55ce67b32200]   VP8E_SET_ARNR_TYPE :           3
        [libvpx-vp9 @ 0x55ce67b32200]   VP8E_SET_STATIC_THRESHOLD :    0
        [libvpx-vp9 @ 0x55ce67b32200]   VP9E_SET_COLOR_SPACE :         0
        [libvpx-vp9 @ 0x55ce67b32200]   VP9E_SET_COLOR_RANGE :         0
        [libvpx-vp9 @ 0x55ce67b32200]   VP9E_SET_TARGET_LEVEL :        255
        [libvpx-vp9 @ 0x55ce67b32200] Using deadline : 1000000
        Output #0, webm, to ’output.webm’ :
          Metadata :
            encoder : Lavf57.83.100
            Stream #0:0(eng), 0, 1/1000 : Video : vp9 (libvpx-vp9), 1 reference frame, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 0/1, q=-1—1, 200 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
            Metadata :
              DURATION : 00:00:15.025000000
              encoder : Lavc57.107.100 libvpx-vp9
            Side data :
              cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1
        cur_dts is invalid (this is harmless if it occurs once at the start per stream)
            Last message repeated 120 times
        [out_0_0 @ 0x55ce67ac35a0] EOF on sink link out_0_0:default.
        No more output streams to write to, finishing.
        [webm @ 0x55ce67b2e2a0] get_metadata_duration returned : 15025000
        [webm @ 0x55ce67b2e2a0] Write early duration from recording time = 1000
        [webm @ 0x55ce67b2e2a0] end duration = 0
        [webm @ 0x55ce67b2e2a0] stream 0 end duration = 0
        frame=    0 fps=0.0 q=0.0 Lsize=       1kB time=00:00:00.00 bitrate=N/A speed=   0x
        video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown
        Input file #0 (test.webm) :
          Input stream #0:0 (video) : 120 packets read (1031599 bytes) ; 112 frames decoded ;
          Total : 120 packets (1031599 bytes) demuxed
        Output file #0 (output.webm) :
          Output stream #0:0 (video) : 0 frames encoded ; 0 packets muxed (0 bytes) ;
          Total : 0 packets (0 bytes) muxed
        Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
        112 frames successfully decoded, 0 decoding errors
        [AVIOContext @ 0x55ce67b2e9a0] Statistics : 13 seeks, 9 writeouts
        [AVIOContext @ 0x55ce67a01660] Statistics : 2137508 bytes read, 4 seeks