Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (89)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (14024)

  • Libav linking error : undefined references

    22 février 2017, par Fedech

    Here’s my problem :

    • I built ffmpeg from source (version 1.2), the libav* libraries are in /usr/local/lib and they’re static
    • I’m compiling a ns3 (www.nsnam.org) module, so my only control over the linker is through the env variable LINKFLAGS
    • In the source the headers are in a "extern C" block, so it’s not the usual g++ name mangling
    • I set LINKFLAGS="-I/usr/local/include/libavformat -I/usr/local/include/libavcodec -I/usr/local/include/libavutil -L/usr/local/lib -lavformat -lavcodec -lavutil", and the linker can’t seem to find any of the libav* functions I call (I get a lot of "undefined reference" and then "collect2 : error : ld returned status 1"

    Can anyone help me ? Thanks...

    edit : here are a few of the undefined reference messages :

       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_guess_format'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_read_frame'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `avformat_write_header'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_interleaved_write_frame'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_find_stream_info'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_register_all'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_init_packet'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `avformat_alloc_context'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_dump_format'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `avio_close'

    edit2 : here is the message I get after "build failed" :

    -> task in 'scratch-simulator' failed (exit status 1):
    {task 53952272: cxxprogram scratch-simulator.cc.1.o -> scratch-simulator}
    ['/usr/bin/g++', '-I/usr/local/include/libavcodec', '-I/usr/local/include/libavformat/',
    '-I/usr/local/include/libavutil/', '-L/usr/local/lib', '-I/usr/local
    /include/libavcodec', '-I/usr/local/include/libavformat/', '-I/usr/local/include
    /libavutil/', '-L/usr/local/lib', '-pthread', '-pthread', '-Wl,-z,relro',
    'scratch/scratch-simulator.cc.1.o', '-o', '/home/fede/Thesis/ns-allinone-3.14.1
    /ns-3.14.1/build/scratch/scratch-simulator', '-Wl,-Bstatic', '-Wl,-Bdynamic',
    '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
    '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
    '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
    '-L.', '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-lns3.14.1-test-debug', '-lns3.14.1-
    csma-layout-debug', '-lns3.14.1-point-to-point-layout-debug', '-lns3.14.1-netanim-
    debug', '-lns3.14.1-lte-debug', '-lns3.14.1-spectrum-debug', '-lns3.14.1-antenna-
    debug', '-lns3.14.1-aodv-debug', '-lns3.14.1-dsdv-debug', '-lns3.14.1-dsr-debug',
    '-lns3.14.1-mesh-debug', '-lns3.14.1-olsr-debug', '-lns3.14.1-csma-debug', '-lns3.14.1-
    wimax-debug', '-lns3.14.1-applications-debug', '-lns3.14.1-virtual-net-device-debug',
    '-lns3.14.1-uan-debug', '-lns3.14.1-energy-debug', '-lns3.14.1-flow-monitor-debug',
    '-lns3.14.1-nix-vector-routing-debug', '-lns3.14.1-tap-bridge-debug', '-lns3.14.1-
    visualizer-debug', '-lns3.14.1-internet-debug', '-lns3.14.1-bridge-debug', '-lns3.14.1-
    point-to-point-debug', '-lns3.14.1-mpi-debug', '-lns3.14.1-wifi-debug', '-lns3.14.1-
    buildings-debug', '-lns3.14.1-propagation-debug', '-lns3.14.1-mobility-debug',
    '-lns3.14.1-config-store-debug', '-lns3.14.1-tools-debug', '-lns3.14.1-stats-debug',
    '-lns3.14.1-emu-debug', '-lns3.14.1-topology-read-debug', '-lns3.14.1-network-debug',
    '-lns3.14.1-qoe-monitor-debug', '-lns3.14.1-core-debug', '-lrt', '-lgsl',
    '-lgslcblas', '-lm', '-ldl', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0',
    '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo',
    '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lxml2',
    '-lpython2.7']
  • Damaged h264 stream not working with ffmpeg but working with vlc or mplayer

    15 avril 2013, par gregoiregentil

    I have a h264 file, coming from an rtsp stream, that is slightly damaged. Some frames are altered.

    ffmpeg reports :

    ffmpeg -i stream.mpg
    ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:00:59 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.

    Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
    Input #0, mpegts, from 'a.mpg':
     Duration: 00:03:18.84, start: 93370.745522, bitrate: 2121 kb/s
     Program 1
       Stream #0.0[0x44](): Video: h264 (Baseline), yuv420p, 640x480, 90k tbr, 90k tbn, 180k tbc
    At least one output file must be specified

    I can play the file with VLC or mplayer. Obviously, the damaged frames are "kind of blurred" but it's working. mplayer reports :

    mplayer stream.mpg
    MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.

    Playing stream.mpg.
    Detected file format: MPEG-2 transport stream format (libavformat)
    [lavf] stream 0: video (h264), -vid 0
    LAVF: Program 1
    VIDEO:  [H264]  640x480  0bpp  90000.000 fps    0.0 kbps ( 0.0 kbyte/s)
    Load subtitles in .
    [ass] auto-open
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Asking decoder to use 2 threads if supported.
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    Audio: no sound
    Starting playback...
    V:   0.0   0/  0 ??% ??% ??,?% 0 0
    Movie-Aspect is undefined - no prescaling applied.
    VO: [xv] 640x480 => 640x480 Planar YV12
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!
    Video pts after filters MISSING
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!
    Video pts after filters MISSING
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!
    Video pts after filters MISSING
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!
    Video pts after filters MISSING
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!
    Video pts after filters MISSING
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!
    Video pts after filters MISSING
    V:93370.7   0/  0 ??% ??% ??,?% 0 0
    No pts value from demuxer to use for frame!

    When I try to re-encode the file with :

    ffmpeg -i stream.mpg -fflags +genpts -an -vcodec mpeg4 -r 65535/2733 stream.mp4

    ffmpeg seems to jump over the altered frames. The length of stream.mp4 << length of stream.mpg

    How could I fix this problem, i.e. having ffmpeg to output something similar to what mplayer and vlc output ?

  • FFmpeg returning an error - What does it mean ?

    19 mars 2013, par user1031947

    I am using FFmpeg, libmp3lame & libx264 along with the node fluent-ffmpeg module. This is my first foray into processing uploaded videos.

    From node, I use the following code to process an uploaded video :

    var proc = new ffmpeg({ source: src, nolog: true })
       .usingPreset( "podcast" )
       .withAudioCodec( "libmp3lame" )
       .saveToFile( dest, function( retcode, err ){
            if( err ) throw err;
            ...
       });

    When I try to process a video, this fails with the following error, which I don't understand. I am hoping someone here can help point me in the right direction. Thanks !

    > ffmpeg version 0.8.5-6:0.8.5-1, Copyright (c) 2000-2012 the Libav
    > developers   built on Jan 13 2013 12:05:48 with gcc 4.7.2
    > *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use
    > avconv instead.
    >
    > Seems stream 0 codec frame rate differs from container frame rate:
    > 5994.00 (5994/1) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
    > &#39;/home/ssp/resources/tmp/32111bf4217e87c23328ec81c56c7d02&#39;:  
    > Metadata:
    >     major_brand     : M4VP
    >     minor_version   : 1
    >     compatible_brands: M4VPM4A mp42isom
    >     creation_time   : 2008-08-26 17:28:47   Duration: 00:00:08.01, start: 0.000000, bitrate: 944 kb/s
    >     Stream #0.0(eng): Video: h264 (Constrained Baseline), yuv420p, 480x272, 815 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc
    >     Metadata:
    >       creation_time   : 2008-08-26 17:28:47
    >     Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 124 kb/s
    >     Metadata:
    >       creation_time   : 2008-08-26 17:28:47 [buffer @ 0xb685a0] w:480 h:272 pixfmt:yuv420p [scale @ 0xb63280] w:480 h:272 fmt:yuv420p ->
    > w:320 h:176 fmt:yuv420p flags:0x4 [libx264 @ 0xb67c20] VBV maxrate
    > unspecified, assuming CBR [libx264 @ 0xb67c20] using cpu capabilities:
    > MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0xb67c20]
    > profile Main, level 1.3 Output #0, m4v, to
    > &#39;/home/ssp/resources/users/11/026468c8f4ea1beee0a585ebc2208137.m4v&#39;:  
    > Metadata:
    >     major_brand     : M4VP
    >     minor_version   : 1
    >     compatible_brands: M4VPM4A mp42isom
    >     creation_time   : 2008-08-26 17:28:47
    >     encoder         : Lavf53.21.1
    >     Stream #0.0(eng): Video: libx264, yuv420p, 320x176, q=10-51, 512 kb/s, 90k tbn, 29.97 tbc
    >     Metadata:
    >       creation_time   : 2008-08-26 17:28:47
    >     Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 1 channels, s16, 128 kb/s
    >     Metadata:
    >       creation_time   : 2008-08-26 17:28:47 Stream mapping:   Stream #0.0 -> #0.0   Stream #0.1 -> #0.1 Press ctrl-c to stop encoding frame=  240 fps=154 q=11.0 Lsize=     642kB time=7.97 bitrate=
    > 659.3kbits/s     video:516kB audio:126kB global headers:0kB muxing overhead 0.000000% frame I:1     Avg QP:15.35  size:  9995 [libx264 @
    > 0xb67c20] frame P:77    Avg QP:13.25  size:  5419 [libx264 @ 0xb67c20]
    > frame B:162   Avg QP:18.31  size:   625 [libx264 @ 0xb67c20]
    > consecutive B-frames:  2.5% 12.5% 30.0% 55.0% [libx264 @ 0xb67c20] mb
    > I  I16..4:  9.1%  0.0% 90.9% [libx264 @ 0xb67c20] mb P  I16..4:  2.1%
    > 0.0%  2.8%  P16..4: 18.0% 29.9% 44.8%  0.0%  0.0%    skip: 2.3% [libx264 @ 0xb67c20] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8: 35.2%
    > 20.2%  1.9%  direct:14.5%  skip:28.1%  L0:26.3% L1:38.1% BI:35.6% [libx264 @ 0xb67c20] coded y,uvDC,uvAC intra: 83.7% 91.7% 84.7% inter:
    > 27.7% 43.4% 13.9% [libx264 @ 0xb67c20] i16 v,h,dc,p: 20% 29% 42%  9% [libx264 @ 0xb67c20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 29% 20%  4%
    > 8%  6%  9%  3%  4% [libx264 @ 0xb67c20] i8c dc,h,v,p: 60% 19% 16%  5%
    > [libx264 @ 0xb67c20] Weighted P-Frames: Y:2.6% UV:0.0% [libx264 @
    > 0xb67c20] ref P L0: 75.6% 13.5%  8.0%  2.8%  0.1% [libx264 @ 0xb67c20]
    > ref B L0: 94.5%  5.5% [libx264 @ 0xb67c20] kb/s:528.00