
Recherche avancée
Autres articles (80)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6046)
-
ffmpeg audio video synchronisation mux
19 juillet 2013, par Rahul KumarI am trying to mux audio and video but the resultant is not what expected. The video is not shown in the output.
rahul@hp : $ ffmpeg -i /Desktop/a.m4a -i /Desktop/a.mp4 -acodec copy -vcodec copy /Desktop/output.mkv ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Apr 2 2013 17:00:59 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rahul/Desktop/a.m4a' : Metadata : major_brand : dash minor_version : 0 compatible_brands : iso6mp41 creation_time : 2013-05-17 06:34:22 Duration : 00:16:41.01, start : 500.506122, bitrate : 127 kb/s Stream #0.0(und) : Audio : aac, 44100 Hz, stereo, s16 Metadata : creation_time : 2013-05-17 06:34:22
Seems stream 0 codec frame rate differs from container frame rate : 47.95 (48000/1001) -> 23.97 (45000/1877)
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rahul/Desktop/a.mp4' :
Metadata :
major_brand : dash
minor_version : 0
compatible_brands : iso6avc1mp41
creation_time : 2013-05-17 06:34:22
Duration : 00:16:40.61, start : 500.316311, bitrate : 675 kb/s
Stream #1.0(und) : Video : h264 (Main), yuv420p, 1280x720, 23.97 tbr, 90k tbn, 47.95 tbc
Metadata :
creation_time : 2013-05-17 06:34:22
Output #0, matroska, to '/home/rahul/Desktop/output.mkv' :
Metadata :
major_brand : dash
minor_version : 0
compatible_brands : iso6mp41
creation_time : 2013-05-17 06:34:22
encoder : Lavf53.21.1
Stream #0.0(und) : Video : avc1 / 0x31637661, yuv420p, 1280x720, q=2-31, 1k tbn, 23.98 tbc
Metadata :
creation_time : 2013-05-17 06:34:22
Stream #0.1(und) : Audio : aac, 44100 Hz, stereo
Metadata :
creation_time : 2013-05-17 06:34:22
Stream mapping :
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Press ctrl-c to stop encoding
frame= 0 fps= 0 q=-1.0 Lsize= 15643kB time=500.51 bitrate= 256.0kbits/s
video:0kB audio:15493kB global headers:0kB muxing overhead 0.967810%
rahul@hp : $i tried using
-map 0:v:0
-map 1:v:0
-map 0:v:1
but all showed
Number of stream maps must match number of output streams
-
does ffmpeg not support rtsp push with udp ?
29 septembre 2017, par jimmyI’m trying to push a mp4 file through rtsp,and work ok using the cmd below :
ffmpeg -i 1.mp4 -vcodec copy -an -rtsp_transport tcp -f rtsp rtsp://192.168.164.40/test.sdp
But when I try rtsp with udp protocol,it’s not work,cmd like this :
ffmpeg -i 1.mp4 -vcodec copy -an -f rtsp rtsp://192.168.164.40/test.sdp
I tryed to add "-preset:v ultrafast -tune:v zerolatency",and it not worked,and I trace the package flow,and find that ffmpeg just TEARDOWN rtsp after 192.168.164.40 reply RECORD call.
Below is the output log :
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --enable-gpl --enable-nonfree --prefix=/home/share/_release --cc= --enable-nvenc --enable-cuda --enable-cuvid --enable-libnpp --enable-static --disable-shared --disable-debug --extra-cflags='-I/home/server/share/_release/include -I/usr/local/cuda/include' --extra-ldflags='-L/home/server/share/_release/lib -L/usr/local/cuda/lib64 -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-pthreads --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/server/share/media/1.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2017-02-08T02:33:57.000000Z
encoder : My MP4Box GUI 0.6.0.6 /my-mp4box-gui.zymichost.com>
Duration: 00:57:23.35, start: 0.000000, bitrate: 330 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 164 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
Metadata:
creation_time : 2015-12-23T15:11:53.000000Z
handler_name : 1.mp4
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2017-02-08T02:34:00.000000Z
handler_name : 1.mp4
Stream #0:2(und): Data: none (rtp / 0x20707472), 25 kb/s (default)
Metadata:
creation_time : 2017-02-08T02:34:03.000000Z
handler_name : GPAC ISO Hint Handler
Stream #0:3(und): Data: none (rtp / 0x20707472), 9 kb/s (default)
Metadata:
creation_time : 2017-02-08T02:34:07.000000Z
handler_name : GPAC ISO Hint Handler
Output #0, rtsp, to 'rtsp://192.168.164.40/test.sdp':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
encoder : Lavf57.71.100
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 164 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc (default)
Metadata:
creation_time : 2015-12-23T15:11:53.000000Z
handler_name : 1.mp4
encoder : AVC Coding
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Invalid argument
frame= 1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=0.0647x
video:41kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!Here is some of the debug log,past it here
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[rtp @ 0x27379c0] Sending NAL 6 of len 15 M=0
[rtp @ 0x27379c0] Sending NAL 5 of len 42371 M=1
[rtp @ 0x27379c0] NAL size 42371 > 1460
av_interleaved_write_frame(): Invalid argument
No more output streams to write to, finishing.
[AVIOContext @ 0x2d4ad80] Statistics: 0 seeks, 32 writeouts
frame= 1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=0.0743x
video:41kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (/home/server/share/media/1.mp4):
Input stream #0:0 (video): 1 packets read (42394 bytes);
Input stream #0:1 (audio): 0 packets read (0 bytes);
Input stream #0:2 (data): 0 packets read (0 bytes);
Input stream #0:3 (data): 0 packets read (0 bytes);
Total: 1 packets (42394 bytes) demuxed
Output file #0 (rtsp://192.168.164.40/test.sdp):
Output stream #0:0 (video): 1 packets muxed (42394 bytes);
Total: 1 packets (42394 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x273afa0] Statistics: 2119132 bytes read, 2 seeks
Conversion failed!I googled one day up with no idea,any one helps me !
-
ffmpeg concat vidoes Could not find codec parameters for stream 1
25 février 2017, par MojiI’m trying to concat 3 vidoes, each is converted to mpg beforehand, when I run the command to concat, it gives me this error (But still produces the output with no audio)
Could not find codec parameters for stream 1 (Audio: mp2, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpeg, from 'concat:intermediate1.mpg|intermediate2.mpg|intermediate3.mpg':
Duration: 00:00:25.73, start: 0.540000, bitrate: 2626 kb/s
Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 480x414 [SAR 1:1 DAR 80:69], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0:1[0x1c0]: Audio: mp2, 0 channels
[mpeg @ 0000000002766ba0] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'intermediate_all.mpg':
Metadata:
encoder : Lavf57.50.100
Stream #0:0: Video: mpeg1video, yuv420p(tv), 480x414 [SAR 1:1 DAR 80:69], q=2-31, 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpeg @ 0000000002766ba0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame= 1151 fps=0.0 q=-1.0 Lsize= 7834kB time=00:00:40.81 bitrate=1572.5kbits/s speed= 346x
video:7792kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.535638%First and third videos are made by just one picture (first one 10 second and the third 5 second long) and there is no audio for them.
the Second video which has Audio, is converted to mpg from mov by running this command :-i test.mov -qscale:v 1 -y intermediate2.mpg
And I’m using this command to merge them all together :
-i concat:\"intermediate1.mpg|intermediate2.mpg|intermediate3.mpg\" -c copy -y intermediate_all.mpg
the final output "intermediate_all.mpg" has no audio at all.
I also tried putting ’analyzeduration’ and ’probesize’ to value 100M, yet didn’t work.
Anything I’m doing wrong here ?