
Recherche avancée
Autres articles (65)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (12013)
-
Wrong duration of the result video when using ffmpeg filter complex concat [closed]
9 décembre 2023, par Igor ChubinI am trying to do a trivial task of concatenating
several segments of the original video/audio
into a new file (and dropping the rest) :


ffmpeg -i bdt.mkv -filter_complex '
 [0:v]trim=start=10.0:end=15.0,setpts=PTS-STARTPTS[0v];
 [0:a]atrim=start=10.0:end=15.0,asetpts=PTS-STARTPTS[0a];
 [0:v]trim=start=65.0:end=70.0,setpts=PTS-STARTPTS[1v];
 [0:a]atrim=start=65.0:end=70.0,asetpts=PTS-STARTPTS[1a];[0v][0a][1v]
 [1a]concat=n=2:v=1:a=1[outv][outa]' -map [outv] -map [outa] out.mp4



When I am trying to watch
out.mp4
after that, it has the original duration ofbdt.mkv
(70 minutes) and not 10 seconds, as I would expect.

What am I doing wrong ?


Update 1.


(exactly as Scott Codez suggested)


The problem is related to the formats. If the output format is
mkv
too, the problem disappears. But when I use mp4, that I need, the problem persists.

-
ffmpeg normalized mp3 audio and album art went missing
29 août 2022, par SomeoneInNeedOfHelpI used below ffmpeg command to normalized audio of my songs and the album art is missing after running below command


ffmpeg -i "Original.mp3" -af loudnorm=I=-18:LRA=4:TP=-1 -ar 44100 -map 0:v -b:a 192k "Normalized.mp3"



ffprobe Original.mp3


Input #0, mp3, from 'Original.mp3':
 Metadata:
 encoded_by : Switch Free Home Version © NCH Software
 comment :
 disc : 1
 track : 0
 album_artist : Artist
 genre : Pop
 artist : Artist
 title : Song Title
 album : Song album
 date : 2001
 Duration: 00:04:15.91, start: 0.000000, bitrate: 200 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
 Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1279x1280 [SAR 96:96 DAR 1279:1280], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 title : thumbnail
 comment : Cover (front)



ffprobe Normalized.mp3


Input #0, mp3, from 'Original.mp3':
 Metadata:
 encoded_by : Switch Free Home Version © NCH Software
 comment :
 disc : 1
 track : 0
 album_artist : Artist
 genre : Pop
 artist : Artist
 title : Song Title
 album : Song album
 date : 2001
 encoder : Lavf58.67.100
Duration: 00:04:15.92, start: 0.025056, bitrate: 265 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
 Metadata:
 encoder : Lavc58.12
 Stream #0:1: Video: png, rgb24(pc), 1279x1280 [SAR 1:1 DAR 1279:1280], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 title : thumbnail
 comment : Cover (front)



How can I keep the album art from the source file ?


-
Is it possible using FFMPEG to replace one ".ts" file in a HLS ts file collection with another ".ts" file ?
27 juillet 2019, par VadimThere is a video, actually an HLS stream (sequence of TS files)
I would like to take out one TS chunk and replace it with another.
Another chunk will be encoded using same FFMPEG encoding settings.In case you wonder why i need this :
There is a five hours HLS stream. One of TS has a wrong title on the video. I need to change that TS without re-encoding the whole HLS stream.Currently i tried :
- Take TS and convet it using FFMPEG into mp4
- Edit mp4 video (change title) and save as new mp4
- Convert new mp4 into new TS (using FFMPEG, same settings as was used for original video)
- Replace original TS with the new TS.
But it doesn’t work, player shows loading in progress icon. (in the network console i see that this new TS is loaded normally, with status 200)
As soon as i replace new TS with original one, player plays it normally.
Both TS files start with I-frame, both have audio. There’s only a slight difference in the sequence of P and B frames.
old new
I I
P P
B B
B B
P P
B B
B B
B B
P P
B B
B P
B B
P B
P B
B PHow can i get new TS chunk working in original TS sequence ?
Update :
As per szatmary advice (below) i tried to include "-copyts" flag during all ts>mp4>ts conversions. Also tried "-copytb" flag with all 3 options -1, 0, and 1. However result still the same - player doesn’t play HLS TS sequence (m3u8) with new TS chunk.
Adding "#EXT-X-DISCONTINUITY" tag after replaced TS in the M3U8 list, doesn’t fix the situation.
Without "#EXT-X-DISCONTINUITY" tag, player gives error :
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) There appears to be a playback issue.
code: 4
message: "There appears to be a playback issue."
__proto__:
MEDIA_ERR_ABORTED: 1
MEDIA_ERR_CUSTOM: 0
MEDIA_ERR_DECODE: 3
MEDIA_ERR_ENCRYPTED: 5
MEDIA_ERR_NETWORK: 2
MEDIA_ERR_SRC_NOT_SUPPORTED: 4
code: 0
message: ""
status: nullWith "#EXT-X-DISCONTINUITY" tag, player gives error :
VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) There appears to be a playback issue.
code: 3
message: "error"
__proto__:
MEDIA_ERR_ABORTED: 1
MEDIA_ERR_CUSTOM: 0
MEDIA_ERR_DECODE: 3
MEDIA_ERR_ENCRYPTED: 5
MEDIA_ERR_NETWORK: 2
MEDIA_ERR_SRC_NOT_SUPPORTED: 4
code: 0
message: ""
status: nullBoth TS files (old one and new one) have video and audio streams.
Looks like something else should be done. I think solution will be similar to ad insertion.