Recherche avancée

Médias (91)

Autres articles (105)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

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

  • add subtitle to video created from mp3 file and an image using ffmpeg

    1er février 2018, par no name

    I have a simple image and an mp3 file all I want to do is to add a lyrics to this mp3 file in a video as an output with fade out style.
    so i used this command to do so from this this blog

    ffmpeg -loop 1 -y -i test.jpg -i test.mp3 -vf subtitles=”f=test.srt:force_style=’FontName=Arial,FontSize=14″ -shortest test1.mp4

    when i used this command i got this eror

       ffmpeg -loop 1 -y -i test.jpg -i test.mp3 -vf subtitles="f=test.srt:force_style=’FontName=Arial,FontSize=14″ -shortest test1.mp4
    ffmpeg version N-89940-gb1af0e23a3 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  7.100 / 58.  7.100
     libavdevice    58.  0.101 / 58.  0.101
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Trailing options were found on the commandline.
    Input #0, image2, from 'test.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 17290 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 960x959 [SAR 1:1 DAR 960:959], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Input #1, mp3, from 'test.mp3':
     Metadata:
       comment         : converted by convert2mp3.net
       title           : Celestial Empire [ Worlds 2017 ] [ Pick and b
       artist          : Raffael Gruber Matthias Ullrich
     Duration: 00:02:33.13, start: 0.025057, bitrate: 193 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
       Metadata:
         encoder         : Lavc57.28
    At least one output file must be specified

    iam using windows 10, last version of ffmpeg, so what makes this problem. also how to make the style of the lyrics to be something like fade in/out and so on. if it’s possible
    Thanks in advance.
    update
    when i use this command

    ffmpeg -loop 1 -y -i test.jpg -i test.mp3 -vf "subtitles=test.srt:force_style='FontName=Arial,FontSize=14'" -shortest test1.mp4

    it give me this error

    Press [q] to stop, [?] for help
    [Parsed_subtitles_0 @ 049af980] Shaper: FriBidi 0.19.7 (SIMPLE)
    [Parsed_subtitles_0 @ 049af980] Using font provider directwrite
    [libx264 @ 049d2440] height not divisible by 2 (960x959)
    Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    Conversion failed!

    i searched this error and i found a solution by add this part before output file so the final command is

    ffmpeg -loop 1 -y -i test.jpg -i test.mp3 -vf "subtitles=test.srt:force_style='FontName=Arial,FontSize=14'" -shortest -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" test1.mp4

    i got no error and it worked but the output video not contains any lyrics which i added

    Update

    last thing i tried and it works first i use this command to convert the image and mp3 file to a mp4 video

    ffmpeg -loop 1 -i test.jpg -i test.mp3 -shortest -acodec copy -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4

    but this command take a long time to process to convert mp3 of 2:55 minute it with image.
    then i start to add lyrics or subtitle using this command

    ffmpeg -i video.mp4 -vf "subtitles=test.srt:force_style='FontName=Arial,FontSize=14,PrimaryColour=&H0000ff&'" -c:a copy output.mp4

    this worked perfect and give the output but it take a long time to process i don’t know if this normal.
    now last thing how can i set the style of the subtitle so it be fade out or something

  • ffmpeg "Requested output format 'decklink is not a suitable format'"

    9 février 2018, par user3104363

    I am trying to play a video using ffmpeg and decklink.
    I compiled ffmpeg from ffmpeg repo.
    I am working in ubuntu 16.04 lts.

    Here is my command :

    ./ffmpeg -err_detect ignore_err -threads 0 -re -i ./sample_1080_50i.ts -bufsize 1M -vf yadif -format_code Hi50 -f decklink -preroll 0.7 -pix_fmt uyvy422 'DeckLink Studio 4K'

    The result is :

    ffmpeg version N-89978-gcb97400 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.1.1 (Ubuntu 5.1.0-0ubuntu11~10.04.2)
     configuration: --prefix=/home/sarslan/ffmpeg_build --pkg-config-flags=--static --extra-cflags='-I/home/sarslan/ffmpeg_build/include -I/home/sarslan/ffmpeg_sources/Blackmagic_DeckLink_SDK_10.9.5/Linux/include' --extra-ldflags=-L/home/sarslan/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/sarslan/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-static --disable-shared --enable-decklink --enable-ffplay
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58. 10.100 / 58. 10.100
     libavformat    58.  9.100 / 58.  9.100
     libavdevice    58.  1.100 / 58.  1.100
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mpegts, from './sample_1080_50i.ts':
     Duration: 00:05:00.08, start: 1.437333, bitrate: 4675 kb/s
     Program 1
       Metadata:
         service_name    : Service01
         service_provider: FFmpeg
       Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 123 kb/s
    [NULL @ 0xb2ed180] Requested output format 'decklink' is not a suitable output format
    DeckLink Studio 4K: Invalid argument

    I think, this error is weird.
    I enabled decklink support with —enable-decklink, and I also check ffmpeg documentation decklink part.’decklink’ is used with -f option in every example.

    Then I check the command line, and I can’t find any error with the command.
    Do you have any idea what the problem is ?

    Thanks and best regards,

  • Video not clear when concatinate videos thogther using ffmpeg

    5 février 2018, par no name

    I have 3 types of the video first is start video played when the video start, the main video which is the main content of the video and last is the end video I want to add them together they have different resolutions so I use a text file to write the videos name like this.

    file start.mp4
    file main.mp4
    file end.mp4

    then I use this command with FFmpeg

    FFmpeg -f concat -i ffmpeg-sound.txt -c copy final_output.mp4

    the problem is when I start watching the video the first video image is appearing in all the video duration I tried different player every one shows me a crashed photo but the sound is working fine.
    also, the main video is created from mp3 file and image with subtitle it’s not original or downloaded from anywhere and I want to concatenate them.
    what i tried when i make some searches and i thought it’s the problem that they have different resolution so i tried this command on both 3 videos to make them have the same resolution so no problem show after the concatenate

    FFmpeg -y -i end.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts end.mp4.ts

    and try to add the 3 files again with ts formate and the same problem shown too so please any help to solve this
    Update
    i tried to use this command to change all the three videos to 1280x720

    FFmpeg -i a.mp4 -vf scale=1280:720 a1.mp4

    after testing the problem exactly i found that the first video only works then when it go to next video to show it, the screen is a freeze on the last image from the first video. I don’t know why this problem even after i make them same scale !
    here is the output of

    ffmpeg -i start.mp4 -i a.mp4 -i end.mp4

    output this before edit all the videos resulution to 1280x720

       ffmpeg version N-89940-gb1af0e23a3 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  7.100 / 58.  7.100
     libavdevice    58.  0.101 / 58.  0.101
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'start.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       title           : Tunepro
       artist          : Kiran Khan
       album_artist    : Kiran Khan
       encoder         : Lavf57.83.100
       description     : This video is about Tunepro
       keywords        : tunepro,new
     Duration: 00:00:03.15, start: 0.000000, bitrate: 863 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 729 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.7.100
     Duration: 00:05:21.24, start: 0.000000, bitrate: 188 kb/s
       Stream #1:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc), 300x300 [SAR 1:1 DAR 1:1], 53 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'end.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       title           : Tunepro
       artist          : Kiran Khan
       album_artist    : Kiran Khan
       encoder         : Lavf57.83.100
       description     : This video is about Tunepro
       keywords        : tunepro,new
     Duration: 00:00:30.03, start: 0.000000, bitrate: 8051 kb/s
       Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 7923 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    At least one output file must be specified