Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (63)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7745)

  • FFmpeg : jpeg scaling on amazone linux

    8 août 2016, par Vovik

    I have a need to rescale a jpg image in command line. And I use ffmpeg for that :

    ffmpeg -loglevel debug -i photo.jpg -vf scale=1920:1080 photo_scaled.jpg

    It works perfectly on my work Mac and gives following output :

    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument 'photo.jpg'.
    Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=1920:1080'.
    Reading option 'photo_scaled.jpg' ... matched as output file. Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options.
    Parsing a group of options: input file photo.jpg. Successfully parsed a group of options.
    Opening an input file: photo.jpg.
    [png_pipe @ 0x7fd221810600] Format png_pipe probed with size=2048 and score=99
    [png_pipe @ 0x7fd221810600] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
    [png_pipe @ 0x7fd221810600] After avformat_find_stream_info() pos: 303755 bytes read:303755 seeks:0 frames:1 Input #0, png_pipe, from 'photo.jpg':  
    Duration: N/A, bitrate: N/A

    Stream #0:0, 1, 1/25: Video: png, 1 reference frame, rgb24(pc), 905x509 (0x0), 1/25, 25 tbr, 25 tbn, 25 tbc
    Successfully opened the file.
    Parsing a group of options: output file photo_scaled.jpg.
    Applying option vf (set video filters) with argument scale=1920:1080. Successfully parsed a group of options.
    Opening an output file: photo_scaled.jpg

    But on amazone server it gives me the following :

    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument 'photo.jpg'.
    Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=1920:1080'.
    Reading option 'photo_scaled.jpg' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file photo.jpg.
    Successfully parsed a group of options.
    Opening an input file: photo.jpg.
    [AVIOContext @ 0x372f700] Statistics: 303755 bytes read, 0 seeks
    [mjpeg @ 0x372c6a0] marker=f9 avail_size_in_buf=303444
    [mjpeg @ 0x372c6a0] marker parser used 0 bytes (0 bits)
    [mjpeg @ 0x372c6a0] marker=de avail_size_in_buf=303438
    [mjpeg @ 0x372c6a0] marker parser used 0 bytes (0 bits)
    [mjpeg @ 0x372c6a0] marker=fd avail_size_in_buf=302501
    [mjpeg @ 0x372c6a0] marker parser used 0 bytes (0 bits)
    [mjpeg @ 0x372c6a0] marker=f3 avail_size_in_buf=298342
    [mjpeg @ 0x372c6a0] marker parser used 0 bytes (0 bits)
    [mjpeg @ 0x372c6a0] marker=f8 avail_size_in_buf=297965
    [mjpeg @ 0x372c6a0] invalid id 248
    [image2 @ 0x372b880] decoding for stream 0 failed
    [image2 @ 0x372b880] Could not find codec parameters for stream 0 (Video: mjpeg): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    photo.jpg: could not find codec parameters

    As I checked, the configuration of ffmpeg is different.
    On linux :

    ffmpeg version N-63893-gc69defd
    built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1)
    configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
    libavutil      52. 89.100 / 52. 89.100
    libavcodec     55. 66.101 / 55. 66.101
    libavformat    55. 43.100 / 55. 43.100
    libavdevice    55. 13.101 / 55. 13.101
    libavfilter     4.  8.100 /  4.  8.100
    libswscale      2.  6.100 /  2.  6.100
    libswresample   0. 19.100 /  0. 19.100
    libpostproc    52.  3.100 / 52.  3.100

    On Mac :

    ffmpeg version 2.8.5 Copyright (c) 2000-2016 the FFmpeg developers
    built with Apple LLVM version 7.0.2 (clang-700.1.81)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.5 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 40.101 /  5. 40.101
    libavresample   2.  1.  0 /  2.  1.  0
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
    libpostproc    53.  3.100 / 53.  3.100

    But what is specific to image scaling in the difference ? And how to make amazone linux’s version of ffmpeg work same way as Mac’s version (at least, in the case) ?

  • Is there any liability regarding ffmpeg ? [closed]

    28 novembre 2023, par kenan bahadir

    My question is as follows : I want to upload a short video to YouTube. I have the code below, but it does not work as I want. Can you help me ?
crop_command = f'ffmpeg -i "input_file" -filter_complex "crop=1080:1080:420:0,scale=1920:1920:flags=lanczos" -acodec aac -strict experimental "temp_output_file"'
os.system(crop_command)

    


    My question is as follows : I want to upload a short video to YouTube. I have the code below, but it does not work as I want.
crop_command = f'ffmpeg -i "input_file" -filter_complex "crop=1080:1080:420:0,scale=1920:1920:flags=lanczos" -acodec aac -strict experimental "temp_output_file"'
os.system(crop_command)

    


  • Slideshow from .jpg

    13 octobre 2023, par DJArty

    Have an command to make slideshow from *.jpg files :

    


    ffmpeg -r 1/3 -f concat -safe 0 -i <(ls -v *.jpg | sed "s|^|file '$PWD/|") -vf "scale='min(1920,iw)':min'(1080,ih)':force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" -c:v libx264 -pix_fmt yuv420p -r 60 -preset slow -crf 14 slideshow.mp4

    


    Need good effects from one jpg to another like morphing or just fade in fade out, not just "one picture 3 sec, next picture 3 sec, etc."

    


    need nicey slideshow