
Recherche avancée
Autres articles (101)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (7957)
-
Im trying to add Audio to a mute Video and it doesnt work
15 février 2021, par mybrainisrunningoutofmyearsI had two approaches :


1.ffmpeg-python


def addaudtovid(audpath,vidpath,savepath): 
 input_video = ffmpeg.input(vidpath)
 input_audio = ffmpeg.input(audpath)
 ffmpeg.concat(input_video, input_audio, v=1, a=1).output(savepath).run()



here for some reason it "cant find a file"(in the fourth line) but all files exist.
Tried this too :


subprocess.run("ffmpeg -i "+vidpath+" -i "+audpath+" -c copy "+savepath)



- 

- MoviePy.editor




Here the finished Video starts after about 3 seconds of blackscreen, but the Audio already starts at the beginning


videoclip = VideoFileClip(vidpath)
audioclip = AudioFileClip(audpath)
videoclip.audio = audioclip
videoclip.write_videofile(savepath)



The Audio and Video are exactly the same length


I am using Windows 10 python 3.8


I am happy about any idea how to fix it because I tried everything I could think and google of.


-
How does wrap_unicode option work when ffmpeg renders subtitles
12 septembre 2024, par BazingaThis is my complete command, which accepts the wrap_unicode option, but the option is not working


'/usr/local/ffmpeg/bin/ffmpeg' '-y' '-i' 'input.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'aac' '-b:v' '1000k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-vf' '[in]subtitles=test.srt:wrap_unicode=1:force_style='\''FontSize=12,FontName=Angsana New,PrimaryColour=&H00FFFFFF,BorderStyle=1,Outline=0.5,Shadow=1,MarginV=50'\''[out]' '-pass' '1' '-passlogfile' '/var/folders/xh/0xpfqmh57hb12ffvs5wy1v0w0000gn/T/ffmpeg-passes66e24b16ea0aa/pass-66e24b16ea47b' 'output.mp4'



Before that, I compiled libunibreak, libass(0.17.0) in order, and reinstalled ffmpeg.


I hope someone can help me understand where the problem caused this option to not take effect, this problem has been bothering me for some time, thank you very much !


-
ffmpeg , copy 1st video "codec info" into 2nd video (change 2nd video codec)
12 juillet 2016, par TomerI’m having 2 videos.
1st video is the master, it’s codec info needs to be encoded on the 2nd video.
Means, 2nd video codec will be same as the 1st one.I’m having 15 "1st videos" for "Master" codec info and one file that needs to be converted to the various codecs that each file contain.
Folder contains those files "1st video" :
2CIF.h264 , 4CIF.h264 , 5MP.h264 , CIF.H264 , CUSTOM.h264 , CUSTOM2.h264 ,
D1.h264 , HD1080.h264 , HD720.h264 , QVGA.h264 , QXGA.h264 , S5020_HD720_15FPS_1Min.mp4 ,
SVGA.h264 , UXGA.h264 , VGA.h264and the "2nd video" that needs to be converted is : TOM.MP4
An output of HD720.h264 for example is :
Input #0, h264, from 'HD720.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbcAn output of TOM.MP4 is :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TOM.mp4':
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x
720, 14013 kb/s, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)what will be the right way to convert those files ?
I need to verify those settings ( got them through MediaInfo )