Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (67)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

  • How to get high quality video after merge into one

    3 avril 2018, par roomy

    I follow the page Create a mosaic out of several input videos to merge videos. But,I got poor video quality. How can I get the video same as the original.

    ffmpeg
    -i 1.flv-i 2.flv -i 3.flv -i 4.flv
    -filter_complex "
       nullsrc=size=640x480 [base];
       [0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];
       [1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];
       [2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];
       [3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];
       [base][upperleft] overlay=shortest=1 [tmp1];
       [tmp1][upperright] overlay=shortest=1:x=320 [tmp2];
       [tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];
       [tmp3][lowerright] overlay=shortest=1:x=320:y=240
    "
    -f flv rtmp://10.240.209.94:9999/live2

    And when I use rtmp ://** as video input.
    Such as :

       ffmpeg-i rtmp://10.240.209.94:9999/live1 -i rtmp://10.240.209.94:9999/live1 -i rtmp://10.240.209.94:9999/live1 -i rtmp://10.240.209.94:9999/live1
    -filter_complex "
       nullsrc=size=640x480 [base];
       [0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];
       [1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];
       [2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];
       [3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];
       [base][upperleft] overlay=shortest=1 [tmp1];
       [tmp1][upperright] overlay=shortest=1:x=320 [tmp2];
       [tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];
       [tmp3][lowerright] overlay=shortest=1:x=320:y=240
    "
    -f flv rtmp://10.240.209.94:9999/live2

    It tells me :

    Stream specifier ':v' in filtergraph description  nullsrc=size=640x480 [base];[0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];[1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];[2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];[3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];[base][upperleft] overlay=shortest=1 [tmp1];[tmp1][upperright] overlay=shortest=1:x=320 [tmp2];[tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];[tmp3][lowerright] overlay=shortest=1:x=320:y=240 matches no streams.

    Is that a bug ? but I use the newest ffmepg.
    bug

    And I can only use the command :

    ffmpeg -i rtmp://10.240.209.94:9999/live10 -vcodec copy -acodec copy -f flv output.flv

    to transfer rtmp into flv,and then read flv video...

  • Create playable video with audio for vscode using ffmpeg [closed]

    25 juin, par Camilo Martínez M.

    I am trying to create a function which adds an audio stream to a silent video using ffmpeg. According to this, in order to be able to play videos in vscode, we need to...

    


    


    make sure that both the video and audio track's media formats are
supported. Many .mp4 files for example use H.264 for video and AAC
audio. VS Code will be able to play the video part of the mp4, but
since AAC audio is not supported there won't be any sound. Instead you
need to use mp3 for the audio track.

    


    


    The following function already produces a playable video in vscode, but the audio is not played, even though I am using the libmp3lame encoder, which is the MP3 encoder (according to this).

    


    def add_audio_to_video(
    silent_video_path: Path,
    audio_source_path: Path,
    output_path: Path,
    audio_codec: Literal["libmp3lame", "aac"] = "libmp3lame",
    fps: int | None = None,
) -> None:
    """Combine a video file with an audio stream from another file using ffmpeg.

    Args:
        silent_video_path (Path): Path to the video file without audio.
        audio_source_path (Path): Path to the file containing the audio stream.
        output_path (Path): Path for the final video file with audio.
        audio_codec (Literal["libmp3lame", "aac"]): Codec to use for the audio stream.
            Defaults to "libmp3lame" (MP3). Use "aac" for AAC codec. **Note**: MP3 is compatible
            with vscode's video preview.
        fps (int): Frames per second for the output video. Defaults to 30.

    Todo:
        * [ ] TODO: Not working to be able to play audio in vscode
    """
    # TODO: Not working to be able to play audio in vscode
    if not check_ffmpeg_installed():
        raise RuntimeError("ffmpeg is required to add audio to the video.")

    # If fps is not provided, try to get it from the silent video
    if not fps:
        video_info = get_video_info(silent_video_path)
        if video_info and video_info.fps:
            fps = int(video_info.fps)
        else:
            logger.warning(
                "fps not provided and could not be determined from the video. Using default 30.",
            )
            fps = 30

    logger.info(f"Adding audio from '{audio_source_path}' to '{silent_video_path}'...")

    cmd = [
        "ffmpeg",
        "-y",  # Overwrite output file if it exists
        "-i",
        str(silent_video_path),  # Input 0: Silent video
        "-i",
        str(audio_source_path),  # Input 1: Audio source
        "-c:v",
        "libx264",
        "-profile:v",
        "baseline",
        "-level",
        "3.0",
        "-pix_fmt",
        "yuv420p",
        "-r",
        str(fps),
        "-c:a",
        audio_codec,
        "-b:a",
        "192k",  # Set a reasonable audio bitrate for quality
        "-map",
        "0:v:0",  # Map video stream from input 0
        "-map",
        "1:a:0?",  # Map audio stream from input 1 (optional)
        "-shortest",  # Finish encoding when the shortest input stream ends
        str(output_path),
    ]

    try:
        subprocess.run(cmd, check=True, capture_output=True, text=True)  # noqa: S603
        logger.success(f"Final video with audio saved to {output_path}")
    except subprocess.CalledProcessError as e:
        logger.error("ffmpeg command failed to add audio.")
        logger.error(f"ffmpeg stderr:\n{e.stderr}")
        raise


    


    Has anyone faced something similar before ?

    


  • Revision 32592 : utiliser glob() pour choper la liste des sites (php 4.3.0 mini), et lister ...

    1er novembre 2009, par fil@… — Log

    utiliser glob() pour choper la liste des sites (php 4.3.0 mini), et lister les plugins utilises