Recherche avancée

Médias (1)

Mot : - Tags -/graphisme

Autres articles (62)

  • 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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (7806)

  • Remuxing MKV to MP4 fails when using -map 0 but works fine when Remuxing MP4 to MKV

    20 septembre 2020, par AppetiteForDestruction

    I have an MKV file that contains 5 streams...

    &#xA;

    0 : video
    &#xA;1 : audio
    &#xA;2 : audio
    &#xA;3 : text
    &#xA;4 : menu

    &#xA;

    I was able to remux the MKV into an MP4 using this command...

    &#xA;

    > ffmpeg.exe -i input.mp4 -map 0 -c copy -c:s mov_text output.mkv&#xA;

    &#xA;

    The resulting output MP4 contains all the streams from the original MKV.

    &#xA;

    But if I try to remux the output MP4 into an MKV using the same command, but with a different codec for the subtitles (srt) and different file extension (mkv), I get an error. However, if I omit "-map 0" from the command, it works but only ONE of the audio streams get copied to the output MKV file.

    &#xA;

    ====================
    &#xA; Steps to Reproduce 
    &#xA;====================

    &#xA;

    These two commands work, however, the output MKV only contains ONE of the TWO audio streams...

    &#xA;

    > ffmpeg.exe -i input.mp4 -c copy -c:s srt output.mkv&#xA;> ffmpeg.exe -i input.mp4 -c:v copy -c:a copy -c:s srt output.mkv&#xA;

    &#xA;

    When I try to use either of the two commands below using "-map 0" just like I did when I remuxed the original MKV into an MP4, the commands fail and both result in the "Full Output" shown at the bottom...

    &#xA;

    > ffmpeg.exe -i input.mp4 -map 0 -c copy -c:s srt output.mkv&#xA;> ffmpeg.exe -i input.mp4 -map 0 -c:v copy -c:a copy -c:s srt output.mkv&#xA;

    &#xA;

    Output Error

    &#xA;

    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;

    &#xA;

    So why would using "-map 0" cause it to fail when I used the exact same command to remux the original MKV into an MP4 ? And why does omitting "-map 0" allow it to work, but obviously doesn't copy both audio streams ? Seems like a BUG to me because why does practically the exact same command work for going from MKV to MP4, but not from MP4 to MKV ?

    &#xA;

    Full Output

    &#xA;

    ffmpeg version git-2020-07-20-43a08d9 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200621&#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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 55.100 / 56. 55.100&#xA;  libavcodec     58. 96.100 / 58. 96.100&#xA;  libavformat    58. 48.100 / 58. 48.100&#xA;  libavdevice    58. 11.101 / 58. 11.101&#xA;  libavfilter     7. 87.100 /  7. 87.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;F:\input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.48.100&#xA;  Duration: 00:11:03.90, start: 0.000000, bitrate: 5873 kb/s&#xA;    Chapter #0:0: start 0.000000, end 663.872000&#xA;    Metadata:&#xA;      title           : Chapter 01&#xA;    Stream #0:0(eng): Video: mpeg2video (Main) (mp4v / 0x7634706D), yuv420p(tv, smpte170m, top first), 720x480 [SAR 8:9 DAR 4:3], 5546 kb/s, 29.97 fps, 29.97 tbr, 16k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 8500000/0/0 buffer size: 1835008 vbv_delay: N/A&#xA;    Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 160 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;    Side data:&#xA;      audio service type: main&#xA;    Stream #0:2(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 160 kb/s&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;    Side data:&#xA;      audio service type: main&#xA;    Stream #0:3(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SubtitleHandler&#xA;    Stream #0:4(eng): Data: bin_data (text / 0x74786574)&#xA;    Metadata:&#xA;      handler_name    : SubtitleHandler&#xA;Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 3, only the last option &#x27;-c:s srt&#x27; will be used.&#xA;[matroska @ 0000002df6f90f40] Only audio, video, and subtitles are supported for Matroska.&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;  Stream #0:2 -> #0:2 (copy)&#xA;  Stream #0:3 -> #0:3 (mov_text (native) -> subrip (srt))&#xA;  Stream #0:4 -> #0:4 (copy)&#xA;    Last message repeated 1 times&#xA;

    &#xA;

  • Extract frame timecodes from DV AVI

    21 juillet 2020, par Davor Josipovic

    I have some ancient DV AVI files (Type 1) from my camcorder.

    &#xA;

    I would like to export the timecode of each frame to a seperate file. Here I read that ffprobe supports timecode extraction, but it is confusing since it mentions -show_format. As far as I know, DV AVI format encodes timecodes per frame.

    &#xA;

    Anyway here is what I get for ffprobe -show_format testcc.avi :

    &#xA;

    ffprobe version 4.3 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200621&#xA;  configuration: --disable-static --enable-shared --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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;[avi @ 0000025da5e55bc0] Switching to NI mode, due to poor interleaving&#xA;Input #0, avi, from &#x27;testcc.avi&#x27;:&#xA;  Duration: 00:06:16.68, start: 0.000000, bitrate: 28882 kb/s&#xA;    Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc&#xA;    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;[FORMAT]&#xA;filename=testcc.avi&#xA;nb_streams=2&#xA;nb_programs=0&#xA;format_name=avi&#xA;format_long_name=AVI (Audio Video Interleaved)&#xA;start_time=0.000000&#xA;duration=376.680000&#xA;size=1359912960&#xA;bit_rate=28882084&#xA;probe_score=100&#xA;[/FORMAT]&#xA;

    &#xA;

    And for ffprobe -show_frames testcc.avi :

    &#xA;

    ...&#xA;[FRAME]&#xA;media_type=video&#xA;stream_index=0&#xA;key_frame=1&#xA;pkt_pts=0&#xA;pkt_pts_time=0.000000&#xA;pkt_dts=0&#xA;pkt_dts_time=0.000000&#xA;best_effort_timestamp=0&#xA;best_effort_timestamp_time=0.000000&#xA;pkt_duration=1&#xA;pkt_duration_time=0.040000&#xA;pkt_pos=65032&#xA;pkt_size=144000&#xA;width=720&#xA;height=576&#xA;pix_fmt=yuv420p&#xA;sample_aspect_ratio=16:15&#xA;pict_type=I&#xA;coded_picture_number=0&#xA;display_picture_number=0&#xA;interlaced_frame=1&#xA;top_field_first=1&#xA;repeat_pict=0&#xA;color_range=unknown&#xA;color_space=unknown&#xA;color_primaries=unknown&#xA;color_transfer=unknown&#xA;chroma_location=topleft&#xA;[/FRAME]&#xA;[FRAME]&#xA;...&#xA;

    &#xA;

    And for ffprobe -show_streams testcc.avi :

    &#xA;

    [STREAM]&#xA;index=0&#xA;codec_name=dvvideo&#xA;codec_long_name=DV (Digital Video)&#xA;profile=unknown&#xA;codec_type=video&#xA;codec_time_base=1/25&#xA;codec_tag_string=[0][0][0][0]&#xA;codec_tag=0x0000&#xA;width=720&#xA;height=576&#xA;coded_width=720&#xA;coded_height=576&#xA;closed_captions=0&#xA;has_b_frames=0&#xA;sample_aspect_ratio=16:15&#xA;display_aspect_ratio=4:3&#xA;pix_fmt=yuv420p&#xA;level=-99&#xA;color_range=unknown&#xA;color_space=unknown&#xA;color_transfer=unknown&#xA;color_primaries=unknown&#xA;chroma_location=topleft&#xA;field_order=unknown&#xA;timecode=N/A&#xA;refs=1&#xA;id=N/A&#xA;r_frame_rate=25/1&#xA;avg_frame_rate=25/1&#xA;time_base=1/25&#xA;start_pts=0&#xA;start_time=0.000000&#xA;duration_ts=N/A&#xA;duration=N/A&#xA;bit_rate=25000000&#xA;max_bit_rate=N/A&#xA;bits_per_raw_sample=N/A&#xA;nb_frames=N/A&#xA;nb_read_frames=N/A&#xA;nb_read_packets=N/A&#xA;DISPOSITION:default=0&#xA;DISPOSITION:dub=0&#xA;DISPOSITION:original=0&#xA;DISPOSITION:comment=0&#xA;DISPOSITION:lyrics=0&#xA;DISPOSITION:karaoke=0&#xA;DISPOSITION:forced=0&#xA;DISPOSITION:hearing_impaired=0&#xA;DISPOSITION:visual_impaired=0&#xA;DISPOSITION:clean_effects=0&#xA;DISPOSITION:attached_pic=0&#xA;DISPOSITION:timed_thumbnails=0&#xA;[/STREAM]&#xA;[STREAM]&#xA;index=1&#xA;codec_name=pcm_s16le&#xA;codec_long_name=PCM signed 16-bit little-endian&#xA;profile=unknown&#xA;codec_type=audio&#xA;codec_time_base=1/48000&#xA;codec_tag_string=[0][0][0][0]&#xA;codec_tag=0x0000&#xA;sample_fmt=s16&#xA;sample_rate=48000&#xA;channels=2&#xA;channel_layout=stereo&#xA;bits_per_sample=16&#xA;id=N/A&#xA;r_frame_rate=0/0&#xA;avg_frame_rate=0/0&#xA;time_base=1/30000&#xA;start_pts=0&#xA;start_time=0.000000&#xA;duration_ts=N/A&#xA;duration=N/A&#xA;bit_rate=1536000&#xA;max_bit_rate=N/A&#xA;bits_per_raw_sample=N/A&#xA;nb_frames=N/A&#xA;nb_read_frames=N/A&#xA;nb_read_packets=N/A&#xA;DISPOSITION:default=0&#xA;DISPOSITION:dub=0&#xA;DISPOSITION:original=0&#xA;DISPOSITION:comment=0&#xA;DISPOSITION:lyrics=0&#xA;DISPOSITION:karaoke=0&#xA;DISPOSITION:forced=0&#xA;DISPOSITION:hearing_impaired=0&#xA;DISPOSITION:visual_impaired=0&#xA;DISPOSITION:clean_effects=0&#xA;DISPOSITION:attached_pic=0&#xA;DISPOSITION:timed_thumbnails=0&#xA;[/STREAM]&#xA;

    &#xA;

    I don't see any timecode. In Movie Maker (yes I know... it's on an old VM) I do see all the correct timecodes per frame. So what am I doing wrong ?

    &#xA;

  • Manim error : It's a sound problem that I haven't seen anywhere else

    2 avril 2024, par Nεo Pλατo

    I've been using Manim for about a month now, and with already existing impediments to my progress none has been more painful than the lack of sound when I got to this part of Theorem of Beethoven's tutorial. I've been struggling with it for three weeks and opened issues on GitHub and Reddit without any success.

    &#xA;

    So the code looks like this :

    &#xA;

    class AudioTest(Scene):&#xA;    def construct(self):&#xA;        group_dots=VGroup(*[Dot()for _ in range(3)])&#xA;        group_dots.arrange_submobjects(RIGHT)&#xA;        for dot in group_dots:&#xA;            self.add_sound("click_this_and_nothing_else",gain=-10)&#xA;            self.add(dot)&#xA;            self.wait()&#xA;            self.wait()&#xA;

    &#xA;

    And the error message is a bit long and I'm still cracking at what it actually means. Here it is :

    &#xA;

    C:\Manim\manim-18june>python manim.py tutorial\7_add_audio.py AudioTest -pm&#xA;Media will be written to C:/Users/NeoPlato/Videos/manim_videos\. You can change this behavior with the --media_dir flag.&#xA;&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Manim\manim-18june\manimlib\extract_scene.py", line 155, in main&#xA;    scene = SceneClass(**scene_kwargs)&#xA;  File "C:\Manim\manim-18june\manimlib\scene\scene.py", line 79, in __init__&#xA;    self.file_writer.finish()&#xA;  File "C:\Manim\manim-18june\manimlib\scene\scene_file_writer.py", line 379, in finish&#xA;    self.combine_movie_files()&#xA;  File "C:\Manim\manim-18june\manimlib\scene\scene_file_writer.py", line 506, in combine_movie_files&#xA;    self.audio_segment.export(&#xA;  File "C:\Users\allan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pydub\audio_segment.py", line 911, in export&#xA;    raise CouldntEncodeError(&#xA;pydub.exceptions.CouldntEncodeError: Encoding failed. ffmpeg/avlib returned error code: 1&#xA;&#xA;Command:[&#x27;ffmpeg&#x27;, &#x27;-y&#x27;, &#x27;-f&#x27;, &#x27;wav&#x27;, &#x27;-i&#x27;, &#x27;C:\\Users\\NEOPLATO~1.000\\AppData\\Local\\Temp\\tmpk6j8yj98&#x27;, &#x27;-b:a&#x27;, &#x27;312k&#x27;, &#x27;-f&#x27;, &#x27;mp3&#x27;, &#x27;C:\\Users\\NEOPLATO~1.000\\AppData\\Local\\Temp\\tmpyn225uxk&#x27;]&#xA;&#xA;Output from ffmpeg/avlib:&#xA;&#xA;ffmpeg version git-2020-06-17-0b3bd00 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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt&#xA;--enable-amf&#xA;  libavutil      56. 55.100 / 56. 55.100&#xA;  libavcodec     58. 92.100 / 58. 92.100&#xA;  libavformat    58. 46.101 / 58. 46.101&#xA;  libavdevice    58. 11.100 / 58. 11.100&#xA;  libavfilter     7. 86.100 /  7. 86.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Guessed Channel Layout for Input Stream #0.0 : stereo&#xA;Input #0, wav, from &#x27;C:\Users\NEOPLATO~1.000\AppData\Local\Temp\tmpk6j8yj98&#x27;:&#xA;  Duration: 00:00:04.23, bitrate: 2822 kb/s&#xA;    Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s32, 2822 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (pcm_s32le (native) -> mp3 (mp3_mf))&#xA;Press [q] to stop, [?] for help&#xA;[mp3_mf @ 011be000] could not find any MFT for the given media type&#xA;[mp3_mf @ 011be000] could not create MFT&#xA;Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;Conversion failed!&#xA;&#xA;&#xA;&#xA;I do have a larger documentation of the problem with current progress [over at GitHub](https://github.com/3b1b/manim/issues/1152)&#xA;&#xA;>Help&#xA;>>Me&#xA;>>>Please :(&#xA;>>>>Pardon my naive looking formatting, I&#x27;m new to Markdown&#xA;

    &#xA;