Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (42)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

Sur d’autres sites (8030)

  • Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP

    2 février 2012, par Hashid Hameed

    I have searched all over the Google and StackOverFlow, but still did not find a solution for this.

    I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg

    I have ffmpeg and ffmpeg-php installed on my server. I also succeeded in creating thumbnails of one file at a time.

    So this is the situation, I have a directory named uploads which has lots of mp4 videos.
    Now, when I run the script, thumbnail of size 100x100 shoud be created automatically and placed in another folder "skrin". Eg : xxx.mp4 should have xxx.mp4.jpg has the thumb name.

    IMPORTANT : My filenames have spaces, single quotes, brackets etc in their file names. So the script should be able to handle this.

    Could some one help me ? I use the following shell command in php using exec to generate thumb of an individual video.

    exec("/usr/local/bin/ffmpeg -itsoffset -105 -i 'xxx haha.mp4' -vcodec mjpeg -vframes 1 -an -f rawvideo -s 100x100 'xxx haha.mp4.jpg'");
  • How to create mpeg-dash mpd file with multiple periods ?

    14 septembre 2022, par Nimish Agrawal

    I wanted to join multiple mp4 files to create a mpd file. I wanted to have each of the individual mp4 files to be in different periods.

    


    I tried to do that using ffmpeg

    


    ffmpeg -i INPUT_FILE1.mp4 INPUT_FILE2.mp4 ...options... -f dash output.mpd


    


    But it is only considering first mpd file. Is it possible to do this using ffmpeg or any other tool ?

    


    ffmpeg -y -re -i big_buck_bunny_720p_1mb.mp4  -c:v libx264 -x264opts "keyint=24:min-keyint=24:no-scenecut" -r 24  -c:a aac -b:a 128k  -bf 1 -b_strategy 0 -sc_threshold 0 -pix_fmt yuv420p  -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0  -b:v:0 250k  -filter:v:0 "scale=-2:240" -profile:v:0 baseline  -b:v:1 750k  -filter:v:1 "scale=-2:480" -profile:v:1 main  -b:v:2 1500k -filter:v:2 "scale=-2:720" -profile:v:2 high  -use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a"  -f dash movie-dash\movie.mpd


    


  • Convert 2 channel mp4 to each mono wav file using FFMPEG or Python code

    30 mai 2024, par Harish Alwala

    I am new to audio files and its codecs.

    


    I would like to convert a 2 channel mp4 file to a single mono wav files.

    


    My understanding is a when I say 2 channel, it stores speech coming from each microphone in a separate channel. And when I split the channels to each individual mono wav files, I get speech of each microphone.

    


    My intension here is to get the speech from each channel and convert them to text. This way I can set the name of the speaker based on channel.

    


    I tried with ffmpeg and python code as well, unfortunately I get two files with same content.

    


    Looking at the following details
can someone construct ffmpeg command or python script to convert the 2 channel mp4 file to 2 individual mono wav files.

    


    FFprobe
ffprobe -i Two-Channel.mp4 -show_streams -select_streams a

    


    Result

    


    Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Google
  Duration: 00:52:42.19, start: 0.000000, bitrate: 421 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 322 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
      Metadata:
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
      Metadata:
        handler_name    : ISO Media file produced by Google Inc.
        vendor_id       : [0][0][0][0]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=44100
channels=2
channel_layout=stereo
bits_per_sample=0
initial_padding=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_pts=0
start_time=0.000000
duration_ts=139452416
duration=3162.186304
bit_rate=96000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=136184
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=16
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=ISO Media file produced by Google Inc.
TAG:vendor_id=[0][0][0][0]
[/STREAM] 


    


    FFmpeg command

    


    ffmpeg -i Two-Channel.mp4 -filter_complex "pan=mono|c0=0c0" left_channel.wav

    


    python code
using FFPMEG I converted mp4 to wav and then tried below code
enter image description here
enter image description here