
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (38)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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 (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (4161)
-
Was able to mix two audio files and 1 video, but the audio is not in sync with the video
15 janvier 2019, par SumeetI am trying to mix 2 audio files, say audio1.mp3 and audio2.wav with a video file, say video.mp4. I was able to mix the files into one file, say final.mp4, but the audio and video in the final file is not in sync.
I used amix to mix the files using command prompt.
I am not able to figure out how to use apad in my command line to see if that works. Should I really be using apad or am I on the wrong track ?ffmpeg -i video.mp4 -i audio1.mp3 -i audio2.wav -filter_complex "[1][2]amix=inputs=2[a]" -map 0:v -map "[a]" -c:v copy outputfilename.mp4
-
Segmenting an audio stream or audio only file
15 janvier 2013, par Luuk D. JansenThere is need for an audio only link for HTTP-live streaming. I now use the segmenter in FFMPEG for the video, and that works great. However, when giving an audio-file the segmenter does not seem to work, just creates one segment.
The call to FFMPEG for the segmentation is :
ffmpeg -i data/media/1/2/encoded.mp3 -y -c copy -flags global_header
-map 0 -f segment -segment_time 10 -segment_list data/media/1/2/fileList.txt -segment_format libmp3lame
data/media/1/2/segment_%05d.mp3I did put as the -segment_format 'libmp3lame' in, but it doesn't seem to make a difference.
The first step is the encoding, this is the bedbug output :
20:11:36,158 DEBUG ~ FFMPEG: ffmpeg version 0.10.2.git-d3d5e84 Copyright (c) 2000-2012 the FFmpeg developers
20:11:36,158 DEBUG ~ FFMPEG: built on May 2 2012 19:00:38 with clang 3.0 (tags/Apple/clang-211.10.1)
20:11:36,158 DEBUG ~ FFMPEG: configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
20:11:36,158 DEBUG ~ FFMPEG: libavutil 51. 44.100 / 51. 44.100
20:11:36,158 DEBUG ~ FFMPEG: libavcodec 54. 12.100 / 54. 12.100
20:11:36,158 DEBUG ~ FFMPEG: libavformat 54. 3.100 / 54. 3.100
20:11:36,158 DEBUG ~ FFMPEG: libavdevice 53. 4.100 / 53. 4.100
20:11:36,158 DEBUG ~ FFMPEG: libavfilter 2. 66.101 / 2. 66.101
20:11:36,158 DEBUG ~ FFMPEG: libswscale 2. 1.100 / 2. 1.100
20:11:36,158 DEBUG ~ FFMPEG: libswresample 0. 10.100 / 0. 10.100
20:11:36,158 DEBUG ~ FFMPEG: libpostproc 52. 0.100 / 52. 0.100
20:11:36,162 DEBUG ~ FFMPEG: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'data/media/1/1/test.m4a':
20:11:36,162 DEBUG ~ FFMPEG: Metadata:
20:11:36,162 DEBUG ~ FFMPEG: major_brand : mp42
20:11:36,162 DEBUG ~ FFMPEG: minor_version : 1
20:11:36,163 DEBUG ~ FFMPEG: compatible_brands: mp42mp41
20:11:36,163 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,163 DEBUG ~ FFMPEG: Duration: 00:00:24.20, start: 0.000000, bitrate: 40 kb/s
20:11:36,163 DEBUG ~ FFMPEG: Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, s16, 39 kb/s
20:11:36,163 DEBUG ~ FFMPEG: Metadata:
20:11:36,163 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,163 DEBUG ~ FFMPEG: handler_name : Apple Sound Media Handler
20:11:36,170 DEBUG ~ FFMPEG: [mpegts @ 0x7fe4c404d000] muxrate VBR, pcr every 4 pkts, sdt every 200, pat/pmt every 40 pkts
20:11:36,171 DEBUG ~ FFMPEG: Output #0, mpegts, to '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/encoded.mp3':
20:11:36,171 DEBUG ~ FFMPEG: Metadata:
20:11:36,171 DEBUG ~ FFMPEG: major_brand : mp42
20:11:36,171 DEBUG ~ FFMPEG: minor_version : 1
20:11:36,171 DEBUG ~ FFMPEG: compatible_brands: mp42mp41
20:11:36,171 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,171 DEBUG ~ FFMPEG: encoder : Lavf54.3.100
20:11:36,171 DEBUG ~ FFMPEG: Stream #0:0(eng): Audio: mp3, 48000 Hz, stereo, s16, 64 kb/s
20:11:36,171 DEBUG ~ FFMPEG: Metadata:
20:11:36,171 DEBUG ~ FFMPEG: creation_time : 2011-12-07 18:53:04
20:11:36,171 DEBUG ~ FFMPEG: handler_name : Apple Sound Media Handler
20:11:36,171 DEBUG ~ FFMPEG: Stream mapping:
20:11:36,171 DEBUG ~ FFMPEG: Stream #0:0 -> #0:0 (aac -> libmp3lame)
20:11:36,171 DEBUG ~ FFMPEG: Press [q] to stop, [?] for help
20:11:36,673 DEBUG ~ FFMPEG: size= 109kB time=00:00:12.79 bitrate= 69.5kbits/s
20:11:37,156 DEBUG ~ FFMPEG: size= 209kB time=00:00:24.24 bitrate= 70.7kbits/s
20:11:37,156 DEBUG ~ FFMPEG: video:0kB audio:190kB global headers:0kB muxing overhead 10.301383%Then the next is the segmentation (version 0.10.2 cannot do both at the same time yet) :
20:11:37,211 DEBUG ~ FFMPEG: ffmpeg version 0.10.2.git-d3d5e84 Copyright (c) 2000-2012 the FFmpeg developers
20:11:37,212 DEBUG ~ FFMPEG: built on May 2 2012 19:00:38 with clang 3.0 (tags/Apple/clang-211.10.1)
20:11:37,212 DEBUG ~ FFMPEG: configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
20:11:37,212 DEBUG ~ FFMPEG: libavutil 51. 44.100 / 51. 44.100
20:11:37,212 DEBUG ~ FFMPEG: libavcodec 54. 12.100 / 54. 12.100
20:11:37,212 DEBUG ~ FFMPEG: libavformat 54. 3.100 / 54. 3.100
20:11:37,212 DEBUG ~ FFMPEG: libavdevice 53. 4.100 / 53. 4.100
20:11:37,212 DEBUG ~ FFMPEG: libavfilter 2. 66.101 / 2. 66.101
20:11:37,212 DEBUG ~ FFMPEG: libswscale 2. 1.100 / 2. 1.100
20:11:37,212 DEBUG ~ FFMPEG: libswresample 0. 10.100 / 0. 10.100
20:11:37,212 DEBUG ~ FFMPEG: libpostproc 52. 0.100 / 52. 0.100
20:11:37,226 DEBUG ~ FFMPEG: [mpegts @ 0x7fccc2049800] max_analyze_duration 5000000 reached at 5016000
20:11:37,226 DEBUG ~ FFMPEG: Input #0, mpegts, from '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/encoded.mp3':
20:11:37,226 DEBUG ~ FFMPEG: Duration: 00:00:24.12, start: 1.376978, bitrate: 71 kb/s
20:11:37,226 DEBUG ~ FFMPEG: Program 1
20:11:37,226 DEBUG ~ FFMPEG: Metadata:
20:11:37,226 DEBUG ~ FFMPEG: service_name : Service01
20:11:37,226 DEBUG ~ FFMPEG: service_provider: FFmpeg
20:11:37,226 DEBUG ~ FFMPEG: Stream #0:0[0x100](eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 64 kb/s
20:11:37,226 DEBUG ~ FFMPEG: Output #0, segment, to '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/segment_%05d.mp3':
20:11:37,226 DEBUG ~ FFMPEG: Metadata:
20:11:37,226 DEBUG ~ FFMPEG: encoder : Lavf54.3.100
20:11:37,226 DEBUG ~ FFMPEG: Stream #0:0(eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 64 kb/s
20:11:37,226 DEBUG ~ FFMPEG: Stream mapping:
20:11:37,226 DEBUG ~ FFMPEG: Stream #0:0 -> #0:0 (copy)
20:11:37,226 DEBUG ~ FFMPEG: Press [q] to stop, [?] for help
20:11:37,238 DEBUG ~ FFMPEG: size= 0kB time=00:00:24.28 bitrate= 0.0kbits/s
20:11:37,238 DEBUG ~ FFMPEG: video:0kB audio:190kB global headers:0kB muxing overhead -100.000000% -
FFMpeg command to merge 1 video and 2 audio files while also reducing volume of one audio
26 septembre 2022, par UserMI need to construct a FFMpeg using amix or any equivalent command to merge 1 video and 2 audio files while also reducing volume of one background music file (ukulele.mp3).
Refer : https://ffmpeg.org/ffmpeg-filters.html#Examples-11


//cmd works with out volume reduction of background music file
anima_buf = ("C:/ffmpeg/bin/ffmpeg -thread_queue_size 8192 -safe 0 -f concat -i %s -t %s -safe 0 -f concat -i %s -i ./music/ukulele.mp3\
-filter_complex amix=inputs=2:duration=shortest -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p -y %s" % ( anima_img_file, anima_len, anima_audio_file, anima_opvideo_file))
os.system(anima_buf)
//successful

//cmd to reduce volume of background music
 anima_buf = ("C:/ffmpeg/bin/ffmpeg -thread_queue_size 8192 -safe 0 -f concat -i %s -t %s -safe 0 -f concat -i %s -i ./music/ukulele.mp3\
 -filter_complex amix=inputs=2:duration=shortest:dropout_transition=0:weights="1 0.25":normalize=0 -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p -y %s" % ( anima_img_file, anima_len, anima_audio_file, anima_opvideo_file) )
os.system(anima_buf)
 
SyntaxError: invalid syntax mentioned at weights="1 0.25"



FFmpeg version :


ffmpeg version 2022-05-23-git-6076dbcb55-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx 
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame 
--enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 25.100 / 57. 25.100
libavcodec 59. 28.100 / 59. 28.100
libavformat 59. 24.100 / 59. 24.100
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 38.100 / 8. 38.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100



Can someone guide me, thanks in advance