Recherche avancée

Médias (91)

Autres articles (93)

  • 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 (...)

  • 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 ; (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

Sur d’autres sites (7431)

  • ffmpeg library - why is the Bitrate parameter change on encoding

    22 avril 2021, par QRrabbit

    Hello forum and all the members of the community !

    


    I have this question on ffmpeg library, why does the bitrate parameter not retained after encoding, even though I explicitly specify the desired rate.

    


    Input file ffprobe :

    


      Duration: 00:00:10.01, start: 0.000000, bitrate: 534719 kb/s
    Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), argb(progressive), 1920x1080, 533881 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
    Metadata:
      creation_time   : 2021-04-13T16:35:16.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : Animation
      timecode        : 00:00:00;00


    


    Here's the command I run :

    


    ffmpeg -i input.mov -map 0:a? -map 0:s? -pix_fmt argb -b:v 533881667 -maxrate 533881667 -minrate 533881667 -r 29.97 -top 1 -color_range 1 -colorspace 1 -color_primaries 1 -color_trc bt709 -map_metadata 0 -c:a copy -timecode 00:00:00.00 -c:v qtrle -c:s copy output.mov


    


    Output file ffprobe :

    


      Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 2021-04-13T16:35:16.000000Z
  Duration: 00:00:10.01, start: 0.000000, bitrate: 100126 kb/s
    Stream #0:0: Video: qtrle (rle  / 0x20656C72), argb(progressive), 1920x1080, 100133 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 11988 tbn, 11988 tbc (default)
    Metadata:
      creation_time   : 2021-04-13T16:35:16.000000Z
      handler_name    : VideoHandler
      encoder         : Lavf58.58.100
      timecode        : 00:00:00;00


    


    As it is visible from the ffprobe from above, I go from :

    


    The Input's file bitrate : 534719 kb/s
to Output bitrate : 100126 kb/s

    


  • CDN do not allow me to convert mov video format to mp4

    16 avril 2021, par Azzo

    I have tried so many thinks on stackoverflow but didn't fix my issue. So I am using following code for converting mov video format to mp4 video format. The code is working fine if I disable CDN but when I enable CDN then ffmpeg didn't work. What is wrong with CDN with the code below ?

    


    $cmd = shell_exec("ffmpeg -i video.mov -vcodec copy -acodec copy video.mp4");


    


    Command :

    


    ffmpeg version 3.4.8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect 
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 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1324920] stream 1, offset 0x24: partial file [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1324920] 
Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(smpte170m/bt709/bt709), 480x360, 777 kb/s): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mov,mp4,m4a,3gp,3g2,mj2, 
from 'https://dev.websiteaddress.com/uploads/files/2021-04-16/image_1618597539012465400_5.mov': Metadata: major_brand : qt minor_version : 0 
compatible_brands: qt creation_time : 2021-04-10T23:22:06.000000Z com.apple.quicktime.make: Apple com.apple.quicktime.model: iPhone 12 Pro com.apple.quicktime.software: 14.4.2 com.apple.quicktime.creationdate: 2021-04-11T07:22:06+0800 Duration: 00:00:02.73, bitrate: N/A Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none(smpte170m/bt709/bt709), 480x360, 777 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler encoder : H.264 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 84 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler Stream #0:4(und): Data: none (mebx / 0x7862656D), 34 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler [NULL @ 0x138e6e0] Unable to find a suitable output format for 'ff.log' ff.log: Invalid argument


    


  • How do you specify container format in FFmpeg ?

    15 avril 2021, par TheNeuronalCoder

    I am trying to encode mp4 video, but it doesn't open on my macbook because while it has the supported H264 codec, the container format is not MP4. So all I ask is how you would go about specifying the container format so I can generate video that is actually playable without using ffplay.

    


    ffprobe version N-101948-g870bfe1 Copyright (c) 2007-2021 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --disable-asm --enable-shared --enable-libx264 --enable-gpl
  libavutil      56. 72.100 / 56. 72.100
  libavcodec     58.136.101 / 58.136.101
  libavformat    58. 78.100 / 58. 78.100
  libavdevice    58. 14.100 / 58. 14.100
  libavfilter     7.111.100 /  7.111.100
  libswscale      5. 10.100 /  5. 10.100
  libswresample   3. 10.100 /  3. 10.100
  libpostproc    55. 10.100 / 55. 10.100
Input #0, h264, from 'animation.mp4':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, 24.33 fps, 24 tbr, 1200k tbn, 48 tbc


    


    void imagine::Camera::Record() {&#xA;  if (recording_ == true)&#xA;    throw std::runtime_error(&#xA;      "you must close your camera before starting another recording"&#xA;    );&#xA;  recording_ = true;&#xA;&#xA;  output_file_ = std::fopen(output_.c_str(), "wb");&#xA;  if (!output_file_)&#xA;    throw std::runtime_error("failed to open file");&#xA;&#xA;  AVCodec* codec = avcodec_find_encoder(AV_CODEC_ID_H264);&#xA;  if (!codec)&#xA;    throw std::runtime_error("failed to find codec");&#xA;&#xA;  context_ = avcodec_alloc_context3(codec);&#xA;  if (!context_)&#xA;    throw std::runtime_error("failed to allocate video codec context");&#xA;&#xA;  packet_ = av_packet_alloc();&#xA;  if (!packet_)&#xA;    throw std::runtime_error("failed to allocate video packet");&#xA;&#xA;  py::tuple size = py::globals()["main_scene"].attr("size");&#xA;  context_->width = size[0].cast<int>();&#xA;  context_->height = size[1].cast<int>();&#xA;  context_->bit_rate = 0.4 * fps_ * context_->width * context_->height;&#xA;  context_->time_base = (AVRational){ 1, fps_ };&#xA;  context_->framerate = (AVRational){ fps_, 1 };&#xA;  context_->gop_size = 10;&#xA;  context_->max_b_frames = 1;&#xA;  context_->pix_fmt = AV_PIX_FMT_YUV420P;&#xA;&#xA;  if (avcodec_open2(context_, codec, NULL) &lt; 0)&#xA;    throw std::runtime_error("failed to open codec");&#xA;&#xA;  frame_ = av_frame_alloc();&#xA;  if (!frame_)&#xA;    throw std::runtime_error("failed to allocate video frame");&#xA;&#xA;  frame_->width  = context_->width;&#xA;  frame_->height = context_->height;&#xA;  frame_->format = AV_PIX_FMT_YUV420P;&#xA;&#xA;  if (av_frame_get_buffer(frame_, 0) &lt; 0)&#xA;    throw std::runtime_error("failed to allocate the video frame data");&#xA;}&#xA;</int></int>

    &#xA;