
Recherche avancée
Autres articles (87)
-
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 -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (9063)
-
ffmpeg concat compressed video result in wrong time span
15 juillet 2019, par Kris RoofeI use
ffmpeg.exe -f concat -i file_path_list_txt -c copy out_out.mp4
to concat
for file in 1265_*; do ffmpeg -i $file -crf 30 -b:a 23k -b:v 96k -threads 3 -y 'out_'$file; done
compressed video.
When I play the generated video, the player shows the video length is much longer than the sum of compressed video pieces. And at the linkage between slices,the frame can play a very long time,time on the player is going on,but the frame is still.
I use
ffprobe
to show the original video pieces and compressed video pieces. And found the original videos with sametbr,tbn,tbc
, while the compressed not.Original videos :
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, progressive), 1600x1144, 134 kb/s, 8.17 fps, 600 tbr, 600 tbn, 1200 tbc (default)
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, progressive), 1600x1144, 138 kb/s, 9.73 fps, 600 tbr, 600 tbn, 1200 tbc (default)Compressed videos :
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1600x1144, 174 kb/s, 8.17 fps, 8.17 tbr, 245050 tbn, 16.33 tbc (default)
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1600x1144, 127 kb/s, 9.73 fps, 9.73 tbr, 1750800 tbn, 19.45 tbc (default)And when I concat, in the console,ffmpeg show below info :
[mp4 @ 000001fe0193b700] Application provided duration: 2585263321 / timestamp: 6303355764 is out of range for mov/mp4 format
[mp4 @ 000001fe0193b700] pts has no value
[mp4 @ 000001fe0193b700] Application provided duration: 2585443321 / timestamp: 6303535765 is out of range for mov/mp4 format
[mp4 @ 000001fe0193b700] pts has no valueIn my situation the video pieces are generated time by time, and I don’t know when it stops, so I cannot do concat before compress. Each time a video piece generated I comress it and append it.
-
Mp4 render result from ffmpeg not playable on android
11 juillet 2019, par albertI’m using PHP to run ffmpeg(4.0.2) render out MP4 file.
MP4 file playable on all of iOS device, and most laptop, but not playable on android device.Here is the ffmpeg code I use to render the video
/usr/local/bin/ffmpeg -filter_complex "[0]reverse[r];[0][r]concat, loop=1:65, setpts=N/15/TB" -r 15 -f image2 -i /Source/0001_CAM%02d.jpg -c:v libx264 -preset fast -crf 19 -profile:v baseline -movflags +faststart -pix_fmt yuv420p /Result/output.mp4
Here is the log
[0] => ffmpeg version N-91590-geb1860e017-tessus Copyright (c) 2000-2018 the FFmpeg developers
[1] => built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
[2] => configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
[3] => libavutil 56. 18.102 / 56. 18.102
[4] => libavcodec 58. 22.101 / 58. 22.101
[5] => libavformat 58. 17.101 / 58. 17.101
[6] => libavdevice 58. 4.101 / 58. 4.101
[7] => libavfilter 7. 26.100 / 7. 26.100
[8] => libswscale 5. 2.100 / 5. 2.100
[9] => libswresample 3. 2.100 / 3. 2.100
[10] => libpostproc 55. 2.100 / 55. 2.100
[11] => Input #0, image2, from '/Source/0001_CAM%02d.jpg':
[12] => Duration: 00:00:00.33, start: 0.000000, bitrate: N/A
[13] => Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 3456x2304, 15 tbr, 15 tbn, 15 tbc
[14] => Stream mapping:
[15] => Stream #0:0 (mjpeg) -> reverse
[16] => Stream #0:0 (mjpeg) -> concat:in0:v0
[17] => setpts -> Stream #0:0 (libx264)
[18] => Press [q] to stop, [?] for help
[19] => [swscaler @ 0x1077f9000] deprecated pixel format used, make sure you did set range correctly
[20] => [libx264 @ 0x7fd583800600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[21] => [libx264 @ 0x7fd583800600] profile Constrained Baseline, level 5.1, 4:2:0, 8-bit
[22] => [libx264 @ 0x7fd583800600] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 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=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=30 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 '/Result/output.mp4':
[24] => Metadata:
[25] => encoder : Lavf58.17.101
[26] => Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 3456x2304, q=-1--1, 15 fps, 15360 tbn, 15 tbc (default)
[27] => Metadata:
[28] => encoder : Lavc58.22.101 libx264
[29] => Side data:
[30] => cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[31] => frame= 8 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
[mp4 @ 0x7fd583804a00] Starting second pass: moving the moov atom to the beginning of the file
[32] => frame= 20 fps=5.1 q=-1.0 Lsize= 10642kB time=00:00:01.26 bitrate=68823.6kbits/s speed=0.322x
[33] => video:10641kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.009452%
[34] => [libx264 @ 0x7fd583800600] frame I:4 Avg QP:17.92 size:895006
[35] => [libx264 @ 0x7fd583800600] frame P:16 Avg QP:19.96 size:457246
[36] => [libx264 @ 0x7fd583800600] mb I I16..4: 11.5% 0.0% 88.5%
[37] => [libx264 @ 0x7fd583800600] mb P I16..4: 4.1% 0.0% 25.0% P16..4: 27.7% 19.0% 6.8% 0.0% 0.0% skip:17.3%
[38] => [libx264 @ 0x7fd583800600] coded y,uvDC,uvAC intra: 92.9% 89.0% 56.0% inter: 51.3% 65.2% 3.9%
[39] => [libx264 @ 0x7fd583800600] i16 v,h,dc,p: 28% 5% 14% 52%
[40] => [libx264 @ 0x7fd583800600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 12% 15% 8% 9% 10% 7% 8% 6%
[41] => [libx264 @ 0x7fd583800600] i8c dc,h,v,p: 47% 16% 29% 8%
[42] => [libx264 @ 0x7fd583800600] ref P L0: 81.6% 18.4%
[43] => [libx264 @ 0x7fd583800600] kb/s:65375.79 -
"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error
1er août 2019, par petaireI’m trying to go from .mkv to .mp4 through ffmpeg. Normally I would use
ffmpeg -i $1 -codec copy -strict -2 $2
But on this particular file, I get this error, like, A LOT :
Non-monotonous DTS in output stream 0:0; previous: 49189232, current: 49189232; changing to 49189233. This may result in incorrect timestamps in the output file.
I guess it has something to do with the DTS :
[mp4 @ 0x7f8b14001200] Invalid DTS: 14832 PTS: 13552 in output stream 0:0, replacing by guess
[mp4 @ 0x7f8b14001200] Invalid DTS: 15472 PTS: 12272 in output stream 0:0, replacing by guessI would not care if the result was ok, but the sound is out of sync, and the video is "stuttering". Feels like everything is out of sync.
I’ve tried a lot of things, including -async 1 -vsync 1 , but nothing seems to work.
Here’s some mediainfo :
Complete name : /Users/petaire/Desktop/CNEWS-2019-07-23_16-00-00h.mkv
Format : Matroska
Format version : Version 2
File size : 1.19 GiB
Movie name : Time-2019-07-23_16:00
Writing application : Tvheadend 4.3-1801~g7f952c2ed
Writing library : Tvheadend Matroska muxer
Original source form : TV
Comment : Time recording
IsTruncated : Yes
DATE_BROADCASTED : 2019-07-23 16:00:00
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 KHz
Frame rate : 31.250 fps (1536 SPF)
Compression mode : Lossy
Delay relative to video : -757ms
Language : French
Service kind : Complete Main
Default : Yes
Forced : No
Text
ID : 3
Format : DVB Subtitle
Codec ID : S_DVBSUB
Codec ID/Info : Picture based subtitle format used on DVBs
Language : French
Default : Yes
Forced : NoAny idea ?