
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (73)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (11250)
-
audio is out of sync after concat 2 files
1er juin 2019, par S.Ti want to show a video, that has 2 movies side by side. each movie is a result of one movie that concat 2 times. the problem is that the audio in the right side is out of sync.
i have 3 commands :
first command concat one movie 2 timesffmpeg -i 1.mp4 -i 1.mp4 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[concatv][concata]" -map "[concatv]" -map "[concata]" Concat1.mp4
second command concat the second movie 2 times
ffmpeg -i 2.mp4 -i 2.mp4 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[concatv][concata]" -map "[concatv]" -map "[concata]" Concat2.mp4
at this point the audio is always synced.
the third command takes the 2 results and merge it to one movie side by side with a logo :ffmpeg -i Concat1.mp4 -i Concat2.mp4 -i logo.png -filter_complex "[0:v]pad=width=iw+20:height=ih+20:x=10:y=10:color=black[a];[1:v]pad=width=iw+20:height=ih+20:x=10:y=10:color=black[b];nullsrc=size=640x480[base];[a]setpts=PTS-STARTPTS, scale=320x480[left];[b]setpts=PTS-STARTPTS, scale=320x480[right];[base][left]overlay=shortest=1[tmp1];[tmp1][right] overlay=320:0[video];[0:a]apad [apa];[apa][1:a]amerge=inputs=2,pan=stereo|FLcode>
the problem is that in the output file the audio of the right movie is out of sync in its second time (the second concat). it always the right movie that is out of sync, even when i switch them.
can anyone help ?
Thanks.==============EDIT===================
the problem of the sync has solved by adding apad also to the second file, but after that the command never stops... how can i tell the command to stop when both movies ended if i have apad for both movies ?
this is the new command that never stops :ffmpeg -i 1.mp4 -i 2.mp4 -i logo.png -filter_complex "[0:v]pad=width=iw+20:height=ih+20:x=10:y=10:color=black[a];[1:v]pad=width=iw+20:height=ih+20:x=10:y=10:color=black[b];nullsrc=size=640x480[base];[a]scale=320x480[left];[b]scale=320x480[right];[base][left]overlay=shortest=1[tmp1];[tmp1][right] overlay=320:0[video];[1:a]apad [apa];[0:a]apad[apa1];[apa][apa1]amix=inputs=2:duration=longest[audio];[2:v]scale=120:44 [ovrl];[video][ovrl]overlay=15:25[videoandlogo]" -map "[videoandlogo]" -map "[audio]" output.mp4
-
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]# -
Seeking issues on larger video files on HTML page (ffmpeg)
5 juillet 2023, par XenonsAfter testing out numerous of "html video players" and even making our own making sure to wait for events such as player.oncanplaythrough to fire before even attempting to start videos
we've had the same issue for months now.


Mainly we offer 3 resolutions for same video (720, 1080, 4k)
and out of the 3, 2 have the seeking issue where trying to skip to any time or even trying to fast forward by x amount of seconds with arrow keys would just bring the video back to 00:00 time
this only happens on 1080 and 4k resolutions and after refreshing the page it just works as normal afterwards


we've tried pretty much anything we could think of to combat this but with no luck


ffmpeg line for 1080 and 4k (these files are webm but same happened for mp4 on these resolutions with same encoding)


-c:v libvpx-vp9 -pix_fmt yuv420p -crf 24 -b:v 0 -c:a libopus -b:a 128k -movflags +faststart



ffmpeg line for 720 (mp4 file)


-c:v libx264 -preset slow -pix_fmt yuv420p -crf 20 -b:a 128k



To be quite frank at this point I am at a loss and without many ideas left so I am turning to stack overflow in case someone might have an idea on what would cause this


I am contemplating to attempt perhaps loading videos as blobs and playing them that way, not sure if this would fix it but it does bring the load times up drastically so I would save it as last resort


Thus far I have tried two html video players (plyr and videojs) and after that I just wrote my own "player"
of course it's just regular html and js but that's what makes me even more confused as there is nothing that should hinder the files in any way from working as intended


we've also tried changing ffmpeg encoding a few times but to no avail either.


EDIT :
The issue was caused by cloudflare caching, we simply made two rules to exclude webm and mp4 url's from being cached and that completely fixed all of our seeking issues