
Recherche avancée
Autres articles (45)
-
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 -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (7625)
-
FFmpeg : no image is displayed when broadcasting flv made of speex / mellymoser and libx264
15 septembre 2013, par wvxvwffmpeg -f alsa -i hw:PCH,0 -f x11grab -s 1920x1200 -r 15 -i :0.0 \
-acodec nellymoser -ar 22050 -ac 1 -audio_preload 1000000 -vcodec libx264 \
-preset fast -pix_fmt yuv420p -s 1280x800 -maxrate 1000k -threads 0 -f flv "$URL"This is the command I'm using, but I don't get any visible output, only sound. FFmpeg gives no warnings. What am I doing wrong ?
If I remove -audio_preload, the streaming works, but the audio comes with increasing delay (grows about a minute every minute).
The output, as per request :
ffmpeg version 1.0.7 Copyright (c) 2000-2013 the FFmpeg developers
built on May 14 2013 21:59:35 with gcc 4.7.2 (GCC) 20121109 (Red Hat 4.7.2-8)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[alsa @ 0xc5e8e0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:PCH,0':
Duration: N/A, start: 1379234523.677560, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[x11grab @ 0xc6cda0] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1920 height: 1200
[x11grab @ 0xc6cda0] shared memory extension found
[x11grab @ 0xc6cda0] Estimating duration from bitrate, this may be inaccurate
Input #1, x11grab, from ':0.0':
Duration: N/A, start: 1379234523.843273, bitrate: 1105920 kb/s
Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1200, 1105920 kb/s, 15 tbr, 1000k tbn, 15 tbc
[libx264 @ 0xc59e00] VBV maxrate specified, but no bufsize, ignored
[libx264 @ 0xc59e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0xc59e00] profile High, level 3.2
[libx264 @ 0xc59e00] 264 - core 128 r2223 f6a8615 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=15 scenecut=40 intra_refresh=0 rc_lookahead=30 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, flv, to 'rtmp://live.justin.tv/app/live_key':
Metadata:
encoder : Lavf54.29.104
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 1280x800, q=-1--1, 1k tbn, 15 tbc
Stream #0:1: Audio: nellymoser ([6][0][0][0] / 0x0006), 22050 Hz, mono, flt, 128 kb/s
Stream mapping:
Stream #1:0 -> #0:0 (rawvideo -> libx264)
Stream #0:0 -> #0:1 (pcm_s16le -> nellymoser)
Press [q] to stop, [?] for help
[alsa @ 0xc5e8e0] ALSA buffer xrun. -
FFMPEG - Images to Video
24 mars 2014, par Maheshffmpeg -f image2 -r 15 -i images/img%03d.jpg -vcodec libx264 video.mp4
I run this code with exec in php.
I am not getting the output. The video.mp4 is blank.
However if i modify this commade to something like this,
ffmpeg -f image2 -i i.jpg -vcodec libx264 -t 15 video.mp4
The video is running for 15 seconds.
I tried -r 1/15. It is not working too.
Where do i do the mistake ?<?php
$command = "/usr/bin/ffmpeg -f image2 -r 15 -i images/img%03d.jpg -vcodec libx264 video.mp4";
exec($command);
?>images folder has img001.jpg img002.jpg ... img005.jpg
Array
(
[0] => ffmpeg version N-48645-gf3c9d8d Copyright (c) 2000-2013 the FFmpeg developers
[1] => built on Jan 9 2013 04:08:32 with gcc 4.7 (Debian 4.7.2-5)
[2] => configuration: --extra-cflags=-I../static/include --extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3 --enable-static --disable-shared --disable-debug --enable-runtime-cpudetect --disable-x11grab --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver
[3] => libavutil 52. 13.100 / 52. 13.100
[4] => libavcodec 54. 86.100 / 54. 86.100
[5] => libavformat 54. 59.106 / 54. 59.106
[6] => libavdevice 54. 3.102 / 54. 3.102
[7] => libavfilter 3. 32.100 / 3. 32.100
[8] => libswscale 2. 1.103 / 2. 1.103
[9] => libswresample 0. 17.102 / 0. 17.102
[10] => libpostproc 52. 2.100 / 52. 2.100
[11] => Input #0, image2, from 'images/img%03d.jpg':
[12] => Duration: 00:00:45.00, start: 0.000000, bitrate: N/A
[13] => Stream #0:0: Video: mjpeg, yuvj420p, 200x300 [SAR 1:1 DAR 2:3], 0.07 fps, 0.33 tbr, 0.07 tbn, 0.07 tbc
[14] => [libx264 @ 0x3283080] using SAR=1/1
[15] => [libx264 @ 0x3283080] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[16] => [libx264 @ 0x3283080] profile High, level 1.2
[17] => [libx264 @ 0x3283080] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=1 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
[18] => Output #0, mp4, to 'videos/video.mp4':
[19] => Metadata:
[20] => encoder : Lavf54.59.106
[21] => Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 200x300 [SAR 1:1 DAR 2:3], q=-1--1, 16384 tbn, 0.07 tbc
[22] => Stream mapping:
[23] => Stream #0:0 -> #0:0 (mjpeg -> libx264)
[24] => Press [q] to stop, [?] for help
[25] => Input stream #0:0 frame changed from size:200x300 fmt:yuvj420p to size:200x300 fmt:yuvj444p
[26] => frame= 3 fps=0.0 q=-1.0 Lsize= 43kB time=00:00:15.00 bitrate= 23.2kbits/s
[27] => video:42kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.912722%
[28] => [libx264 @ 0x3283080] frame I:1 Avg QP:18.97 size: 13250
[29] => [libx264 @ 0x3283080] frame P:2 Avg QP:18.68 size: 14368
[30] => [libx264 @ 0x3283080] mb I I16..4: 0.8% 81.4% 17.8%
[31] => [libx264 @ 0x3283080] mb P I16..4: 0.0% 84.8% 15.2% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip: 0.0%
[32] => [libx264 @ 0x3283080] 8x8 transform intra:83.7%
[33] => [libx264 @ 0x3283080] coded y,uvDC,uvAC intra: 96.4% 99.2% 97.6%
[34] => [libx264 @ 0x3283080] i16 v,h,dc,p: 0% 0% 100% 0%
[35] => [libx264 @ 0x3283080] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 18% 13% 5% 8% 11% 8% 10% 7%
[36] => [libx264 @ 0x3283080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 9% 7% 9% 13% 8% 7% 7%
[37] => [libx264 @ 0x3283080] i8c dc,h,v,p: 45% 17% 26% 12%
[38] => [libx264 @ 0x3283080] Weighted P-Frames: Y:0.0% UV:0.0%
[39] => [libx264 @ 0x3283080] kb/s:7.46)
-
FFmpeg's concat demuxer/protocol (for concatenating MP3 audio files) creates a sped up and broken output file
5 février 2020, par EmielBossI want to join, or concatenate, multiple MP3 files into one larger MP3 using FFmpeg’s concat demuxer :
ffmpeg -f concat -safe 0 -i Filelist.txt -c copy out.mp3
However, the output file is sped up (with a higher pitch), and after 5 seconds of listening, the audio starts to crackle and drop out. If I click on another position on the timebar in VLC, it plays for about 5 seconds before it bugs out again. Why is this happening ?
I also tried the concat protocol :
ffmpeg -i "concat:in1.mp3|in2.mp3|etc.mp3" -c copy out.mp3
and Mp3Wrap (entirely different software) :
mp3wrap out.mp3 *.mp3
both with the same result. How can I solve this, preferably without re-encoding ?
-------------------------------------------------------------------------------------------------
For reference, this is the specification of an input file (using MediaInfo) :
General
Complete name : in.mp3
Format : MPEG Audio
File size : 5.72 MiB
Duration : 3 min 12 s
Overall bit rate mode : Variable
Overall bit rate : 234 kb/s
Album : Rayman 3: Hoodlum Havoc (Original Soundtrack), Pt. I
Album/Performer : Plume, Fred Leonard, Laurent Parisi
Part/Position : 2
Track name : Moonlit Swamps
Track name/Position : 19
Performer : Plume, Fred Leonard, Laurent Parisi
Composer : Plume, Fred Leonard, Laurent Parisi
Genre : Soundtrack
Recorded date : 2003
Writing library : LAME3.99r
Cover : Yes
Cover description : Cover
Cover type : Cover (front)
Cover MIME : image/jpeg
Comment : MS_SwG_01ExpDark
ID3v1 Comment : MS_SwG_01ExpDark
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo
Duration : 3 min 12 s
Bit rate mode : Variable
Bit rate : 234 kb/s
Minimum bit rate : 32.0 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 5.39 MiB (94%)
Writing library : LAME3.99r
Encoding settings : -m j -V 0 -q 0 -lowpass 24 --vbr-new -b 32And the specification of the concatenated MP3 :
General
Complete name : out.mp3
Format : MPEG Audio
File size : 131 MiB
Duration : 1 h 17 min # VLC says duration is 1:24:04 for some reason
Overall bit rate mode : Variable
Overall bit rate : 237 kb/s
Writing library : LAME3.99r
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo
Duration : 1 h 24 min
Bit rate mode : Variable
Bit rate : 237 kb/s
Channel(s) : 2 channels
Sampling rate : 44.1 kHz
Frame rate : 41.667 FPS (1058 SPF)
Compression mode : Lossy
Stream size : 131 MiB (100%)
Writing library : LAME3.99r
Encoding settings : -m m -V 10 -q 0which has noticeably less information.