Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (50)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10404)

  • ffmpeg command gives error when used in python

    3 juillet 2018, par Yaser Sakkaf

    When I run this command from the shell it works perfectly.

    ffmpeg -nostdin -i /data/binil/v2t_final/output/cnbctv18/2018_07_02_14_38_30/tmp/merged.avi -ss 00:00:00 -vcodec h264 -vf fps=25 -to 00:6:43 /data/binil/v2t_final/output/cnbctv18/2018_07_02_14_38_30/1/1.avi

    But the same thing when I do in python it gives error :

    import sys
    import os

    INPUT_DIR = sys.argv[1]
    INPUT_VIDEO = sys.argv[2]
    OUTPUT_PATH = sys.argv[3]
    SOURCE = sys.argv[4]
    DATE = sys.argv[5]

    INPUT = INPUT_DIR+"sorted_result.txt"
    COUNT=1
    initial="00:00:00"

    with open(INPUT,"r") as f:
     for line in f.readlines():
       OUT_DIR = OUTPUT_PATH+str(COUNT)
       directory = os.path.abspath(OUT_DIR)
       print('OUT DIR',OUT_DIR)
       print('directory',directory)
       try:
         os.mkdir(directory)
       except:
         pass
       cmd_1 = "ffmpeg -nostdin -i "+INPUT_VIDEO+" -ss " +initial+ " -vcodec h264 -vf fps=25 -to " +line+ " " +OUT_DIR+"/"+str(COUNT)+".avi"
    os.system(cmd_1)
       COUNT += 1
       initial=line

    I cant understand the problem :

    The error is as follows :

    ffmpeg version 4.0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-libxml2 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Trailing options were found on the commandline.
    Input #0, avi, from '/data/binil/v2t_final/output/cnbctv18/2018_07_02_14_38_30/tmp/merged.avi':
     Metadata:
       encoder         : Lavf58.12.100
     Duration: 01:00:50.23, start: 0.000000, bitrate: 1334 kb/s
       Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 512x288 [SAR 1:1 DAR 16:9], 1001 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 639 kb/s
    At least one output file must be specified
    sh: line 1: /data/binil/v2t_final/output/cnbctv18/2018_07_02_14_38_30/1/1.avi: Permission denied

    Please help.
    This is some dummy text I am writing because it looks like stack overflow does not accept less description and more code. Please don’t mind these sentences. I cant believe that I am still writing this and it is still requesting me to add some more description. I am still doing it. Don’t know till what extent do I have to write. I hope this much is enough.

  • HLS-streaming on VLC - cookies alternative

    5 juillet 2018, par unicornslayer

    I’m trying to build a streaming web api which creates m3u8 playlists of .ts files in .net core.

    I’ve built the live streaming option and it works fine on vlc.

    For example, in VLC -> File -> Open Network put my link : http://localhost:39986/api/Stream/MyChannel/index.m3u8 and VLC gives me the live version of the channel.

    But I need to implement the option of starting a video from a fixed time : http://localhost:39986/api/Stream/MyChannel/index.m3u8?timeStr="2018-07-04T17:16:01". In this case, I would need to create a session to know from which point to create the playlist, right ?[1]

    If so, sessions require an ID stored as a Cookie (right ?[2]). But from what I’ve read and what I’ve tested, vlc doesn’t support cookies.

    So my question is : is there any workaround for this scenario ?[3]

    It’s an university project and I am very confused about this task.

  • ffmpeg - MXF with 4-channel audio : how to create proxies (high quality / small file size) and preserve the audio mapping

    8 juillet 2018, par WhatsYourFunction

    We’ve got MXF sources (h.264 video at UHD (3840x2160) with 4-channels of (4 - PCM S24 mono sources)
    We want Proxies — smallest file size at highest picture quality
    The compression applied to the video and audio essences can be anything,
    And the wrapper can be either MXF or QuickTime
    but we need to preserve the audio mapping (i.e. the Proxy must be 4-channel audio)

    How to do that with ffmpeg ?

    • EDIT Adding ffprobe :

    Metadata :

    uid : ***

    generation_uid : ***

    company_name : CANON

    product_name : EOS C300 Mark II

    product_version : 1.00

    product_uid : ***

    modification_date : 2018-06-28T08:29:24.000000Z

    material_package_umid : ***

    timecode : 02:50:31:17

    Duration : 00:06:35.40, start : 0.000000, bitrate : 395842 kb/s

    Stream #0:0 : Video : h264 (High 4:2:2 Intra), yuv422p10le(tv, progressive), 3840x2160, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc

    Metadata :

    file_package_umid: ***

    Stream #0:1 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***

    Stream #0:2 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***

    Stream #0:3 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***

    Stream #0:4 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***