Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (111)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (12830)

  • Ffmpeg : How to fix error "Please choose an encoder manually" ?

    9 juillet 2023, par Alex

    I am trying to convert a x265 videofile to a x264 format so it can be played on a television. I am trying the following command

    


    ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -map 0:0 -map 0:1 -map 0:2 test.mp4


    


    to select videos stream 0:0 for video, stream 0:1 for audio and stream 0:2 for the subtitle. However I get an error

    


    Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder


    


    How to fix this command ?

    


    P.S. I am not an expert in ffmpeg or videos conversion/formats/encodings/audio formats/subtitle formats.

    


    I found EXACTLY ONE google search result with the exact error phrase HERE. And that is not helping as I do not even understand the first sentence.

    


    Below is the output for the first three streams :

    


    Input #0, matroska,webm, from 'input.mkv':
  Metadata:
    creation_time   : 2021-03-25T09:13:20.000000Z
    ENCODER         : Lavf58.29.100
  Duration: 00:23:57.65, start: 0.000000, bitrate: 2103 kb/s
  Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      title           : [Judas] x265 10b
      ENCODER         : Lavc58.54.100 libx265
      BPS-eng         : 1973938
      DURATION-eng    : 00:23:55.017000000
      NUMBER_OF_FRAMES-eng: 34406
      NUMBER_OF_BYTES-eng: 354079423
      _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Japanese
      BPS-eng         : 128000
      DURATION-eng    : 00:23:55.086000000
      NUMBER_OF_FRAMES-eng: 61804
      NUMBER_OF_BYTES-eng: 22961378
      _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass
    Metadata:
      title           : English
      BPS-eng         : 196
      DURATION-eng    : 00:23:53.580000000
      NUMBER_OF_FRAMES-eng: 478
      NUMBER_OF_BYTES-eng: 35129
      _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES


    


    I found a related question HERE whose answer I do not fully understand. However, I tried the following command

    


    ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -map 0:0 -map 0:1 -map 0:2 -c:s mov_text  test.mp4


    


    but got a new error

    


    Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


    


    I thought I am defining an "encoder" for output stream "#0:0" (which I think is video), namely libx264. So what else to do here ?

    


    I tried -acode copy and also to use -qp 0 in the command line which all did not work.

    


  • "No Output pad"error when using ffmpeg to create a subtitle overlay

    7 avril 2023, par user3324136

    I am using a Lambda function to run ffmpeg to rescale a video and then add subtitles from an .ass file.

    


    I have tried a few variations, but am continuing to get an error :
[AVFilterGraph @ 0x721bec0] No output pad can be associated to link label '2'.

    


    The code is below, with the error stemming from the line :
'[0]scale=iw/1.5:ih/1.5,setsar=1[v];[1][v]overlay=-100:320[vid][2]overlay[out]'

    


    CODE

    


        try:
        subprocess.check_call([
            '/opt/ffmpeg',
            '-i', source_file,
            '-i', padding_image_file,
            '-i', subtitles_file,    # Input caption file path
            '-filter_complex',
            '[0]scale=iw/1.5:ih/1.5,setsar=1[v];[1][v]overlay=-100:320[vid][2]overlay[out]',
            '-c:a', 'copy', '-crf', '20', '-preset', 'fast', '-movflags', '+faststart',
            '-y', output_file
    ])


    


  • generate multiple qualities using "ffmpeg" [closed]

    28 septembre 2022, par zamoosh

    I'm trying to generate multiple qualities using "ffmpeg".
    
I get an answer for my question in this [link][1]

    


    Here is my code :

    


    ffmpeg -f flv -i mov_bbb.mp4 \                                            
  -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 \
  -c:v libx264 -crf 22 -c:a aac -ar 48000 \
  -filter:v:0 scale=w=480:h=360  -maxrate:v:0 600k -b:a:0 500k \
  -filter:v:1 scale=w=640:h=480  -maxrate:v:1 1500k -b:a:1 1000k \
  -filter:v:2 scale=w=1280:h=720 -maxrate:v:2 3000k -b:a:2 2000k \
  -var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p" \
  -preset fast -hls_list_size 10 -threads 0 -f hls \
  -hls_time 3 -hls_flags independent_segments \
  -master_pl_name "livestream.m3u8" \
  -y "livestream-%v.m3u8"



    


    But I get this error :

    


    Stream map '0:v:0' matches no streams.
To ignore this, add a trailing '?' to the map.