
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (96)
-
Amélioration de la version de base
13 septembre 2013Jolie 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 (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (9033)
-
Create HLS streamable audio file from mp3
15 août 2023, par isADonI am using following command to create a hls aac audio file for web streaming



ffmpeg -y -i song.mp3 -c:a aac -b:a 128k -f hls -hls_time 7 -hls_list_size 0 -hls_segment_filename file%d.m4a playlist.m3u8




This command works only with some audio files. With many mp3 files I receive following output :



C:\ffmpeg>ffmpeg -y -i song.mp3 -c:a aac -b:a 128k -f hls -hls_time 7 -hls_list_size 0 -hls_segment_filename file%d.m4a playlist.m3u8
ffmpeg version git-2020-01-31-62d92a8 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.2.1 (GCC) 20200122
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 38.100 / 56. 38.100
 libavcodec 58. 67.100 / 58. 67.100
 libavformat 58. 37.100 / 58. 37.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 72.100 / 7. 72.100
 libswscale 5. 6.100 / 5. 6.100
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
[mp3 @ 0000027d800babc0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'song.mp3':
 Metadata:
 TSS : Logic Pro 8.0.2
 iTunNORM : 000000EE 000000ED 00000C34 00001135 000088F0 0000B505 000080FA 00007577 00009B82 00018F49
 iTunSMPB : 00000000 00000210 00000A07 00000000008783E9 00000000 007AD4E6 00000000 00000000 00000000 00000000 00000000 00000000
 genre : Rock
 TCM : Kevin MacLeod
 album : Funk and Blues
 TKE : C
 TBP : 101
 title : Funkorama
 artist : Kevin MacLeod
 date : 2008-06-16 18:35
 Duration: 00:03:21.46, start: 0.000000, bitrate: 325 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
 Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 400x400 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 comment : Other
Stream mapping:
 Stream #0:1 -> #0:0 (mjpeg (native) -> h264 (libx264))
 Stream #0:0 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0000027d80100c40] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[libx264 @ 0000027d800c1280] using SAR=1/1
[libx264 @ 0000027d800c1280] MB rate (56250000) > level limit (16711680)
[libx264 @ 0000027d800c1280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000027d800c1280] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit
[libx264 @ 0000027d800c1280] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to 'playlist.m3u8':
 Metadata:
 TSS : Logic Pro 8.0.2
 iTunNORM : 000000EE 000000ED 00000C34 00001135 000088F0 0000B505 000080FA 00007577 00009B82 00018F49
 iTunSMPB : 00000000 00000210 00000A07 00000000008783E9 00000000 007AD4E6 00000000 00000000 00000000 00000000 00000000 00000000
 genre : Rock
 TCM : Kevin MacLeod
 album : Funk and Blues
 TKE : C
 TBP : 101
 title : Funkorama
 artist : Kevin MacLeod
 date : 2008-06-16 18:35
 encoder : Lavf58.37.100
 Stream #0:0: Video: h264 (libx264), yuvj444p(pc, progressive), 400x400 [SAR 72:72 DAR 1:1], q=-1--1, 90k fps, 90k tbn, 90k tbc (attached pic)
 Metadata:
 comment : Other
 encoder : Lavc58.67.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s
 Metadata:
 encoder : Lavc58.67.100 aac
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6 speed=68.6x
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -5 -5
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
 Last message repeated 2 times
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
 Last message repeated 2 times
[mp3float @ 0000027d80146580] overread, skip -5 enddists: -2 -2
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
 Last message repeated 1 times
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
 Last message repeated 1 times
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
[mp3float @ 0000027d80146580] overread, skip -5 enddists: -3 -3
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
 Last message repeated 2 times
[mp3float @ 0000027d80146580] overread, skip -5 enddists: -4 -4
[hls @ 0000027d80100c40] Opening 'file0.m4a' for writingate=N/A speed=64.1x
[hls @ 0000027d80100c40] Opening 'playlist.m3u8.tmp' for writing
frame= 1 fps=0.3 q=33.0 Lsize=N/A time=00:03:21.45 bitrate=N/A speed=63.7x
video:7kB audio:3209kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0000027d800c1280] frame I:1 Avg QP:34.64 size: 6567
[libx264 @ 0000027d800c1280] mb I I16..4: 19.5% 53.0% 27.5%
[libx264 @ 0000027d800c1280] 8x8 transform intra:53.0%
[libx264 @ 0000027d800c1280] coded y,u,v intra: 46.8% 26.1% 15.3%
[libx264 @ 0000027d800c1280] i16 v,h,dc,p: 38% 39% 9% 14%
[libx264 @ 0000027d800c1280] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 26% 8% 5% 6% 5% 7% 7%
[libx264 @ 0000027d800c1280] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 16% 14% 7% 4% 5% 3% 4% 4%
[libx264 @ 0000027d800c1280] kb/s:4728240.00
[aac @ 0000027d800bcc40] Qavg: 2138.508




Notice the "mp3float overread" message.



It results in a single
file0.m4a
file without splitting it up after every 7 seconds as specified.
This is an example audio file I am trying to convert to a aac hls stream that results the mentioned problem : https://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100474


How can I convert an audio file to a web friendly hls stream with ffmpeg ?


-
Use fluent-ffmpeg to tell if a file is a video or audio
8 mai 2021, par afterglowleeI am using node-fluent-ffmpeg module in NodeJS. It is very good that fluent-ffmpeg provides functions to get the metadata of a video and audio file.



https://github.com/schaermu/node-fluent-ffmpeg#reading-video-metadata



I have tried on Mac OS to use the "resolution" attribute in the metadata to tell if a file is audio only or video, i.e. if both resolution.w and resolution.h are 0, then this file is an audio. This work fine on Mac OS. But some strange things happened that this doesn't work on Windows platform (I have tried Windows 7 64bit and Windows 2008) using the latest ffmpeg. Even though I put a .mp3 file through fluent-ffmpeg,the result looks something like this :



video:
{
 container:'mp3',
 ...
 resolution: {w:300,h:300},
 resolutionSquare: {w:300,h:300},
 aspectString: '1:1',
 ...
}
audio:
{
 codec:'mp3',
 bitrate:64,
 sample_rate:44100,
 stream:0,
 channels:1
}




I am not why there is a "resolution" since it is a pure audio file. So is there any solid way to find out if the file is audio only or video from the metadata ? Or should I use ffmpeg commandline to find it out ?


-
unable to steam rtsp from mp4(h264) file using ffmpeg on os x : Connection refused Could not write header for output file
28 janvier 2023, par TalGim ussing the following command on my macbook os high sierra to stream rtsp from mp4 file using ffmpeg :


sudo ffmpeg -re -i ./Big_Buck_Bunny_1080_10s_1MB.mp4 -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f rtsp -rtsp_transport udp rtsp://127.0.0.1:8888/live



but get the following error :


[tcp @ 0x7fb979e22ec0] Connection to tcp://127.0.0.1:1935?timeout=0 failed: Connection refused
Could not write header for output file #0 (incorrect codec parameters ?): Connection refused
Error initializing output stream 0:0 -- 
Conversion failed!



here is the whole output of the command :


ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './Big_Buck_Bunny_1080_10s_1MB.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 title : Big Buck Bunny, Sunflower version
 artist : Blender Foundation 2008, Janus Bager Kristensen 2013
 composer : Sacha Goedegebure
 encoder : Lavf57.63.100
 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 genre : Animation
 Duration: 00:00:10.00, start: 0.000000, bitrate: 815 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 812 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7fb97a00de00] using SAR=1/1
[libx264 @ 0x7fb97a00de00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fb97a00de00] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x7fb97a00de00] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=12 sliced_threads=1 slices=12 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[tcp @ 0x7fb979e22ec0] Connection to tcp://127.0.0.1:1935?timeout=0 failed: Connection refused
Could not write header for output file #0 (incorrect codec parameters ?): Connection refused
Error initializing output stream 0:0 -- 
Conversion failed!



tried with and without sudo, tried changing rtsp ://... to http://
also tried udp but get same output..


chacked that the port is not in use(8888) and different ports (1935...) but still the same.


i installed ffmpeg via brew install...


when i run some test server on my localhost i never have issues ussing an unused port


really stuck here and any help would be amazing...thank you


EDIT :
Problem was in the command i used : "rtsp ://127.0.0.1:8888/live" - but i did not have a running server capable of accepting the data from ffmpeg and redestributing it - so i had to first run such server and only after that to run ffmpeg :


Servers which can receive from FFmpeg (to restream to multiple clients) include ffserver (linux only, though with cygwin it might work on windows), or Wowza Media Server, or Flash Media Server, Red5, or various others. Even VLC can pick up the stream from ffmpeg, then redistribute it, acting as a server.


i used the VLC option. You can read about it here : http://trac.ffmpeg.org/wiki/StreamingGuide