Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (62)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (10137)

  • ffmpeg inconsistent speed results by version breaking large audio file into multiple pieces with -ss/-to positional parameters [closed]

    2 novembre 2024, par BenH

    I am trying to chop a large (12 hour+) audio file up into multiple segments using multiple -ss/-to positional operations.

    


    ffmpeg.exe -loglevel error -stats -i "C:\data\chapters\joined_output.mp3" -ss -1 -to 1159 -c copy "C:\data\chapters\001 - Chapter 1.mp3" -ss 1159 -to 1800 -c copy "C:\data\chapters\002 - Chapter 2.mp3" -ss 1800 -to 3181 -c copy "C:\data\chapters\003 - Chapter 3.mp3" ... output.mp3


    


    The '...' indicates that I have more than 20 of such repeated statements to break up into 20 or more chapter files.

    


    I arrived on this because using individual command were processing the entire file each time to parse out the section I wanted. I realize there is an option to place -ss/-to prior to the input file, and have since discovered that this appears to work quicker, but I have not found syntax to use this in a single command and therefore must create a separate command for each chapter.

    


    The above syntax appears to work fine, but was taking about 4 minutes to process. When I reverted to older versions this operation completes much quicker. About 20 seconds with version 6.1 and about 10 seconds on version 5.

    


    There is some discrepancy with how the old versions report the length of the file (it appears to show only about 6.5 hours processed in "out_time" value), but the resulting output files appear to be correct. I think it might be reporting out_time of only the longest section it is processing as the 6.5 hours appear to match the length of that output section.

    


    To be clear, version 5 using my above syntax appears to create all my output files correctly in 10 seconds.

    


    If I split them up into individual commands with -ss/-to before the input, then it actually takes longer with ffmpeg version 5/6 (about 45 seconds compared to 10-20 seconds).
With the latest version 7 it takes about 1 min, 15 secs. Much better than the 4 minutes using my syntax above but still well slower than using version 5/6 with that same syntax.

    


    So, in short, why am I able to (apparently) properly split this 12 hour file into about 25 different segments in about 10 seconds using the syntax above on version 5, but it takes 2x that long on 6, and 30x that long on 7 ? I assume there are just syntax changes I can't figure out or some changes to default behavior ?

    


  • FFmpeg : When I ignore audio 1 and transcode audio 2 to aac I get vorbis. Is this a bug in FFmpeg ? [closed]

    26 septembre 2024, par CA Opa

    I have videos with 2 audio tracks. I don't want to copy or transcode audio track 1. I only want to copy video, transcode audio track 2 and copy subtitles using FFmpeg. When I -map track 2 (-map 0:a:1) and transcode to aac the result I get is not aac but vorbis. What is wrong with my program code ?

    


    Here is my code :

    


    "ffmpeg.exe" -i "U:\infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "U:\Outfile.mkv"


    


    This is what happens :

    


      Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
      Metadata:
        title           : Многоголосый закадровый, студия "Селена Интернешнл"
  Stream #0:2(eng): Audio: flac, 48000 Hz, stereo, s16
  Stream #0:3(eng): Subtitle: subrip (srt)
[out#0/matroska @ 000001b979895440] Codec AVOption b:a:1 (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (flac (native) -> vorbis (libvorbis))
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
Output #0, matroska, to 'U:\Outfile.mkv':
  Metadata:
    encoder         : Lavf61.5.101
  Chapters:
    Chapter #0:0: start 0.000000, end 180.000000
      Metadata:
        title           : On a Cold Night...
  Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(eng): Audio: vorbis (oV[0][0] / 0x566F), 48000 Hz, stereo, fltp
      Metadata:
        encoder         : Lavc61.11.100 libvorbis
  Stream #0:2(eng): Subtitle: subrip
[out#0/matroska @ 000001b979895440] video:174005KiB audio:1635KiB subtitle:1KiB other streams:0KiB global headers:4KiB muxing overhead: 0.059971%


    


    If I transcode both audio tracks it succeeds.

    


    "ffmpeg.exe" -i "infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:0 -c:a:0 aac -ac:a:0 2 -b:a:0 192000 -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "Outfile.mkv"


    


    If I just transcoding track 1 it works. Why does it fail when I only map audio track 2 ?

    


  • How do I skip audio 1 and transcode audio 2 to aac with ffmpg ? [closed]

    25 septembre 2024, par CA Opa

    I have videos with 2 audio tracks. Track 1 is ac3 foreign and track 2 is flac English. I only want to transcode the English track 2. When I use ffmpg to map track 2 and transcode to aac the result is vorbis.

    


    Here is my code :

    


    "ffmpeg.exe" -i "U:\infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "U:\Outfile.mkv"


    


    This is what happens :

    


      Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
      Metadata:
        title           : Многоголосый закадровый, студия "Селена Интернешнл"
  Stream #0:2(eng): Audio: flac, 48000 Hz, stereo, s16
  Stream #0:3(eng): Subtitle: subrip (srt)
[out#0/matroska @ 000001b979895440] Codec AVOption b:a:1 (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (flac (native) -> vorbis (libvorbis))
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
Output #0, matroska, to 'U:\Outfile.mkv':
  Metadata:
    encoder         : Lavf61.5.101
  Chapters:
    Chapter #0:0: start 0.000000, end 180.000000
      Metadata:
        title           : On a Cold Night...
  Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(eng): Audio: vorbis (oV[0][0] / 0x566F), 48000 Hz, stereo, fltp
      Metadata:
        encoder         : Lavc61.11.100 libvorbis
  Stream #0:2(eng): Subtitle: subrip
[out#0/matroska @ 000001b979895440] video:174005KiB audio:1635KiB subtitle:1KiB other streams:0KiB global headers:4KiB muxing overhead: 0.059971%


    


    If I transcode both audio tracks it succeeds.

    


    "ffmpeg.exe" -i "infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:0 -c:a:0 aac -ac:a:0 2 -b:a:0 192000 -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "Outfile.mkv"


    


    If I just transcoding track 1 it works. Why does it fail when I only map audio track 2 ?