
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (111)
-
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 -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (6895)
-
Why this shell command doesn't work ? ('command' works but 'command|cat' doesn't work)
16 octobre 2018, par yabeeProblem
The following code outputs like...
$ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2 key_frame=1
key_frame=1
pkt_pts=0
pkt_pts_time=0:00:00.000000
--
key_frame=1
pkt_pts=41041
pkt_pts_time=0:00:01.710042
--
key_frame=1
pkt_pts=64064
pkt_pts_time=0:00:02.669333
--
key_frame=1
pkt_pts=87087
pkt_pts_time=0:00:03.628625
--
...But the folowing one outputs nothing.
$ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2 key_frame=1|cat
And...
$ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep key_frame=1
key_frame=1
key_frame=1
key_frame=1
key_frame=1
$ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep key_frame=1|cat
# Nothing outputted.Why ?
Expected result
What actually I want to do is
$ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2key_frame=1|grep time
pkt_pts_time=0:00:00.000000
pkt_pts_time=0:00:01.710042
pkt_pts_time=0:00:02.669333
pkt_pts_time=0:00:03.628625
...But its result is
$ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2key_frame=1|grep time
# Nothing outputted.Grep works correctory exept it’s after ffprobe.
$ seq 30|grep 1|grep 2
12
21Environment
- Bash on Ubuntu on Windows 10 Pro
- Windows version : 1803
- Windows OS build : 17134.345
Environment of Ubuntu :
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
$ bash --version
GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later /gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ ffprobe
ffprobe version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2007-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Simple multimedia streams analyzer
usage: ffprobe [OPTIONS] [INPUT_FILE]
You have to specify one input file.
Use -h to get full help or, even better, run 'man ffprobe'.What is problem ?
Does grep or ffprobe change its behavior by existence of pipe
in this case
?
Thanks. - Bash on Ubuntu on Windows 10 Pro
-
How to merge segmented webvtt subtitle files and output a single file ?
15 février, par DobbelinaHow to merge a segmented webvtt subtitle file and output a single file ?,
m3u8 looks like this example :



#EXTM3U
#EXT-X-VERSION:4
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:4
#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z
#EXTINF:4, no desc
0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-1.webvtt
#EXTINF:4, no desc
0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-2.webvtt
#EXTINF:4, no desc
0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-3.webvtt
#EXTINF:4, no desc
0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-4.webvtt
#EXTINF:4, no desc
0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-5.webvtt
#EXTINF:4, no desc
0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-6.webvtt
#EXT-X-ENDLIST




I noticed that each segment is not synchronized/cued against total playing time, but against the individual ts segments.
If ffmpeg could be used to do this, what magic input do i need to give it ?



A single correctly cued vtt or srt file is what i want.



I have a great appetite and don't like chunks, lol !



Thanks for any replies you lovely people !





With this i get a merged vtt file, but the cues are all wrong :



ffmpeg -i "https://cmoreseusphlsvod60.akamaized.net/vod/bea44/0ghzi1b2cz5(11792107_ISMUSP).ism/0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000.m3u8" -f segment -segment_time 4 -segment_format webvtt -scodec copy out-%05d.vtt




Each segment is not synchronized/cued against total playing time, but against the individual ts segments.
Example output of above command :



WEBVTT

00:00.000 --> 00:03.040
Du har aktier i ett företag
som saknar framtid.

00:00.000 --> 00:03.280
De vill ha aktierna.
Du känner dem inte, Olga.

00:00.000 --> 00:01.720
De som får Kastrups aktier vinner.




Cues all start like this which isn't very helpfull : 00:00.000



Some segments contains no cues, like segment 15 for example :
https://cmoreseusphlsvod60.akamaized.net/vod/bea44/0ghzi1b2cz5(11792107_ISMUSP).ism/0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-15.webvtt





"A WebVTT Segment MAY contain no cues ; this indicates that no
 subtitles are to be displayed during that period."




-
ffmpeg - connection drop every few minuts- connection timeout
9 novembre 2018, par Gloytos htyqoim runing ffmpeg to restream hls/m3u8 from another website(its my website).
i have more visitors on a period of the day and then ffmpeg stops every 3-6 minutes idont know why it stops, as i saw here in logs error is : Connection timeout , what can i do in this case
/root/bin/ffmpeg -i http://example.com/1.m3u8 -c copy -bufsize 600k
-hls_flags delete_segments -y /var/www/html/1.m3u8[hls,applehttp @ 0x365f740] Opening 'http://example.com/13152.ts' for reading
[hls,applehttp @ 0x365f740] Failed to open segment of playlist 0
[hls,applehttp @ 0x365f740] Opening 'http://example.com/13153.ts' for reading
frame= 6500 fps= 20 q=-1.0 size=N/A time=00:05:06.29 bitrate=N/A speed=0.962x [hls @ 0x3689540] Opening '/var/www/html/tv1/test46.ts' for writing
[hls @ 0x3689540] Opening '/var/www/html/tv1/test.m3u8.tmp' for writing
[hls,applehttp @ 0x365f740] Opening 'http://example.com/13154.ts' for reading
frame= 6750 fps= 21 q=-1.0 size=N/A time=00:05:21.17 bitrate=N/A speed=0.979x [hls @ 0x3689540] Opening '/var/www/html/tv1/test47.ts' for writing
[hls @ 0x3689540] Opening '/var/www/html/tv1/test.m3u8.tmp' for writing
[hls,applehttp @ 0x365f740] Opening 'http://example.com/13155.ts' for reading
[hls @ 0x3689540] Opening '/var/www/html/tv1/test48.ts' for writingeed=0.97x
[hls @ 0x3689540] Opening '/var/www/html/tv1/test.m3u8.tmp' for writing
[hls,applehttp @ 0x365f740] Opening 'http://example.com/13156.ts' for reading
frame= 7089 fps= 21 q=-1.0 size=N/A time=00:05:34.74 bitrate=N/A speed=0.986x [hls @ 0x3689540] Opening '/var/www/html/tv1/test49.ts' for writing
[hls @ 0x3689540] Opening '/var/www/html/tv1/test.m3u8.tmp' for writing
[hls,applehttp @ 0x365f740] Failed to reload playlist 0trate=N/A speed= 1x
frame= 7339 fps= 21 q=-1.0 size=N/A time=00:05:44.73 bitrate=N/A speed=0.985x [hls,applehttp @ 0x365f740] Opening 'http://example.com/13157.ts' for reading
http://example.com/1.m3u8: Connection timed out
[hls @ 0x3689540] Opening '/var/www/html/tv1/test.m3u8.tmp' for writing
frame= 7339 fps= 21 q=-1.0 Lsize=N/A time=00:05:44.73 bitrate=N/A speed=0.964x
video:7793kB audio:4586kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[root@T2 www]#/root/bin/ffmpeg -v trace -re -err_detect aggressive -user_agent server
-i http://example.com/1.m3u8 -c copy -bufsize 1600k -hls_flags delete_segments -y /var/www/html/1.m3u8Last message repeated 2 times
[mpegts @ 0x3715660] pid=101 pes_code=0x1c0
[mpegts @ 0x3770560] nal 9
Last message repeated 2 times
[mpegts @ 0x3715660] pid=100 pes_code=0x1e0:02:20.88 bitrate=N/A speed= 1x
[mpegts @ 0x3770560] nal 9
[mpegts @ 0x3715660] pid=100 pes_code=0x1e0
Last message repeated 2 times
[mpegts @ 0x3715660] pid=101 pes_code=0x1c0
[mpegts @ 0x3770560] nal 9
Last message repeated 2 times
[mpegts @ 0x3715660] pid=100 pes_code=0x1e0
[mpegts @ 0x3770560] nal 9
[mpegts @ 0x3715660] pid=100 pes_code=0x1e0
Last message repeated 1 times
[mpegts @ 0x3715660] pid=101 pes_code=0x1c0
[mpegts @ 0x3770560] nal 9
Last message repeated 1 times
[AVIOContext @ 0x3773300] Statistics: 806144 bytes read, 0 seeks
[hls,applehttp @ 0x370e760] Opening 'http://example.com/1.m3u8' for reading
[hls,applehttp @ 0x370e760] Failed to reload playlist 0
[mpegts @ 0x3770560] nal 9
Last message repeated 1 times
[hls,applehttp @ 0x370e760] Opening 'http://example.com/1.m3u8' for reading
[hls,applehttp @ 0x370e760] Failed to reload playlist 0
No more output streams to write to, finishing.
[AVIOContext @ 0x37752e0] Statistics: 0 seeks, 4 writeouts
[hls muxer @ 0x3738fe0] deleting old segment test6.ts
[hls @ 0x37755c0] Opening '/var/www/html/1.m3u8.tmp' for writing
[file @ 0x3773480] Setting default whitelist 'file,crypto'
[hls muxer @ 0x3738fe0] EXT-X-MEDIA-SEQUENCE:16
[AVIOContext @ 0x3773300] Statistics: 0 seeks, 1 writeouts
frame= 3532 fps= 23 q=-1.0 Lsize=N/A time=00:02:21.24 bitrate=N/A speed=0.932x
video:5169kB audio:2207kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (http://example.com/1.m3u8):
Input stream #0:0 (video): 3532 packets read (5293095 bytes);
Input stream #0:1 (audio): 5886 packets read (2260224 bytes);
Total: 9418 packets (7553319 bytes) demuxed
Output file #0 (/var/www/html/1.m3u8):
Output stream #0:0 (video): 3532 packets muxed (5293095 bytes);
Output stream #0:1 (audio): 5886 packets muxed (2260224 bytes);
Total: 9418 packets (7553319 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x371a900] Statistics: 236 bytes read, 0 seeks
[root@T2 www]#