
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (94)
-
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 ;
-
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
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
Sur d’autres sites (17913)
-
Cannot play this video when converting format to .mp4
22 décembre 2015, par user3653474I am converting video to .mp4 format, but when i convert video using ffmpeg using the following command :
exec('D:\wamp\bin\ffmpeg.exe -y -i D:/wamp/www/upload_google_drive/output.flv -c:v libx264 -crf 19 -preset slow -c:a aac -strict experimental -b:a 192k -ac 2 D:/wamp/www/upload_google_drive/w3.mp4 2>&1',$output);
in some of the devices it does not run. The message which appears is
Cannot play this video.
Please help to sort out my issue.
Output :
Array ( [0] => ffmpeg version N-77137-gff6dd58 Copyright (c) 2000-2015 the FFmpeg developers [1] => built with gcc 5.2.0 (GCC)
[2] => configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
[3] => libavutil 55. 10.100 / 55. 10.100
[4] => libavcodec 57. 17.100 / 57. 17.100
[5] => libavformat 57. 19.100 / 57. 19.100
[6] => libavdevice 57. 0.100 / 57. 0.100
[7] => libavfilter 6. 20.100 / 6. 20.100
[8] => libswscale 4. 0.100 / 4. 0.100
[9] => libswresample 2. 0.101 / 2. 0.101
[10] => libpostproc 54. 0.100 / 54. 0.100
[11] => Input #0, flv, from 'D:/wamp/www/upload_google_drive/output.flv':
[12] => Metadata:
[13] => major_brand : mp42
[14] => minor_version : 1
[15] => compatible_brands: mp42avc1
[16] => encoder : Lavf57.19.100
[17] => Duration: 00:01:00.14, start: 0.000000, bitrate: 307 kb/s
[18] => Stream #0:0: Video: flv1, yuv420p, 480x320, 200 kb/s, 24 fps, 24 tbr, 1k tbn, 1k tbc
[19] => Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 62 kb/s
[20] => [libx264 @ 0000000001c31860] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[21] => [libx264 @ 0000000001c31860] profile Constrained Baseline, level 3.0 [22] => [libx264 @ 0000000001c31860] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 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=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[23] => Output #0, mp4, to 'D:/wamp/www/upload_google_drive/w5.mp4':
[24] => Metadata:
[25] => major_brand : mp42
[26] => minor_version : 1
[27] => compatible_brands: mp42avc1
[28] => encoder : Lavf57.19.100
[29] => Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x320, q=-1--1, 24 fps, 12288 tbn, 24 tbc
[30] => Metadata:
[31] => encoder : Lavc57.17.100 libx264
[32] => Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 192 kb/s
[33] => Metadata:
[34] => encoder : Lavc57.17.100 aac
[35] => Stream mapping:
[36] => Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
[37] => Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[38] => Press [q] to stop, [?] for help
[39] => frame= 55 fps=0.0 q=23.0 size= 27kB time=00:00:02.22 bitrate= 98.2kbits/s frame= 96 fps= 93 q=24.0 size= 137kB time=00:00:03.92 bitrate= 285.4kbits/s frame= 161 fps=105 q=24.0 size= 317kB time=00:00:06.64 bitrate= 391.6kbits/s frame= 220 fps=108 q=24.0 size= 541kB time=00:00:09.07 bitrate= 487.8kbits/s frame= 274 fps=108 q=24.0 size= 773kB time=00:00:11.35 bitrate= 557.8kbits/s frame= 326 fps=107 q=24.0 size= 1109kB time=00:00:13.53 bitrate= 671.4kbits/s Past duration 0.607994 too large
[40] => Last message repeated 1 times
[41] => Past duration 0.615990 too large
[42] => Past duration 0.607994 too large
[43] => frame= 382 fps=108 q=24.0 size= 1439kB time=00:00:15.81 bitrate= 745.6kbits/s Past duration 0.615990 too large
[44] => Past duration 0.607994 too large
[45] => Past duration 0.623985 too large
[46] => Past duration 0.615990 too large
[47] => Past duration 0.607994 too large
[48] => Past duration 0.623985 too large
[49] => Past duration 0.615990 too large
[50] => Past duration 0.631996 too large
[51] => Past duration 0.623985 too large
[52] => Past duration 0.615990 too large
[53] => Past duration 0.631996 too large
[54] => Past duration 0.623985 too large
[55] => Past duration 0.639992 too large
[56] => Past duration 0.631996 too large
[57] => Past duration 0.623985 too large
[58] => Past duration 0.639992 too large
[59] => Past duration 0.631996 too large
[60] => Past duration 0.647987 too large
[61] => Past duration 0.639992 too large
[62] => Past duration 0.631996 too large
[63] => Past duration 0.647987 too large
[64] => Past duration 0.639992 too large
[65] => Past duration 0.655998 too large
[66] => Past duration 0.647987 too large
[67] => Past duration 0.639992 too large
[68] => Past duration 0.655998 too large
[69] => Past duration 0.647987 too large
[70] => Past duration 0.663994 too large
[71] => Past duration 0.655998 too large
[72] => Past duration 0.647987 too large
[73] => Past duration 0.663994 too large
[74] => Past duration 0.655998 too large
[75] => Past duration 0.671989 too large
[76] => Past duration 0.663994 too large
[77] => Past duration 0.655998 too large
[78] => Past duration 0.671989 too large
[79] => Past duration 0.663994 too large
[80] => Past duration 0.679985 too large
[81] => Past duration 0.671989 too large
[82] => Past duration 0.663994 too large
[83] => Past duration 0.679985 too large
[84] => Past duration 0.671989 too large
[85] => Past duration 0.687996 too large
[86] => Past duration 0.679985 too large
[87] => Past duration 0.671989 too large
[88] => Past duration 0.687996 too large
[89] => Past duration 0.679985 too large
[90] => Past duration 0.695992 too large
[91] => Past duration 0.687996 too large
[92] => Past duration 0.679985 too large
[93] => Past duration 0.695992 too large
[94] => Past duration 0.687996 too large
[95] => Past duration 0.703987 too large
[96] => Past duration 0.695992 too large
[97] => frame= 436 fps=108 q=24.0 size= 1732kB time=00:00:18.08 bitrate= 784.5kbits/s Past duration 0.687996 too large
[98] => Past duration 0.703987 too large
[99] => Past duration 0.695992 too large
[100] => Past duration 0.711998 too large
[101] => Past duration 0.703987 too large
[102] => Past duration 0.695992 too large
[103] => Past duration 0.711998 too large
[104] => Past duration 0.703987 too large
[105] => Past duration 0.719994 too large
[106] => Past duration 0.711998 too large
[107] => Past duration 0.703987 too large
[108] => Past duration 0.719994 too large
[109] => Past duration 0.711998 too large
[110] => Past duration 0.727989 too large
[111] => Past duration 0.719994 too large
[112] => Past duration 0.711998 too large
[113] => Past duration 0.727989 too large
[114] => Past duration 0.719994 too large
[115] => Past duration 0.735985 too large
[116] => Past duration 0.727989 too large
[117] => Past duration 0.719994 too large
[118] => Past duration 0.735985 too large
[119] => Past duration 0.727989 too large
[120] => Past duration 0.743996 too large
[121] => Past duration 0.735985 too large
[122] => Past duration 0.727989 too large
[123] => Past duration 0.743996 too large
[124] => Past duration 0.735985 too large
[125] => Past duration 0.751991 too large
[126] => Past duration 0.743996 too large
[127] => Past duration 0.735985 too large
[128] => Past duration 0.751991 too large
[129] => Past duration 0.743996 too large
[130] => Past duration 0.759987 too large
[131] => Past duration 0.751991 too large
[132] => Past duration 0.743996 too large
[133] => Past duration 0.759987 too large
[134] => Past duration 0.751991 too large
[135] => Past duration 0.767998 too large
[136] => Past duration 0.759987 too large
[137] => Past duration 0.751991 too large
[138] => Past duration 0.767998 too large
[139] => Past duration 0.759987 too large
[140] => Past duration 0.775993 too large
[141] => Past duration 0.767998 too large
[142] => Past duration 0.759987 too large
[143] => Past duration 0.775993 too large
[144] => Past duration 0.767998 too large
[145] => Past duration 0.783989 too large
[146] => Past duration 0.775993 too large
[147] => Past duration 0.767998 too large
[148] => Past duration 0.783989 too large
[149] => Past duration 0.775993 too large
[150] => Past duration 0.792000 too large
[151] => Past duration 0.783989 too large
[152] => Past duration 0.775993 too large
[153] => Past duration 0.792000 too large
[154] => Past duration 0.783989 too large
[155] => Past duration 0.799995 too large
[156] => Past duration 0.792000 too large
[157] => Past duration 0.783989 too large
[158] => Past duration 0.799995 too large
[159] => Past duration 0.792000 too large
[160] => Past duration 0.807991 too large
[161] => Past duration 0.799995 too large
[162] => Past duration 0.792000 too large
[163] => Past duration 0.807991 too large
[164] => Past duration 0.799995 too large
[165] => Past duration 0.815987 too large
[166] => Past duration 0.807991 too large
[167] => Past duration 0.799995 too large
[168] => Past duration 0.815987 too large
[169] => frame= 508 fps=112 q=24.0 size= 1953kB time=00:00:21.10 bitrate= 758.1kbits/s Past duration 0.807991 too large
[170] => Past duration 0.823997 too large
[171] => Past duration 0.815987 too large
[172] => Past duration 0.807991 too large
[173] => Past duration 0.823997 too large
[174] => Past duration 0.815987 too large
[175] => Past duration 0.831993 too large
[176] => Past duration 0.823997 too large
[177] => Past duration 0.815987 too large
[178] => Past duration 0.831993 too large
[179] => Past duration 0.823997 too large
[180] => Past duration 0.839989 too large
[181] => Past duration 0.831993 too large
[182] => Past duration 0.823997 too large
[183] => Past duration 0.839989 too large
[184] => Past duration 0.831993 too large
[185] => Past duration 0.848000 too large
[186] => Past duration 0.839989 too large
[187] => Past duration 0.831993 too large
[188] => Past duration 0.848000 too large
[189] => Past duration 0.839989 too large
[190] => Past duration 0.855995 too large
[191] => Past duration 0.848000 too large
[192] => Past duration 0.839989 too large
[193] => Past duration 0.855995 too large
[194] => Past duration 0.848000 too large
[195] => Past duration 0.863991 too large
[196] => Past duration 0.855995 too large
[197] => Past duration 0.848000 too large
[198] => Past duration 0.863991 too large
[199] => Past duration 0.855995 too large
[200] => Past duration 0.871986 too large
[201] => Past duration 0.863991 too large
[202] => Past duration 0.855995 too large
[203] => Past duration 0.871986 too large
[204] => Past duration 0.863991 too large
[205] => Past duration 0.879997 too large
[206] => Past duration 0.871986 too large
[207] => Past duration 0.863991 too large
[208] => Past duration 0.879997 too large
[209] => Past duration 0.871986 too large
[210] => Past duration 0.887993 too large
[211] => Past duration 0.879997 too large
[212] => Past duration 0.871986 too large
[213] => Past duration 0.887993 too large
[214] => Past duration 0.879997 too large
[215] => Past duration 0.895988 too large
[216] => Past duration 0.887993 too large
[217] => Past duration 0.879997 too large
[218] => Past duration 0.895988 too large
[219] => Past duration 0.887993 too large
[220] => Past duration 0.903999 too large
[221] => Past duration 0.895988 too large
[222] => Past duration 0.887993 too large
[223] => Past duration 0.903999 too large
[224] => Past duration 0.895988 too large
[225] => Past duration 0.911995 too large
[226] => Past duration 0.903999 too large
[227] => Past duration 0.895988 too large
[228] => Past duration 0.911995 too large
[229] => Past duration 0.903999 too large
[230] => Past duration 0.919991 too large
[231] => Past duration 0.911995 too large
[232] => frame= 571 fps=113 q=24.0 size= 2150kB time=00:00:23.68 bitrate= 743.7kbits/s Past duration 0.903999 too large
[233] => Past duration 0.919991 too large
[234] => Past duration 0.911995 too large
[235] => Past duration 0.927986 too large
[236] => Past duration 0.919991 too large
[237] => Past duration 0.911995 too large
[238] => Past duration 0.927986 too large
[239] => Past duration 0.919991 too large
[240] => Past duration 0.935997 too large
[241] => Past duration 0.927986 too large
[242] => Past duration 0.919991 too large
[243] => Past duration 0.935997 too large
[244] => Past duration 0.927986 too large
[245] => Past duration 0.943993 too large
[246] => Past duration 0.935997 too large
[247] => Past duration 0.927986 too large
[248] => Past duration 0.943993 too large
[249] => Past duration 0.935997 too large
[250] => Past duration 0.951988 too large
[251] => Past duration 0.943993 too large
[252] => Past duration 0.935997 too large
[253] => Past duration 0.951988 too large
[254] => Past duration 0.943993 too large
[255] => Past duration 0.959999 too large
[256] => Past duration 0.951988 too large
[257] => Past duration 0.943993 too large
[258] => Past duration 0.959999 too large
[259] => Past duration 0.951988 too large
[260] => Past duration 0.967995 too large
[261] => Past duration 0.959999 too large
[262] => Past duration 0.951988 too large
[263] => Past duration 0.967995 too large
[264] => Past duration 0.959999 too large
[265] => Past duration 0.975990 too large
[266] => Past duration 0.967995 too large
[267] => Past duration 0.959999 too large
[268] => Past duration 0.975990 too large
[269] => Past duration 0.967995 too large
[270] => Past duration 0.983986 too large
[271] => Past duration 0.975990 too large
[272] => Past duration 0.967995 too large
[273] => Past duration 0.983986 too large
[274] => Past duration 0.975990 too large
[275] => Past duration 0.991997 too large
[276] => Past duration 0.983986 too large
[277] => Past duration 0.975990 too large
[278] => Past duration 0.991997 too large
[279] => Past duration 0.983986 too large
[280] => Past duration 0.999992 too large
[281] => Past duration 0.991997 too large
[282] => Past duration 0.983986 too large
[283] => frame= 622 fps=112 q=24.0 size= 2328kB time=00:00:25.82 bitrate= 738.7kbits/s Past duration 0.999992 too large
[284] => Past duration 0.991997 too large
[285] => Past duration 0.999992 too large
[286] => Past duration 0.991997 too large
[287] => Past duration 0.999992 too large
[288] => Last message repeated 1 times
[289] => frame= 672 fps=111 q=24.0 size= 2585kB time=00:00:27.91 bitrate= 758.8kbits/s frame= 719 fps=110 q=24.0 size= 2829kB time=00:00:29.86 bitrate= 776.0kbits/s frame= 765 fps=109 q=24.0 size= 3063kB time=00:00:31.76 bitrate= 789.8kbits/s frame= 812 fps=108 q=24.0 size= 3282kB time=00:00:33.71 bitrate= 797.5kbits/s frame= 853 fps=106 q=24.0 size= 3472kB time=00:00:35.45 bitrate= 802.2kbits/s frame= 897 fps=105 q=24.0 size= 3713kB time=00:00:37.26 bitrate= 816.1kbits/s frame= 943 fps=104 q=24.0 size= 3960kB time=00:00:39.17 bitrate= 828.0kbits/s frame= 987 fps=103 q=24.0 size= 4205kB time=00:00:41.00 bitrate= 840.1kbits/s frame= 1033 fps=102 q=24.0 size= 4442kB time=00:00:42.91 bitrate= 848.1kbits/s frame= 1074 fps=101 q=24.0 size= 4627kB time=00:00:44.60 bitrate= 849.7kbits/s frame= 1123 fps=101 q=24.0 size= 4861kB time=00:00:46.67 bitrate= 853.3kbits/s frame= 1168 fps=101 q=24.0 size= 5079kB time=00:00:48.52 bitrate= 857.3kbits/s frame= 1216 fps=100 q=24.0 size= 5312kB time=00:00:50.52 bitrate= 861.3kbits/s frame= 1254 fps= 99 q=24.0 size= 5519kB time=00:00:52.10 bitrate= 867.7kbits/s frame= 1302 fps= 99 q=24.0 size= 5751kB time=00:00:54.12 bitrate= 870.5kbits/s frame= 1358 fps= 99 q=24.0 size= 6002kB time=00:00:56.47 bitrate= 870.8kbits/s dup=0 drop=1 frame= 1427 fps=101 q=24.0 size= 6243kB time=00:00:59.35 bitrate= 861.8kbits/s dup=0 drop=1 frame= 1444 fps=100 q=-1.0 Lsize= 6451kB time=00:01:00.16 bitrate= 878.3kbits/s dup=0 drop=1
[290] => video:5008kB audio:1407kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.550038%
[291] => [libx264 @ 0000000001c31860] frame I:10 Avg QP:13.67 size: 25967
[292] => [libx264 @ 0000000001c31860] frame P:1434 Avg QP:18.73 size: 3395
[293] => [libx264 @ 0000000001c31860] mb I I16..4: 36.0% 0.0% 64.0%
[294] => [libx264 @ 0000000001c31860] mb P I16..4: 3.6% 0.0% 4.0% P16..4: 21.9% 5.5% 4.2% 0.0% 0.0% skip:60.8%
[295] => [libx264 @ 0000000001c31860] coded y,uvDC,uvAC intra: 51.3% 62.1% 11.5% inter: 11.4% 14.4% 2.1%
[296] => [libx264 @ 0000000001c31860] i16 v,h,dc,p: 52% 30% 16% 2%
[297] => [libx264 @ 0000000001c31860] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 25% 17% 3% 4% 4% 3% 4% 5%
[298] => [libx264 @ 0000000001c31860] i8c dc,h,v,p: 39% 32% 25% 4%
[299] => [libx264 @ 0000000001c31860] ref P L0: 82.2% 8.5% 4.8% 2.2% 2.3%
[300] => [libx264 @ 0000000001c31860] kb/s:681.85 [301] => [aac @ 0000000001c322a0] Qavg: 14325.964 ) -
video after ffmpeg command conversion is not playing on windows
10 décembre 2015, par Hemant KumarI am stuck at a very weird and complex problem, hoping if anyone know the solution :
I am converting user uploaded video using ffmpeg command on server and it was working fine as well. Today I found that if a video is recorded by a webcam from windows, is playing well in linux as well as on windows where as if user is creating a video by webcam from linux, is playing only on linux (any browser). On window it’s screen either show loading icon or black screen while audio is working fine.
I am using following codec :
['-strict', '-2', '-preset slow', '-maxrate 500k', '-bufsize 1000k', vfOption, '-threads 0', '-ab 64k', '-movflags faststart','-vf scale=-1:480', '-metadata:s:v:0 rotate=0', '-vcodec libx264']
I work on linux and using html5 player on my website. I am converting video in mp4 format.
Input :
ffmpeg -i /<server path="path">/stream_FE2AF05B-E630-1F7B-390B-37325B31B362.flv -strict -2 -vcodec libx264 -preset slow -vb 500k -maxrate 500k -bufsize 1000k -vf 'scale=-1:480 ' -threads 0 -ab 64k -s 640x480 -movflags faststart -metadata:s:v:0 rotate=0 /<server path="path">/testing.mp4
</server></server>Output :
ffmpeg version 2.2.5 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 1 2014 09:24:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libtheora --enable-libx264 --enable-libvpx --enable-libmp3lame
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, flv, from '/<server path="path">/stream_FE2AF05B-E630-1F7B-390B-37325B31B362.flv':
Metadata:
canSeekToEnd : true
Duration: 00:00:04.04, start: 0.000000, bitrate: 636 kb/s
Stream #0:0: Video: flv1, yuv420p, 640x480, 1k tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: nellymoser, 44100 Hz, mono, flt
[libx264 @ 0x23c5340] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x23c5340] profile High, level 5.2
[libx264 @ 0x23c5340] 264 - core 142 r2453 ea0ca51 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=cbr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/<server path="path">/testing.mp4':
Metadata:
canSeekToEnd : true
encoder : Lavf55.33.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480, q=-1--1, 500 kb/s, 16k tbn, 1k tbc
Metadata:
rotate : 0
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flv -> libx264)
Stream #0:1 -> #0:1 (nellymoser -> aac)
Press [q] to stop, [?] for help
[mp4 @ 0x23c0200] Starting second pass: moving the moov atom to the beginning of the file2 drop=0
frame= 4020 fps=706 q=-1.0 Lsize= 355kB time=00:00:04.08 bitrate= 712.0kbits/s dup=3931 drop=0
video:271kB audio:32kB subtitle:0 data:0 global headers:0kB muxing overhead 16.957901%
[libx264 @ 0x23c5340] frame I:17 Avg QP:27.55 size: 7119
[libx264 @ 0x23c5340] frame P:1013 Avg QP:25.37 size: 88
[libx264 @ 0x23c5340] frame B:2990 Avg QP:27.32 size: 22
[libx264 @ 0x23c5340] consecutive B-frames: 0.8% 0.0% 0.1% 99.1%
[libx264 @ 0x23c5340] mb I I16..4: 42.0% 55.1% 2.9%
[libx264 @ 0x23c5340] mb P I16..4: 0.3% 0.4% 0.0% P16..4: 0.6% 0.1% 0.0% 0.0% 0.0% skip:98.6%
[libx264 @ 0x23c5340] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.2% 0.0% 0.0% direct: 0.0% skip:99.8% L0:35.7% L1:64.3% BI: 0.0%
[libx264 @ 0x23c5340] 8x8 transform intra:55.0% inter:84.5%
[libx264 @ 0x23c5340] direct mvs spatial:87.6% temporal:12.4%
[libx264 @ 0x23c5340] coded y,uvDC,uvAC intra: 33.4% 51.9% 0.7% inter: 0.0% 0.1% 0.0%
[libx264 @ 0x23c5340] i16 v,h,dc,p: 26% 54% 15% 5%
[libx264 @ 0x23c5340] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 16% 53% 3% 1% 2% 2% 3% 3%
[libx264 @ 0x23c5340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 13% 14% 5% 7% 7% 11% 8%
[libx264 @ 0x23c5340] i8c dc,h,v,p: 43% 31% 23% 3%
[libx264 @ 0x23c5340] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x23c5340] ref P L0: 80.9% 9.0% 6.9% 2.6% 0.7%
[libx264 @ 0x23c5340] ref B L0: 89.4% 8.6% 1.8% 0.2%
[libx264 @ 0x23c5340] ref B L1: 91.0% 9.0%
[libx264 @ 0x23c5340] kb/s:551.72
</server></server>
Outout from file recorded on window :
Input :
ffmpeg -i /<server path="path">/stream_window.flv -strict -2 -vcodec libx264 -preset slow -vb 500k -maxrate 500k -bufsize 1000k -vf 'scale=-1:480 ' -threads 0 -ab 64k -s 640x480 -movflags faststart -metadata:s:v:0 rotate=0 /<server path="path">/testing_1.mp4
</server></server>Output :
ffmpeg version 2.2.5 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 1 2014 09:24:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libtheora --enable-libx264 --enable-libvpx --enable-libmp3lame
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, flv, from '/<server path="path">/stream_window.flv':
Metadata:
canSeekToEnd : true
Duration: 00:00:09.22, start: 0.000000, bitrate: 420 kb/s
Stream #0:0: Video: flv1, yuv420p, 640x480, 1k tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: nellymoser, 44100 Hz, mono, flt
[libx264 @ 0x1e09fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x1e09fc0] profile High, level 5.2
[libx264 @ 0x1e09fc0] 264 - core 142 r2453 ea0ca51 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=cbr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/<server path="path">/testing_1.mp4':
Metadata:
canSeekToEnd : true
encoder : Lavf55.33.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480, q=-1--1, 500 kb/s, 16k tbn, 1k tbc
Metadata:
rotate : 0
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flv -> libx264)
Stream #0:1 -> #0:1 (nellymoser -> aac)
Press [q] to stop, [?] for help
[mp4 @ 0x1e06220] Starting second pass: moving the moov atom to the beginning of the file7 drop=0
frame= 8936 fps=703 q=-1.0 Lsize= 771kB time=00:00:09.26 bitrate= 681.5kbits/s dup=8907 drop=0
video:585kB audio:73kB subtitle:0 data:0 global headers:0kB muxing overhead 17.106213%
[libx264 @ 0x1e09fc0] frame I:40 Avg QP:29.54 size: 7449
[libx264 @ 0x1e09fc0] frame P:2248 Avg QP:30.88 size: 69
[libx264 @ 0x1e09fc0] frame B:6648 Avg QP:39.17 size: 22
[libx264 @ 0x1e09fc0] consecutive B-frames: 0.8% 0.0% 0.1% 99.1%
[libx264 @ 0x1e09fc0] mb I I16..4: 36.8% 60.7% 2.5%
[libx264 @ 0x1e09fc0] mb P I16..4: 0.2% 0.3% 0.0% P16..4: 0.4% 0.0% 0.0% 0.0% 0.0% skip:98.9%
[libx264 @ 0x1e09fc0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.2% 0.0% 0.0% direct: 0.0% skip:99.8% L0:34.2% L1:65.8% BI: 0.0%
[libx264 @ 0x1e09fc0] 8x8 transform intra:60.6% inter:87.6%
[libx264 @ 0x1e09fc0] direct mvs spatial:72.8% temporal:27.2%
[libx264 @ 0x1e09fc0] coded y,uvDC,uvAC intra: 36.3% 62.8% 4.7% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x1e09fc0] i16 v,h,dc,p: 33% 46% 15% 7%
[libx264 @ 0x1e09fc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 19% 46% 3% 1% 1% 1% 2% 4%
[libx264 @ 0x1e09fc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 17% 14% 9% 4% 4% 5% 5% 7%
[libx264 @ 0x1e09fc0] i8c dc,h,v,p: 42% 31% 23% 4%
[libx264 @ 0x1e09fc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1e09fc0] ref P L0: 82.6% 9.9% 5.2% 1.7% 0.5%
[libx264 @ 0x1e09fc0] ref B L0: 87.1% 11.0% 1.4% 0.4%
[libx264 @ 0x1e09fc0] ref B L1: 90.3% 9.7%
[libx264 @ 0x1e09fc0] kb/s:536.03
</server></server>
Can anyone figure what could be the problem ?
@LordNeckbeard : Please find the command and its output above. Thanks
-
Issue when combining 2 video files [after matching the specs]
6 décembre 2015, par RuneBasically I got a .mp4 and a .flv file which I want to concatenate (the .mp4 should be the intro).
So after having asked a previous question regarding this I went ahead and converted the intro video to an .flv with matching specifications of the second video.
First I got the specifications of the second (.flv) video using ffprobe. This was the output :
{
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_time_base": "1/50",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 646,
"height": 364,
"coded_width": 656,
"coded_height": 368,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "323:182",
"pix_fmt": "yuv420p",
"level": 30,
"chroma_location": "left",
"refs": 5,
"is_avc": "true",
"nal_length_size": "4",
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/1000",
"start_pts": 80,
"start_time": "0.080000",
"bit_rate": "400000",
"bits_per_raw_sample": "8",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 1,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "LC",
"codec_type": "audio",
"codec_time_base": "1/44100",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "44100",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 241,
"start_time": "0.241000",
"bit_rate": "96000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
}
],
"format": {
"filename": "vid2.flv",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "flv",
"format_long_name": "FLV (Flash Video)",
"start_time": "0.080000",
"duration": "371.920000",
"size": "23876671",
"bit_rate": "513587",
"probe_score": 100,
"tags": {
"audiosize": "4476626",
"canSeekToEnd": "true",
"datasize": "23876671",
"videosize": "19004263",
"hasAudio": "true",
"hasCuePoints": "false",
"hasKeyframes": "true",
"hasMetadata": "true",
"hasVideo": "true",
"lasttimestamp": "372",
"metadatacreator": "flvtool++ (Facebook, Motion project, dweatherford)",
"totalframes": "9298",
"encoder": "Lavf56.36.100"
}
}
}Here’s my command :
-i prefix.mp4 -b:v 400k -b:a 96k -r 25 -ar 44100 -acodec aac -vf scale=646:364 -strict -2 prefix.flv
.This produces the following output (as well as the video file) :
ffmpeg version N-76137-gb0bb1dc Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 7.100 / 57. 7.100
libavformat 57. 8.102 / 57. 8.102
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'prefix.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.8.102
Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, flv, to 'prefix.flv':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.8.102
Stream #0:0(und): Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 646x364 [SAR 2912:2907 DAR 16:9], q=2-31, 400 kb/s, 25 fps, 1k tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.7.100 flv
Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, 5.1, fltp, 96 kb/s (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc57.7.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> flv1 (flv))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 79 fps=0.0 q=10.7 size= 381kB time=00:00:03.43 bitrate= 908.7kbits/frame= 132 fps=0.0 q=10.1 Lsize= 548kB time=00:00:05.31 bitrate= 844.1kbits/s
video:479kB audio:62kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.161623%
[aac @ 0000021aa893eae0] Qavg: 177.292I then run the outputted video file and it runs just like the old one.
I then concatenate the ouputted intro file with my main video file using the following command (tmp.txt contains the 2 files) :
-f concat -i tmp.txt -c copy newvid.flv
This produces the following output :
ffmpeg version N-76137-gb0bb1dc Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 7.100 / 57. 7.100
libavformat 57. 8.102 / 57. 8.102
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, concat, from 'tmp.txt':
Duration: N/A, start: 0.000000, bitrate: 496 kb/s
Stream #0:0: Video: flv1, yuv420p, 646x364, 400 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: aac (LC), 44100 Hz, 5.1, fltp, 96 kb/s
[flv @ 00000257b5f0e180] Codec for stream 0 does not use global headers but container format requires global headers
[flv @ 00000257b5f0e180] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, flv, to 'newvid.flv':
Metadata:
encoder : Lavf57.8.102
Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 646x364, q=2-31, 400 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, 5.1, 96 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 00000257b56947e0] Packet mismatch 486539264 7424
[flv @ 00000257b56947e0] Auto-inserting h264_mp4toannexb bitstream filter
[flv @ 00000257b5f0e180] Non-monotonous DTS in output stream 0:0; previous: 5263, current: 5255; changing to 5263. This may result in incorrect timestamps in the output file.
frame= 6359 fps=0.0 q=-1.0 size= 15906kB time=00:04:14.30 bitrate= 512.4kbits/frame= 9428 fps=0.0 q=-1.0 Lsize= 23835kB time=00:06:17.05 bitrate= 517.8kbits/s
video:19016kB audio:4403kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.777447%When I try to run the final video (newvid.flv) it plays like this :
It starts off playing the intro just fine.
However, when the intro is finished the video freezes while the sound of the actual video continues for the entire duration of the video.Thus in conclusion what is lacking is the video of the second vid (the audio is fine).
I’m new at using ffmpeg but I’ve tried my best to solve this, which is why I’m asking for your help.
I’d certainly appreciate if someone could help me out.