
Recherche avancée
Autres articles (32)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (...) -
Liste des distributions compatibles
26 avril 2011, parLe tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version 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
Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)
Sur d’autres sites (7660)
-
Script timing with FFMPEG and PHP
23 juin 2014, par egekhterI’m running into a very strange bug.
Here’s my command console output :
ffmpeg -i /transcodes/original/883_1000_1403436916_00001.MTS -y -vcodec libx264 -tune zerolatency -
movflags faststart -crf 20 -profile:v high -level:v 4.0 -maxrate 6000k -bufsize 12000k -acodec libfdk_aac -b:a 256k /transcodes/883_1000_1403436916_00001_HQ.mp4 -vcodec libx264 -s 848x480 -tune zerolatency -movflags faststart -crf 25 -profile:v main -level:v 3.1 -maxrate 1400k -bufsize 1400k -acodec libfdk_aac -b:a 256k /transcodes/883_1000_1403436916_00001_SQ.mp4 -ss 166.16 -f image2 -vframes 1 /transcodes/883_1000_1403436916_00001_poster.jpg -ss 166.16 -f image2 -vf scale=-1:240 -vframes 1 /transcodes/883_1000_1403436916_00001_thumb.jpg
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 13 2014 02:40:27 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/ubuntu/ffmpeg_build --extra-cflags=-I/home/ubuntu/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil 52. 89.100 / 52. 89.100
libavcodec 55. 66.100 / 55. 66.100
libavformat 55. 43.100 / 55. 43.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 8.100 / 4. 8.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from '/transcodes/original/883_1000_1403436916_00001.MTS':
Duration: 00:04:11.74, start: 0.382511, bitrate: 25222 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080
[swscaler @ 0x216fe40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x2188c20] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x2143e60] using SAR=1/1
[libx264 @ 0x2143e60] MB rate (489110) > level limit (245760)
[libx264 @ 0x2143e60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x2143e60] profile High, level 4.0
[libx264 @ 0x2143e60] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=2 lookahead_threads=2 sliced_threads=1 slices=2 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=6000 vbv_bufsize=12000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[libx264 @ 0x2150680] using SAR=160/159
[libx264 @ 0x2150680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x2150680] profile Main, level 3.1
[libx264 @ 0x2150680] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=2 lookahead_threads=2 sliced_threads=1 slices=2 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1400 vbv_bufsize=1400 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/transcodes/883_1000_1403436916_00001_HQ.mp4':
Metadata:
encoder : Lavf55.43.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, max. 6000 kb/s, 59.94 fps, 60k tbn, 59.94 tbc
Metadata:
encoder : Lavc55.66.100 libx264
Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000 Hz, 5.1, s16, 256 kb/s
Metadata:
encoder : Lavc55.66.100 libfdk_aac
Output #1, mp4, to '/transcodes/883_1000_1403436916_00001_SQ.mp4':
Metadata:
encoder : Lavf55.43.100
Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 848x480 [SAR 160:159 DAR 16:9], q=-1--1, max. 1400 kb/s, 59.94 fps, 60k tbn, 59.94 tbc
Metadata:
encoder : Lavc55.66.100 libx264
Stream #1:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000 Hz, 5.1, s16, 256 kb/s
Metadata:
encoder : Lavc55.66.100 libfdk_aac
Output #2, image2, to '/transcodes/883_1000_1403436916_00001_poster.jpg':
Metadata:
encoder : Lavf55.43.100
Stream #2:0: Video: mjpeg, yuvj420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 90k tbn, 59.94 tbc
Metadata:
encoder : Lavc55.66.100 mjpeg
Output #3, image2, to '/transcodes/883_1000_1403436916_00001_thumb.jpg':
Metadata:
encoder : Lavf55.43.100
Stream #3:0: Video: mjpeg, yuvj420p, 427x240 [SAR 1280:1281 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 90k tbn, 59.94 tbc
Metadata:
encoder : Lavc55.66.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Stream #0:0 -> #1:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #1:1 (ac3 (native) -> aac (libfdk_aac))
Stream #0:0 -> #2:0 (h264 (native) -> mjpeg (mjpeg))
Stream #0:0 -> #3:0 (h264 (native) -> mjpeg (mjpeg))
frame=15090 fps=1.0 q=39.0 q=30.0 q=6.6 q=4.3 size= 193843kB time=00:04:11.75 bitrate=6307.7kbits/s dup=0 drop=15088
[mp4 @ 0x210ae00] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x210ae00] Unable to re-open /transcodes/883_1000_1403436916_00001_HQ.mp4 output file for the second pass (faststart)
[mp4 @ 0x214fc20] Starting second pass: moving the moov atom to the beginning of the file
[mp4 @ 0x214fc20] Unable to re-open /transcodes/883_1000_1403436916_00001_SQ.mp4 output file for the second pass (faststart)
frame=15090 fps=1.0 q=39.0 Lq=30.0 q=6.6 q=4.3 size= 193843kB time=00:04:11.77 bitrate=6307.1kbits/s dup=0 drop=15088
video:212914kB audio:15741kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x2143e60] frame I:162 Avg QP:23.31 size: 38205
[libx264 @ 0x2143e60] frame P:14928 Avg QP:25.47 size: 12322
[libx264 @ 0x2143e60] mb I I16..4: 24.9% 70.4% 4.6%
[libx264 @ 0x2143e60] mb P I16..4: 2.2% 3.2% 0.0% P16..4: 38.3% 3.7% 4.3% 0.0% 0.0% skip:48.3%
[libx264 @ 0x2143e60] 8x8 transform intra:60.6% inter:94.6%
[libx264 @ 0x2143e60] coded y,uvDC,uvAC intra: 25.5% 50.7% 2.8% inter: 9.7% 17.3% 0.0%
[libx264 @ 0x2143e60] i16 v,h,dc,p: 43% 17% 10% 29%
[libx264 @ 0x2143e60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 13% 34% 4% 4% 4% 5% 3% 3%
[libx264 @ 0x2143e60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 18% 13% 5% 7% 6% 7% 4% 3%
[libx264 @ 0x2143e60] i8c dc,h,v,p: 64% 15% 19% 2%
[libx264 @ 0x2143e60] Weighted P-Frames: Y:0.2% UV:0.0%
[libx264 @ 0x2143e60] ref P L0: 67.7% 14.5% 13.8% 4.0% 0.0%
[libx264 @ 0x2143e60] kb/s:6042.08
[libx264 @ 0x2150680] frame I:72 Avg QP:24.70 size: 14016
[libx264 @ 0x2150680] frame P:15018 Avg QP:28.46 size: 1783
[libx264 @ 0x2150680] mb I I16..4: 39.4% 0.0% 60.6%
[libx264 @ 0x2150680] mb P I16..4: 0.8% 0.0% 0.3% P16..4: 36.3% 4.1% 2.6% 0.0% 0.0% skip:56.0%
[libx264 @ 0x2150680] coded y,uvDC,uvAC intra: 32.1% 41.1% 7.1% inter: 3.9% 6.6% 0.1%
[libx264 @ 0x2150680] i16 v,h,dc,p: 50% 12% 10% 27%
[libx264 @ 0x2150680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 15% 22% 5% 5% 5% 6% 5% 3%
[libx264 @ 0x2150680] i8c dc,h,v,p: 67% 11% 19% 3%
[libx264 @ 0x2150680] Weighted P-Frames: Y:0.7% UV:0.1%
[libx264 @ 0x2150680] ref P L0: 65.0% 22.3% 10.0% 2.6% 0.0%
[libx264 @ 0x2150680] kb/s:882.93I’ve tried adding sleep(5) after :
exec($cmd, $out, $ret);
to give the script time to move the moov atom to the front before uploading the local file to s3 and then deleting the local file, but it is not 100% reliable.
Any ideas ?
-
ffmpeg not setting GOP size for x264
5 juillet 2012, par Chris RobinsonCan someone please explain to me why the following settings :
ffmpeg -i test.avi -vcodec libx264 -g 2 -keyint_min 1 -sc_threshold 100000000 -bf 1 test.mp4
produces the following output :
ffmpeg version N-41668-g564bb24 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 17 2012 20:18:05 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --ena libavutil 51. 58.100 / 51. 58.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 81.100 / 2. 81.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, avi, from 'test.avi':
Metadata:
encoder : Lavf54.6.101
Duration: 00:00:01.70, start: 0.000000, bitrate: 4258 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 0000000004115600] w:1280 h:720 pixfmt:yuv420p tb:1001/30000 fr:30000/1001 sar:1/1 sws_param:flags=2
[ffmpeg_buffersink @ 00000000041157a0] No opaque field provided
[libx264 @ 000000000411f120] using SAR=1/1
[libx264 @ 000000000411f120] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 000000000411f120] profile High, level 3.1
[libx264 @ 000000000411f120] 264 - core 125 r2200 999b753 - 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=36 lookahead_threads=6 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 keOutput #0, mp4, to 'test.mp4':
Metadata:
encoder : Lavf54.6.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30k tbn, 29.97 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> libx264)
Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
Press [q] to stop, [?] for help
[libvo_aacenc @ 0000000001ebe240] Que input is backward in time
Last message repeated 8 times
frame= 35 fps=0.0 q=-1.0 Lsize= 466kB time=00:00:01.10 bitrate=3466.6kbits/s dup=1 drop=0
video:436kB audio:28kB global headers:0kB muxing overhead 0.558509%
[libx264 @ 000000000411f120] frame I:1 Avg QP:24.93 size: 92398
[libx264 @ 000000000411f120] frame P:28 Avg QP:26.82 size: 12010
[libx264 @ 000000000411f120] frame B:6 Avg QP:30.37 size: 2764
[libx264 @ 000000000411f120] consecutive B-frames: 74.3% 5.7% 8.6% 11.4%
[libx264 @ 000000000411f120] mb I I16..4: 41.5% 40.1% 18.4%
[libx264 @ 000000000411f120] mb P I16..4: 3.9% 1.4% 0.6% P16..4: 14.3% 4.7% 3.2% 0.0% 0.0% skip:72.0%
[libx264 @ 000000000411f120] mb B I16..4: 1.1% 0.4% 0.1% B16..8: 14.2% 2.8% 0.6% direct: 1.1% skip:79.8% L0:49.8% L1:39.5% BI:10.8%
[libx264 @ 000000000411f120] 8x8 transform intra:29.9% inter:76.4%
[libx264 @ 000000000411f120] coded y,uvDC,uvAC intra: 31.1% 34.4% 18.7% inter: 10.2% 6.3% 3.0%
[libx264 @ 000000000411f120] i16 v,h,dc,p: 62% 34% 3% 0%
[libx264 @ 000000000411f120] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 23% 38% 4% 4% 3% 3% 2% 5%
[libx264 @ 000000000411f120] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 35% 16% 1% 2% 2% 1% 1% 1%
[libx264 @ 000000000411f120] i8c dc,h,v,p: 52% 20% 24% 3%
[libx264 @ 000000000411f120] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000000000411f120] ref P L0: 70.5% 10.1% 12.1% 7.3%
[libx264 @ 000000000411f120] ref B L0: 81.1% 16.9% 2.0%
[libx264 @ 000000000411f120] ref B L1: 89.7% 10.3%
[libx264 @ 000000000411f120] kb/s:3050.18Why am I not getting an I-Frame every second frame ? Is there something else I can set to do enforce this ? If not, can you suggest how to do this using the
mpeg4
codec. It's vital that I can extract what type of frame has been encoded during the encoding process and that I can set a specific GOP structure. -
Will ffmpeg transcoding change the media's duration ?
6 juillet 2012, par MaiTianoFor example, I have a example flv media : 1775818137_1775828481_10344.flv. Only audio data has contained in it. (No video data)
The major properties of this flv are :
_____________________________________________________________________
Format : Flash Video
File size : 87.4 KiB
Duration : 494 hours
Overall bit rate mode : CBR
Overall bit rate : 0 bps
Writing application : Lavf53.4.0
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 2
Codec ID/Hint : MP3
Duration : 49hours
Bit rate mode : CBR
Bit rate : 64.0 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 13.3 GiB
_____________________________________________________________________Because this is the flv piece generated from the Suse10.0 server, the timestamp may be not correctly wrote into the flv metadata. Therefore, the Duration item listed above is not the real time of it.
I has record the time in its file name.
So, the beginning time is 1775818137 ms
the ending time of this flv is 1775828481 ms
The actual duation of this flv is 10344 ms which is about 10 seconds.**HERE IS MY QUESTION -.- **
When I use ffmpeg to transcode flv fromat into ts format, like this,
./ffmpeg -i 1775818137_1775828481_10344.flv -f mpegts -vn -acodec libfaac -ar 44100 -ab 48k 1775818137_1775828481_10344.ts
Is there possibility that the duration of final gotten ts file is not equal to the duation of original flv file ? In other words, the ts file's duration is not 10344ms.