Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (65)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • FFMPEG Executing Command Error (index entry 349 + TemporalOffset 1 = 350, which is out of bounds)

    21 octobre 2022, par Marcelo Lopes Nunes

    When I conversion file MXF using ffmpeg command :

    


    fmpeg -y -i TEST.mxf -vcodec mpeg2video -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 20000k -g 15 -bf 2 -r 25 -s 1920x1080 -aspect 16:9 -top 1 -flags:v +ilme+ildct -vf yadif=1 -acodec pcm_s24le -map 0:0 -map 0:a -map 0:a -map 0:a -map 0:a -ar 48000 -ac 1 CONVERT.mxf

    


    FFmpeg command Execution error index entry 349 + TemporalOffset 1 = 350, which is out of bounds below log.

    


      libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[mxf @ 0x560422b8bc20] index entry 349 + TemporalOffset 1 = 350, which is out of bounds
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2: mono


    


    So after this, the audio isn't synchronized with the movie.
I executed the same command with a lot of other MXFs it worked and I don't have the FFmpeg error in the log.

    


    Mediainfo MXF below.

    


            <track type="General">&#xA;            <videocount>1</videocount>&#xA;            <audiocount>2</audiocount>&#xA;            <othercount>3</othercount>&#xA;            <fileextension>mxf</fileextension>&#xA;            <format>MXF</format>&#xA;            XDCAM HD422&#xA;            1.3&#xA;            OP-1a&#xA;            Closed / Complete&#xA;            <filesize>91497029</filesize>&#xA;            <duration>14.000</duration>&#xA;            <overallbitrate>52284016</overallbitrate>&#xA;            <framerate>25.000</framerate>&#xA;            <framecount>350</framecount>&#xA;            <footersize>2629</footersize>&#xA;            <packagename>Source Package</packagename>&#xA;            0-00-00 00:00:00.000&#xA;            UTC 2022-10-19 10:23:49&#xA;            2022-10-19 11:23:49&#xA;            FFmpeg&#xA;            OP1a Muxer&#xA;            58.29.100.0.0&#xA;            58.29.100.0.0&#xA;        </track>&#xA;        <track type="Video">&#xA;            <streamorder>0</streamorder>&#xA;            <id>2</id>&#xA;            <format>MPEG Video</format>&#xA;            XDCAM HD422&#xA;            2&#xA;            4:2:2&#xA;            High&#xA;            Yes&#xA;            Default&#xA;            M=3, N=15&#xA;            Frame&#xA;            Frame&#xA;            <codecid>0D01030102046001-0401020201040300</codecid>&#xA;            <duration>14.000</duration>&#xA;            CBR&#xA;            <bitrate>50000000</bitrate>&#xA;            <width>1920</width>&#xA;            <height>1080</height>&#xA;            1920&#xA;            1080&#xA;            <pixelaspectratio>1.000</pixelaspectratio>&#xA;            <displayaspectratio>1.778</displayaspectratio>&#xA;            <framerate>25.000</framerate>&#xA;            <framecount>350</framecount>&#xA;            <colorspace>YUV</colorspace>&#xA;            <chromasubsampling>4:2:2</chromasubsampling>&#xA;            <bitdepth>8</bitdepth>&#xA;            <scantype>Interlaced</scantype>&#xA;            <scanorder>TFF</scanorder>&#xA;            Lossy&#xA;            <delay>0.000</delay>&#xA;            0.000&#xA;            00:00:00:00&#xA;            Group of pictures header&#xA;            Open&#xA;            Closed&#xA;            <streamsize>87500000</streamsize>&#xA;            <buffersize>2500608</buffersize>&#xA;            <extra>&#xA;                0&#xA;                8&#xA;            </extra>&#xA;        </track>&#xA;        <track type="Audio" typeorder="1">&#xA;            <streamorder>1</streamorder>&#xA;            <id>3</id>&#xA;            <format>PCM</format>&#xA;            Little&#xA;            Frame (AES)&#xA;            <codecid>0D01030102060300</codecid>&#xA;            <duration>14.000</duration>&#xA;            CBR&#xA;            <bitrate>1152000</bitrate>&#xA;            <channels>1</channels>&#xA;            <samplesperframe>1920</samplesperframe>&#xA;            <samplingrate>48000</samplingrate>&#xA;            <samplingcount>672000</samplingcount>&#xA;            <framerate>25.000</framerate>&#xA;            <framecount>350</framecount>&#xA;            <bitdepth>24</bitdepth>&#xA;            <delay>0.000</delay>&#xA;            No&#xA;            Container&#xA;            <streamsize>2016000</streamsize>&#xA;            0.02203&#xA;            <extra>&#xA;                0&#xA;                <locked>Yes</locked>&#xA;                <blockalignment>3</blockalignment>&#xA;            </extra>&#xA;        </track>&#xA;

    &#xA;

    I researched this problem on ffmpeg.org and I found "This implies there's a VBR index with slices. Probably because of mxf->slice_count = 1 ;&#xA;Slices are MXF's way of indexing VBR combined with CBR." but I don't know how I fix this.

    &#xA;

  • ffmpeg output gives file not found error in python

    20 octobre 2022, par Batuhan Yılmaz

    Trying to build an auto subtitled video generator in Python. But couldn't generate the subtitled video of the input video using ffmpeg. Getting an error saying there is no output.mp4. FileNotFoundError : [Errno 2] No such file or directory : 'C :\Users\batuh\Desktop\auto-multipage\output.mp4'

    &#xA;

    Can you help me out ? Full code is here : https://github.com/BatuhanYilmaz26/auto-sub-exp/blob/main/pages/02_up3.py

    &#xA;

    Here's the parts where I used ffmpeg :

    &#xA;

    def inferecence(loaded_model, uploaded_file, task):&#xA;    with open(f"{save_dir}/audio.mp3" , "wb") as f:&#xA;            f.write(uploaded_file.read())&#xA;        audio = ffmpeg.input(f"{save_dir}/audio.mp3")&#xA;        audio = ffmpeg.output(audio, f"{save_dir}/output.wav", acodec="pcm_s16le", ac=1, ar="16k")&#xA;        ffmpeg.run(audio, overwrite_output=True)&#xA;    if task == "Transcribe":&#xA;            options = dict(task="transcribe", best_of=5)&#xA;            results = loaded_model.transcribe(f"{save_dir}/output.wav", **options)&#xA;            vtt = getSubs(results["segments"], "vtt", 80)&#xA;            srt = getSubs(results["segments"], "srt", 80)&#xA;            lang = results["language"]&#xA;    return results["text"], vtt, srt, lang&#xA;    elif task == "Translate":&#xA;            options = dict(task="translate", best_of=5)&#xA;            results = loaded_model.transcribe(f"{save_dir}/output.wav", **options)&#xA;            vtt = getSubs(results["segments"], "vtt", 80)&#xA;            srt = getSubs(results["segments"], "srt", 80)&#xA;            lang = results["language"]&#xA;    return results["text"], vtt, srt, lang&#xA;    else:&#xA;    raise ValueError("Task not supported")&#xA;    &#xA;    results = inferecence(loaded_model, input_file, task)&#xA;    &#xA;    subprocess.run(shlex.split(f"ffmpeg -i {save_dir}/input.mp4 -i {save_dir}/output.wav -i transcript.srt -c:v copy -c:a copy -c:s copy -map 0:a -map 1:v -map 2:s -metadata:s:a:0 language={results[3]} -y {save_dir}/output.mp4"))&#xA;    #subprocess.run(shlex.split(f"ffmpeg -i {save_dir}/input.mp4 -vf {save_dir}/transcript.srt -y {save_dir}/output.mp4"))&#xA;    with open(os.path.join(os.getcwd(), "output.mp4"), "rb") as f:&#xA;                        data = f.read()&#xA;                    st.video(data)&#xA;                    st.download_button(label="Download Subtitled Video",&#xA;                                        data=data,&#xA;                                        file_name="output.mp4")&#xA;

    &#xA;

    sorry about the indentations

    &#xA;

    Logfile :

    &#xA;

    ffmpeg started on 2022-10-20 at 23:43:53&#xA;Report written to "ffmpeg-20221020-234353.log"&#xA;Command line:&#xA;ffmpeg -i C:UsersbatuhDesktopauto-multipagepageslocaloutput/input.mp4 -i C:UsersbatuhDesktopauto-multipagepageslocaloutput/output.wav -i transcript.srt -c:v copy -c:a copy -c:s copy -map 0:a -map 1:v -map 2:s -metadata:s:a:0 "language=eng" -y C:UsersbatuhDesktopauto-multipagepageslocaloutput/output.mp4 -report&#xA;ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200523&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;C:UsersbatuhDesktopauto-multipagepageslocaloutput/input.mp4&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;C:UsersbatuhDesktopauto-multipagepageslocaloutput/output.wav&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;transcript.srt&#x27;.&#xA;Reading option &#x27;-c:v&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;copy&#x27;.&#xA;Reading option &#x27;-c:a&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;copy&#x27;.&#xA;Reading option &#x27;-c:s&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;copy&#x27;.&#xA;Reading option &#x27;-map&#x27; ... matched as option &#x27;map&#x27; (set input stream mapping) with argument &#x27;0:a&#x27;.&#xA;Reading option &#x27;-map&#x27; ... matched as option &#x27;map&#x27; (set input stream mapping) with argument &#x27;1:v&#x27;.&#xA;Reading option &#x27;-map&#x27; ... matched as option &#x27;map&#x27; (set input stream mapping) with argument &#x27;2:s&#x27;.&#xA;Reading option &#x27;-metadata:s:a:0&#x27; ... matched as option &#x27;metadata&#x27; (add metadata) with argument &#x27;language=eng&#x27;.&#xA;Reading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;C:UsersbatuhDesktopauto-multipagepageslocaloutput/output.mp4&#x27; ... matched as output url.&#xA;Reading option &#x27;-report&#x27; ... matched as option &#x27;report&#x27; (generate a report) with argument &#x27;1&#x27;.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option y (overwrite output files) with argument 1.&#xA;Applying option report (generate a report) with argument 1.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url C:UsersbatuhDesktopauto-multipagepageslocaloutput/input.mp4.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: C:UsersbatuhDesktopauto-multipagepageslocaloutput/input.mp4.&#xA;[NULL @ 000001fba186b9c0] Opening &#x27;C:UsersbatuhDesktopauto-multipagepageslocaloutput/input.mp4&#x27; for reading&#xA;[file @ 000001fba186c140] Setting default whitelist &#x27;file,crypto&#x27;&#xA;C:UsersbatuhDesktopauto-multipagepageslocaloutput/input.mp4: No such file or directory&#xA;

    &#xA;

  • FFmpeg hevc_nvenc encoder B Frame problem

    16 mai 2023, par ramondq

    I'm using the latest FFmpeg windows Build (2022-12-02 12:44) from BtbN.&#xA;I'm trying to encode a video into HEVC codec using hevc_nvenc encoder. But it says [hevc_nvenc @ 00000263983f4280] B frames as references are not supported. Cause my GPU GTX1060 (GP106) doesn't support hardware accelerate encode HEVC of B frames.&#xA;command line

    &#xA;

    I tried to disable the B frames by adding the parameter -bf 0, but it doesn't work.&#xA;Then I tried to use the latest build from gyan.dev and it is the same. But when I tried to use an older build (2021-02-28 12:32) of BtbN, it doesn't have the problem.&#xA;Is there a workaround to bypass this B frame problem ? Cause I don't want to switch to an older build. Thanks.

    &#xA;