
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (91)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-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
Sur d’autres sites (15828)
-
Use ffmpeg Windows batch script on OS X
3 novembre 2015, par andiskI got an ffmpeg batch script written by someone. The script takes all video clips of a specific folder, cuts off first and last frame, converts the clips to ProRes and saves them in a new folder. I got it running under Windows (just have to double-click the *.bat file and it does what it’s supposed to do).
But now I need that same script running on a mac. I’ve installed ffmpeg over homebrew. Then I tried to make a Automator-Service, but with no success. Best thing would be if I could just right click on the folder with the videos, go to services and click on convert. I’m not really into coding and scripting, but the people who should use the script are happy when they find the power switch of the computer..
Can anyone help me with this ?
Cheers andiskEdit : Here’s the code
`@echo off
mkdir tmp
mkdir converted
set pathtofind=%~dp0
echo Searching for files in %pathtofind%%1\
setlocal enableextensions
setlocal ENABLEDELAYEDEXPANSION
for %%f in (%pathtofind%%1\*) do (
echo Handling file %%f
ffmpeg -y -loglevel quiet -i %%f tmp\%%d.png
set count=0
for %%x in (tmp\*) do set /a count +=1
echo Deleting frames 1 and !count!
del tmp\1.png
del tmp\!count!.png
echo Saving %%~nf.mov
ffmpeg -y -loglevel verbose -f image2 -r 24 -i tmp\%%d.png -vcodec prores -profile:v 1 -r 24 converted\%%~nf.mov
del /q tmp\*.*
echo ---------------------------
)
rd tmp` -
Video processing to support different web players and qualities [closed]
15 mai 2013, par LinasI am trying to accomplish something similar to youtube player.
The biggest issues I'm facing now is how should I process user uploaded video file.
For example since i want to switch between
240p
,360p
,480p
and720p
I need to convert uploaded video file to 4 different files for each resolution, and because not all browsers can play mp4 i needogg
,mp4
,webm
, so that makes 12 video files, and say if it takes 10 minutes to process 1h video file it would take me about 2h just to process that file which is insane. I know that youtube is ussing cloud servers to process each video file and they have a lot of processing power but I think there some kind of trick to this.So my question is what can i do about this, and how does youtube deal with this ?
My second question is ffmpeg suited for this kind of work, and if so why does this command takes pretty much for ever to finish, I ran this command on a 720p 3minutes long video file and after 15minutes of processing I just canceled the process.
ffmpeg -i hd.webm a.mp4
This one on the other hand took about 7 minutes to finish but it generated 200mb video file out of 25mb file
ffmpeg -i hd.webm -c:v libx264 -preset ultrafast a.mp4
-
Looking for doing a small animation with gnuplot and ffmpeg
17 octobre 2022, par youpilat13I am trying to do a small animations from multiples images (generated by the plot of input files test_matter_power_xxx.dat).


Here the script :


#!/bin/bash

for i in {1..398}; do
gnuplot -p <<-EOFMarker
set terminal jpeg;
set logscale x;
set title "Matter Abgular power spectrum";
set xlabel "scale (k)";
set ylabel "P(k)";
set key top left;
set grid;
set ytics out nomirror;
set xtics out nomirror;
set logscale x;
set format x "10^{%L}";
set yrange [0:30000];
plot "test_matterpower_$i.dat" u 1:2 w l > pic$i.jpeg;
EOFMarker
done

# Build movie with ffmpeg
ffmpeg -start_number 1 -i pic%d.jpeg movie.mpeg



But I get the following output at execution :


./script_movie_gnuplot.sh
����JFIF``��;CREATOR: gd-jpeg v1.0 (using IJG JPEG v90), quality = 90
��C











��C
�����

���}!1AQa"q2��#B��R��$3br�
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz���������������������������������������������������������������������������

���w!1AQaq"2B���� #3R�br�
$4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������
 ?�S��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��1l�m��C�7����˟i�$�<7���lW���He� ��@���@������7�o�hb�?�}�~�?���/w˿��lu�2��N�i/ڤ�+}���7oT���l���s���(/ľ(Ѽ��k^!��t-���5;����

��*�����CĚN����R���N�m,~�p��fVu�,��ʣ�U�!X��4h��(h:����V�u+M_J�A-����.���|m�
 ~�����uY:e�i�Č��o"�<�n����������y�Y���jZm+�e��݅��JȬ��y�������f���ŏ�����n�ږ���-*+{��D�>���h�[��d$��@<��x�f�/e9Ϗ<@�Mu�yR���yp,e�ć웊˴�,��;ld;J�vw_����0�n�]w�iZ�垍�]+���f�ikt�2M��>Q��.#b��v��e�u�x���kq�;������!ӭ�.4�g�'��ip@�k+X+�T��5�#ž9�m�X��o�;wu'�<i��^j�}��m�k�[���+��s�@<ok�g�|y�w�w�m�[�#ƾ�o�{�cv�$��"�o�6�mkp�ᤳh�q*����p���㧏�k6�v��x��+}�_�s���5{��&�88�����0dpi��o�~)��ĝo��x�oӾ��*Ү������u]�uw��@�>�M�>&x���ޘ���/�_ͬE�E�����2��bB[�+���q@��V��oٓ�t����}i�-�3�i��
!2M0ayrTGN���K���w��~O�rx"�T��,��p����aP�%�9�m����~.j���?ٿ�Z���q�M
 ��徵wo��0���3F��Yܠ����+o��^�*ռc���m;ƶ��zj�����&�-�=�D��<@񰙤'r�e�@�Wŏ��'�o�uǪXx��H���zi��gkg��q
 YU�h|��2H��\m\�r�(�~"xGG�n�.��z��_���>-�͖�9Ӧ�V(~�z�����q�Ϸ!B/�@�v?��7�����'���O��f/
 x��v�n�gw
 ,������[���J&2�����6��S��4����.�mn�}���ޣ٘�\Lj64��V
>m���y&�1�eg�����@��)�>"�q��|oc���2_i��G���{;;Ƕo����/���Sz�@<'·�<�4�~!��&��s��ˋ�
a2�[�>)�6��J�xQ�ƻ��xO�<˻kx��K�Ȥ��Q��(��܅��xǀ�.�O��2/I�7��|Q6��Z�oq"�]D���4h�J!���m Pxs� �l�Ri�A��.��s�;ޗH\�8��3�h�j(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
N�T���?&h�ڛhDp�l|���j�_̠�P]c�L��c���_I�����i�2�-���n,B�G٣���N ���u����U�nj<s�xi.!��x��1$3@���j�x�a1�\�a�a�
>�]�z6٭q]n�E��nw۾����d\
.��I#01�dq��TG%��q�}�O�z_��i�_YOw%��.mn�����Ak�P@)���$����n��|O�G����[��,�$[�F����HR(PUY��s6Y�y��_�!O���hz���v���E
 f��m�>h���\�?6� ����s�Ӿ��W�g�|I5���歫�a��=��`hg�����h��$of�O�g���⯊�]��_˥j�>{_�6��2�^l����
 A@Q��r�̓�@;� ~�:?�KDV(#���ܙ Eː1@i?�W�|3��
�Þ&�7�5?i�h�~�a=�]�g+#I
 �[w�Դh���AR(��#��VV�b���-��nbr�X�3��8߄�e����f��kZ���Oi"�L��˸g��̐�s�>\j]���ZJ��9w��d�
 xz����x��¾����ȟLӮ�DɈ�α3K+�6����s�Q�?�|S�C^���k���:躴K2yQD!��.ϒVT�,Kd���
���l<'�-#E�����kM#�zu�?�
 ��_2'�_4�����`@� ��ٓºu���������u+��{�OR0�
 Ir�0T���@q��ҼG���mP�g�������t۩-nb
 1�9c!��P�A�<'�o��q�xǷ��|B�σuo�G�h-����a�t�4�尣.ho���e�����ֿ�-WúH��4�n���s$+���m���JҰL�l�x�P�LJ�t+d������?������V1��T��㹸I�}"I/�|�X��BGݸ�@�~�^��.��6�Ն��x��]4�h��:���xy�ّ�?5z�P@P@P@P@P@P@��D��.�v��mzi"�l�De�Y�8��,�#�*���r�����7�#ӵ�/V�&��iˬ�i�$H�����^ e��)��R�`������|y�-#G���"���匚��6�i1��鴻òWe`��c�G&����
v�]/F�]լK��wI��q0�ʻ��6<��I��f����Ԟ�5�J�M#^���^�����-b:U��2'�#D�+Ȉ�,M1�:�pc������{]����Gs�L�!Y&�dԴ�F�Xӭo�g����$� �m�$l+) ��@h��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��
(��ߏt�~�%�^���5���eX���;W{�.p�X� ��>������경�U�ŤI�u�9
�=�Z_��G��z����wK���R3XI�[E�<��M��)^�쿳>���k�r�[�����c�}2��A�k�6{�(>1|g��9�j�����x���V�.��k$�o�mJ�*����VeH�a#`C 9��.O� �������<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� �������<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� ������G����$�{#��$U�<:J6��o�pp�p{{���<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� �������<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� ������F�R� ���;�:�u�eR?��@,�=�Z��'����@����ր�\�.�����=��Z?�rx���O�����-h������!??�;����'����@����ր�\�.�����=��Z?�rx���O�����-h������!??�;������T7��ą�I�xuAf`�9պ�@� P��<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� �������<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� �������<]�D'��x{���St�����P3!h��
 �U��PAv ���'����@����ր�\�.�����=��Z?�rx���O�����-h������!??�;����'����@����ր�\�.�����=��Z?�rx���O�����-h������!??�;���
�����jY/�߈��g����S��\rc��P��\�.�����=��Z?�rx���O�����-h������!??�;����'����@����ր�\�.�����=��Z?�rx���O�����-h������!??�;����'����@����ր+�|s�>�
�s�7�q����|>r�:�5^��?h��.O� �������<]�D'��x{������w�������Z��
 ����B~ �w���k@�.O� �������<]�D'��x{������w�������Z��
 ����B~ �w���k@�%��_��5���(�^�{�]궒�r��0���W^𶋭�kn���t�n&�9�bwR�s��Ett�_�����O�5��!��=V�
(��
~.�?V��čdzM����Ş�s�\�ڝ D)��b�I�X�$!ʳ6����We�������/��hK��c�:Z%�0�d���kr�[͇(���$*
�8�N���V��v:Uռ�#�m|��S�l�m�9�[~��H�n#,��]��(w�/���� .@
 �r.��n�>�B�p�� �|�����5����OØ��0^k���i����퍼^C���3"��C��Z���x���:�,�?��VM"���^Q�$W�A0[��j4��
 w�x�K�-�S
1U��&�ܣ���I:���4���\�2�sf3���|O�Dk������<[c����Wlgh�mf��L�C�+�
 �9��?�ޡ��.��xG�V�^ғL��ķz����O��&��@ŝD�Y���$�Pg���u������~��|��t{][�en�-'��E�!1o$ʈ$n9Fh�t��?k+�/��>}C�g��)��C�#T z�o1������"X#�d��ȍ��� �&��V�
 ~�A�߅$���SCU��Z��+��W��6�<�v��]��6->�O��� $�#��[i��+�`��\����,��<��*ֵ�~Κ��˯��z�Z��>e��V��d�P��Pp��(�������'��7�~�X��n�=������;�.���+e���9"v-$X'
Y�(-7㞹�|/�sk�e��/�t�kP��5���SAv���]F��ѵ����?�o��)x��q�|eio�/��6�ey�4N�E%F���Y8w��V�>X��w���/�M�I���hr[k&�>�q:)�U7rlq�tv�����E��@ݷ���uԾfm���|A���� �|��m�>�۹ߌ
 d�~(����_����3��A��_h��*�H~���|��tc8��%��,~�پ.֬���׃u;�/�z;�m�X��wly�
 ��;B� U�Y���a�x�����k]^^Ov��k:\������^8�3��yW
 ��[��{�
 ��>"�G�u�w�>��3ް�ީ>��=��#K���V���v�v�6wr�M�Z�HbH��9X�(,�Y��$�ܒhJ(��
(��3�ݯ�[��k�c��nyG���������P�P@P@����,��}�7V��W��tȾ^;o���û=�B�
(��
(�*��?���<k���z�p@p@p@�_�����o�5��!��=v�
(��
(��>5�'��:��V��ۛ9]�3,L�����Z�u�h �={�>�O�|�������F�jR%Y�i-Y��L
���$��>b��g������F��/���}f]CS�h�c�}��$v�K
 gM���x$g���r6���|)�:S�gG���՟�l<)��hzl0"��Epa.��$��C>`s@��e�P†_�_VR�z��l����2?
��?�ڟ�|5�E��zև�i�t�O^�t�A��d�Y%tB63����2��PK{�[\����^MF����~��+��G�G�r,�rB6`��BK<����xk�C���������|�M;Y���.��Ao)/$�ۏ*VV/6�rh�ֿf��7��'��4tv�����O��Z\�';eC.쌢�
�;�n� x��:g��x��b�ݛ����B��
 ����0�-d3C�-��=/���c�~<�k�:�L�[�[%�
 i�[�H�Q�P�`�|�H�:�>�������[E�n|?o�-6{q��f���n<�{F��#� =҉X��)9��5�B�Ή�i����m�-B�Q��,�U��on{�T��m�̩)�p��@6ϡ�mGDb�yu����e��%�Il�#�=@�h�μ>
x[O�]ׅ�c�
 F�����6�u��ʖ��-��>�?��$�� ?�>�{������j^ ԴI�to
 i���Y���Cs'�w�S\� �U;�˱�|t�m��W]+ş�+�Q�YŎ��[ZNc$��$um���J��o�^�ף��3���M��t4-R
 ߳�ݳ������3�㡠C�ÿ����Z�-��y--���i�n.cV��wLG2�DM�
 �h����U�ŋ�מ����y5ˋ����d�KY��#��ºEf�kg���0��f?�o�>נ�|�K�?��g���2ϳE��V\Y�o'�����,|���@�/�~xs�j���:߀���|˙�༵�ys4L!b%Uto(��w/�
 @>���Ï�|q�����G����~���X<��'��6ٜ�ٛ�~��c����_Zjz���>��p�c%̲��#�F89#�-��MR���~ ��F����o�漵�X.ݻ�����|O�➭����~��Z7�$���=��$
 lvn��
 S�`
�Z8Y.����\���󲗚�����34���U�
 �=_P��S�����Hn"h]��xd
��RD!��ᔂ �WNn���k�}Rk��^MY�*2p�������q�|;�A��i��U{�����i���[�a�����!�
Gÿ������%Q��Z�&�� �5���.��"�|;�A��i��U�����i��[�a�����!�
Gÿ������%Q��Z�&�� �5���.��"�|;�A��i��U�����i��[�a�����'^!�P@�\���-�ٿ˵�O��X�<����~�m����B�
(��
(�
 �r��Q��>Û�x��+�ݺd_/��f��ݞ��@P@P�x��N����%���
�=V�
(��
(��
(��
����Mc�'�����@�@P@P@�eϟ{�'�>���,~W���������wo��M1�4�@P@P|�;u�;�l�-g��~V|ݯ�7�ٻ��Р�
(��
(?\��%�o�ϰ���?7��7n���m�ٻ�wg�hP@P@P~�s�)�n���~o����3����1�w�m�zР�
(��
(>
 �����7�v�I�?+V�y���ۍ����hP@P@��\��7�g�suo��y��L�������;�ڀ4(��
(��
�����<��3Ŀ�]�P��@P@P@P@U�X�ɬ|d��3Y����h��
(��
(?L���ud�gڼ�����}��17�������?��4(��
(��
Ϟ�n�go�͞e��}��ϛ��f��7co3?�@P@P@g�?d������[���^f��"�x�;7��
(��
(��
���~�e#��غ���򼽻fu���f6n�-��@P@P@g�s�_���f�.� >��c���3}�q�����
(��
(��3�˟�YF�l�n���|�3v�|�vߝ���v{P�P@P@U�?�:���&x��K�*�Z(��
(��
(��
(ʿk�5����&k?�C5z�P@P@g�>}l�W�t��^Vϳ��&���yݿw�4����P@P@�������ٳ̵�O��Y�v�C���f�m��g�hB�
(��
(�
 �r��Q��>Û�x��+�ݺd_/��f��ݞ��@P@P@�����}�W�W��lξ^;����ŷ=�B�
(��
(�
 �.wk��l����'��y[�Q�o�n6����T�@P@P~�s�K(��a�ռ~o��n�2/����w���jР�
(��
(ʼG�'O�������v�@�@P@P@P@yW�c�&�����g�Hf�U��
(��
(�
 �2�ϽՓ�j�n�?+������^�;������Р�
(��
hP@P@��\��7�g�suo��y��L�������;�ڀ4(��
(��
(?C��]���Ϸb��?7�������}�ٻ��hP@P@���~����X$���+s�<�������^��4(��
(��
��.~�e��9������ۦE���~vn���@P@P@yW�����ؙ�_�.Ш�h��
(��9����o�~��.�$ɧژ��m�i��E�(�A�;��=Xt�@Dž>=iZ��΅��'_Ӵ���|C�
 U�#{y���[
�~�,��dP_
>7�|Z�еK_�~/�|;�Y&�i���B
 ��"-7�N�Ԯ� ��o8����I�k�5�ZF�i�k���z7��b]/S�M�����U��ɱ�M�#6Fg��Ɖ�jV�i����T��/�kҬoY�<��%!^DF�bhюԃ�
�i�h�ȥէ�";��d) ?�/�����/'�mc��
��0�@# ���6�Ɲkc<wvwq$�oni#`yopaz�?���mc�'�����@�@p@p@�eϟ{�'�>���,~W���������wo��M1�4�@P@P|�;u�;�l�-g��~V|ݯ�7�ٻ��Р�
(��
(?\��%�o�ϰ���?7��7n���m�ٻ�wg�hP@P@P~�s�)�n���~o����3����1�w�m�zР�
(��
(>
 �����7�v�I�?+V�y���ۍ����hP@P@��\��7�g�suo��y��L�������;�ڀ4(��
(��
�����<��3Ŀ�]�P��@P@ax��� �^%�&�����y�R�K31
�,� P�7����O��Σ��;Q�ރa�YFd��47Y�Q$��VB��#"a�j�L��m㿃^�W�o�_����K�;Q�%ԭ�N�Of��5v+m�U��F��������Yk�/���:h��#Oxj�����\���r
 Ko9|�;�
� ����~7x:�h����}{F6��'���e{0��H����*r8�z�������]��
 {[��Y���
v�����������gg��uo5f��s�����)6T{����o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠�N���7������~����Y�����ti���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s�?���y��߇�������@���o?�����������������?L�.g�Փ췗^N�<�����ɉ�˟3�s�~���o�hC�N���7������~����Y�����ti���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s�?���y��߇�������@���o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠
 ��˕�����x�f�=����|�W�l��p����4?���y��߇�������@���o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠�N���7������~����Y�����ti���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s���5˛K(�췖9�<�n�d��2/�q�p�����(C�N���7������~����Y�����ti���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s�?���y��߇�������@���o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠�N���7������~����Y�����t���7vR?�o/��<ݰǵ�g_�����}�������o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠�N���7������~����Y�����ti���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s�?���y��߇�������@�k�-��[���2
 ���yN�(ٿ���n1����5hi���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s�?���y��߇�������@���o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠�N���7������~����Y�����t��k�6�Q��o,s�y<ݰɹ�d_�����;7}�ݝ�P����o?������������������ӹ��M��z��~��<?�}�����w?� ���_?������Ͽ��?۠�N���7������~����Y�����ti���&��=|������>����n��;���ǯ��������g������s�@�������?�x����s�?���y��߇�������@e���q�S�;�-&�ρ�G!�J3_hyO��̸��
 �=v�
(��
(��
M���M"GY�W���e9Rc�J� ���g��5Iu? |?��)aki/4]��g��cx�IRUI\�*=hxS��|}}{� h^��9���t�md�9��5������>+��E���[/�)[�f�O�;���`��p:��]|6���]υ�[�[�Hu�t�Z�5�0���8�4x�᷄|a��ڮ��m[�4��c{����Mjs��矔���ʿk�5����&k?�C5z�P@P@g�>}l�W�t��^Vϳ��&���yݿw�4����P@P@�������ٳ̵�O��Y�v�C���f�m��g�hB�
(��
(�
 �r��Q��>Û�x��+�ݺd_/��f��ݞ��@P@P@�����}�W�W��lξ^;����ŷ=�B�
(��
(�
 �.wk��l����'��y[�Q�o�n6����T�@P@P~�s�K(��a�ռ~o��n�2/����w���jР�
(��
(ʼG�'O�������v�@�@P@P@P@yW�c�&�����g�Hf�U��
(��
(�
 �2�ϽՓ�j�n�?+������^�;������Р�
(��
hP@P@��\��7�g�suo��y��L�������;�ڀ4(��
(��
(?C��]���Ϸb��?7�������}�ٻ��hP@P@���~����X$���+s�<�������^��4(��
(��
��.~�e��9������ۦE���~vn���@P@P@yW�����ؙ�_�.Ш�h��
(��
(��
(�*���>2ؙ���
 ��P@P@��\��}��^M���y[>������v�����@P@P@g�s�_���f�2�y>��g���3m�������
(��
(��3�˟�YF�l�n���|�3v�|�vߝ���v{P�P@P@g�w?k������]\G��^^ݳ:�x���
(��
(��3�ݯ�[��k�c��nyG���������P�P@P@����,��}�7V��W��tȾ^;o���û=�B�
(��
(�*��?���<k���z�p@p@p@�_�����o�5��!��=v�
(��
...
<>code>


Where is my error ?