Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (106)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8255)

  • 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;

  • 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 ?

    &#xA;

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

    &#xA;

    Command :

    &#xA;

    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=&#x27;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic&#x27; --extra-ldflags=&#x27;-Wl,-z,relro &#x27; --extra-cflags=&#x27; &#x27; --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 &#xA;libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100&#xA;libavformat 57. 83.100 / 57. 83.100 &#xA;libavdevice 57. 10.100 / 57. 10.100 &#xA;libavfilter 6.107.100 / 6.107.100 &#xA;libavresample 3. 7. 0 / 3. 7. 0 &#xA;libswscale 4. 8.100 / 4. 8.100 &#xA;libswresample 2. 9.100 / 2. 9.100 &#xA;libpostproc 54. 7.100 / 54. 7.100 &#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1324920] stream 1, offset 0x24: partial file [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1324920] &#xA;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 &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options Input #0, mov,mp4,m4a,3gp,3g2,mj2, &#xA;from &#x27;https://dev.websiteaddress.com/uploads/files/2021-04-16/image_1618597539012465400_5.mov&#x27;: Metadata: major_brand : qt minor_version : 0 &#xA;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&#x2B;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 &#x27;ff.log&#x27; ff.log: Invalid argument&#xA;

    &#xA;

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

    22 avril 2021, par QRrabbit

    Hello forum and all the members of the community !

    &#xA;

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

    &#xA;

    Input file ffprobe :

    &#xA;

      Duration: 00:00:10.01, start: 0.000000, bitrate: 534719 kb/s&#xA;    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)&#xA;    Metadata:&#xA;      creation_time   : 2021-04-13T16:35:16.000000Z&#xA;      handler_name    : Apple Video Media Handler&#xA;      encoder         : Animation&#xA;      timecode        : 00:00:00;00&#xA;

    &#xA;

    Here's the command I run :

    &#xA;

    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&#xA;

    &#xA;

    Output file ffprobe :

    &#xA;

      Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2021-04-13T16:35:16.000000Z&#xA;  Duration: 00:00:10.01, start: 0.000000, bitrate: 100126 kb/s&#xA;    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)&#xA;    Metadata:&#xA;      creation_time   : 2021-04-13T16:35:16.000000Z&#xA;      handler_name    : VideoHandler&#xA;      encoder         : Lavf58.58.100&#xA;      timecode        : 00:00:00;00&#xA;

    &#xA;

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

    &#xA;

    The Input's file bitrate : 534719 kb/s&#xA;to Output bitrate : 100126 kb/s

    &#xA;