
Recherche avancée
Autres articles (21)
-
À propos des documents
21 juin 2013, parQue faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
Document bloqué en file d’attente ?
Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...) -
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
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 (3861)
-
ffmpeg wont "gracefully" terminate using q or kill -2
24 mai 2023, par Jeff ThompsonI am trying to run a bash command on Ubuntu to pull video from a stream and make an .mp4 with it. Here is the command I am using.


ffmpeg -rtsp_transport tcp -i 'rtsp://username:password!@ipaddress/?inst=1' -c copy -f segment -segment_time 180 -reset_timestamps 1 ipaddress_day_3_2_%d.mp4


It connects and begins copying the stream fine, the issue comes with trying to stop the process. It states press [q] to stop, which does not work. I have also tried kill -2 pid and kill -15 pid. Where pid is the process id. However kill -9 pid works and ctrl+c works. The issue with killing it this way is it corrupts the .mp4 rendering it useless. This is the error I get when using ctrl+c or kill -9.


av_interleaved_write_frame(): Immediate exit requested [segment @ 0x56337ec42980] Failure occurred when ending segment 'ipaddress_day_3_2_0.mp4' Error writing trailer of ipaddress_day_3_2_0%d.mp4: Immediate exit requested


One thing to note is pressing [q] did work once, when I first started working on this but has not since.


Thank You.


I have tried kill -2 pid, kill -15 pid and [q], which I expected to "gracefully" terminate it.
kill -9 pid and ctrl+c will forcefully terminate it but corrupt the file.


-
FFmpeg inaccurate outputs [duplicate]
20 mai 2020, par Shlomi

Possible Duplicate :

 ffmpeg : videos before and after conversion aren’t the same length






Recently, I've been trying to use FFmpeg for an application which requires a VERY accurate manipulation when it comes to the time parameter (milliseconds resolution). Unfortunately, I was surprised to find out that FFmpeg's manipulation functionalities return some inaccurate results.



Here is the output of 'ffmpeg' :



ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
 built on Jul 25 2012 19:55:05 with gcc 4.2.1 (Apple Inc. build 5664)
 configuration: --enable-gpl --enable-shared --enable-pthreads --enable-libx264 --enable-libmp3lame
 libavutil 51. 54.100 / 51. 54.100
 libavcodec 54. 23.100 / 54. 23.100
 libavformat 54. 6.100 / 54. 6.100
 libavdevice 54. 0.100 / 54. 0.100
 libavfilter 2. 77.100 / 2. 77.100
 libswscale 2. 1.100 / 2. 1.100
 libswresample 0. 15.100 / 0. 15.100
 libpostproc 52. 0.100 / 52. 0.100




Now, let's assume I want to rip the audio track of 'foo.mov'. Here is the relevant output of 'ffmpeg -i foo.mov' :



Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.mov':
 Metadata:
 major_brand : qt 
 minor_version : 0
 compatible_brands: qt 
 creation_time : 2012-07-24 23:16:08
 Duration: 00:00:40.38, start: 0.000000, bitrate: 805 kb/s
 Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x360, 733 kb/s, 24.46 fps, 29.97 tbr, 600 tbn, 1200 tbc
 Metadata:
 rotate : 90
 creation_time : 2012-07-24 23:16:08
 handler_name : Core Media Data Handler
 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 63 kb/s
 Metadata:
 creation_time : 2012-07-24 23:16:08
 handler_name : Core Media Data Handler




As you probably noticed, the video file duration is 00:00:40.38. Using the following command, I ripped it's audio track :



'ffmpeg -i foo.mov foo.wav'



Output :



Output #0, wav, to 'foo.wav':
 Metadata:
 major_brand : qt 
 minor_version : 0
 compatible_brands: qt 
 creation_time : 2012-07-24 23:16:08
 encoder : Lavf54.6.100
 Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
 Metadata:
 creation_time : 2012-07-24 23:16:08
 handler_name : Core Media Data Handler
Stream mapping:
 Stream #0:1 -> #0:0 (aac -> pcm_s16le)
Press [q] to stop, [?] for help
size=3482kB time=00:00:40.42 bitrate= 705.6kbits/s 
video:0kB audio:3482kB global headers:0kB muxing overhead 0.001290%




As you can see, the output file is longer than the file in the input.



Another example is audio (and video) file trimming :
Let's assume I would like to use ffmpeg for audio file trimming. I used the next command :



'ffmpeg -t 00:00:10.000 -i foo.wav trimmed_foo.wav -ss 00:00:25.000'



Output :



[wav @ 0x10180e800] max_analyze_duration 5000000 reached at 5015510
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'foo.wav':
 Duration: 00:00:40.42, bitrate: 705 kb/s
 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
Output #0, wav, to 'trimmed_foo.wav':
 Metadata:
 encoder : Lavf54.6.100
 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
 Press [q] to stop, [?] for help
size=864kB time=00:00:10.03 bitrate= 705.6kbits/s 
video:0kB audio:864kB global headers:0kB muxing overhead 0.005199%




Again, the output file is 30 milliseconds longer than I expected.



I tried, for a long time, to research the issue without any success. When I use audacity for the same functionality, it does it very accurately !



Does anyone have any idea how to solve this problem ?


-
FFmpeg - filter_complex error,Too many inputs specified for the "scale" filter
20 septembre 2018, par wensefuI’m trying to
concat
some video into one single video usingffmpeg
. here’s my ffmpeg cmd :ffmpeg -i input1.avi -i input2.mkv -filter_complex [0:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v0];[v0][0:a][1:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v1];[v1][1:a]concat=n=2:v=1:a=1[outv][outa] -map [outv] -map [outa] -vcodec libx264 -crf 27 -preset ultrafast out.mp4
but got error :
[AVFilterGraph @ 0xd177f500] Too many inputs specified for the "scale" filter.
E AVLOG : Error initializing complex filters.
E AVLOG : Invalid argument
E AVLOG : At least one output file must be specified
I AVLOG : Stream mapping:
I AVLOG : Press [q] to stop, [?] for help
I AVLOG : No more output streams to write to, finishing.
E AVLOG :
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 17256 (IntentService[v)Any ideas anyone ?
Many thanks in advance.