Advanced search

Medias (1)

Tag: - Tags -/epub

Other articles (64)

  • Other interesting software

    13 April 2011, by

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website: http://videopress.com/
    License: GNU/GPL v2
    Source code: (...)

  • Des sites réalisés avec MediaSPIP

    2 May 2011, by

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Taille des images et des logos définissables

    9 February 2011, by

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

On other websites (4358)

  • Anomalie #4728 (En cours): Dump php, support pour MariaDB

    13 April 2021, by Joachim SENE

    Si Spip fonctionne bien sur des serveurs utilisant MariaDB (comme chez l’hébergeur Nuxit), cela plante pour deux fonctions essentielles :

    • Sauvegarde de la base
    • Mise à jour via spip_loader.php

    Pendant la sauvegarde (je crois que c’est donc ecrire/base/dump.php) le préfixe de table est ignoré.
    Pour une base qui fonctionne avec un préfixe comme spippref* ici les erreurs renvoient spip* comme préfixe utilisé :

    2021-04-09 10:26:24 90.3.175.179 (pid 12829) :Pri:ERREUR: no such table: spip_articles - <br />SELECT COUNT(*)<br />FROM spip_articles - /home/users4/s/sj140phpnet/www/plugins-dist/dump/prive/squelettes/contenu/sauvegarder_fonctions.php L36 [sql_countsel(),dump_afficher_tables_sauvegardees(),html_4efc0080d0d07f4680aa17f4911fe369(),public_parametrer_dist(),public_produire_page_dist(),inclure_page(),evaluer_fond(),recuperer_fond(),eval(),include(),evaluer_fond(),recuperer_fond(),eval(),include(),evaluer_fond(),recuperer_fond(),eval(),include(),include()]<br />2021-04-09 10:26:24 90.3.175.179 (pid 12829) :Pri:ERREUR: Erreur sqlite HY000 / 1<br />2021-04-09 10:26:24 90.3.175.179 (pid 12829) :Pri:ERREUR: no such table: spip_breves -

    La sauvegarde indique, dans l’espace privé :

    spip_articles (vide)<br />spip_auteurs_liens (82/82)<br />spip_breves (vide)<br />spip_depots (vide)<br />spip_depots_plugins (707/707)<br />spip_documents (vide)<br />spip_documents_liens (116/116)<br />spip_forum (vide)<br />spip_groupes_mots (vide)<br />spip_jobs (7/7)<br />spip_jobs_liens (vide)<br />spip_messages (vide)<br />spip_mots (vide)<br />spip_mots_liens (203/203)<br />spip_paquets (1109/1109)<br />spip_petitions (vide)<br />spip_plugins (732/732)<br />spip_referers (vide)<br />spip_referers_articles (vide)<br />spip_rubriques (vide)<br />spip_signatures (vide)<br />spip_syndic (vide)<br />spip_syndic_articles (vide)<br />spip_types_documents (vide)<br />spip_urls (172/172)<br />spip_versions (vide)<br />spip_versions_fragments (vide)

    Sachant que même les tables marquées comme ok 172/172 lignes sauvegardées par ex, sont en erreur dans le log !

    2021-04-13 11:29:25 90.3.175.179 (pid 23528) :Pri:ERREUR: no such table: spip_urls -

    J’ai échangé avec l’hébergeur, on en est arrivé à cette conclusion possible Spip & MariaDB à ce niveau pose problème. Je ne sais pas aller plus loin, si quelqu’un a besoin d’un FTP sur Nuxit je peux fournir !

    Je me suis permis d’assigner en fonction de la signature dans dump.php pour que le ticket soit reçu :)
    merci d’avance !

  • FFmpeg - Convert video changing resolution and bitrates

    8 April 2021, by parvares

    I’m trying to convert a video and change these parameters:

    &#xA;

    resolution: from 1.280x720 to 640x360 pixels

    &#xA;

    average bitrate: from 1.410 to 300 kb/s

    &#xA;

    maximum bitrate: from 1.680 to 2500 kb/s

    &#xA;

    Sampling rate: from 48.0 to 44.1 kHz

    &#xA;

    Bit rate audio: 128 kb/s

    &#xA;

    I used this string with ffmpeg vers. 4.3.2-2021-02-20 full build:

    &#xA;

    ffmpeg -i input.mp4 -c:v -vf scale=640:360 libx264 -b:v 300k -maxrate 2500k -bufsize 2500k -crf 25 -c:a -ar 44100 libfdk_aac -b:a 128k output.mp4&#xA;

    &#xA;

    I get the error: “ffmpeg unable to find a suitable output format for scale ‘640:360’ scale 640:360: invalid argument”. Could you help me please?

    &#xA;

    Below is the original file analyzed by MediaInfo, thanks!

    &#xA;

    General

    &#xA;

    Complete name : C:\Users\parvares\Desktop\input.mp4&#xA;Format : MPEG-4&#xA;Format profile : Base Media&#xA;Codec ID : isom (isom/iso2/avc1/mp41)&#xA;File size : 424 MiB&#xA;Duration : 38 min 21 s&#xA;Overall bit rate : 1 545 kb/s&#xA;Writing application : Lavf58.64.100

    &#xA;

    Video

    &#xA;

    ID : 1&#xA;Format : AVC&#xA;Format/Info : Advanced Video Codec&#xA;Format profile : High@L3.1&#xA;Format settings : CABAC / 4 Ref Frames&#xA;Format settings, CABAC : Yes&#xA;Format settings, Reference frames : 4 frames&#xA;Codec ID : avc1&#xA;Codec ID/Info : Advanced Video Coding&#xA;Duration : 38 min 21 s&#xA;Bit rate : 1 410 kb/s&#xA;Maximum bit rate : 1 680 kb/s&#xA;Width : 1 280 pixels&#xA;Height : 720 pixels&#xA;Display aspect ratio : 16:9&#xA;Frame rate mode : Constant&#xA;Frame rate : 25.000 FPS&#xA;Color space : YUV&#xA;Chroma subsampling : 4:2:0&#xA;Bit depth : 8 bits&#xA;Scan type : Progressive&#xA;Bits/(Pixel*Frame) : 0.061&#xA;Stream size : 387 MiB (91%)&#xA;Writing library : x264 core 161 r3027 4121277&#xA;Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=125 / scenecut=40 / intra_refresh=0 / rc_lookahead=125 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=1680 / vbv_bufsize=8400 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00&#xA;Color range : Limited&#xA;Color primaries : BT.709&#xA;Transfer characteristics : BT.709&#xA;Matrix coefficients : BT.709&#xA;Codec configuration box : avcC

    &#xA;

    Audio

    &#xA;

    ID : 2&#xA;Format : AAC LC&#xA;Format/Info : Advanced Audio Codec Low Complexity&#xA;Codec ID : mp4a-40-2&#xA;Duration : 38 min 21 s&#xA;Bit rate mode : Constant&#xA;Bit rate : 129 kb/s&#xA;Channel(s) : 2 channels&#xA;Channel layout : L R&#xA;Sampling rate : 48.0 kHz&#xA;Frame rate : 46.875 FPS (1024 SPF)&#xA;Compression mode : Lossy&#xA;Stream size : 35.3 MiB (8%)&#xA;Default : Yes&#xA;Alternate group : 1

    &#xA;

  • Unable to convert mov to mp4 using ffmpeg carrierwave in ruby

    9 April 2021, by LearningROR

    I am unable to convert MOV files to MP4 using carrierwave and FFmpeg.

    &#xA;

    It does upload mp4 file but does not convert it to mp4 and so on browser only sound gets played not the video.

    &#xA;

    What I am missing here? I tried most of the solutions.

    &#xA;

    Code:

    &#xA;

    class VideoUploader &lt; CarrierWave::Uploader::Base&#xA;  include CarrierWave::MiniMagick&#xA;  include CarrierWave::Video&#xA;  include CarrierWave::Video::Thumbnailer&#xA;  include CarrierWave::FFmpeg&#xA;  # Choose what kind of storage to use for this uploader:&#xA;  storage :file&#xA;  # Override the directory where uploaded files will be stored.&#xA;  # This is a sensible default for uploaders that are meant to be mounted:&#xA;  def store_dir&#xA;    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"&#xA;  end&#xA;  version :video, :if => :video? do&#xA;    process :encode&#xA;  end&#xA;  version :thumb do&#xA;    process thumbnail: [{format: &#x27;jpg&#x27;, quality: 8, size: 360, logger: Rails.logger, square: false}]&#xA;    def full_filename for_file&#xA;      jpg_name for_file, version_name&#xA;    end&#xA;  end&#xA;  def encode&#xA;    tmp_path = File.join( File.dirname(current_path), "tmpfile.mp4" )&#xA;    movie = FFMPEG::Movie.new(current_path)&#xA;    movie.transcode(tmp_path, custom: %w(-c:v libx264 -c:a aac -vf format=yuv420p -movflags &#x2B;faststart)) do |progress|&#xA;      puts progress&#xA;    end&#xA;    File.rename tmp_path, current_path&#xA;  end&#xA;  protected&#xA;  def video?(new_file)&#xA;    new_file.content_type.include? &#x27;video&#x27;&#xA;  end&#xA;end&#xA;

    &#xA;

    Logs:

    &#xA;

    I, [2021-04-09T15:33:24.783337 #9397]  INFO -- : Running transcoding...&#xA;["/usr/local/bin/ffmpeg", "-y", "-i", "/Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/sample_iTunes__1_.mov", "-c:v", "libx264", "-c:a", "aac", "-vf", "format=yuv420p", "-movflags", "&#x2B;faststart", "/Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/tmpfile.mp4"]&#xA;&#xA;0.0&#xA;0.08304093567251461&#xA;0.1672514619883041&#xA;0.2327485380116959&#xA;0.3229239766081871&#xA;0.4008187134502924&#xA;0.45426900584795327&#xA;0.5033918128654971&#xA;0.5403508771929825&#xA;0.6100584795321637&#xA;0.663859649122807&#xA;0.711812865497076&#xA;0.7657309941520468&#xA;0.8196491228070175&#xA;0.87953216374269&#xA;0.9394152046783625&#xA;1.0&#xA;1.0&#xA;I, [2021-04-09T15:33:33.555508 #9397]  INFO -- : Transcoding of /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/sample_iTunes__1_.mov to /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/tmpfile.mp4 succeeded&#xA;&#xA;Running....ffmpegthumbnailer -i /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/thumb/sample_iTunes__1_.mov -o /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/thumb/tmpfile.jpg -c jpg -q 8 -s 360&#xA;Success!&#xA;

    &#xA;