
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
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
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (79)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (9552)
-
ffmpeg and php does not end the conversion
23 juin 2016, par Fernand RoyaleI’m going crazy with it and do not think the solution.
I use this code to convert videos, but the conversion did not terminate. I tried several times and stops at different points.
echo "Starting ffmpeg...\n\n".'';
echo shell_exec('/usr/src/ffmpeg/ffmpeg/ffmpeg -y -i movie.mp4 -i logo.png -filter_complex "overlay=10:10" -b:v 1500k -vcodec libx264 movie2.mp4 2> out.txt').'';
echo "Done.\n";Output from
ffmpeg
:ffmpeg version git-2014-01-31-dce9321 Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 31 2014 20:37:02 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
configuration: --prefix=/usr/local/ffmpeg --extra-cflags=-I/usr/local/ffmpeg/include --extra-ldflags=-L/usr/local/ffmpeg/lib --bindir=/usr/local/ffmpeg/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfaac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libtheora
libavutil 52. 63.100 / 52. 63.100
libavcodec 55. 49.101 / 55. 49.101
libavformat 55. 28.101 / 55. 28.101
libavdevice 55. 7.100 / 55. 7.100
libavfilter 4. 1.101 / 4. 1.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2016-06-09 07:48:54
Duration: 00:21:20.00, start: 0.000000, bitrate: 293 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 164 kb/s, -7.31 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2016-06-09 07:48:54
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2016-06-09 07:27:52
handler_name : SoundHandler
Input #1, image2, from 'logo.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgba, 350x32 [SAR 3779:3779 DAR 175:16], 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x3b1fe00] using SAR=1/1
[libx264 @ 0x3b1fe00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x3b1fe00] profile High, level 3.1
[libx264 @ 0x3b1fe00] 264 - core 142 r2 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=24 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'movie2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.28.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 30k tbn, 29.97 tbc (default)
Stream #0:1(und): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
Metadata:
creation_time : 2016-06-09 07:27:52
handler_name : SoundHandler
Stream mapping:
Stream #0:0 (h264) -> overlay:main (graph 0)
Stream #1:0 (png) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame= 14 fps=0.0 q=0.0 size= 15226kB time=00:00:00.00 bitrate=N/A
[libfaac @ 0x3b20800] Queue input is backward in time
[mp4 @ 0x3b1ef80] Non-monotonous DTS in output stream 0:1; previous: 3003, current: 1024; changing to 3004. This may result in incorrect timestamps in the output file.
[mp4 @ 0x3b1ef80] Non-monotonous DTS in output stream 0:1; previous: 3004, current: 2048; changing to 3005. This may result in incorrect timestamps in the output file.
frame= 25 fps=6.9 q=0.0 size= 15382kB time=00:00:00.23 bitrate=542687.8kbits/s
frame= 46 fps= 10 q=0.0 size= 15408kB time=00:00:00.95 bitrate=132582.7kbits/s
frame= 69 fps= 13 q=32.0 size= 15433kB time=00:00:01.71 bitrate=73576.8kbits/s
[...]
frame=11100 fps= 38 q=0.0 size= 24980kB time=00:06:09.77 bitrate= 553.4kbits/s
frame=11106 fps= 38 q=0.0 size= 25093kB time=00:06:09.98 bitrate= 555.6kbits/s
frame=11131 fps= 38 q=0.0 size= 25109kB time=00:06:10.82 bitrate= 554.7kbits/sWith small video works, but with great video does not end. I do not think it’s
php.ini
configuration because there is no error. Just do not end -
Ffmpeg video length is not as expected
29 juin 2016, par KarnivaurusI have a folder containing 500 images, of that format
image0.png
,image1.png
, ...,image499.png
. I want to useffmpeg
to convert these images to a video with a frame rate of 50. This should meant that the total video duration is 10 seconds (= 500 / 50).To do this, I used the following command :
ffmpeg -r 50 -f image2 -i image%1d.png -vcodec libx264 -crf 15 -pix_fmt yuv420p video.mp4
However, the video which was created, had a duration of 2.5 seconds. Otherwise, the video displays the images correctly, and runs from the beginning to the end as expected.
Why is the video length not as I would have expected ?
The full output from the console is :
ffmpeg version 2.7.6-0ubuntu0.15.10.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --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-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx265
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, image2, from 'image%1d.png':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 1600x600, 50 fps, 50 tbr, 50 tbn, 50 tbc
[libx264 @ 0x122c6c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x122c6c0] profile High, level 3.2
[libx264 @ 0x122c6c0] 264 - core 146 r2555 0c21480 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=15.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'video.mp4':
Metadata:
encoder : Lavf56.36.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1600x600, q=-1--1, 50 fps, 12800 tbn, 50 tbc
Metadata:
encoder : Lavc56.41.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 84 fps=0.0 q=23.0 size= 61kB time=00:00:00.52 bitrate= 962.5kbits/frame= 161 fps=160 q=23.0 size= 216kB time=00:00:02.06 bitrate= 860.6kbits/frame= 236 fps=157 q=23.0 size= 438kB time=00:00:03.56 bitrate=1008.2kbits/frame= 315 fps=157 q=23.0 size= 658kB time=00:00:05.14 bitrate=1048.8kbits/frame= 390 fps=155 q=23.0 size= 850kB time=00:00:06.64 bitrate=1048.7kbits/frame= 461 fps=153 q=23.0 size= 1059kB time=00:00:08.06 bitrate=1076.2kbits/frame= 500 fps=145 q=-1.0 Lsize= 1292kB time=00:00:09.96 bitrate=1062.3kbits/s
video:1285kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.521096%
[libx264 @ 0x122c6c0] frame I:2 Avg QP: 9.48 size: 11840
[libx264 @ 0x122c6c0] frame P:223 Avg QP:16.74 size: 3729
[libx264 @ 0x122c6c0] frame B:275 Avg QP:21.86 size: 1672
[libx264 @ 0x122c6c0] consecutive B-frames: 1.0% 73.6% 10.2% 15.2%
[libx264 @ 0x122c6c0] mb I I16..4: 51.2% 40.0% 8.7%
[libx264 @ 0x122c6c0] mb P I16..4: 0.9% 1.7% 0.4% P16..4: 6.2% 3.6% 2.1% 0.0% 0.0% skip:85.0%
[libx264 @ 0x122c6c0] mb B I16..4: 0.2% 0.3% 0.0% B16..8: 7.8% 2.9% 0.7% direct: 0.5% skip:87.5% L0:44.4% L1:50.3% BI: 5.3%
[libx264 @ 0x122c6c0] 8x8 transform intra:52.1% inter:38.1%
[libx264 @ 0x122c6c0] coded y,uvDC,uvAC intra: 9.7% 0.0% 0.0% inter: 1.8% 0.0% 0.0%
[libx264 @ 0x122c6c0] i16 v,h,dc,p: 50% 41% 3% 6%
[libx264 @ 0x122c6c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 12% 36% 2% 1% 1% 1% 4% 0%
[libx264 @ 0x122c6c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 25% 21% 3% 1% 2% 1% 5% 1%
[libx264 @ 0x122c6c0] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x122c6c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x122c6c0] ref P L0: 69.2% 7.5% 16.7% 6.6%
[libx264 @ 0x122c6c0] ref B L0: 78.0% 20.6% 1.4%
[libx264 @ 0x122c6c0] ref B L1: 96.8% 3.2%
[libx264 @ 0x122c6c0] kb/s:1052.00 -
FFMPEG : Video file to YUV conversion by binary ffmpeg and by code C++ give different results
30 juin 2016, par Anny GDisclaimer : I have looked at the following question,
FFMPEG : RGB to YUV conversion by binary ffmpeg and by code C++ give different results
but it didn’t help and it is not applicable to me because I am not using SwsContext or anything.Following first few tutorials by http://dranger.com/ffmpeg/, I have created a simple program that reads a video, decodes it and then when the frame is decoded, it writes the raw yuv values to a file (no padding), using the data provided by AVFrame after we successfully decoded a frame. To be more specific, I write out arrays
AVFrame->data[0]
,AVFrame->data[1]
andAVFrame->data[2]
to a file, i.e. I simply append Y values, then U values, then V values to a file. The file turns out to be of yuv422p format.When I convert the same original video to a raw yuv format using the ffmpeg(same version of ffmpeg) command line tool, the two yuv files are the same in size, but differ in content.
FYI, I am able to play both of the yuv files using the yuv player, and they look identical as well.
Here is the exact command I run to convert the original video to a yuv video using ffmpeg command line tool
~/bin/ffmpeg -i super-short-video.h264 -c:v rawvideo -pix_fmt yuv422p "super-short-video-yuv422p.yuv"
What causes this difference in bytes and can it be fixed ? Is there perhaps another way of converting the original video to a yuv using the ffmpeg tool but maybe I need to use different settings ?
Ffmpeg output when I convert to a yuv format :
ffmpeg version N-80002-g5afecff Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --prefix=/home/me/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/me/ffmpeg_build/include --extra-ldflags=-L/home/me/ffmpeg_build/lib --bindir=/home/me/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --extra-cflags=-pg --extra-ldflags=-pg --disable-stripping
libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 42.100 / 57. 42.100
libavformat 57. 36.100 / 57. 36.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 45.100 / 6. 45.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, h264, from 'super-short-video.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn
[rawvideo @ 0x24f6fc0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, rawvideo, to 'super-short-video-yuv422p.yuv':
Metadata:
encoder : Lavf57.36.100
Stream #0:0: Video: rawvideo (Y42B / 0x42323459), yuv422p, 1280x720, q=2-31, 200 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc57.42.100 rawvideo
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
frame= 50 fps=0.0 q=-0.0 Lsize= 90000kB time=00:00:02.00 bitrate=368640.0kbits/s speed=11.3x
video:90000kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%