Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (28)

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

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (4931)

  • combine different encoding movie into one [duplicate]

    21 décembre 2017, par Hunne

    We are trying to combine/concat different movie episodes into
    one but when sometimes the video is with different encoding at that time
    FFMPEG command throws an error so I would like you please help me in
    this that if we modify the FFMPEG command and it combine different
    encoding movie into one

    > /bin/ffmpeg \
    -f lavfi -i color=c=black \
    -ss 0.000 -t 16.545 \
    -i "/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4" \
    -ss 0.000 -t 32.038 \
    -i "/var/customers/webs/dilip/motions4/upload/public/userfiles/tmp/fb881023855388222/1509704918_59fc44d6ac51b.mp4" \
    -ss 16.545 -t 20.386 \
    -i "/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4" \
    -i "/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509685957_59fbfac5113ff.png" \
    -i "/var/customers/webs/dilip/motions4/upload/public/userfiles/public/1509691135_59fc0effd94c8.mp3" \
    -f lavfi -i color=c=black:s=854x480:r=25:d=3 \
    -f lavfi -i color=c=black:s=854x480:r=25:d=3 \
    -filter_complex " \
    [1:v]fps=fps=25[1_fps]; \
    [1_fps]scale=853:480:force_original_aspect_ratio=increase[1_fps_tmpsize]; \
    [1_fps_tmpsize]pad=854:480:x=0.5:y=0:color=black[1_scaled]; \
    [2:v]fps=fps=25[2_fps]; \
    [2_fps]scale=640:480:force_original_aspect_ratio=increase[2_fps_tmpsize]; \
    [2_fps_tmpsize]pad=854:480:x=107:y=0:color=black[2_scaled]; \
    [3:v]fps=fps=25[3_fps]; \
    [3_fps]scale=853:480:force_original_aspect_ratio=increase[3_fps_tmpsize]; \
    [3_fps_tmpsize]pad=854:480:x=0.5:y=0:color=black[3_scaled]; \
    [2_scaled][1_scaled]scale2ref[scaled_2_scaled][1_scaled]; \
    [3_scaled][1_scaled]scale2ref[scaled_3_scaled][1_scaled]; \
    [1_scaled][scaled_2_scaled][scaled_3_scaled]concat=n=3:v=1:a=0[video_out]; \
    [video_out]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf' \
    :x=w-tw-25:y=25:fontsize=32:text='www.omegaitech.com':fontcolor=white[video_out_watermarked]; \
    [4:v]scale=100:100[scalled_logo]; [video_out_watermarked][scalled_logo]overlay=10:10 [video_out_watermarked]; \
    [5:a]adelay=300|300|300|300|300|300|300|300[audio_out]; \
    [6]setsar=1[a]; \
    [a]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf' \
    :x=(w-text_w)/2:y=(h-text_h-line_h)/2:fontsize=32:text='Intro text':fontcolor=white[a]; \
    [7]setsar=1[c]; \
    [c]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2-(line_h*2):fontsize=32:text='Created By':fontcolor=white,drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2-(line_h)+10:fontsize=32:text='Dilip Gorasia (omegaitech@yahoo.com)':fontcolor=white,drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2+20:fontsize=32:text='Modified By':fontcolor=white,drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2+(line_h)+20:fontsize=32:text='Raj Patel (rinpate@gmail.com)':fontcolor=white[c]; \
    [video_out_watermarked]setsar=1[b]; \
    [a][b][c]concat=n=3:v=1:a=0[video_out_watermarked]; \
    [video_out_watermarked]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/arial.ttf' \
    :x=100:y=100:fontsize=32:text='Raj Patel':fontcolor=white:enable='between(t,0,13.37)'[video_out_watermarked]; \
    [video_out_watermarked]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/arial.ttf' \
    :x=200:y=200:fontsize=32:text='Raj Patel':fontcolor=white:enable='between(t,13.37,38.78)'[video_out_watermarked] \
    " \
    -map "[video_out_watermarked]" -map "[audio_out]" \
    -s 854x480 \
    -aspect 1.779167 \
    -r 25 \
    -c:v libx264 -b:v 800k -bufsize 64k -crf 24 -movflags faststart -q:v 0 -q:a 0 -c:a aac -strict experimental -b:a 128k -f mp4 -threads 2 -shortest \
    -t 74.969 -async 1 \
    -y "/var/customers/webs/dilip/motions4/upload/public/userfiles/output/fb881023855388222/1509704929_59fc44e122d41.mp4"
    ffmpeg version N-87770-g1954e62 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/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
     libavutil      55. 77.101 / 55. 77.101
     libavcodec     57.106.104 / 57.106.104
     libavformat    57. 82.104 / 57. 82.104
     libavdevice    57.  9.102 / 57.  9.102
     libavfilter     6.106.101 /  6.106.101
     libswscale      4.  7.103 /  4.  7.103
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Input #0, lavfi, from 'color=c=black':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2016-09-07T03:10:56.000000Z
     Duration: 00:04:06.76, start: 0.000000, bitrate: 2324 kb/s
       Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2194 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2016-09-07T03:10:56.000000Z
         handler_name    : ISO Media file produced by Google Inc.
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2016-09-07T03:10:56.000000Z
         handler_name    : ISO Media file produced by Google Inc.
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/tmp/fb881023855388222/1509704918_59fc44d6ac51b.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.36.100
       comment         : 1361809051215868
     Duration: 00:00:32.38, start: 0.000000, bitrate: 310 kb/s
       Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 182 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 122 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2016-09-07T03:10:56.000000Z
     Duration: 00:04:06.76, start: 0.000000, bitrate: 2324 kb/s
       Stream #3:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2194 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2016-09-07T03:10:56.000000Z
         handler_name    : ISO Media file produced by Google Inc.
       Stream #3:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2016-09-07T03:10:56.000000Z
         handler_name    : ISO Media file produced by Google Inc.
    Input #4, png_pipe, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509685957_59fbfac5113ff.png':
     Duration: N/A, bitrate: N/A
       Stream #4:0: Video: png, rgba(pc), 128x128, 25 tbr, 25 tbn, 25 tbc
    Input #5, mp3, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/public/1509691135_59fc0effd94c8.mp3':
     Metadata:
       TOAL            : www.Songs.PK
       TRSN            : www.Songs.PK
       TPE4            : www.Songs.PK
       encoded_by      : Eac * Lame
       EpisodeID       : www.Songs.PK
       comment         : www.Songs.PK
       lyrics-eng      : www.Songs.PK
       title           : Zor Ka Jhatka - www.Songs.PK
       track           : 1
       TGID            : www.Songs.PK
       TIT1            : www.Songs.PK
       TIT3            : www.Songs.PK
       copyright       : www.Songs.PK
       performer       : www.Songs.PK
       publisher       : www.Songs.PK
       genre           : Bollywood Music
       album           : Action Replayy
       album_artist    : www.Songs.PK
       composer        : www.Songs.PK
       TEXT            : www.Songs.PK
       TOLY            : www.Songs.PK
       TOPE            : Music: Pritam | Lyrics: Irshad Kamil
       artist          : Daler Mehndi, Richa Sharma
       TDES            : www.Songs.PK
       TCAT            : www.Songs.PK
       date            : 2010
     Duration: 00:04:10.17, start: 0.025056, bitrate: 164 kb/s
       Stream #5:0: Audio: mp3, 44100 Hz, stereo, s16p, 158 kb/s
       Metadata:
         encoder         : LAME3.98r
       Stream #5:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 900x803 [SAR 300:300 DAR 900:803], 90k tbr, 90k tbn, 90k tbc
       Metadata:
         comment         : Cover (front)
    Input #6, lavfi, from 'color=c=black:s=854x480:r=25:d=3':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #6:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 25 tbr, 25 tbn, 25 tbc
    Input #7, lavfi, from 'color=c=black:s=854x480:r=25:d=3':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #7:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #1:0 (h264) -fps
     Stream #2:0 (h264) -fps
     Stream #3:0 (h264) -fps
     Stream #4:0 (png) -scale
     Stream #5:0 (mp3) -adelay
     Stream #6:0 (rawvideo) -setsar
     Stream #7:0 (rawvideo) -setsar
     drawtext -Stream #0:0 (libx264)
     adelay -Stream #0:1 (aac)
    Press [q] to stop, [?] for help
    -async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
    [Parsed_concat_11 @ 0x340f840] Input link in1:v0 parameters (size 854x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (854x480, SAR 2560:2559)
    [Parsed_concat_11 @ 0x340f840] Failed to configure output pad on Parsed_concat_11
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #7:0
    Conversion failed!`enter code here`

    Thx for your help

  • How to stop ffmpeg from manipulating mp3 metadata ?

    13 septembre 2024, par he rambled

    I'm using ffmpeg to change bitrate of my mp3 files. It works well, but one thing is very frustrating.

    



    ffmpeg automatically changes some of metadata fields. Specifically it converts ID3v2.3 to ID3v2.4, and it does it incorrectly. For example, it writes TYER field that actually does not exist in ID3v2.4. But the most frustrating thing is, it converts USLT field to lyrics-LANGCODE(like lyrics-eng). Most of music players does not recognise this tag !

    



    I don't want ffmpeg to mess up with metadata fields. I just want it to change bitrate. Is there anyway to tell ffmpeg that it should not touch any metadata fields ?

    



    I'm running ffmpeg 4.0.2 in windows 64bit. Options are :

    



    ffmpeg -i input.mp3 -codec:a libmp3lame -b:a 128k output.mp3


    



    And no, -id3v2_version 3 did not help. It corrected TYER problem, but not lyrics problem.

    


  • MP3 files created using FFmpeg are not starting playback in browser immediately. Is there any major difference between FFmpeg and AVCONV ?

    23 janvier 2019, par AR5

    I am working on a website that streams music. We recently changed server from Debian (with avconv) to a Centos7 (with FFmpeg) server.
    The mp3 files created on Debian server start playback on browser (I have tested Chrome and Firefox) start almost at the same time they start loading into the browser (I used Network tab on Developer Tools to monitor this)

    Now after the switch to Centos/FFmpeg server, the files being created on this new server are displaying a strange behavior. They only start playback after about 1MB is loaded into the browser.

    I have used identical settings for converting original file into MP3 in both AVCONV and FFmpeg but the files created using FFmpeg are showing this issue. Is there something that might be causing such an issue ? Are there differences in terms of audio conversion between AVCONV and FFmpeg ?

    I have already tried

    I first found that the files created on old server (Debian/Avconv) were VBR (variable bitrate) and the ones created on new server were CBR (constant bitrate), so I tried switching to VBR but the issue still persisted.

    I checked the mp3 files using MediaInfo app and there seems to be no difference between the files.

    I also checked if both files were being served as 206 Partial Content and they both are indeed.

    I am trying to create mp3 files using FFmpeg that work exactly like the ones created before using avconv

    I am trying to make the streaming site work on the new server but the mp3 files created using FFmpeg are not playing back correctly as compared to the ones created on the old server. I am trying to figure out what I might be doing wrong ? or if there is a difference between avconv and FFmpeg that is causing this issue.

    I am really stuck on this issue, any help will be really appreciated.


    Edit

    I don’t have access to old server anymore so I couldn’t retrieve the log output of avconv. The command that I was using was as follows :

    avconv -y -i "/test/Track 01.mp3" -ac 2 -ar 44100 -acodec libmp3lame -b:a 128k "/test/Track 01 (converted).mp3"

    Here is the command and log output from new server :

    ffmpeg -y -i "/test/Track 01.mp3" -ac 2 -ar 44100 -acodec libmp3lame -b:a 128k "/test/Track 01 (converted).mp3"
    ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
     configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
     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
    [mp3 @ 0xd60be0] Skipping 0 bytes of junk at 240044.
    Input #0, mp3, from '/test/Track 01.mp3':
     Metadata:
       album           : Future Hndrxx Presents: The WIZRD
       artist          : Future
       genre           : Hip-Hop
       title           : Never Stop
       track           : 1
       lyrics-eng      : rgf.is
       WEB SITE        : rgf.is
       TAGGINGTIME     : rgf.is
       WEB             : rgf.is
       date            : 2019
       encoder         : Lavf56.40.101
     Duration: 00:04:51.40, start: 0.025056, bitrate: 121 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 114 kb/s
       Metadata:
         encoder         : Lavc56.60
       Stream #0:1: Video: png, rgb24(pc), 333x333 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
       Metadata:
         comment         : Cover (front)
    [mp3 @ 0xd66ec0] Frame rate very high for a muxer not efficiently supporting it.
    Please consider specifying a lower framerate, a different muxer or -vsync 2
    Output #0, mp3, to '/test/Track 01 (converted).mp3':
     Metadata:
       TALB            : Future Hndrxx Presents: The WIZRD
       TPE1            : Future
       TCON            : Hip-Hop
       TIT2            : Never Stop
       TRCK            : 1
       lyrics-eng      : rgf.is
       WEB SITE        : rgf.is
       TAGGINGTIME     : rgf.is
       WEB             : rgf.is
       TDRC            : 2019
       TSSE            : Lavf56.40.101
       Stream #0:0: Video: png, rgb24, 333x333 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc
       Metadata:
         comment         : Cover (front)
         encoder         : Lavc56.60.100 png
       Stream #0:1: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc56.60.100 libmp3lame
    Stream mapping:
     Stream #0:1 -> #0:0 (png (native) -> png (native))
     Stream #0:0 -> #0:1 (mp3 (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [libmp3lame @ 0xd9b0c0] Trying to remove 1152 samples, but the queue is emptys/s
    frame=    1 fps=0.1 q=-0.0 Lsize=    4788kB time=00:04:51.39 bitrate= 134.6kbits/s
    video:234kB audio:4553kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.014809%

    Samples of MP3 files

    I have uploaded samples of mp3 files created using both avconv and FFmpeg. Please find these here : https://drive.google.com/drive/folders/1gRTmMM2iSK0VWQ4Zaf_iBNQe5laFJl08?usp=sharing