
Recherche avancée
Autres articles (81)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (5555)
-
FFMPEG encrypted HLS single file is unplayable
17 septembre 2019, par 3bodyZZi use this command to generate the byterange segments
ffmpeg -i test.mp4 -hls_time 20 -hls_flags single_file -hls_key_info_file key_info out.m3u8
here is the output m3u8#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:24
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="key.bin"
#EXTINF:23.933333,
#EXT-X-BYTERANGE:1016328@0
out.ts
#EXTINF:19.200000,
#EXT-X-BYTERANGE:824192@1016328
out.ts
#EXTINF:16.866667,
#EXT-X-BYTERANGE:714024@1840520
out.ts
#EXT-X-ENDLISTand it does output incorrect byte range m3u8 file that is unplayable, i have tried the multiple segments and it works just fine but i need the single file, any one knows how to fix this ?
here is the logs from ffmpeg
ffmpeg version N-94167-ga514244319 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190621
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-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 30.100 / 56. 30.100
libavcodec 58. 53.101 / 58. 53.101
libavformat 58. 28.101 / 58. 28.101
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 56.100 / 7. 56.100
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ttt.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Duration: 00:01:00.16, start: 0.000000, bitrate: 227 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 480x320, 157 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001df1e25dd80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001df1e25dd80] profile Progressive High, level 2.1, 4:2:0, 8-bit
[libx264 @ 000001df1e25dd80] 264 - core 157 r2970 5493be8 - 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=-2 threads=6 lookahead_threads=1 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
[hls @ 000001df1e25ac80] Opening 'key_info' for reading
[hls @ 000001df1e25ac80] Opening 'key.bin' for reading
[hls @ 000001df1e25ac80] Opening 'crypto:out.ts' for writing
Output #0, hls, to 'out.m3u8':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.28.101
Stream #0:0(und): Video: h264 (libx264), yuv420p, 480x320, q=-1--1, 30 fps, 90k tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.53.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc58.53.101 aac
[hls @ 000001df1e25ac80] Opening 'out.m3u8.tmp' for writinge=N/A speed=25.4x
[hls @ 000001df1e25ac80] Opening 'out.m3u8.tmp' for writinge=N/A speed=23.8x
[hls @ 000001df1e25ac80] Opening 'out.m3u8.tmp' for writinge=N/A speed=23.7x
frame= 1800 fps=723 q=-1.0 Lsize=N/A time=00:01:00.11 bitrate=N/A speed=24.1x
video:1196kB audio:947kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 000001df1e25dd80] frame I:25 Avg QP:18.20 size: 18883
[libx264 @ 000001df1e25dd80] frame P:524 Avg QP:21.64 size: 1174
[libx264 @ 000001df1e25dd80] frame B:1251 Avg QP:30.70 size: 109
[libx264 @ 000001df1e25dd80] consecutive B-frames: 4.2% 7.6% 5.8% 82.4%
[libx264 @ 000001df1e25dd80] mb I I16..4: 29.1% 8.6% 62.3%
[libx264 @ 000001df1e25dd80] mb P I16..4: 1.1% 0.8% 1.1% P16..4: 14.6% 3.7% 2.2% 0.0% 0.0% skip:76.5%
[libx264 @ 000001df1e25dd80] mb B I16..4: 0.0% 0.0% 0.1% B16..8: 7.1% 0.5% 0.1% direct: 0.2% skip:92.0% L0:47.1% L1:51.6% BI: 1.3%
[libx264 @ 000001df1e25dd80] 8x8 transform intra:15.8% inter:36.0%
[libx264 @ 000001df1e25dd80] coded y,uvDC,uvAC intra: 47.5% 75.5% 54.9% inter: 1.7% 4.4% 0.7%
[libx264 @ 000001df1e25dd80] i16 v,h,dc,p: 48% 45% 5% 2%
[libx264 @ 000001df1e25dd80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 48% 2% 2% 1% 2% 2% 3%
[libx264 @ 000001df1e25dd80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 27% 12% 7% 6% 5% 6% 5% 6%
[libx264 @ 000001df1e25dd80] i8c dc,h,v,p: 34% 37% 21% 7%
[libx264 @ 000001df1e25dd80] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001df1e25dd80] ref P L0: 83.5% 4.4% 9.5% 2.6%
[libx264 @ 000001df1e25dd80] ref B L0: 90.1% 8.9% 1.0%
[libx264 @ 000001df1e25dd80] ref B L1: 95.4% 4.6%
[libx264 @ 000001df1e25dd80] kb/s:163.19
[aac @ 000001df1e2138c0] Qavg: 357.178i have also tried different videos, and i have tried ffmpeg on windows and linux , i have tried compiling it myself and nothing seems to work the segments keeps repeating after reaching a certain point in the video
-
Ffmpeg - Codec 'mp2' (86016) is not supported by the bitstream filter 'aac_adtstoasc'
28 octobre 2019, par user3925023I’m trying to dump a video streaming on local file using this syntax :
ffmpeg -i "http://test.com/videoxxx" -c copy -bsf:v aac_adtstoasc -t 10 c:\\temp\\out.mp4 -loglevel debug
It works pretty fine but recently I’ve encounter specific error :
[mpegts @ 00000232c9568f40] DTS 165134700 < 165199500 out of order
[mpegts @ 00000232c9568f40] Non-increasing DTS in stream 0: packet 249 with DTS 165199500, packet 250 with DTS 165134700
[mpegts @ 00000232c9568f40] Continuity check failed for pid 0 expected 12 got 11
[mpegts @ 00000232c9568f40] Continuity check failed for pid 4096 expected 12 got 11
[h264 @ 00000232c9571980] ct_type:0 pic_struct:1
[mpegts @ 00000232c9568f40] Continuity check failed for pid 256 expected 8 got 10
[mpegts @ 00000232c9568f40] Continuity check failed for pid 17 expected 10 got 5
[mpegts @ 00000232c9568f40] Continuity check failed for pid 257 expected 2 got 12
[mpegts @ 00000232c9568f40] PES packet size mismatch
[mpegts @ 00000232c9568f40] Non-increasing DTS in stream 1: packet 207 with DTS 165121380, packet 208 with DTS 164212020
[mpegts @ 00000232c9568f40] max_analyze_duration 5000000 reached at 5016000 microseconds st:1
[mpegts @ 00000232c9568f40] After avformat_find_stream_info() pos: 799667 bytes read:822628 seeks:0 frames:463
Input #0, mpegts, from 'http://test.com/videoxxx':
Duration: N/A, start: 1824.578000, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100], 252, 1/90000: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, top first, left), 720x576 [SAR 16:11 DAR 20:11], 0/1, 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](pol), 211, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
Successfully opened the file.
Parsing a group of options: output url c:\temp\out.mp4.
Applying option c (codec name) with argument copy.
Applying option bsf:a (A comma-separated list of bitstream filters) with argument aac_adtstoasc.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 30.
Successfully parsed a group of options.
Opening an output file: c:\temp\out.mp4.
[file @ 00000232ca120e80] Setting default whitelist 'file,crypto'
Successfully opened the file.
[AVBSFContext @ 00000232ca6e5780] Codec 'mp2' (86016) is not supported by the bitstream filter 'aac_adtstoasc'. Supported codecs are: aac (86018)
Error initializing bitstream filter: aac_adtstoasc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Last message repeated 1 times
[AVIOContext @ 00000232c95ecfc0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 00000232c9574780] Statistics: 822628 bytes read, 0 seeksIs it possible to use specific FFMPEG command avoid bitstream filter issue ?
I’ve tryed with :-vcodec copy -t 20 c:\\temp\\out.mp4 -loglevel debug
and :
c:a copy -t 10 c:\\temp\\out.mp4 -loglevel debug
but I’m able to create a cutted mp4 with 1 frame and audio cut after 1/2 sec.
Is it also a way to debug the source ?
Thx -
How to switch between 2 stream inputs after a set duration using ffmpeg ?
6 février 2021, par zlyferI am tinkering with my two Raspberry Pis and would like to do the following :



Both Pis record via a camera and stream it via cvlc to the network. Then one of them uses both streams to make a single stream wich alternates between both sources every 30 seconds.
My setup is as below :



Pi 3 (192.168.0.158) and Pi 4 (192.168.0.87) both use the following command to stream the camera feed to my local network :



raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264




The Pi 4 then uses



ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -f concat -safe 0 -i stream_list.txt -c copy output.mp4




with content of stream_list.txt being :



file http:\/\/192.168.0.87:8090
duration 00:00:02.00
file http:\/\/192.168.0.158:8090
duration 00:00:02.00




I use output.mp4 as test, this will be a twitch server or somewhat. The current duration is 2 seconds just for testing as well. And I will add a loop -1 to keep switching. My problem is that the process doesnt stop after 4 seconds. It keeps "recording" forever until I CTRL+C and then output.mp4 only contains the camera feed of the first mentioned stream in the stream_list.txt. It doesn't stop after 2 seconds switches to the other stream and then stops after another 2 seconds as I expected.



Is there something that I am essentially doing wrong or am I at least somewhat on the right way ?