
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (35)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (7373)
-
moviepy output video only has sound in vs code and chrome but not in quicktime (the mac video player)
24 janvier 2023, par UrLocalGooseI am using moviepy to make simple videos that require adding background music to a video. I have built essentially the whole application but I ran into a problem when showing people the videos. I tried emailing myself the video and it didn't have any sound, then I tried to play the video with the built in mac video player, quicktime, and it didn't have any sound, however, when I played the video in vs code's video player it worked perfectly, I also used the file path to view the video in chrome, and that worked too. I suspect that it has something to do with the encoding but I am a novice when it comes to video and audio encoding. This is what my code looks like :


from moviepy.editor import *

background_video = VideoFileClip("./background.mp4")

background_music_audio = AudioFileClip("./music.wav")

comp = background_video.set_audio(background_music_audio)

comp.write_videofile("./test.mp4")



I tried to make a video with background music but it had no sound


-
ffmpeg stream to youtube has no sound with bigger mp4 file
6 janvier 2023, par Alessandro OliverioI want to stream to Youtube from a Ubuntu VPS and it works, but when i set a bigger .mp4 file (220mb) the livestream on Youtube has no sound.


I tried to split the .mp4 file to 5s parts and concat them but without success.


My settings are :


FPS="30" # FPS de la vidéo en sortie
QUAL="superfast" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube

 # Source UDP (voir les annonces SAP)
KEY="###-my-key-###" # Clé à récupérer sur>
VSOURCE="parts/files.txt"
ASOURCE="1m.mp3"

ffmpeg \
 -stream_loop -1 -f concat -i "$VSOURCE" -deinterlace \
 -stream_loop -1 -i "$ASOURCE" \
 -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
 -acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \
 -f flv "$YOUTUBE_URL/$KEY"



Hope someone can help me :)


I tried to split the .mp4 file to 5s parts and concat them but without success.


-
How to convert short video clips to TS without sound "gaps" between the segments ?
10 novembre 2022, par ZvikaI am trying to convert a sequence of short video files from MP4 to TS using ffmpeg.
I get valid TS files, but when playing them in any HLS player, there is a noticeable short gap in the sound between segment to segment.


If I first stitch all the short video files to a single video file, and convert this file to TS while slicing it to segments, it plays perfectly fine.


To the gory details :
My software creates short video clips that should be concateenated to an output video and streamed as HLS.
Each short clip is an H.264 video file and WAV audio file (I can create other formats if needed).
I then convert each such pair of H.264+WAV to a TS file using ffmpeg :

ffmpeg -y -i seg_0.mp4 -i seg_0.wav -c:a libvo_aacenc -c:v copy -bsf:v h264_mp4toannexb seg_0.ts ffmpeg -y -i seg_1.mp4 -i seg_1.wav -c:a libvo_aacenc -c:v copy -bsf:v h264_mp4toannexb -output_ts_offset 2.01 seg_1.ts ffmpeg -y -i seg_2.mp4 -i seg_2.wav -c:a libvo_aacenc -c:v copy -bsf:v h264_mp4toannexb -output_ts_offset 4.02 seg_2.ts

etc.

and I create an appropriate M3U8 file to play all the short clips as a sequence.
The result is not satisfying, as I have audio gaps between each segment and segment, as you can hear here :
https://rnd3-temp-public.s3.amazonaws.com/HLS_4/out_seg2.m3u8


However, if I concat all the pairs together, and convert the concatenated sequence to TS, while requesting ffmpeg to slice them again to segments, using a command like :

ffmpeg -y -f concat -i mp4_list.txt -f concat -i wav_list.txt -c:a libvo_aacenc -c:v copy -bsf:v h264_mp4toannexb -flags +cgop -g 30 -hls_time 2 out2.m3u8

it plays perfectly OK, as you can hear here :
https://rnd3-temp-public.s3.amazonaws.com/HLS/out2.m3u8

How can I get a clear audio output by still encoding each segment separately ? (It's crucial for my workflow)


Thanks !