
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (60)
-
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Installation en mode standalone
4 février 2011, parL’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
[mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)
Sur d’autres sites (5765)
-
FFmpeg-Invalid PNG signature,Error while decoding stream,Invalid data found when processing input
27 octobre 2018, par Bhuvnesh VarmaI am using below ffmpeg command to convert images to video-
"-y", "-f", "concat", "-safe", "0", "-i", src.getAbsolutePath(),
"-vsync", "vfr", "-vf",
"scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720 :(ow-iw)/2 :(oh-ih)/2,format=yuv420p",
dest.getAbsolutePath()But sometimes I get below failure error-
Invalid PNG signature 0x21F904050A000400.\nError while decoding stream
Invalid data found when processing input\n[png @ 0xf0fec400] Invalid
PNG signatureComplete error
ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
built with gcc 4.8 (GCC)\n configuration : —target-os=linux
—cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
—arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
—enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
-Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
54. 0.100\nInput #0, concat, from ’/storage/emulated/0/Movies/videoffmeg.txt’ :\n Duration : N/A, start :
0.000000, bitrate : N/A\n Stream #0:0 : Video : png, rgb24(pc), 1080x1920, 25 tbr, 25 tbn, 25 tbc\n[libx264 @ 0xf0feb000] using cpu
capabilities : none !\n[libx264 @ 0xf0feb000] profile High, level
3.1\n[libx264 @ 0xf0feb000] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options :
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00\nOutput #0, mp4, to
’/storage/emulated/0/Movies/slideshow_video.mp4’ :\n Metadata :\n
encoder : Lavf57.25.100\n Stream #0:0 : Video : h264
(libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1—1, 25
fps, 12800 tbn, 25 tbc\n Metadata :\n encoder :
Lavc57.24.102 libx264\n Side data :\n unknown side data type 10
(24 bytes)\nStream mapping :\n Stream #0:0 -> #0:0 (png (native) ->
h264 (libx264))\nPress [q] to stop, [?] for help\n[png @ 0xf0feb800]
Invalid PNG signature 0x474946383961F401.\n[png @ 0xf0febc00] Invalid
PNG signature 0x21F904050A000400.\n[png @ 0xf0fec000] Invalid PNG
signature 0x21F904050A000400.\n[png @ 0xf0fec400] Invalid PNG
signature 0x21F904050A000400.\n[png @ 0xf0fec800] Invalid PNG
signature 0x21F904050A000400.\n[png @ 0xf0fecc00] Invalid PNG
signature 0x21F904050A000400.\n[png @ 0xf0aff000] Invalid PNG
signature 0x21F904050A000400.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0feb400] Invalid
PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0feb800] Invalid
PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0febc00] Invalid
PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0fec000] Invalid
PNG signature 0x21F904050A000400.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0fec400] Invalid
PNG signature 0x21F904050A000400. input\n[png @ 0xf0aff000] Invalid
PNG signature 0x21F904050A000200.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0feb400] Invalid
PNG signature 0x21F904050A000200.\nError while decoding stream #0:0 :
Invalid data found when processing input\n[png @ 0xf0feb800] Invalid
PNG signature 0x21F904050A000200.\nError while decoding stream #0:0 :
Invalid data found when processing input\nframe= 1 fps=0.0 q=28.0
Lsize= 26kB time=00:00:00.04 bitrate=5366.4kbits/s speed=0.0635x
\nvideo:25kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead : 3.073141%\n[libx264 @ 0xf0feb000] frame
I:1 Avg QP:31.22 size : 25356\n[libx264 @ 0xf0feb000] mb I
I16..4 : 5.9% 79.7% 14.5%\n[libx264 @ 0xf0feb000] 8x8 transform
intra:79.7%\n[libx264 @ 0xf0feb000] coded y,uvDC,uvAC intra : 22.3%
26.6% 14.1%\n[libx264 @ 0xf0feb000] i16 v,h,dc,p : 33% 12% 27% 28%\n[libx264 @ 0xf0feb000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 41% 4% 47%
2% 1% 2% 1% 2% 1%\n[libx264 @ 0xf0feb000] i4
v,h,dc,ddl,ddr,vr,hd,vl,hu : 28% 23% 13% 6% 6% 7% 7% 5%
5%\n[libx264 @ 0xf0feb000] i8c dc,h,v,p : 81% 7% 9% 3%\n[libx264 @
0xf0feb000] kb/s:5071.20\nConversion failed !\nBy what I understand is that there might be some image file which can be corrupt which causes ffmpeg to fail in creating video from images.Is there any way FFmpeg can ignore that corrupt image file and create video from other image files ? Is there any change i can make in command to prevent this failure ?
-
ffmpeg problem Could not write header for output file #0 (incorrect codec parameters ?) : Invalid data found when processing input
2 octobre 2018, par Yair Villarim trying to grab a http streaming and restream it
ffmpeg -re -i http://192.168.253.19:8000/play/0a0 -acodec copy -f rtsp rtsp://192.168.253.19:8000/test
and the response i get is :
fmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
[mpeg2video @ 0x7fc6ca801e00] Invalid frame dimensions 0x0.
Last message repeated 6 times
Input #0, mpegts, from 'http://192.168.253.19:8000/play/0a0':
Duration: N/A, start: 83102.371922, bitrate: 15192 kb/s
Program 306
Metadata:
service_name :
service_provider:
Stream #0:0[0x8a2]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bottom first), 704x480 [SAR 10:11 DAR 4:3], 15000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0xc93]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, fltp, 128 kb/s
Stream #0:2[0xc94]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, fltp, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
Error initializing output stream 0:0 --
Conversion failed!I can’t seem to figure out what the problem is, i am passing this to node-fluent-ffmpeg latter on and pushing all to an astra server
-
ffmpeg : Invalid data found when processing input
20 septembre 2018, par Rich_FI have a situation where
ffmpeg
is throwing an error :Invalid data found when processing input
I’ve reviewed other answers here, but my situation is different. I generate in
Ruby
, a text file with a list of input files I want to concatenate together into one large video.I generate in
Ruby
, the command meant forbash
, which is also output for me to manually copy :ffmpeg -y -f concat -safe 0 -i /Volumes/Dragon2/Yums/randoms.txt /Volumes/Dragon2/Yums/final.mp4
Throws an error :
/Volumes/Dragon2/Yums/randoms.txt: Invalid data found when processing input
Here is that file :
file '/Volumes/Dragon2/Yums/0CEDC3CA-4571-4271-9938-A161EC2A887B.mov'
file '/Volumes/Dragon2/Yums/0D25D907-D053-443B-AFC6-9F12B1711BBF.mov'
file '/Volumes/Dragon2/Yums/6A272808-7706-435D-801E-ACE6B42EC749.mov'
file '/Volumes/Dragon2/Yums/6E9BA2F1-C5E7-4C1C-B290-D116105732FA.mov'
file '/Volumes/Dragon2/Yums/0A41C7B7-74CE-484E-B029-3AE57B8BB4EA.mov'When
bash
runs it, it complains about the input file randoms.txt having invalid data. When I copy and paste the very same command inbash
, it works fine. I’m stumped as to how the two are different and whyffmpeg
is not happy when initiated in theshell
.How can I get this to work ? What am I missing ? Cheers
EDIT : Original
ruby
code :`clear`
require 'pathname'
require 'pp'
s = '/Volumes/Dragon2/Yums'
files = []
Dir.foreach(s) do |path|
files << "#{ s }/#{ path }"
end
result = files.sample(files.size) # randomizer
f = File.open("#{ s }/randoms.txt", 'w+')
result.each_with_index do |item, i|
pp "#{ i }: #{ item }" if item.include?('mov')
f << "file '#{ item }'\n" if item.include?('mov')
end
`echo `
File.delete("#{ s }/final.mp4") if File.exists?("#{ s }/final.mp4")
s = "ffmpeg -y -f concat -safe 0 -i #{ s }/randoms.txt #{ s }/final.mp4"
puts s
sleep 3
`#{ s }`I have also tried
system s
as well with the same error. The syntax is generated fine, output fine, operates fine manually.