Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (53)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (10913)

  • How to encode multi audio streams with different options at the same time using ffmpeg

    20 mars 2012, par Luca Borrione

    I'm trying to encode a dvd using ffmpeg.

    $ffmpeg -i VTS_01_1.VOB
    Input #0, mpeg, from 'VTS_01_1.VOB':
    Duration: 00:38:06.52, start: 0.287267, bitrate: 3756 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:4[0x83]: Audio: ac3, 48000 Hz, mono, s16, 96 kb/s
    Stream #0:5[0x28]: Subtitle: dvd_subtitle
    Stream #0:6[0x29]: Subtitle: dvd_subtitle
    Stream #0:7[0x23]: Subtitle: dvd_subtitle
    Stream #0:8[0x24]: Subtitle: dvd_subtitle
    Stream #0:9[0x26]: Subtitle: dvd_subtitle
    Stream #0:10[0x27]: Subtitle: dvd_subtitle

    From the above streams I'm interested in keeping two audio streams : number 1 and 4.
    As you can see the number 4 is already 96kbps so I tried to execute a command which could treat the two streams in a different way :

    cat VTS_01_1.VOB | nice ffmpeg -i - -s 640x368 -vcodec libtheora -r 25 -b:v 1200k -an -metadata title="My Title" -pass 1 -passlogfile "/media/data/outputlog" -f ogg -y /dev/null

    cat VTS_01_1.VOB | nice ffmpeg -i - -map 0:0 -s 640x368 -vcodec libtheora -r 25 -b:v 1200k -async 1 -metadata title="My Title" -map 0:1 -acodec libvorbis -ac 6 -ar 48000 -b:a 192k -metadata title="english" -map 0:4 -acodec libvorbis -ac 2 -ar 48000 -b:a 96k -metadata title="commented" -pass 2 -passlogfile "/media/data/outputlog" "/media/data/output.ogv"

    What I would like to obtain is :

    Input #0, ogg, from 'output.ogv':
    Duration: 00:38:07.20, start: 0.000000, bitrate: 1360 kb/s
    Stream #0:0: Video: theora, yuv420p, 640x368 [SAR 46:45 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: vorbis, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2: Audio: vorbis, 48000 Hz, stereo, s16, 96 kb/s

    Instead with the above command I obtain :

    Input #0, ogg, from 'output.ogv':
    Duration: 00:38:07.20, start: 0.000000, bitrate: 1360 kb/s
    Stream #0:0: Video: theora, yuv420p, 640x368 [SAR 46:45 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: vorbis, 48000 Hz, stereo, s16, 96 kb/s
    Stream #0:2: Audio: vorbis, 48000 Hz, stereo, s16, 96 kb/s

    So how can I specify different params for multiple audio streams ?

    BTW : I'm on lubuntu oneiric with the latest ffmpeg from git

    ffmpeg version git-2012-03-05-1007a80 Copyright (c) 2000-2012 the FFmpeg developers
    built on Mar  5 2012 09:40:09 with gcc 4.6.1
    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --enable-libxvid --enable-libvpx
    libavutil      51. 41.100 / 51. 41.100
    libavcodec     54.  8.100 / 54.  8.100
    libavformat    54.  2.100 / 54.  2.100
    libavdevice    53.  4.100 / 53.  4.100
    libavfilter     2. 63.100 /  2. 63.100
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0.  7.100 /  0.  7.100
    libpostproc    52.  0.100 / 52.  0.100

    Therefore the newaudio option is no more recognized

  • android ffmpeg error fatal signal 11

    10 décembre 2014, par AKUMA

    I’m using ffmpeg on Android. and Use RTSP webcam.

    I refer here.

    I get good video.

    But I receive error when I ended the video.

    Fatal signal 11 (SIGSEGV) at 0x8a7c0d04 (code=1), thread 2537 (Thread-13225)

    So I found the error using the log. But I don’t know why the error occurred.

    The code below is the location of the error.

    void closeMovie(){
     av_read_pause(gFormatCtx);
     if (gVideoBuffer != NULL) {
       free(gVideoBuffer);
       gVideoBuffer = NULL;
     }
     if (gFrame != NULL)
         av_free(gFrame);
     if (gFrameRGB != NULL)
         av_free(gFrameRGB);
     if (gVideoCodecCtx != NULL) {
         avcodec_close(gVideoCodecCtx);
         av_free(gVideoCodecCtx);
         gVideoCodecCtx = NULL;
     }
     if (gFormatCtx != NULL) {
         **av_close_input_file(gFormatCtx);** //here
         gFormatCtx = NULL;
     }
    }

    and

    void av_close_input_file(AVFormatContext *s)
    {
     AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?
                      NULL : s->pb;
     **av_close_input_stream(s);**// here
     if (pb)
       avio_close(pb);
    }

    and

    void av_close_input_stream(AVFormatContext *s)
    {
       flush_packet_queue(s);
       if (s->iformat->read_close)
          **s->iformat->read_close(s);** //here
       avformat_free_context(s);
    }

    if //s->iformat->read_close(s); not crash

    But I can not open the video once more. Again to open the video I have to quit the app.

    Sorry, I can’t speak English very well.
    Thanks for reading.

    ps1. LogCat

    12-10 10:08:02.991: D/TAG(21770): TAG - closeMovie1 - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avcodec_close - in
    12-10 10:08:02.991: D/TAG(21770): av_opt_free - on
    12-10 10:08:02.991: D/TAG(21770): av_opt_free - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avcodec_close - out
    12-10 10:08:02.991: D/TAG(21770): TAG - av_close_input_file - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_close_input - in
    12-10 10:08:02.991: D/TAG(21770): TAG - flush_packet_queue -
    12-10 10:08:02.991: D/TAG(21770): flush_packet_queue - on
    12-10 10:08:02.991: D/TAG(21770): flush_packet_queue - out
    12-10 10:08:02.991: D/TAG(21770): TAG - s->iformat->read_close : 0
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_free_context
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_free_context - in
    12-10 10:08:02.991: D/TAG(21770): av_opt_free - on
    12-10 10:08:02.991: D/TAG(21770): av_opt_free - out
    12-10 10:08:02.991: D/TAG(21770): av_opt_free - on
    12-10 10:08:02.991: D/TAG(21770): av_opt_free - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_length s->nb_streams - 3
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_nb_streams - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_ nb_streams - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_nb_streams - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_ nb_streams - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_nb_streams - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_ nb_streams - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_for_length s->nb_programs-1 - -1
    12-10 10:08:02.991: D/TAG(21770): TAG - freep 1
    12-10 10:08:02.991: D/TAG(21770): TAG - freep 2
    12-10 10:08:02.991: D/TAG(21770): TAG - while
    12-10 10:08:02.991: D/TAG(21770): TAG - freep 3
    12-10 10:08:02.991: D/TAG(21770): TAG - dict_free 1
    12-10 10:08:02.991: D/TAG(21770): TAG - freep 4
    12-10 10:08:02.991: D/TAG(21770): TAG - freep 3
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_free_context - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - 1
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - 2
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close(pb) : 0
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - in
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - 1
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - 2
    12-10 10:08:02.991: D/TAG(21770): TAG - avio_close - out
    12-10 10:08:02.991: D/TAG(21770): TAG - avformat_close_input - out
    12-10 10:08:02.991: D/TAG(21770): TAG - av_close_input_file - out
    12-10 10:08:02.991: D/TAG(21770): TAG - closeMovie1 - out
    12-10 10:08:03.151: D/AbsListView(21770): onVisibilityChanged() is called, visibility : 0
    12-10 10:08:03.151: D/AbsListView(21770): unregisterIRListener() is called
    12-10 10:08:03.201: D/AbsListView(21770): unregisterIRListener() is called
    12-10 10:08:03.221: D/AbsListView(21770): unregisterIRListener() is called
    12-10 10:08:03.241: A/libc(21770): Fatal signal 11 (SIGSEGV) at 0x8bb85698 (code=1), thread 21938 (Thread-23561)

    ps2.The order of the log.

    (BasicPlayer.c) closeMovie in->
    (utils.c) avcodec_close ->
    (utils.c) av_close_input_file ->
    (utils.c) avformat_close_input ->
    (utils.c) flush_packet_queue ->
    (utils.c) **s->iformat->read_close(s)** ->
    (utils.c) avformat_free_context ->
    (utils.c) avio_close(pb) ->
    (BasicPlayer.c) closeMovie out
  • Grey squared artifacts after HEVC 10-bit encoding using FFmpeg's NVENC encoder

    20 juillet 2017, par Cryman

    Recently I purchased a brand new GPU - AORUS GeForce GTX 1080 Ti. I found out that it supports HEVC 10-bit encoding, so I wanted to give that a try. Unfortunately, after encoding I noticed some artifacts, which occur in dark scenes and last one frame of the video. You can see them on these screenshots :

    Screenshot of a still from an animated scene. There is an artifact near the bottom and slightly to the left. It is square shaped with white squiggles.

    Screenshot of a still from another animated scene. The artifact looks the same as in the previous image but is in a different location, higher up and closer to the center.

    I was wondering if someone could help me figure out what might be the cause of these artifacts and how I can get rid of them.

    Here is the MI of the source video :

    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Duration                                 : 2 h 2 min
    Bit rate mode                            : Variable
    Bit rate                                 : 29.5 Mb/s
    Maximum bit rate                         : 37.0 Mb/s
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 23.976 (24000/1001) FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.593
    Stream size                              : 25.2 GiB (66%)
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No

    And here is the MI of the encoded video :

    ID                                       : 1
    Format                                   : HEVC
    Format/Info                              : High Efficiency Video Coding
    Format profile                           : Main 10@L4@Main
    Codec ID                                 : V_MPEGH/ISO/HEVC
    Duration                                 : 2 h 2 min
    Bit rate                                 : 3 689 kb/s
    Width                                    : 1 920 pixels
    Height                                   : 800 pixels
    Display aspect ratio                     : 2.40:1
    Frame rate mode                          : Constant
    Frame rate                               : 23.976 (24000/1001) FPS
    Standard                                 : Component
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 10 bits
    Bits/(Pixel*Frame)                       : 0.100
    Stream size                              : 3.15 GiB (95%)
    Default                                  : Yes
    Forced                                   : No
    Color range                              : Limited

    The command I’m using for encoding :

    ffmpeg -hide_banner -i "" -map 0:v:0 -map_chapters -1 -map_metadata -1 -vf "crop=1920:800:0:140" -vcodec hevc_nvenc -pix_fmt p010le -preset hq -profile:v main10 -rc constqp -global_quality 21 -rc-lookahead 32 -g 240 -f matroska Video_CQP21_LAF32_GOP240.mkv