Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (76)

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

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8496)

  • ffmpeg extract first subtitle for given language or fix missmaped tracks

    11 mars 2023, par iarwain8a

    I'm using developing a server to encode any given video and I need to extract its' subtitles.

    


    I've tried something like this which worked :

    


    ffmpeg -i pipe:0 -map 0:s:1 -c:s webvtt -f segment -segment_list_flags +live -segment_time 60 -segment_list subs_eng.m3u8 -segment_format webvtt subs_eng.vtt -loglevel debug


    


    This encodes from srt, into webvtt, the second track which happens to be in this video an english subtitle. But very quickly I ran into a problem in which the tracks mappings are not numbered correctly for this video, for example, the (eng) track should be "-map 0:s:2", but it's "-map 0:s:1" as I've said before, and the (bul) track, wich should be "-map 0:s:4" is actually "-map 0:s:2".

    


    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 768 kb/s (default)
  Stream #0:2(eng): Subtitle: subrip
    Metadata:
      title           : English
  Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English [SDH]
  Stream #0:4(bul): Subtitle: subrip
    Metadata:
      title           : Bulgarian (Bulgaria)


    


    Given said problem I tried something like this :

    


    ffmpeg -i pipe:0 -map 0:s:m:language:eng -c:s webvtt -f segment -segment_list_flags +live -segment_time 60 -segment_list subs_eng.m3u8 -segment_format webvtt subs_eng.vtt -loglevel debug


    


    Which didn't work because I can't or don't know how, to actually select the first result of this "-map 0:s:m:language:eng" if there is more than 1 "eng" sub track. Is there a way to do this ?
Or the alternative should be : Is there a reason why the metadata of this file is missmapped ? If so is there a way to detect it, to then do something about it ? or have it fixed ?

    


  • I cant give names to subtitle tracks with ffmpeg

    11 mai 2023, par Keles

    Im using this command to add 2 audio tracks (mixed with original audio) and 2 subtitles tracks to the original video :

    


    


    ffmpeg -i input_video.mp4 -i audio_track_1.wav -i audio_track_2.wav -i
srt_file_es.srt -i srt_file_en.srt -filter_complex
"[0:a][1:a]amerge=inputs=2[a1] ;[0:a][2:a]amerge=inputs=2[a2]" -map 0:v
-map "[a1]" -metadata:s:a:0 language=spa -metadata:s:a:0 title="Spanish" -map "[a2]" -metadata:s:a:1 language=eng
-metadata:s:a:1 title="English" -c:v copy -c:a aac -ac 2 -b:a 96k -c:s mov_text -metadata:s:s:0 language=spa -metadata:s:s:0 title="Spanish"
-metadata:s:s:1 language=eng -metadata:s:s:1 title="English" output_video.mp4

    


    


    Everything works fine but the subtitles names are "Track 1" and "Track 2". The following part is not working :

    


    


    metadata:s:s:0 title=

    


    


  • can't install ffmpeg in ubuntu

    5 février 2013, par john

    I tried to install ffmpeg in ubundu.using the command sudo apt-get install ffmpeg

    But i can't install it.It Shows an error.Following is the out put when i tried to install ffmpeg.

    wds@wds:~$ sudo apt-get install ffmpeg
    [sudo] password for wds:
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    The following extra packages will be installed:
     libavfilter1
    The following NEW packages will be installed:
     ffmpeg libavfilter1
    0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
    Need to get 357kB of archives.
    After this operation, 1,282kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    WARNING: The following packages cannot be authenticated!
     libavfilter1 ffmpeg
    Install these packages without verification [y/N]? y
    Err http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main libavfilter1 i386 4:0.6-2ubuntu6.3
     404  Not Found [IP: 91.189.91.15 80]
    Err http://security.ubuntu.com/ubuntu/ maverick-security/main libavfilter1 i386 4:0.6-2ubuntu6.3
     404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ maverick-security/main ffmpeg i386 4:0.6-2ubuntu6.3
     404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libavfilter1_0.6-2ubuntu6.3_i386.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/ffmpeg/ffmpeg_0.6-2ubuntu6.3_i386.deb  404  Not Found [IP: 91.189.92.200 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    wds@wds:~$

    It shows a 404 error.when installing.