Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (55)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

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

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

Sur d’autres sites (10996)

  • My FFMPEG throws me unexpected errors while writing a Thumbnail to the songs

    4 mars 2019, par Harmonised7

    I am using Node to execute my ffmpeg. I use this wrapper :

    https://www.npmjs.com/package/ffmpeg

    Everything was fine when I was using smaller versions of the thumbnails provided by Youtube, but when I attempted the HD ones, it suddenly started giving me an error. I’ve tried -pix_fmt yuv422p and Many other pixel formats, but nothing helped. Though ONE out of 100+ songs did tag successfully.

    here is my code :

    downloadTags(tags.thumbnail, `./thumbnails/${tags.title}.jpg`).then(thumbnail =>
                       {
                           video.addCommand('-i', `"${thumbnail}"`);
                           video.addCommand('-map', '0');
                           video.addCommand('-map', '1');
                           video.addCommand('-c', 'copy');
                           video.addCommand('-c:v:1', 'png');
                           video.addCommand('-disposition:v:0', 'attached_pic');
                           if(tags.title)
                               video.addCommand('-metadata', `title="${tags.title}"`);
                           if(tags.artist)
                               video.addCommand('-metadata', `artist="${tags.artist}"`);
                           if(tags.id)
                               video.addCommand('-metadata', `comment="https://www.youtube.com/watch?v=${tags.id}"`);
                           video.addCommand('-pix_fmt', `yuv422p`);


                           var output = 'downloaded'
                           if (outFolder)
                           {
                               output = outFolder;
                               if(!fs.existsSync(output)) fs.mkdirSync(output);
                           }

                           video.save(`"./${output}/${tags.title}.${tags.format}"`, function (error, file)
                           {
                               if (error)
                               {
                                   resolve(error);
                                   return
                               }
                               try
                               {
                                   fs.unlinkSync(song);
                               }
                               catch(err)
                               {
                                   console.log(err.code);
                               }
                               resolve();

                           });
                       });

                   }

    and here is my error :

    E

    RROR: Error: Command failed: ffmpeg -i "songs/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].m4a" -y  -i "./thumbnails/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].jpg" -map 0 -map 1 -c copy -c:v:1 png -disposition:v:0 attached_pic -metadata title="&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep]" -metadata artist="AReallyLongAndAwesomeNameThatIsBetterThanYoursInEveryPossibleWay" -metadata comment="https://www.youtube.com/watch?v=HprdvIIpR-I" "./written/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].m4a"
    ffmpeg version N-93214-g7e4d3dbe18 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 26.100 / 56. 26.100
     libavcodec     58. 47.102 / 58. 47.102
     libavformat    58. 26.101 / 58. 26.101
     libavdevice    58.  6.101 / 58.  6.101
     libavfilter     7. 48.100 /  7. 48.100
     libswscale      5.  4.100 /  5.  4.100
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000002213366bb00] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'songs/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].m4a':
     Metadata:
       major_brand     : M4A
       minor_version   : 512
       compatible_brands: isomiso2
       title           : &I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep]
       artist          : Cider Party
       encoder         : Lavf58.18.104
       comment         : https://www.youtube.com/watch?v=HprdvIIpR-I
     Duration: 00:05:24.80, start: 0.000000, bitrate: 127 kb/s
       Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
       Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 120x90 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc
    Input #1, image2, from './thumbnails/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 1575 kb/s
       Stream #1:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 480x360 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
     Stream #1:0 -> #0:2 (mjpeg (native) -> png (native))
    Press [q] to stop, [?] for help
    [swscaler @ 00000221353d4fc0] deprecated pixel format used, make sure you did set range correctly
    [ipod @ 00000221336703c0] Could not find tag for codec png in stream #2, codec not currently supported in container
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:2 --
    Conversion failed!

    Keep in mind that All of my thumbnails retrieved are .jpg

    Any suggestions ? Getting really desperate at this point...

  • >SOLVED My FFMPEG throws me unexpected errors while writing a Thumbnail to the songs

    22 février 2019, par Harmonised7

    My issue was that my songs already had a thumbnail. Solution to overwrite thumbnail below !

    I am using Node to execute my ffmpeg. I use this wrapper :

    https://www.npmjs.com/package/ffmpeg

    Everything was fine when I was using smaller versions of the thumbnails provided by Youtube, but when I attempted the HD ones, it suddenly started giving me an error. I’ve tried -pix_fmt yuv422p and Many other pixel formats, but nothing helped. Though ONE out of 100+ songs did tag successfully.

    here is my code :

    downloadTags(tags.thumbnail, `./thumbnails/${tags.title}.jpg`).then(thumbnail =>
                       {
                           video.addCommand('-i', `"${thumbnail}"`);
                           video.addCommand('-map', '0');
                           video.addCommand('-map', '1');
                           video.addCommand('-c', 'copy');
                           video.addCommand('-c:v:1', 'png');
                           video.addCommand('-disposition:v:0', 'attached_pic');
                           if(tags.title)
                               video.addCommand('-metadata', `title="${tags.title}"`);
                           if(tags.artist)
                               video.addCommand('-metadata', `artist="${tags.artist}"`);
                           if(tags.id)
                               video.addCommand('-metadata', `comment="https://www.youtube.com/watch?v=${tags.id}"`);
                           video.addCommand('-pix_fmt', `yuv422p`);


                           var output = 'downloaded'
                           if (outFolder)
                           {
                               output = outFolder;
                               if(!fs.existsSync(output)) fs.mkdirSync(output);
                           }

                           video.save(`"./${output}/${tags.title}.${tags.format}"`, function (error, file)
                           {
                               if (error)
                               {
                                   resolve(error);
                                   return
                               }
                               try
                               {
                                   fs.unlinkSync(song);
                               }
                               catch(err)
                               {
                                   console.log(err.code);
                               }
                               resolve();

                           });
                       });

                   }

    and here is my error :

    E

    RROR: Error: Command failed: ffmpeg -i "songs/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].m4a" -y  -i "./thumbnails/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].jpg" -map 0 -map 1 -c copy -c:v:1 png -disposition:v:0 attached_pic -metadata title="&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep]" -metadata artist="AReallyLongAndAwesomeNameThatIsBetterThanYoursInEveryPossibleWay" -metadata comment="https://www.youtube.com/watch?v=HprdvIIpR-I" "./written/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].m4a"
    ffmpeg version N-93214-g7e4d3dbe18 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 26.100 / 56. 26.100
     libavcodec     58. 47.102 / 58. 47.102
     libavformat    58. 26.101 / 58. 26.101
     libavdevice    58.  6.101 / 58.  6.101
     libavfilter     7. 48.100 /  7. 48.100
     libswscale      5.  4.100 /  5.  4.100
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000002213366bb00] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'songs/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].m4a':
     Metadata:
       major_brand     : M4A
       minor_version   : 512
       compatible_brands: isomiso2
       title           : &I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep]
       artist          : Cider Party
       encoder         : Lavf58.18.104
       comment         : https://www.youtube.com/watch?v=HprdvIIpR-I
     Duration: 00:05:24.80, start: 0.000000, bitrate: 127 kb/s
       Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
       Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 120x90 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc
    Input #1, image2, from './thumbnails/&I feat. Giggly Maria - Dive (Exiark's Endless Sky Remix) [Chillstep].jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 1575 kb/s
       Stream #1:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 480x360 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
     Stream #1:0 -> #0:2 (mjpeg (native) -> png (native))
    Press [q] to stop, [?] for help
    [swscaler @ 00000221353d4fc0] deprecated pixel format used, make sure you did set range correctly
    [ipod @ 00000221336703c0] Could not find tag for codec png in stream #2, codec not currently supported in container
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:2 --
    Conversion failed!

    Keep in mind that All of my thumbnails retrieved are .jpg

    Any suggestions ? Getting really desperate at this point...

  • Unable to playback hardware encoded H.264 to RED5 server using FFmpeg

    26 février 2019, par Les

    I have a USB camera that is capable of H.264 on-board compression. I use the following FFmpeg command line to grab the encoded H.264 from the camera and put it in a ’flv’ container :

    ffmpeg -y -f dshow -vcodec h264 -i video="USB Camera" -vcodec copy -copyinkf -f flv c:\temp\test.flv

    This works as expected and I can view the video using VLC no problem. Following this principle I then attempt to stream to a RED5 server using the following command :

    ffmpeg -y -f dshow -vcodec h264 -i video="USB Camera" -vcodec copy -copyinkf -f flv rtmp://192.168.75.34/live/livestream

    The RED5 server detects the stream but I am unable to connect to it and view it using my basic Python program.

    If I do the same thing but use FFmpeg to carry out H.264 encoding of the default capture pin (MJPEG), it will stream correctly.

    I’m not sure if there is some flag in the command line that I might be missing ? Any help with this issue would be much appreciated.

    Here is the log output from the second FFmpeg command :

    C :\ffmpeg-latest-20190219\ffmpeg-static\bin>ffmpeg -y -f dshow -vcodec h264 -i video="USB Camera" -vcodec copy -copyinkf -f flv rtmp ://192.168.75.176/live/livestream"

    ffmpeg version N-93151-gff03418348 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 8.2.1 (GCC) 20190212
    configuration : —enable-gpl —enable-version3 —enable-sdl2 —enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —enable-libdav1d —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-libaom —enable-libmfx —enable-amf —enable-ffnvcodec —enable-cuvid —enable-d3d11va —enable-nvenc —enable-nvdec —enable-dxva2 —enable-avisynth —enable-libopenmpt
    libavutil 56. 26.100 / 56. 26.100
    libavcodec 58. 47.102 / 58. 47.102
    libavformat 58. 26.101 / 58. 26.101
    libavdevice 58. 6.101 / 58. 6.101
    libavfilter 7. 48.100 / 7. 48.100
    libswscale 5. 4.100 / 5. 4.100
    libswresample 3. 4.100 / 3. 4.100
    libpostproc 55. 4.100 / 55. 4.100

    Input #0, dshow, from ’video=USB Camera’ :
    Duration : N/A, start : 1834145.825000, bitrate : N/A
    Stream #0:0 : Video : h264 (Main) (H264 / 0x34363248), yuv420p, 1920x1080, 30 fps, 30 tbr, 10000k tbn, 20000k tbc

    Output #0, flv, to ’rtmp ://192.168.75.176/live/livestream’ :
    Metadata :
    encoder : Lavf58.26.101
    Stream #0:0 : Video : h264 (Main) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=2-31, 30 fps, 30 tbr, 1k tbn, 10000k tbc

    Stream mapping :
    Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame= 39 fps=3.2 q=-1.0 Lsize= 976kB time=00:00:07.10 bitrate=1124.8kbits/s speed=0.59x
    video:975kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 0.106110%