
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (65)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (11801)
-
FFmpeg : Looping an video/audio stream to YouTube Live
27 novembre 2020, par ClausI'm using this script to stream a 30s
.mp4
video file with a 2min audio track in.mp3
format :

#! /bin/bash

VBR="1500k"
FPS="30"
QUAL="ultrafast"
YOUTUBE_URL=" rtmp://a.rtmp.youtube.com/live2"
YOUTUBE_KEY="**********"
VIDEO_SOURCE="test_video_4.mp4"
AUDIO_SOURCE="test_audio_3.mp3"
AUDIO_ENCODER="aac"

ffmpeg \
 -stream_loop -1 \
 -re \
 -i "$VIDEO_SOURCE" \
 -thread_queue_size 512 \
 -i "$AUDIO_SOURCE" \
 -c:v libx264 -preset $QUAL -r $FPS -g $(($FPS *2)) -b:v $VBR \
 -c:a $AUDIO_ENCODER -threads 6 -ar 44100 -b:a 128k -bufsize 512k -pix_fmt yuv420p \
 -fflags +shortest -max_interleave_delta 50000 \
 -f flv $YOUTUBE_URL/$YOUTUBE_KEY



Both the audio and the video get played correctly the first time, with the video looping while the audio playback is completed (since it's shorter). The only problem is that the audio loop does not work and as soon the audio completes the first time the stream simply stops.


Here's the log :




ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers

built with Apple clang version 12.0.0 (clang-1200.0.32.27)

configuration : —prefix=/usr/local/Cellar/ffmpeg/4.3.1_4
—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 'test_video_4.mp4' : Metadata :
major_brand : mp42
minor_version : 1
compatible_brands : isommp41mp42
creation_time : 2020-11-27T18:38:02.000000Z Duration : 00:00:39.46, start : 0.000000, bitrate : 12081 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 12033
kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
Metadata :
creation_time : 2020-11-27T18:38:02.000000Z
handler_name : Core Media Video Input #1, mp3, from 'test_audio_3.mp3' : Metadata :
genre : Cinematic
album : YouTube Audio Library
title : Test Title
artist : Test Artist Duration : 00:02:12.21, start : 0.025057, bitrate : 320 kb/s
Stream #1:0 : Audio : mp3, 44100 Hz, stereo, fltp, 320 kb/s
Metadata :
encoder : LAME3.99r Stream mapping : Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native)) Press [q] to stop, [?] for help [libx264 @
0x7fa825031600] VBV maxrate unspecified, assuming CBR [libx264 @
0x7fa825031600] using SAR=1/1 [libx264 @ 0x7fa825031600] using cpu
capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @
0x7fa825031600] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x7fa825031600] 264 - core 161 r3027 4121277 - H.264/MPEG-4
AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html -
options : cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1
psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0
8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0
threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0
keyint=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=0
rc=cbr mbtree=0 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69
qpstep=4 vbv_maxrate=1500 vbv_bufsize=512 nal_hrd=none filler=0
ip_ratio=1.40 aq=0 Output #0, flv, to
'rtmp ://a.rtmp.youtube.com/live2/*****' :

Metadata :
major_brand : mp42
minor_version : 1
compatible_brands : isommp41mp42
encoder : Lavf58.45.100
Stream #0:0(und) : Video : h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1—1, 1500 kb/s,
30 fps, 1k tbn, 30 tbc (default)
Metadata :
creation_time : 2020-11-27T18:38:02.000000Z
handler_name : Core Media Video
encoder : Lavc58.91.100 libx264
Side data :
cpb : bitrate max/min/avg : 0/0/1500000 buffer size : 512000 vbv_delay : N/A
Stream #0:1 : Audio : aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
Metadata :
encoder : Lavc58.91.100 aac Larger timestamp than 24-bit : 0xffff9b44kB time=00:02:37.43 bitrate=1292.6kbits/s
speed=0.995x [flv @ 0x7fa825032800] Failed to update header with
correct duration. [flv @ 0x7fa825032800] Failed to update header with
correct filesize. frame= 3790 fps= 24 q=-1.0 Lsize= 24962kB
time=00:02:38.03 bitrate=1294.0kbits/s speed=0.997x video:22719kB
audio:2081kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead : 0.656017% [libx264 @ 0x7fa825031600] frame I:64 Avg
QP:36.43 size : 38436 [libx264 @ 0x7fa825031600] frame P:3726 Avg
QP:28.61 size : 5583 [libx264 @ 0x7fa825031600] mb I I16..4 : 100.0%
0.0% 0.0% [libx264 @ 0x7fa825031600] mb P I16..4 : 3.3% 0.0% 0.0% P16..4 : 13.6% 0.0% 0.0% 0.0% 0.0% skip:83.1% [libx264 @
0x7fa825031600] coded y,uvDC,uvAC intra : 57.8% 71.6% 47.8% inter : 6.0%
7.1% 2.1% [libx264 @ 0x7fa825031600] i16 v,h,dc,p : 21% 39% 23% 18% [libx264 @ 0x7fa825031600] i8c dc,h,v,p : 36% 38% 16% 10% [libx264 @
0x7fa825031600] kb/s:1177.39 [aac @ 0x7fa82502d800] Qavg : 179.328
Exiting normally, received signal 2.



-
Creating a timelapse from a directory of jpgs
26 juillet 2020, par Casey DavisI'm using this code to create a timelapse from a directory of images. My directory has about 1600 jpgs in it that all start with the date in this format 2020-03-01-time.jpg, 2020-03-02-time-name.jpg, etc. Sorting alphabetically works just fine. It runs, but it seems to only get through a few hundred photos and makes a 3 second long mp4. I'm not sure what I'm doing wrong.


I'm not opposed to moving to python or anything else. Eventually I'll need to pass some parameters in here and I'll attempt to automate it and ftp the output to a webserver.


Here is the command :


ffmpeg -r 24 -pattern_type glob -i '*.jpg' -s hd1080 -vcodec libx264 timelapse.mp4



Here is the output :


ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 libavutil 55. 78.100 / 55. 78.100
 libavcodec 57.107.100 / 57.107.100
 libavformat 57. 83.100 / 57. 83.100
 libavdevice 57. 10.100 / 57. 10.100
 libavfilter 6.107.100 / 6.107.100
 libavresample 3. 7. 0 / 3. 7. 0
 libswscale 4. 8.100 / 4. 8.100
 libswresample 2. 9.100 / 2. 9.100
 libpostproc 54. 7.100 / 54. 7.100
Input #0, image2, from '*.jpg':
 Duration: 00:01:06.32, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'timelapse.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55a43cfb1d00] using SAR=1/1
[libx264 @ 0x55a43cfb1d00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x55a43cfb1d00] profile High, level 4.0
[libx264 @ 0x55a43cfb1d00] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=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=20 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, mp4, to 'timelapse.mp4':
 Metadata:
 encoder : Lavf57.83.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 20 fps, 10240 tbn, 20 tbc
 Metadata:
 encoder : Lavc57.107.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 72 fps= 11 q=-1.0 Lsize= 10663kB time=00:00:03.45 bitrate=25318.0kbits/s speed=0.507x 
video:10661kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015737%
[libx264 @ 0x55a43cfb1d00] frame I:5 Avg QP:23.69 size:223467
[libx264 @ 0x55a43cfb1d00] frame P:33 Avg QP:26.52 size:139314
[libx264 @ 0x55a43cfb1d00] frame B:34 Avg QP:28.49 size:152989
[libx264 @ 0x55a43cfb1d00] consecutive B-frames: 33.3% 8.3% 8.3% 50.0%
[libx264 @ 0x55a43cfb1d00] mb I I16..4: 2.2% 96.6% 1.2%
[libx264 @ 0x55a43cfb1d00] mb P I16..4: 2.1% 78.8% 1.5% P16..4: 9.4% 4.7% 2.6% 0.0% 0.0% skip: 0.8%
[libx264 @ 0x55a43cfb1d00] mb B I16..4: 1.1% 20.4% 2.3% B16..8: 27.6% 13.7% 5.3% direct:22.7% skip: 6.9% L0:33.5% L1:32.2% BI:34.3%
[libx264 @ 0x55a43cfb1d00] 8x8 transform intra:93.8% inter:86.5%
[libx264 @ 0x55a43cfb1d00] coded y,uvDC,uvAC intra: 91.5% 66.0% 17.4% inter: 77.7% 58.7% 2.2%
[libx264 @ 0x55a43cfb1d00] i16 v,h,dc,p: 13% 56% 3% 28%
[libx264 @ 0x55a43cfb1d00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 39% 4% 3% 3% 4% 4% 8%
[libx264 @ 0x55a43cfb1d00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 28% 12% 5% 7% 7% 6% 7% 8%
[libx264 @ 0x55a43cfb1d00] i8c dc,h,v,p: 49% 29% 19% 3%
[libx264 @ 0x55a43cfb1d00] Weighted P-Frames: Y:30.3% UV:24.2%
[libx264 @ 0x55a43cfb1d00] ref P L0: 48.2% 17.7% 17.7% 13.3% 3.2%
[libx264 @ 0x55a43cfb1d00] ref B L0: 83.2% 14.2% 2.5%
[libx264 @ 0x55a43cfb1d00] ref B L1: 93.8% 6.2%
[libx264 @ 0x55a43cfb1d00] kb/s:24258.47



-
Video encoding fail when change speed and add watermark
24 août 2020, par Nguyễn TrọngI have a video needing speed change and add watermark


"[-y, -i, /storage/3665-3031/DCIM/Camera/VID_20200821_195124.mp4, -i, /storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png, -filter_complex, [1:v]scale=1920/4:-1[logo1];[0:v]trim=0.0:135.869,setpts=0.3125*(PTS-STARTPTS)[v2];[0:a]atrim=0.0:135.869,asetpts=PTS-STARTPTS,atempo=2.0,atempo=1.600000023841858[a2];[v2][a2]concat=n=1:v=1:a=1[video];[video][logo1]overlay=main_w-overlay_w-10:main_h-overlay_h-10[vw], -map, [vw], -c:v, libx264, -c:a, aac, -crf, 18, -preset, veryfast, /storage/emulated/0/FXMotion/FXMotion-200821a.mp4, -hide_banner]"



However when I ran the above command, it got the error below, I tried searching on google but it didn't solve the problem,
how to resolve this error ? , Thank advance.


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/3665-3031/DCIM/Camera/VID_20200821_195124.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2020-08-21T14:23:42.000000Z
 location : +28.6812+077.4592/
 location-eng : +28.6812+077.4592/
 com.android.version: 9
 Duration: 00:02:15.87, start: 0.000000, bitrate: 17160 kb/s
 Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 1920x1080, 17009 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2020-08-21T14:23:42.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s (default) Metadata: creation_time : 2020-08-21T14:23:42.000000Z
 handler_name : SoundHandle
Input #1, png_pipe, from '/storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png':
 Duration: N/A, bitrate: N/A
 Stream #1:0: Video: png, rgba(pc), 335x51, 25 tbr, 25 tbn, 25 tbcStream mapping:
 Stream #0:0 (h264) -> trim
 Stream #0:1 (aac) -> atrim
 Stream #1:0 (png) -> scale
 concat:out:a0 -> Stream #0:0 (aac)
 overlay -> Stream #0:1 (libx264)
 Press [q] to stop, [?] for helpframe= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 
[graph 0 input from stream 1:0 @ 0x7c2a9520] sws_param option is deprecated and ignored
[graph 0 input from stream 0:0 @ 0x7c2a97c0] sws_param option is deprecated and ignored
[libx264 @ 0x90415c00] using SAR=1/1
[libx264 @ 0x90415c00] using cpu capabilities: ARMv6 NEON[libx264 @ 0x90415c00] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x90415c00] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 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=4 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=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to '/storage/emulated/0/FXMotion/FXMotion-200821a.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0 compatible_brands: isommp42
 com.android.version: 9
 location : +28.6812+077.4592/
 location-eng : +28.6812+077.4592/
 encoder : Lavf58.35.101
 Stream #0:0: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)
 Metadata: encoder : Lavc58.65.102 aac
 Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
 Metadata:
 encoder : Lavc58.65.102 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 2 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x 
frame= 7 fps=6.9 q=0.0 size= 0kB time=00:00:00.10 bitrate= 3.6kbits/s dup=0 drop=7 speed=0.106x 
Video encoding failed[aac @ 0x90414800] Qavg: 126.876
 [aac @ 0x90414800] 2 frames left in the queue on closingConversion failed!