Recherche avancée

Médias (91)

Autres articles (90)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (11428)

  • ffmpeg : `ffmpeg -i "/video.mp4" -i "/audio.m4a" -c copy -map 0:v:0 -map 1:a:0 -shortest "/nu.mp4"` truncates, how to loop audio to match videos ? [closed]

    18 avril 2024, par Swudu Susuwu

    This is with "FFmpeg Media Encoder" from Google Store (Linux-based Android OS), but it has all the commands of ffmpeg for normal Linux.

    


    -shortest truncates the video to match the audio, and -longest has the last half of the video not have audio (for videos twice as long as audio,)

    


    what to use to loop audio (to match length of video with this) ?

    


    Video length is 15:02, so used ffmpeg -i "/audio.m4a" -c copy -map 0:a:0 "/audionew.m4a"-t 15:02 -stream_loop -1`, but got errors.

    


  • os.environ['PATH'] doesn't match echo %PATH%

    10 février 2018, par Sergey

    I have PATH variable set for ffmpeg which I tested with CMD command echo %PATH% but Python’s os.environ['PATH'] doesn’t contain registry of it. I’m using Jupyter notebook on Windows.

  • PHP FFMPEG match the Instagram Video Requirements

    19 février 2021, par Linesofcode

    This are the Instagram requirements in order to upload a video :

    


    - Container: MOV or MP4 (MPEG-4 Part 14), no edit lists, moov atom at the front of the file.
- Audio codec: AAC, 48khz sample rate maximum, 1 or 2 channels (mono or stereo).
- Video codec: HEVC or H264, progressive scan, closed GOP, 4:2:0 chroma subsampling.
- Frame rate: 23-60 FPS.
- Picture size:
  - Maximum columns (horizontal pixels): 1920
  - Minimum aspect ratio [cols / rows]: 4 / 5
  - Maximum aspect ratio [cols / rows]: 16 / 9
  - Video bitrate: VBR, 5Mbps maximum
- Audio bitrate: 128kbps
- Duration: 60 seconds maximum, 3 seconds minimum
- File size: 100MB maximum


    


    I'm using the https://github.com/PHP-FFMpeg/PHP-FFMpeg library and I'm able to get the metadata of the video this way :

    


    $ffprobe = \FFMpeg\FFProbe::create();
$video = $ffprobe->streams('my_sample_video.mp4')->videos()->first();
$audio = $ffprobe->streams('my_sample_video.mp4')->audios()->first();


    


    Printing $video & $audio returns respectively the following data :

    


    --- video ---
[index] => 0
[codec_name] => h264
[codec_long_name] => H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[profile] => Baseline
[codec_type] => video
[codec_time_base] => 1/1200
[codec_tag_string] => avc1
[codec_tag] => 0x31637661
[width] => 848
[height] => 480
[coded_width] => 848
[coded_height] => 480
[has_b_frames] => 0
[sample_aspect_ratio] => 0:1
[display_aspect_ratio] => 0:1
[pix_fmt] => yuv420p
[level] => 31
[color_range] => tv
[color_space] => bt709
[color_transfer] => bt709
[color_primaries] => bt709
[chroma_location] => left
[refs] => 1
[is_avc] => 1
[nal_length_size] => 4
[r_frame_rate] => 25/1
[avg_frame_rate] => 25/1
[time_base] => 1/600
[start_pts] => 0
[start_time] => 0.000000
[duration_ts] => 57888
[duration] => 96.480000
[bit_rate] => 1436391
[bits_per_raw_sample] => 8
[nb_frames] => 2412

--- audio ---
[index] => 1
[codec_name] => aac
[codec_long_name] => AAC (Advanced Audio Coding)
[profile] => LC
[codec_type] => audio
[codec_time_base] => 1/44100
[codec_tag_string] => mp4a
[codec_tag] => 0x6134706d
[sample_fmt] => fltp
[sample_rate] => 44100
[channels] => 2
[channel_layout] => stereo
[bits_per_sample] => 0
[r_frame_rate] => 0/0
[avg_frame_rate] => 0/0
[time_base] => 1/44100
[start_pts] => 0
[start_time] => 0.000000
[duration_ts] => 4255744
[duration] => 96.502132
[bit_rate] => 62026
[max_bit_rate] => 64000
[nb_frames] => 4156


    


    Some things are easy to verify like the Video Codec, Audio Codec & Duration, but how to I manage to verify the rest ?

    


    I also noticed that all the MP4 & MOV video samples I use, the metadata of codec_long_name always returns "MPEG-4 part 10" and the requirement is "MPEG-4 Part 14".