
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (76)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (10785)
-
Visual Studio LNK2001 Error, despite using extern "C" for ffmpeg libraries in C++ [duplicate]
1er février 2020, par Faizan CassimThis is what it looks like :
’’’
extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavutil/avutil.h"
};’’’
But I still get these errors when using the FFmpeg libraries in Visual Studio 2019
1>AudioFile.obj : error LNK2001: unresolved external symbol avformat_open_input
1>AudioFile.obj : error LNK2001: unresolved external symbol av_read_frame
1>AudioFile.obj : error LNK2001: unresolved external symbol av_free
1>AudioFile.obj : error LNK2001: unresolved external symbol av_get_sample_fmt_name
1>AudioFile.obj : error LNK2001: unresolved external symbol avformat_close_input
1>AudioFile.obj : error LNK2001: unresolved external symbol av_init_packet
1>AudioFile.obj : error LNK2001: unresolved external symbol avcodec_receive_frame
1>AudioFile.obj : error LNK2001: unresolved external symbol avcodec_open2
1>AudioFile.obj : error LNK2001: unresolved external symbol av_sample_fmt_is_planar
1>AudioFile.obj : error LNK2001: unresolved external symbol avcodec_close
1>AudioFile.obj : error LNK2001: unresolved external symbol av_get_bytes_per_sample
1>AudioFile.obj : error LNK2001: unresolved external symbol av_packet_unref
1>AudioFile.obj : error LNK2001: unresolved external symbol avformat_find_stream_info
1>AudioFile.obj : error LNK2001: unresolved external symbol av_find_best_stream
1>AudioFile.obj : error LNK2001: unresolved external symbol av_frame_allocI would be greatfull to anyone who could help me resolve this. I am using C++ for Windows.
-
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 ?


-
ffmpeg 4.2.2 gives segmentation fault after a while
2 février 2020, par Eric FeillantI have compiled ffmpeg 4.2.2 and it gives me a segmatation fault after a while and i don’t knw why, i put it the request and a part of the debug log file.
My ffmpeg request :
/usr/local/bin/ffmpeg -loglevel debug -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp ://root:My_PW@My_IP_Address:5541/live.sdp" -f image2 -loop 1 -i ./overlay_score_160.png -i ./partenaire.png -filter_complex ’overlay=x=2:y=1,overlay=(main_w-overlay_w)/2:y=1’ -framerate 25 -crf 18 -preset veryfast -g 50 -vcodec libx264 -acodec copy -f flv rtmp ://localhost/hls/stream1 -async 1 -vsync 1 2> debug.txtffmpeg version 4.2.2-eric-01022020-FF422 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --disable-debug --enable-avresample --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-pthreads --enable-libfreetype --enable-filters --enable-openssl --enable-runtime-cpudetect --enable-libxvid --enable-libfontconfig --enable-libspeex --extra-version=eric-01022020-FF422 --docdir=/usr/share/doc/ffmpeg-4.2.2
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input url with argument 'rtsp://root:MyPW@My_IP_Address:5541/live.sdp'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
Reading option '-loop' ... matched as AVOption 'loop' with argument '1'.
Reading option '-i' ... matched as input url with argument './overlay_score_160.png'.
Reading option '-i' ... matched as input url with argument './partenaire.png'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'overlay=x=2:y=1,overlay=(main_w-overlay_w)/2:y=1'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '25'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '18'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-g' ... matched as AVOption 'g' with argument '50'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost/hls/stream1' ... matched as output url.
Reading option '-async' ... matched as option 'async' (audio sync method) with argument '1'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option filter_complex (create a complex filtergraph) with argument overlay=x=2:y=1,overlay=(main_w-overlay_w)/2:y=1.
Applying option async (audio sync method) with argument 1.
Applying option vsync (video sync method) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://root:MyPW@My_IP_Address:5541/live.sdp.
Successfully parsed a group of options.
........
[libx264 @ 0x55819256fc00] frame=24887 QP=17.51 NAL=2 Slice:P Poc:80 I:53 P:783 SKIP:38 size=8835 bytes
[libx264 @ 0x55819256fc00] frame=24888 QP=21.08 NAL=2 Slice:B Poc:76 I:0 P:219 SKIP:655 size=254 bytes
[h264 @ 0x5581925ca200] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
[file @ 0x7f32640080c0] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x7f3264008140] Statistics: 1988 bytes read, 0 seeks
[Parsed_overlay_0 @ 0x5581927cbf00] n:20781.000000 t:831.281311 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
[Parsed_overlay_1 @ 0x5581927cdf00] n:20781.000000 t:831.281311 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
Clipping frame in rate conversion by 0.474174
[libx264 @ 0x55819256fc00] frame=24889 QP=22.84 NAL=0 Slice:B Poc:74 I:0 P:7 SKIP:867 size=36 bytes
[h264 @ 0x5581925e68c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[Parsed_overlay_0 @ 0x5581927cbf00] n:20782.000000 t:831.311122 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
[Parsed_overlay_1 @ 0x5581927cdf00] n:20782.000000 t:831.311122 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
Clipping frame in rate conversion by 0.580742
[libx264 @ 0x55819256fc00] frame=24890 QP=22.80 NAL=0 Slice:B Poc:78 I:0 P:190 SKIP:684 size=167 bytes
[h264 @ 0x558192603080] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
[file @ 0x7f3264007f80] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x7f3264008300] Statistics: 1988 bytes read, 0 seeks
[Parsed_overlay_0 @ 0x5581927cbf00] n:20783.000000 t:831.351278 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
[Parsed_overlay_1 @ 0x5581927cdf00] n:20783.000000 t:831.351278 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
Clipping frame in rate conversion by 0.377281
[libx264 @ 0x55819256fc00] frame=24891 QP=17.17 NAL=2 Slice:P Poc:88 I:1 P:230 SKIP:643 size=806 bytes
frame=24917 fps= 30 q=24.0 size= 25410kB time=00:13:51.90 bitrate= 250.2kbits/s dup=6033 drop=1899 speed= 1x ^M[h264 @ 0x55819261f840] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
[file @ 0x7f3264006d80] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x7f32640080c0] Statistics: 1988 bytes read, 0 seeks
[Parsed_overlay_0 @ 0x5581927cbf00] n:20784.000000 t:831.372222 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
[Parsed_overlay_1 @ 0x5581927cdf00] n:20784.000000 t:831.372222 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
Past duration 0.749565 too large
[libx264 @ 0x55819256fc00] frame=24892 QP=18.73 NAL=2 Slice:B Poc:84 I:0 P:29 SKIP:845 size=80 bytes
[h264 @ 0x55819263c000] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
[file @ 0x7f3264007f80] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x7f32640080c0] Statistics: 1988 bytes read, 0 seeks
[image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
[file @ 0x7f3264006d80] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x7f32640080c0] Statistics: 1988 bytes read, 0 seeksThen i get "Segmentation fault" and ffmpeg exits