
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (39)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
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 (...)
Sur d’autres sites (8237)
-
ffmpeg how to select the audio channel with the biggest bps ?
31 octobre 2018, par Kris RoofeI have mp4 file with below format,
$ ffprobe -i 70_1.mp4 -hide_banner
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '70_1.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2018-10-30T08:57:38.000000Z
Duration: 00:13:55.76, start: 0.000000, bitrate: 2246 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m/bt709/unknown, progressive), 1440x1920, 2118 kb/s, 58.75 fps, 60 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2018-10-30T08:57:38.000000Z
handler_name : Core Media Video
encoder : 'avc1'
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
creation_time : 2018-10-30T08:57:38.000000Z
handler_name : Core Media Audio
Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 119 kb/s (default)
Metadata:
creation_time : 2018-10-30T08:57:38.000000Z
handler_name : Core Media AudioAs the auto channel is special, there is no sound when play in the browser.
So I use ffmpeg to transfer it with
ffmpeg -i 70_1.mp4 -crf 30 -b:a 23k -b:v 96k -threads 4 -map 0:0 -map 0:2 -y ooo.mp4
, the generated mp4 file can play in the browser.$ ffprobe.exe ooo.mp4 -hide_banner
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ooo.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.17.101
Duration: 00:13:55.79, start: 0.000000, bitrate: 246 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1440x1920, 209 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
Metadata:
handler_name : Core Media Video
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 23 kb/s (default)
Metadata:
handler_name : Core Media AudioBut there is one issue, I need to process mp4 file with many formats, some with 1 audio channel, some with 2, So I want to know how to select the audio channel with the biggest bps.
-
ffpmeg drops last frame when compressing from MP4 to MP4 (libx264)
28 octobre 2018, par UsoboiSo, I’m using this code to compress my *mp4 file. I need to get lower quality and decrease bitrate :
ffmpeg -i input.mp4 -c:v libx264 output.mp4
The problem is : the last frame of footage is dropped after ffmpeg compression.
Screenshot is here : screenshot_ffmpeg_drop frameI tried to use full preferences I need, but the problem is the same.
ffmpeg -i input.mp4 -c:v libx264 -vf scale=1280:720 -preset fast -crf 29 -r 25 -c:a copy output.mp4
logfile during ffmpeg encoding :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’\input.mp4’ :
Metadata :
major_brand : mp42
minor_version : 0
compatible_brands : mp42mp41
creation_time : 2018-10-28T11:06:03.000000Z
Duration : 00:00:12.76, start : 0.000000, bitrate : 5374 kb/s
Stream #0:0(eng) : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5368 kb/s, 25 fps, 25 tbr, 50k tbn, 50 tbc (default)
Metadata :
creation_time : 2018-10-28T11:06:03.000000Z
handler_name : Alias Data Handler
encoder : AVC CodingStream mapping : Stream #0:0 -> #0:0 (h264 (native) -> h264
(libx264)) Press [q] to stop, [?] for help [libx264 @
000002fae8b50780] using SAR=1/1 [libx264 @ 000002fae8b50780] using cpu
capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @
000002fae8b50780] profile High, level 3.1 [libx264 @ 000002fae8b50780]
264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft
2003-2018 - http://www.videolan.org/x264.html - options : cabac=1 ref=2
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=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=1 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf
mbtree=1 crf=29.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00 Output #0, mp4, to ’\output.mp4’ : Metadata :
major_brand : mp42
minor_version : 0
compatible_brands : mp42mp41
encoder : Lavf58.17.100
Stream #0:0(eng) : Video : h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1—1, 25 fps, 12800 tbn, 25
tbc (default)
Metadata :
creation_time : 2018-10-28T11:06:03.000000Z
handler_name : Alias Data Handler
encoder : Lavc58.19.104 libx264
Side data :
cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1frame= 318 fps=127 q=-1.0 Lsize= 855kB time=00:00:12.60 bitrate=
556.0kbits/s speed=5.05x video:851kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 0.534683% [libx264 @
0000015d5cef0500] frame I:2 Avg QP:26.18 size : 67800 [libx264 @
0000015d5cef0500] frame P:80 Avg QP:27.93 size : 5439 [libx264 @
0000015d5cef0500] frame B:236 Avg QP:32.44 size : 1269 [libx264 @
0000015d5cef0500] consecutive B-frames : 0.9% 0.0% 0.9% 98.1%
[libx264 @ 0000015d5cef0500] mb I I16..4 : 10.6% 62.5% 26.8% [libx264
@ 0000015d5cef0500] mb P I16..4 : 0.5% 1.0% 0.2% P16..4 : 36.1%
5.1% 3.6% 0.0% 0.0% skip:53.6% [libx264 @ 0000015d5cef0500] mb B I16..4 : 0.6% 0.5% 0.0% B16..8 : 22.2% 0.6% 0.0% direct : 2.0%
skip:74.2% L0:44.9% L1:54.5% BI : 0.6% [libx264 @ 0000015d5cef0500]
8x8 transform intra:55.0% inter:86.2% [libx264 @ 0000015d5cef0500]
coded y,uvDC,uvAC intra : 48.1% 54.9% 27.0% inter : 3.2% 5.2% 0.2%
[libx264 @ 0000015d5cef0500] i16 v,h,dc,p : 19% 56% 10% 15% [libx264 @
0000015d5cef0500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 19% 25% 18% 5% 6%
5% 8% 5% 8% [libx264 @ 0000015d5cef0500] i4
v,h,dc,ddl,ddr,vr,hd,vl,hu : 27% 24% 9% 5% 8% 7% 9% 5% 7%
[libx264 @ 0000015d5cef0500] i8c dc,h,v,p : 60% 20% 15% 4% [libx264 @
0000015d5cef0500] Weighted P-Frames : Y:0.0% UV:0.0% [libx264 @
0000015d5cef0500] ref P L0 : 67.7% 32.3% [libx264 @ 0000015d5cef0500]
ref B L0 : 80.4% 19.6% [libx264 @ 0000015d5cef0500] ref B L1 : 92.1%
7.9% [libx264 @ 0000015d5cef0500] kb/s:547.35 -
RTMP_ReadPacket, failed to read RTMP packet header rtmp ://a.rtmp.youtube.com/live2 : Unknown error occurred
3 novembre 2018, par OrophixHere is the script I am trying to run, I believe the issue is in here :
#!/bin/bash
GIF=/home/stream1/85012216.gif
STREAM_KEY=thisisasecret
URL=rtmp://a.rtmp.youtube.com/live2
FPS=30
KEYINT=$(expr $FPS \* 3)
$FFMPEG -f alsa -ac 2 -i hw:Loopback,1,0 -fflags +genpts -r $FPS -i $GIF \
-vcodec libx264 -x264opts keyint=$KEYINT:min-keyint=$KEYINT:scenecut=-1 -b:v 1000k \
-preset veryfast -pix_fmt yuv420p -s 854x480 \
-c:a libfdk_aac -b:a 96k -ar 44100 \
-f flv $URLThe error :
ffmpeg version N-92337-g8e50215b5e Copyright (c) 2000-2018 the FFmpeg
developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1 18.04)
configuration : —enable-shared —enable-gpl —enable-nonfree
—enable-pthreads —enable-postproc —enable-libtheora —enable-version3 —enable-libx264 —enable-libfdk-aac —disable-stripping —disable-encoder=libschroedinger —enable-librtmp —enable-gnutls —enable-avfilter —enable-libfreetype —disable-decoder=amrnb —enable-fontconfig —disable-mips32r2 —disable-mipsdspr2 —disable-htmlpages —disable-podpages —disable-altivec —enable-libass —enable-omx —enable-omx-rpi libavutil 56. 23.100 / 56. 23.100 libavcodec 58. 36.100 /
58. 36.100 libavformat 58. 21.100 / 58. 21.100 libavdevice 58. 6.100 / 58. 6.100 libavfilter 7. 43.100 / 7. 43.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 /
3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, alsa, from
’hw:Loopback,1,0’ : Duration : N/A, start : 1541258646.286883, bitrate :
1536 kb/s
Stream #0:0 : Audio : pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Input #1, gif, from ’/home/stream1/85012216.gif’ : Duration : N/A,
bitrate : N/A
Stream #1:0 : Video : gif, bgra, 500x281, 16.67 fps, 16.67 tbr, 100 tbn, 100 tbc RTMP_ReadPacket, failed to read RTMP packet header
rtmp ://a.rtmp.youtube.com/live2 : Unknown error occurredSystem details :
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic