
Recherche avancée
Autres articles (56)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (3511)
-
Audio out of sync, direct capture device stream (Windows 10)
3 mai 2020, par user3459555Using ffplay, the video stays in sync using this command :



ffplay -f dshow -rtbufsize 702000k video="Cam Link"
ffplay version git-2020-05-01-39fb1e9 Copyright (c) 2003-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 43.100 / 56. 43.100
 libavcodec 58. 82.100 / 58. 82.100
 libavformat 58. 42.101 / 58. 42.101
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 80.100 / 7. 80.100
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
Input #0, dshow, from 'video=Cam Link':vq= 0KB sq= 0B f=0/0
 Duration: N/A, start: 141954.961000, bitrate: N/A
 Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 59.94 fps, 59.94 tbr, 10000k tbn, 10000k tbc
142992.53 M-V: -0.001 fd= 3 aq= 0KB vq= 0KB sq= 0B f=0/0




Every controller button press stays in sync.



The audio however :



ffplay -f dshow audio="Digital Audio Interface (Cam Link)" -tune zerolatency
ffplay version git-2020-05-01-39fb1e9 Copyright (c) 2003-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 43.100 / 56. 43.100
 libavcodec 58. 82.100 / 58. 82.100
 libavformat 58. 42.101 / 58. 42.101
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 80.100 / 7. 80.100
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
Input #0, dshow, from 'audio=Digital Audio Interface (Cam Link)':
 Duration: N/A, start: 143092.007000, bitrate: 1411 kb/s
 Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
143103.21 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0




Is always behined by about a full second.



I'm not trying to record this, just trying to directly play from the Elgato Cam Link 1:1 output to my computer screen. When this is played in the Elgato Game Capture software, the video and audio are 1:1, no issues. So I know it's not the console or the capture device.


-
FFMPEG failing to convert to ogv [closed]
25 juillet 2012, par Todd RI have several videos I'm trying to convert to mp4, swf and ogv. I've got the mp4 and swf's working, but ogv is failing and I'm not sure why. I understand all the arguments you can pass to ffmpeg, but feel like getting the correct ones is a huge guessing game. Any suggestions on what I can change to get this to work would be much appreciated.
Here's the command I'm using :
ffmpeg -i /private/var/tmp/phpU5KPR7 -y -s 330X240 -acodec libvorbis -vcodec libtheora outputpath/Videos/1.ogv 2>&1
And here are the results :
2012-07-24T19:05:11-07:00 INFO (6): Creating ogv for 1 returned 1:
2012-07-24T19:05:11-07:00 INFO (6): Array
(
[0] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
[1] => built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
[2] => configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
[3] => libavutil 51. 9. 1 / 51. 9. 1
[4] => libavcodec 53. 7. 0 / 53. 7. 0
[5] => libavformat 53. 4. 0 / 53. 4. 0
[6] => libavdevice 53. 1. 1 / 53. 1. 1
[7] => libavfilter 2. 23. 0 / 2. 23. 0
[8] => libswscale 2. 0. 0 / 2. 0. 0
[9] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/tmp/phpU5KPR7':
[10] => Metadata:
[11] => major_brand : 3gp4
[12] => minor_version : 768
[13] => compatible_brands: 3gp43gp6
[14] => Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
[15] => Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
[16] => Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
[17] => WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
[18] => Incompatible sample format 'flt' for codec 'libfaac', auto-selecting format 's16'
[19] => [buffer @ 0x101001480] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[20] => [scale @ 0x101002560] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
[21] => Output #0, mp4, to 'outputpath/Videos/1.mp4':
[22] => Metadata:
[23] => major_brand : 3gp4
[24] => minor_version : 768
[25] => compatible_brands: 3gp43gp6
[26] => encoder : Lavf53.4.0
[27] => Stream #0.0(eng): Video: mpeg4, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 300 kb/s, 20 tbn, 20 tbc
[28] => Stream #0.1(eng): Audio: libfaac, 44100 Hz, 1 channels, s16, 0 kb/s
[29] => Stream mapping:
[30] => Stream #0.1 -> #0.0
[31] => Stream #0.0 -> #0.1
[32] => Press [q] to stop, [?] for help
[33] => Warning, using s16 intermediate sample format for resampling
[34] => frame= 62 fps= 0 q=6.4 Lsize= 253kB time=00:00:03.08 bitrate= 670.6kbits/s dup=18 drop=0
[35] => video:238kB audio:12kB global headers:0kB muxing overhead 1.096923%
[36] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
[37] => built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
[38] => configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
[39] => libavutil 51. 9. 1 / 51. 9. 1
[40] => libavcodec 53. 7. 0 / 53. 7. 0
[41] => libavformat 53. 4. 0 / 53. 4. 0
[42] => libavdevice 53. 1. 1 / 53. 1. 1
[43] => libavfilter 2. 23. 0 / 2. 23. 0
[44] => libswscale 2. 0. 0 / 2. 0. 0
[45] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/tmp/phpU5KPR7':
[46] => Metadata:
[47] => major_brand : 3gp4
[48] => minor_version : 768
[49] => compatible_brands: 3gp43gp6
[50] => Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
[51] => Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
[52] => Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
[53] => Incompatible sample format 'flt' for codec 'libvorbis', auto-selecting format 's16'
[54] => [buffer @ 0x1010021a0] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[55] => [scale @ 0x101002520] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
[56] => [libvorbis @ 0x101801e00] oggvorbis_encode_init: init_encoder failed
[57] => Output #0, ogg, to 'outputpath/Videos/1.ogv':
[58] => Stream #0.0(eng): Video: libtheora, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 200 kb/s, 90k tbn, 15 tbc
[59] => Stream #0.1(eng): Audio: libvorbis, 8000 Hz, 1 channels, s16, 64 kb/s
[60] => Stream mapping:
[61] => Stream #0.1 -> #0.0
[62] => Stream #0.0 -> #0.1
[63] => Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
) -
FFMPEG:Merging Audio(.mp3) and single image convert them into a Video
5 juin 2013, par Nitish SinglaI want to merge IMAGE + AUDIO and convert them into video using FFMPEG library,i compiled the library successfully,and got libfmpeg.so.but getting problem to execute the ffmpeg command through java code.This is command which i am using...
"ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4"
if i execute this ffmpeg command through CMD,my video.mp4 file is successfully created,but if exceute same command through my Activity,it doesnot create any file.MY CODE IS :
public class Mpeg extends Activity
static {
System.loadLibrary("ffmpeg");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_mpeg);File mf = Environment.getExternalStorageDirectory() ;
String livestream = mf.getAbsoluteFile()+"smile.png";
String folderpth = mf.getAbsoluteFile()+"RABBA.MP3";
//String output="/home/saicomputer/game.mp4";
String output = new File(Environment.getExternalStorageDirectory(), "video.mp4").getAbsolutePath();
Log.i("Test", "Let's set output to " + output);
String cmd="ffmpeg -i "+ livestream +" -i "+ folderpth +" -acodec copy "+ output;
Log.e("chck plzzzzz", "after "+ cmd);
//String jaiho="ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4";
try{
Process p = Runtime.getRuntime().exec(cmd);
}
catch(Exception e)
{
System.out.println("exception"+e);
}enter code here
CONSOLE OUTPUT-
06-05 17:58:11.466: E/image(1189): imageeeeeeeee /mnt/sdcard/smile.png
06-05 17:58:11.466: E/Test(1189): songggggggggg /mnt/sdcard/RABBA.MP3
06-05 17:58:11.476: E/Test(1189): outputttttt /mnt/sdcard/video.mp4
06-05 17:58:11.476: E/chck plzzzzz(1189): after ffmpeg -i /mnt/sdcard/smile.png -i /mnt/sdcard/RABBA.MP3 -acodec copy /mnt/sdcard/video.mp4
enter code here
06-05 17:58:10.686: D/dalvikvm(1189): Trying to load lib /data/data/com.example.myfmpeg /lib/libffmpeg.so 0x412a5cf0
06-05 17:58:10.756: I/dalvikvm(1189): threadid=3: reacting to signal 3
06-05 17:58:10.955: D/dalvikvm(1189): Added shared lib /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0
06-05 17:58:10.955: D/dalvikvm(1189): No JNI_OnLoad found in /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0, skipping init
06-05 17:58:11.024: I/dalvikvm(1189): Wrote stack traces to '/data/anr/traces.txt'
06-05 17:58:11.215: I/dalvikvm(1189): threadid=3: reacting to signal 3
06-05 17:58:11.326: I/dalvikvm(1189): Wrote stack traces to '/data/anr/traces.txt'
06-05 17:58:11.466: E/image(1189): imageeeeeeeee /mnt/sdcard/smile.png
06-05 17:58:11.466: E/Test(1189): songggggggggg /mnt/sdcard/RABBA.MP3
06-05 17:58:11.476: E/Test(1189): outputttttt /mnt/sdcard/video.mp4
06-05 17:58:11.476: E/chck plzzzzz(1189): after ffmpeg -i /mnt/sdcard/smile.png -i /mnt/sdcard/RABBA.MP3 -acodec copy /mnt/sdcard/video.mp4
0 6-05 17:58:11.896: E/AndroidRuntime(1189): FATAL EXCEPTION: main
06-05 17:58:11.896: E/AndroidRuntime(1189): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfmpeg/com.example.myfmpeg.Mpeg}: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null
06-05 17:58:11.896: E/AndroidRuntime(1189): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
06-05 17:58:11.896: E/AndroidRuntime(1189): at
06-05 17:58:11.896: E/AndroidRuntime(1189): Caused by: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null