Recherche avancée

Médias (91)

Autres articles (79)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (12060)

  • FFmpeg : MD5 hash of M3U8 playlists generated from same input video with different segment durations (after applying video filter) don't match

    30 juillet 2020, par Saurabh P Bhandari

    Here are a few commands I am using to convert and transize a video in MP4 format to a M3U8 playlist.

    


    For a given input video (MP4 format), generate multiple video segments with segment duration 30 seconds.

    


    ffmpeg -loglevel error -i input.mp4 -dn -sn -an -c:v copy -bsf:v h264_mp4toannexb -copyts -start_at_zero -f segment -segment_time 30 30%03d.mp4 -dn -sn -vn -c:a copy audio.aac


    


    Apply a video filter (in this case scaling) on each segment and convert it to a M3U8 format.

    


    ls 30*.mp4 | parallel 'ffmpeg -loglevel error -i {} -vf scale=-2:144 -hls_list_size 0 {}.m3u8'


    


    Store the list of m3u8 files generated in list.txt in this format file 'segment-name.m3u8'

    


    for f in 30*.m3u8; do echo "file '$f'" >> list.txt; done


    


    Using concat demuxer, combine all segment files (which are in M3U8 format) and the audio to get one final m3u8 playlist pointing to segments with duration of 10 seconds.

    


    ffmpeg -loglevel error -f concat -i list.txt -i audio.aac -c copy -hls_list_size 0 -hls_time 10 output_30.m3u8


    



    


    I can change the segment duration in the first step from 30 seconds to 60 seconds, and compare the MD5 hash of the final M3U8 playlist generated in both the cases using this command :

    


    ffmpeg -loglevel error -i <input m3u8="m3u8" playlist="playlist" /> -f md5 -&#xA;

    &#xA;

    The MD5 hash of the output files differ, i.e., video streams of output_30.m3u8 and output_60.m3u8 are not the same.

    &#xA;

    Can anyone elaborate on this ?

    &#xA;

    (I expected the MD5 hash to be the same)

    &#xA;

  • ffmpeg : md5 of m3u8 playlists generated from same input video with different segment durations (after applying video filter) don't match

    15 juillet 2020, par Saurabh P Bhandari

    Here are a few commands I am using to convert and transize a video in mp4 format to a m3u8 playlist.

    &#xA;

    For a given input video (mp4 format), generate multiple video only segments with segment duration 30s

    &#xA;

    ffmpeg -loglevel error -i input.mp4 -dn -sn -an -c:v copy -bsf:v h264_mp4toannexb -copyts -start_at_zero -f segment -segment_time 30 30%03d.mp4 -dn -sn -vn -c:a copy audio.aac&#xA;

    &#xA;

    Apply video filter (in this case scaling) on each segment and convert it to a m3u8 format

    &#xA;

    ls 30*.mp4 | parallel &#x27;ffmpeg -loglevel error -i {} -vf scale=-2:144 -hls_list_size 0 {}.m3u8&#x27;&#xA;

    &#xA;

    Store the list of m3u8 files generated in list.txt in this format file &#x27;segment-name.m3u8&#x27;

    &#xA;

    for f in 30*.m3u8; do echo "file &#x27;$f&#x27;" >> list.txt; done&#xA;

    &#xA;

    Using concat demuxer, combine all segment files (which are in m3u8 format) and the audio to get one final m3u8 playlist pointing to segments with duration of 10s.

    &#xA;

    ffmpeg -loglevel error -f concat -i list.txt -i audio.aac -c copy -hls_list_size 0 -hls_time 10 output_30.m3u8&#xA;

    &#xA;


    &#xA;

    I can change the segment duration in the first step from 30s to 60s, and compare the md5 of the final m3u8 playlist generated in both the cases using this command

    &#xA;

    ffmpeg -loglevel error -i <input m3u8="m3u8" playlist="playlist" /> -f md5 - &#xA;

    &#xA;

    The md5 of the output files differ i.e video streams of output_30.m3u8 and output_60.m3u8 are not the same.

    &#xA;

    Can anyone elaborate on this ?

    &#xA;

    (I expected the md5 to be the same)

    &#xA;

  • FFMpeg Input link in1:v0 parameters (size > 640x352, SAR 0:1) do not match the corresponding output link in0:v0 > parameters [duplicate]

    25 avril 2020, par Android Developer

    I am using below command to concatenate videos-

    &#xA;&#xA;

    String command[] = {"-i",inputFile1AbsolutePath,"-i",inputFile2AbsolutePath .....,"-i",inputFileNAbsolutePath,"-filter_complex","[0:v0] [0:a0] [1:v1] [1:a1]...[N:vN] concat=n=N:v=1:a=1 [v] [a],"-map","[v]","-map","[a]", outputFileAbsolutePath};&#xA;

    &#xA;&#xA;

    and got below error-

    &#xA;&#xA;

    &#xA;

    FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the&#xA; FFmpeg developers&#xA; built with gcc 4.8 (GCC)&#xA; configuration : —target-os=linux&#xA; —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-&#xA; —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot&#xA; —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include&#xA; -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' —extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib&#xA; -Wl,-z,relro -Wl,-z,now -pie' —extra-libs='-lpng -lexpat -lm' —extra-cxxflags=&#xA; libavutil 55. 17.103 / 55. 17.103&#xA; libavcodec 57. 24.102 / 57. 24.102&#xA; libavformat 57. 25.100 / 57. 25.100&#xA; libavdevice 57. 0.101 / 57. 0.101&#xA; libavfilter 6. 31.100 / 6. 31.100&#xA; libswscale 4. 0.100 / 4. 0.100&#xA; libswresample 2. 0.101 / 2. 0.101&#xA; libpostproc 54. 0.100 / 54. 0.100&#xA; Input #0, mov,mp4,m4a,3gp,3g2,mj2, from&#xA; '/storage/emulated/0/Download/g3cm1tt7qtd41.mp4' :&#xA; Metadata :&#xA; major_brand : iso6&#xA; minor_version : 1&#xA; compatible_brands : mp42iso6avc1isom&#xA; creation_time : 2020-01-30 11:13:07&#xA; Duration : 00:00:00.00, start : 0.042667, bitrate : N/A&#xA; Stream #0:0(und) : Video : h264 (Main) (avc1 / 0x31637661), yuv420p,&#xA; 854x480 [SAR 2136:2135 DAR 89:50], 1225 kb/s, 30 fps, 30 tbr, 15360&#xA; tbn, 60 tbc (default)&#xA; Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz,&#xA; stereo, fltp, 128 kb/s (default)&#xA; Input #1, mov,mp4,m4a,3gp,3g2,mj2, from&#xA; '/storage/emulated/0/WhatsApp/Media/WhatsApp&#xA; Video/VID-20200404-WA0000.mp4' :&#xA; Metadata :&#xA; major_brand : mp42&#xA; minor_version : 0&#xA; compatible_brands : mp42isom&#xA; Duration : 00:03:43.14, start : 0.000000, bitrate : 774 kb/s&#xA; Stream #1:0(und) : Video : h264 (Baseline) (avc1 / 0x31637661), yuv420p,&#xA; 640x352, 675 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)&#xA; Stream #1:1(und) : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono,&#xA; fltp, 96 kb/s (default)&#xA; [Parsed_concat_0 @ 0xb4529400] Input link in1:v0 parameters (size&#xA; 640x352, SAR 0:1) do not match the corresponding output link in0:v0&#xA; parameters (854x480, SAR 2136:2135)&#xA; [Parsed_concat_0 @ 0xb4529400] Failed to configure output pad on&#xA; Parsed_concat_0&#xA; Error configuring complex filters.&#xA; Invalid argument

    &#xA;

    &#xA;&#xA;

    Seeing this answer i tried using-

    &#xA;&#xA;

    [0:v]setsar=1[v0]; [0:a0] [1:v]setsar=1[v1]; [1:a1]&#xA;

    &#xA;&#xA;

    but did not worked !

    &#xA;&#xA;

    How can i resolve this ?

    &#xA;