
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (103)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 (...)
Sur d’autres sites (11001)
-
Why JPEG image looks different in two videos ?
28 septembre 2015, par user606521I have two frames :
And I am creating two videos :
./ffmpeg -i ./f%d.jpg -r 30 -y m1.mp4 # both frames 1 and 2
./ffmpeg -i ./f2.jpg -r 30 -y m2.mp4 # only frame 2For some reason frame 2 looks different in these two videos
Frame 2 from m1.mp4 :
$ ./ffmpeg -i m1.mp4 out1_%d.jpg
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
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
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'm1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.36.100
Duration: 00:00:00.07, start: 0.000000, bitrate: 478 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 980x100, 381 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
[swscaler @ 0x7f7f9a000600] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'out1_%d.jpg':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.36.100
Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 980x100, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc56.41.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame= 2 fps=0.0 q=1.6 Lsize=N/A time=00:00:00.06 bitrate=N/A
video:6kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknownFrame 2 from m2.mp4 :
$ ./ffmpeg -i m2.mp4 out2_%d.jpg
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
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
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'm2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.36.100
Duration: 00:00:00.03, start: 0.000000, bitrate: 824 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 980x100 [SAR 1:1 DAR 49:5], 648 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Output #0, image2, to 'out2_%d.jpg':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.36.100
Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 980x100 [SAR 1:1 DAR 49:5], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc56.41.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=1.6 Lsize=N/A time=00:00:00.03 bitrate=N/A
video:4kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknownIt seems that frame 2 looks different when combined with frame 1 in a video. One thing I noticed that when dumping frames from m1.mp4 (two frames combined) there is a warning in ffmpeg output :
[swscaler @ 0x7f7f9a000600] deprecated pixel format used, make sure you did set range correctly
Also two frame images have same dimmensions (980x100) and their format seems to be same :
$ file -b f1.jpg
JPEG image data, JFIF standard 1.01, comment: "CS=ITU601??"
$ file -b f2.jpg
JPEG image data, JFIF standard 1.01So why this is happening ? I am struggling with this issue for quite a long time - for some reason some JPEGs somehow are in different "format ?" than others and make mess in videos...
You can download first two images included in this question and test commands on your own.
$ identify -verbose f1.jpg
Image: f1.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 980x100+0+0
Resolution: 552x551
Print size: 1.77536x0.181488
Units: PixelsPerInch
Type: Palette
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 189 (0.741176)
max: 233 (0.913725)
mean: 208.261 (0.81671)
standard deviation: 14.1741 (0.0555848)
kurtosis: -1.40078
skewness: 0.332664
Green:
min: 189 (0.741176)
max: 233 (0.913725)
mean: 208.261 (0.81671)
standard deviation: 14.1741 (0.0555848)
kurtosis: -1.40078
skewness: 0.332664
Blue:
min: 189 (0.741176)
max: 233 (0.913725)
mean: 208.26 (0.816706)
standard deviation: 14.1756 (0.0555905)
kurtosis: -1.40068
skewness: 0.332424
Image statistics:
Overall:
min: 189 (0.741176)
max: 233 (0.913725)
mean: 208.261 (0.816709)
standard deviation: 14.1746 (0.0555867)
kurtosis: -1.40075
skewness: 0.332584
Colors: 47
Histogram:
368: (189,189,189) #BDBDBD grey74
1984: (190,190,190) #BEBEBE grey
28: (191,191,189) #BFBFBD srgb(191,191,189)
3780: (191,191,191) #BFBFBF grey75
28: (192,192,190) #C0C0BE srgb(192,192,190)
6628: (192,192,192) #C0C0C0 silver
5664: (193,193,193) #C1C1C1 srgb(193,193,193)
4608: (194,194,194) #C2C2C2 grey76
4480: (195,195,195) #C3C3C3 srgb(195,195,195)
3328: (196,196,196) #C4C4C4 grey77
2592: (197,197,197) #C5C5C5 srgb(197,197,197)
3072: (198,198,198) #C6C6C6 srgb(198,198,198)
2272: (199,199,199) #C7C7C7 grey78
2112: (200,200,200) #C8C8C8 srgb(200,200,200)
2112: (201,201,201) #C9C9C9 grey79
1920: (202,202,202) #CACACA srgb(202,202,202)
1728: (203,203,203) #CBCBCB srgb(203,203,203)
1760: (204,204,204) #CCCCCC grey80
1696: (205,205,205) #CDCDCD srgb(205,205,205)
1248: (206,206,206) #CECECE srgb(206,206,206)
1536: (207,207,207) #CFCFCF grey81
1504: (208,208,208) #D0D0D0 srgb(208,208,208)
1344: (209,209,209) #D1D1D1 grey82
1536: (210,210,210) #D2D2D2 srgb(210,210,210)
1472: (211,211,211) #D3D3D3 LightGray
1088: (212,212,212) #D4D4D4 grey83
1472: (213,213,213) #D5D5D5 srgb(213,213,213)
1536: (214,214,214) #D6D6D6 grey84
1344: (215,215,215) #D7D7D7 srgb(215,215,215)
1184: (216,216,216) #D8D8D8 srgb(216,216,216)
1408: (217,217,217) #D9D9D9 grey85
1472: (218,218,218) #DADADA srgb(218,218,218)
1216: (219,219,219) #DBDBDB grey86
1280: (220,220,220) #DCDCDC gainsboro
1536: (221,221,221) #DDDDDD srgb(221,221,221)
1472: (222,222,222) #DEDEDE grey87
1600: (223,223,223) #DFDFDF srgb(223,223,223)
1696: (224,224,224) #E0E0E0 grey88
1792: (225,225,225) #E1E1E1 srgb(225,225,225)
1728: (226,226,226) #E2E2E2 srgb(226,226,226)
1952: (227,227,227) #E3E3E3 grey89
2272: (228,228,228) #E4E4E4 srgb(228,228,228)
2752: (229,229,229) #E5E5E5 grey90
4512: (230,230,230) #E6E6E6 srgb(230,230,230)
4672: (231,231,231) #E7E7E7 srgb(231,231,231)
640: (232,232,232) #E8E8E8 grey91
576: (233,233,233) #E9E9E9 srgb(233,233,233)
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 980x100+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Orientation: Undefined
Properties:
comment: CS=ITU601
date:create: 2015-09-28T21:47:26+02:00
date:modify: 2015-09-28T21:47:26+02:00
jpeg:colorspace: 2
jpeg:quality: 92
jpeg:sampling-factor: 2x2,1x1,1x1
signature: ca599d8ad07c79b36837cb9f4811d83e236b8d4a4cdfada8d60c4aa330f28f38
Artifacts:
filename: f1.jpg
verbose: true
Tainted: False
Filesize: 1.36KB
Number pixels: 98K
Pixels per second: 9.8MB
User time: 0.000u
Elapsed time: 0:01.009
Version: ImageMagick 6.8.7-0 2013-10-28 Q16 http://www.imagemagick.org$ identify -verbose f2.jpg
Image: f2.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 980x100+0+0
Resolution: 72x72
Print size: 13.6111x1.38889
Units: PixelsPerInch
Type: Palette
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 186 (0.729412)
max: 254 (0.996078)
mean: 242.844 (0.952329)
standard deviation: 11.0845 (0.0434688)
kurtosis: 4.24417
skewness: -2.17102
Green:
min: 186 (0.729412)
max: 254 (0.996078)
mean: 242.844 (0.952329)
standard deviation: 11.0845 (0.0434688)
kurtosis: 4.24417
skewness: -2.17102
Blue:
min: 186 (0.729412)
max: 254 (0.996078)
mean: 242.842 (0.952323)
standard deviation: 11.0886 (0.0434848)
kurtosis: 4.24235
skewness: -2.17103
Image statistics:
Overall:
min: 186 (0.729412)
max: 254 (0.996078)
mean: 242.843 (0.952327)
standard deviation: 11.0859 (0.0434741)
kurtosis: 4.24356
skewness: -2.17102
Colors: 91
Histogram:
2: (186,186,186) #BABABA grey73
2: (187,187,187) #BBBBBB srgb(187,187,187)
1: (189,189,189) #BDBDBD grey74
5: (190,190,190) #BEBEBE grey
2: (191,191,191) #BFBFBF grey75
20: (192,192,192) #C0C0C0 silver
28: (193,193,193) #C1C1C1 srgb(193,193,193)
37: (194,194,194) #C2C2C2 grey76
46: (195,195,195) #C3C3C3 srgb(195,195,195)
59: (196,196,196) #C4C4C4 grey77
108: (197,197,197) #C5C5C5 srgb(197,197,197)
134: (198,198,198) #C6C6C6 srgb(198,198,198)
145: (199,199,199) #C7C7C7 grey78
188: (200,200,200) #C8C8C8 srgb(200,200,200)
230: (201,201,201) #C9C9C9 grey79
241: (202,202,202) #CACACA srgb(202,202,202)
236: (203,203,203) #CBCBCB srgb(203,203,203)
252: (204,204,204) #CCCCCC grey80
240: (205,205,205) #CDCDCD srgb(205,205,205)
243: (206,206,206) #CECECE srgb(206,206,206)
1: (207,207,205) #CFCFCD srgb(207,207,205)
250: (207,207,207) #CFCFCF grey81
1: (208,208,206) #D0D0CE srgb(208,208,206)
267: (208,208,208) #D0D0D0 srgb(208,208,208)
2: (209,209,207) #D1D1CF srgb(209,209,207)
226: (209,209,209) #D1D1D1 grey82
3: (210,210,208) #D2D2D0 srgb(210,210,208)
193: (210,210,210) #D2D2D2 srgb(210,210,210)
5: (211,211,209) #D3D3D1 srgb(211,211,209)
215: (211,211,211) #D3D3D3 LightGray
7: (212,212,210) #D4D4D2 srgb(212,212,210)
227: (212,212,212) #D4D4D4 grey83
11: (213,213,211) #D5D5D3 srgb(213,213,211)
250: (213,213,213) #D5D5D5 srgb(213,213,213)
4: (214,214,212) #D6D6D4 srgb(214,214,212)
291: (214,214,214) #D6D6D6 grey84
16: (215,215,213) #D7D7D5 srgb(215,215,213)
307: (215,215,215) #D7D7D7 srgb(215,215,215)
1: (216,216,214) #D8D8D6 srgb(216,216,214)
371: (216,216,216) #D8D8D8 srgb(216,216,216)
4: (217,217,215) #D9D9D7 srgb(217,217,215)
355: (217,217,217) #D9D9D9 grey85
3: (218,218,216) #DADAD8 srgb(218,218,216)
398: (218,218,218) #DADADA srgb(218,218,218)
3: (219,219,217) #DBDBD9 srgb(219,219,217)
404: (219,219,219) #DBDBDB grey86
5: (220,220,218) #DCDCDA srgb(220,220,218)
435: (220,220,220) #DCDCDC gainsboro
1: (221,221,219) #DDDDDB srgb(221,221,219)
489: (221,221,221) #DDDDDD srgb(221,221,221)
2: (222,222,220) #DEDEDC srgb(222,222,220)
569: (222,222,222) #DEDEDE grey87
1: (223,223,221) #DFDFDD srgb(223,223,221)
552: (223,223,223) #DFDFDF srgb(223,223,223)
2: (224,224,222) #E0E0DE srgb(224,224,222)
595: (224,224,224) #E0E0E0 grey88
2: (225,225,223) #E1E1DF srgb(225,225,223)
645: (225,225,225) #E1E1E1 srgb(225,225,225)
736: (226,226,226) #E2E2E2 srgb(226,226,226)
3: (227,227,225) #E3E3E1 srgb(227,227,225)
646: (227,227,227) #E3E3E3 grey89
1: (228,228,226) #E4E4E2 srgb(228,228,226)
707: (228,228,228) #E4E4E4 srgb(228,228,228)
1: (229,229,227) #E5E5E3 srgb(229,229,227)
667: (229,229,229) #E5E5E5 grey90
1: (230,230,228) #E6E6E4 srgb(230,230,228)
759: (230,230,230) #E6E6E6 srgb(230,230,230)
767: (231,231,231) #E7E7E7 srgb(231,231,231)
788: (232,232,232) #E8E8E8 grey91
862: (233,233,233) #E9E9E9 srgb(233,233,233)
880: (234,234,234) #EAEAEA srgb(234,234,234)
889: (235,235,235) #EBEBEB grey92
863: (236,236,236) #ECECEC srgb(236,236,236)
868: (237,237,237) #EDEDED grey93
1032: (238,238,238) #EEEEEE srgb(238,238,238)
878: (239,239,239) #EFEFEF srgb(239,239,239)
1083: (240,240,240) #F0F0F0 grey94
1035: (241,241,241) #F1F1F1 srgb(241,241,241)
1247: (242,242,242) #F2F2F2 grey95
1610: (243,243,243) #F3F3F3 srgb(243,243,243)
2084: (244,244,244) #F4F4F4 srgb(244,244,244)
3473: (245,245,245) #F5F5F5 grey96
6350: (246,246,246) #F6F6F6 srgb(246,246,246)
9152: (247,247,247) #F7F7F7 grey97
14755: (248,248,248) #F8F8F8 srgb(248,248,248)
21183: (249,249,249) #F9F9F9 srgb(249,249,249)
12507: (250,250,250) #FAFAFA grey98
2516: (251,251,251) #FBFBFB srgb(251,251,251)
305: (252,252,252) #FCFCFC grey99
16: (253,253,253) #FDFDFD srgb(253,253,253)
4: (254,254,254) #FEFEFE srgb(254,254,254)
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 980x100+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Orientation: Undefined
Properties:
date:create: 2015-09-28T21:48:30+02:00
date:modify: 2015-09-28T21:48:30+02:00
jpeg:colorspace: 2
jpeg:quality: 92
jpeg:sampling-factor: 2x2,1x1,1x1
signature: f718ab157fae4ff0395eaf07a0165897fd9de558eaed00586530690d39e5ed23
Artifacts:
filename: f2.jpg
verbose: true
Tainted: False
Filesize: 4.32KB
Number pixels: 98K
Pixels per second: 0B
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.8.7-0 2013-10-28 Q16 http://www.imagemagick.org -
ffmpeg command failed
25 octobre 2015, par Asad kamranI am experimenting FFMPEG command to convert any video format to mp4.
Server admin execute the below command created by me and show me the errors :
ffmpeg -ss 00:03:00 -i /video/1444107854.mov -c:v libx264 /video/player/1444107854.mp4 -vframes 1 /video/thumb/1444107854.jpg
This is error :
[aac @ 0x2b845a0] The encoder ’aac’ is experimental but experimental
codecs are not enabled, add ’-strict -2’ if you want to use it.how can i avoid this error and also experimental codec, so can any one let me know what can be best codec if i explicitly specify it.
my ffmpeg and server are as follow :
ffmpeg version N-75903-g14573b9 Copyright (c) 2000-2015 the FFmpeg
developers built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)EDIT 1 :
I change the command a bit and add -c:a copy to copy audio stream as it is but still no hope :New command :
ffmpeg -ss 00:03:00 -i /video/1444107854.mov -c:v libx264 -c:a copy /video/player/1444107854.mp4 -vframes 1 /video/thumb/1444107854.jpg
After executing this i got a file of 23k size, apparently as in log it only copy audio stream and no video is added in final output.
Its Log is as follow :> ffmpeg version N-75903-g14573b9 Copyright (c) 2000-2015 the FFmpeg
> developers built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
> configuration: --enable-libx264 --enable-gpl libavutil 55.
> 3.100 / 55. 3.100 libavcodec 57. 5.100 / 57. 5.100 libavformat 57. 3.100 / 57. 3.100 libavdevice 57. 0.100 /
> 57. 0.100 libavfilter 6. 10.100 / 6. 10.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 / 2. 0.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mpeg, from
> '/video/1444108714.mpg':
> Duration: 00:00:02.14, start: 0.184278, bitrate: 15689 kb/s
> Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 38810 kb/s, 29.97 fps, 29.97 tbr,
> 90k tbn, 59.94 tbc
> Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s [swscaler @ 0x347fda0] deprecated pixel format used, make sure you did
> set range correctly [libx264 @ 0x34708a0] using SAR=1/1 [libx264 @
> 0x34708a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264
> @ 0x34708a0] profile High, level 4.0 [libx264 @ 0x34708a0] 264 - core
> 148 r2597 e86f3a1 - 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=34
> lookahead_threads=5 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
> aq=1:1.00 [mp4 @ 0x346f6c0] Codec for stream 1 does not use global
> headers but container format requires global headers [mp4 @ 0x346f6c0]
> track 1: codec frame size is not set Output #0, mp4, to
> '/video/player/1444108714.mp4':
> Metadata:
> encoder : Lavf57.3.100
> Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 30k tbn,
> 29.97 tbc
> Metadata:
> encoder : Lavc57.5.100 libx264
> Stream #0:1: Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, 5.1(side), 448 kb/s Output #1, image2, to '/video/thumb/1444108714.jpg':
> Metadata:
> encoder : Lavf57.3.100
> Stream #1:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
> Metadata:
> encoder : Lavc57.5.100 mjpeg Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) Stream #0:0 -> #1:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help [mp4 @ 0x346f6c0]
> Non-monotonous DTS in output stream 0:1; previous: 2208, current: 672;
> changing to 2209. This may result in incorrect timestamps in the
> output file. frame= 0 fps=0.0 q=0.0 Lq=0.0 size= 23kB
> time=00:00:00.07 bitrate=2447.5kbits/s video:0kB audio:23kB
> subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
> 3.457839%EDIT 2 :
ffmpeg -y -i ./1445675270.m4b -c:v libx264 -crf 20 -preset slow -pix_fmt yuv420p -movflags +faststart -c:a libfdk_aac -b:a 128k ./player/1445675270.mp4 -vframes 1 ./thumb/1445675270.jpg
Above command output the below message, i will appreciate if you can suggest.
ffmpeg version git-2015-10-11-49f4967 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
libavutil 55. 3.100 / 55. 3.100
libavcodec 57. 5.100 / 57. 5.100
libavformat 57. 3.100 / 57. 3.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 11.100 / 6. 11.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x31e07c0] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './1445675270.m4b':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
creation_time : 2005-08-01 07:26:16
tool : ?
title : MAKE_2005-08-01
artist : MAKE Magazine
composer : MAKE Magazine - Phillip Torrone
album : Interview with Janus Wireless
grouping : MAKE Magazine enhanced podcast
genre : Podcast
date : 2005
comment : Interview with Janus wireless and their 5 Wi-Fi card packet capturing Linux box. This is a special enhanced podcast (this file plays images and links in iTunes and on iPod color devices).
Duration: 00:02:57.54, start: 0.000000, bitrate: 162 kb/s
Chapter #0:0: start 0.000000, end 17.000000
Metadata:
title : MAKE Magazine @ DEFCON with JANUS
Chapter #0:1: start 17.000000, end 37.000000
Metadata:
title : Janus
Chapter #0:2: start 37.000000, end 83.000000
Metadata:
title : Construction
Chapter #0:3: start 83.000000, end 109.000000
Metadata:
title : The MAKERs
Chapter #0:4: start 109.000000, end 177.540000
Metadata:
title : Display
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 32 kb/s (default)
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
Stream #0:1(eng): Subtitle: mov_text (text / 0x74786574), 0 kb/s
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
Stream #0:2(eng): Video: tiff (tiff / 0x66666974), rgb24, 167x166, 126 kb/s, SAR 206:275 DAR 17201:22825, 0.03 fps, 1 tbr, 22050 tbn, 22050 tbc (default)
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
encoder : TIFF (Uncompressed)
Stream #0:3(eng): Subtitle: mov_text (tx3g / 0x67337874), 160x160, 0 kb/s (default)
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
Stream #0:4: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 167x166 [SAR 1:1 DAR 167:166], 90k tbr, 90k tbn, 90k tbc
[swscaler @ 0x3242360] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x3228c40] width not divisible by 2 (167x166)
Output #0, mp4, to './player/1445675270.mp4':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
comment : Interview with Janus wireless and their 5 Wi-Fi card packet capturing Linux box. This is a special enhanced podcast (this file plays images and links in iTunes and on iPod color devices).
tool : ?
title : MAKE_2005-08-01
artist : MAKE Magazine
composer : MAKE Magazine - Phillip Torrone
album : Interview with Janus Wireless
grouping : MAKE Magazine enhanced podcast
genre : Podcast
date : 2005
Chapter #0:0: start 0.000000, end 17.000000
Metadata:
title : MAKE Magazine @ DEFCON with JANUS
Chapter #0:1: start 17.000000, end 37.000000
Metadata:
title : Janus
Chapter #0:2: start 37.000000, end 83.000000
Metadata:
title : Construction
Chapter #0:3: start 83.000000, end 109.000000
Metadata:
title : The MAKERs
Chapter #0:4: start 109.000000, end 177.540000
Metadata:
title : Display
Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, SAR 206:275 DAR 0:0, 1 fps (default)
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
encoder : Lavc57.5.100 libx264
Stream #0:1(eng): Audio: aac, 0 channels, 128 kb/s (default)
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
encoder : Lavc57.5.100 libfdk_aac
Output #1, image2, to './thumb/1445675270.jpg':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
comment : Interview with Janus wireless and their 5 Wi-Fi card packet capturing Linux box. This is a special enhanced podcast (this file plays images and links in iTunes and on iPod color devices).
tool : ?
title : MAKE_2005-08-01
artist : MAKE Magazine
composer : MAKE Magazine - Phillip Torrone
album : Interview with Janus Wireless
grouping : MAKE Magazine enhanced podcast
genre : Podcast
date : 2005
Chapter #1:0: start 0.000000, end 17.000000
Metadata:
title : MAKE Magazine @ DEFCON with JANUS
Chapter #1:1: start 17.000000, end 37.000000
Metadata:
title : Janus
Chapter #1:2: start 37.000000, end 83.000000
Metadata:
title : Construction
Chapter #1:3: start 83.000000, end 109.000000
Metadata:
title : The MAKERs
Chapter #1:4: start 109.000000, end 177.540000
Metadata:
title : Display
Stream #1:0(eng): Video: mjpeg, none, q=2-31, 128 kb/s, SAR 206:275 DAR 0:0, 1 fps (default)
Metadata:
creation_time : 2005-08-01 07:26:16
handler_name : ?Apple Alias Data Handler
encoder : Lavc57.5.100 mjpeg
Stream mapping:
Stream #0:2 -> #0:0 (tiff (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (aac (native) -> aac (libfdk_aac))
Stream #0:2 -> #1:0 (tiff (native) -> mjpeg (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height -
Manipulating one video into multi outputs with FFmpeg results in no audio in the last output
27 octobre 2015, par my name isUsing FFmpeg, I’m trying to do some filtering operations on one input video to scale it (out1), scale and trim it (out2).
This is the command I’m using :ffmpeg -y \
-i "Robotica_1080.mkv" \
-filter_complex "[0:v]split=2[v1][v2]; \
[v1]scale=640:360,setpts=PTS-STARTPTS[vout1]; \
[v2]trim=10:15,scale=640:360,setpts=PTS-STARTPTS[vout2]; \
[0:a]asplit=2[a1][a2]; \
[a1]anull,asetpts=PTS-STARTPTS[aout1]; \
[a2]atrim=10:15,asetpts=PTS-STARTPTS[aout2]; \
[vout1][aout1]concat=n=1:v=1:a=1[out1]; \
[vout2][aout2]concat=n=1:v=1:a=1[out2]" \
-map "[out1]" "1.mp4" \
-map "[out2]" "2.mp4"1.mp4 is ok while 2.mp4 lasts 5 seconds as expected but without audio at all (the QuickTime inspector doesn’t write the audio codec)
I tried to remove the trim/atrim filters, so the filter_complex parameter looked like this :
-filter_complex "[0:v]split=2[v1][v2]; \
[v1]scale=640:360[vout1]; \
[v2]scale=640:360[vout2]; \
[0:a]asplit=2[a1][a2]; \
[a1]anull[aout1]; \
[a2]anull[aout2]; \
[vout1][aout1]concat=n=1:v=1:a=1[out1]; \
[vout2][aout2]concat=n=1:v=1:a=1[out2]" \but still no audio on 2.mp4
Can anyone give me a hint ?
—EDIT—
This is the output from first ffmpeg command :Mac-mini:~ Luca$ /Applications/XAMPP/xamppfiles/htdocs/MediaGallery/ffmpeg/ffmpeg -y \
> -i "/Users/Luca/Desktop/_TEMP UPLOAD/Video/Robotica_1080.mkv" \
> -filter_complex "[0:v]split=2[v1][v2]; \
> [v1]scale=640:360,setpts=PTS-STARTPTS[vout1]; \
> [v2]trim=10:15,scale=640:360,setpts=PTS-STARTPTS[vout2]; \
> [0:a]asplit=2[a1][a2]; \
> [a1]anull,asetpts=PTS-STARTPTS[aout1]; \
> [a2]atrim=10:15,asetpts=PTS-STARTPTS[aout2]; \
> [vout1][aout1]concat=n=1:v=1:a=1[out1]; \
> [vout2][aout2]concat=n=1:v=1:a=1[out2]" \
> -map "[out1]" "/Users/Luca/Downloads/1.mp4" \
> -map "[out2]" "/Users/Luca/Downloads/2.mp4"
ffmpeg version N-72460-gc5a07f1-tessus Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 40.100 / 56. 40.100
libavformat 56. 33.101 / 56. 33.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from '/Users/Luca/Desktop/_TEMP UPLOAD/Video/Robotica_1080.mkv':
Metadata:
encoder : libDivXMediaFormat 4.0.0.0578
Duration: 00:00:20.04, start: 0.000000, bitrate: 4282 kb/s
Stream #0:0(eng): Video: hevc (Main), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
Stream #0:1(en): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
[swscaler @ 0x7fb4d181c400] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fb4d185be00] deprecated pixel format used, make sure you did set range correctly
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
Last message repeated 1 times
[libx264 @ 0x7fb4d183f400] using SAR=1/1
[libx264 @ 0x7fb4d183f400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x7fb4d183f400] profile High, level 3.0
[libx264 @ 0x7fb4d183f400] 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=3 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=25 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
[libx264 @ 0x7fb4d184e400] using SAR=1/1
[libx264 @ 0x7fb4d184e400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x7fb4d184e400] profile High, level 3.0
[libx264 @ 0x7fb4d184e400] 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=3 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=25 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 '/Users/Luca/Downloads/1.mp4':
Metadata:
encoder : Lavf56.33.101
Stream #0:0: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
Metadata:
encoder : Lavc56.40.100 libvo_aacenc
Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.40.100 libvo_aacenc
Stream #0:2: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
encoder : Lavc56.40.100 libx264
Output #1, mp4, to '/Users/Luca/Downloads/2.mp4':
Metadata:
encoder : Lavf56.33.101
Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
encoder : Lavc56.40.100 libx264
Stream mapping:
Stream #0:0 (hevc) -> split
Stream #0:1 (aac) -> asplit
concat:out:a0 -> Stream #0:0 (libvo_aacenc)
concat:out:a0 -> Stream #0:1 (libvo_aacenc)
concat:out:v0 -> Stream #0:2 (libx264)
concat:out:v0 -> Stream #1:0 (libx264)
Press [q] to stop, [?] for help
frame= 501 fps= 26 q=-1.0 Lq=-1.0 size= 1512kB time=00:00:19.97 bitrate= 620.1kbits/s
video:1385kB audio:392kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7fb4d183f400] frame I:3 Avg QP:19.30 size: 3879
[libx264 @ 0x7fb4d183f400] frame P:321 Avg QP:24.53 size: 3024
[libx264 @ 0x7fb4d183f400] frame B:177 Avg QP:26.20 size: 825
[libx264 @ 0x7fb4d183f400] consecutive B-frames: 40.7% 34.7% 5.4% 19.2%
[libx264 @ 0x7fb4d183f400] mb I I16..4: 24.8% 65.9% 9.3%
[libx264 @ 0x7fb4d183f400] mb P I16..4: 7.5% 10.5% 2.5% P16..4: 22.9% 7.4% 2.7% 0.0% 0.0% skip:46.5%
[libx264 @ 0x7fb4d183f400] mb B I16..4: 0.4% 0.6% 0.3% B16..8: 17.2% 2.9% 0.7% direct: 0.9% skip:77.1% L0:37.2% L1:51.8% BI:11.0%
[libx264 @ 0x7fb4d183f400] 8x8 transform intra:51.6% inter:69.2%
[libx264 @ 0x7fb4d183f400] coded y,uvDC,uvAC intra: 40.2% 24.2% 1.1% inter: 8.5% 4.0% 0.0%
[libx264 @ 0x7fb4d183f400] i16 v,h,dc,p: 9% 65% 1% 25%
[libx264 @ 0x7fb4d183f400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 29% 16% 4% 6% 6% 7% 6% 6%
[libx264 @ 0x7fb4d183f400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 34% 12% 3% 7% 6% 7% 4% 4%
[libx264 @ 0x7fb4d183f400] i8c dc,h,v,p: 63% 25% 11% 1%
[libx264 @ 0x7fb4d183f400] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fb4d183f400] ref P L0: 69.3% 11.5% 12.5% 6.7%
[libx264 @ 0x7fb4d183f400] ref B L0: 82.4% 16.7% 0.8%
[libx264 @ 0x7fb4d183f400] ref B L1: 98.6% 1.4%
[libx264 @ 0x7fb4d183f400] kb/s:450.44
[libx264 @ 0x7fb4d184e400] frame I:1 Avg QP:22.23 size: 6699
[libx264 @ 0x7fb4d184e400] frame P:78 Avg QP:24.94 size: 2998
[libx264 @ 0x7fb4d184e400] frame B:46 Avg QP:27.93 size: 1036
[libx264 @ 0x7fb4d184e400] consecutive B-frames: 32.0% 56.0% 2.4% 9.6%
[libx264 @ 0x7fb4d184e400] mb I I16..4: 53.5% 26.6% 19.9%
[libx264 @ 0x7fb4d184e400] mb P I16..4: 9.8% 7.6% 3.1% P16..4: 25.0% 8.0% 2.8% 0.0% 0.0% skip:43.8%
[libx264 @ 0x7fb4d184e400] mb B I16..4: 0.8% 0.5% 0.4% B16..8: 22.4% 3.5% 0.8% direct: 1.1% skip:70.4% L0:41.1% L1:48.0% BI:10.9%
[libx264 @ 0x7fb4d184e400] 8x8 transform intra:36.1% inter:66.1%
[libx264 @ 0x7fb4d184e400] coded y,uvDC,uvAC intra: 33.5% 24.6% 1.8% inter: 8.5% 3.8% 0.0%
[libx264 @ 0x7fb4d184e400] i16 v,h,dc,p: 4% 82% 1% 13%
[libx264 @ 0x7fb4d184e400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 40% 18% 3% 4% 4% 7% 3% 5%
[libx264 @ 0x7fb4d184e400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 40% 13% 3% 5% 5% 6% 3% 4%
[libx264 @ 0x7fb4d184e400] i8c dc,h,v,p: 54% 36% 8% 2%
[libx264 @ 0x7fb4d184e400] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fb4d184e400] ref P L0: 60.6% 10.5% 17.5% 11.4%
[libx264 @ 0x7fb4d184e400] ref B L0: 77.6% 22.0% 0.4%
[libx264 @ 0x7fb4d184e400] ref B L1: 99.1% 0.9%
[libx264 @ 0x7fb4d184e400] kb/s:461.15