Recherche avancée

Médias (91)

Autres articles (36)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

Sur d’autres sites (4185)

  • Is there a way to open a batch file at a certain line using a command prompt window

    14 août 2024, par Voidmaster01

    Im testing a batch file that Im still in the process of making and I want to open it at line 6 instead of line 1 since ive already run that part of the code. it takes a couple of minutes to run it since im using ffmpeg.

    


    this is the first area of the code

    


    1 @Echo off
2 set /p IPath=Enter the Path of the file you wish to remux from (use "Copy as path" option and keep  the Quotations): 
3 set /P M=what is the first letter of the path of your new file?(do not include the semicolon(:))
4 set /p NewPath=Enter the Path you wish to remux to (must be path minus the directory BUT do not use  Quotations for this)(I also recommend using a single folder to hold the files while remuxing them before sending them  to their separate folders):
5 ffmpeg -i %IPath%  -c copy -map 0 "%M%:\%NewPath%"
6 goto :Premiere &:: This command takes inputs from the previous lines and sets up to remux files
7
8 :Premiere &:: this command line starts the preferred editor and waits 30 seconds to allow it to start
9 set /p EDITOR=Enter the .exe file for your prefered editor should look like: 'Adobe Premiere Pro.exe':
10 start "" "%EDITOR%"
11 echo Starting Process. . . Please Wait
12 timeout /t 30
13 tasklist | find /I "%EDITOR%" &:: The next couple of lines test for the editor to see if it opened or not
14 if errorlevel 1 (
15      echo could not start process 
16      goto :FailEditor
17 ) Else (
18      echo Process completed, next question--->
19      goto :choice
20 )


    


    so instead of starting at line 1 i would like to start at line 6 to bypass the longest section of the code.

    


    Im thinking its something along the lines of

    


    Start M:\REMUX.bat at line 6

    


    however AT is a command to tell a time to start the batch file so im not sure

    


  • FFmpeg remove silence with exact duration detected by detect silence

    17 mars 2021, par dav

    I have an audio file, that have some silences, which I am detecting with ffmpeg detectsilence and then trying to remove with removesilence, however there is some strange behavior. Specifically :

    


    1) File's Basic info based on ffprobe show_streams

    


    Input #0, mp3, from 'my_file.mp3':
  Metadata:
    encoder         : Lavf58.64.100
  Duration: 00:00:25.22, start: 0.046042, bitrate: 32 kb/s
    Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s


    


    2) Using detectsilence

    


    ffmpeg -i my_file.mp3 -af silencedetect=noise=-50dB:d=0.2 -f null -


    


    I get this result

    


    [mp3float @ 000001ee50074280] overread, skip -7 enddists: -1 -1
[silencedetect @ 000001ee5008a1c0] silence_start: 6.21417
[silencedetect @ 000001ee5008a1c0] silence_end: 6.91712 | silence_duration: 0.702958
[silencedetect @ 000001ee5008a1c0] silence_start: 16.44
[silencedetect @ 000001ee5008a1c0] silence_end: 17.1547 | silence_duration: 0.714708
[mp3float @ 000001ee50074280] overread, skip -10 enddists: -3 -3
[mp3float @ 000001ee50074280] overread, skip -5 enddists: -4 -4
[silencedetect @ 000001ee5008a1c0] silence_start: 24.4501
size=N/A time=00:00:25.17 bitrate=N/A speed=1.32e+03x
video:0kB audio:1180kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[silencedetect @ 000001ee5008a1c0] silence_end: 25.176 | silence_duration: 0.725917


    


    That also match the values and points based on Adobe Audition

    


    my file adobe audition silences

    


    So far all good.

    


    3) Now, based on some calculations (which is based on application's logic on what should be the final duration of the audio) I am trying to delete the silence with "0.725917"s duration. For that, based on ffmpeg docs (https://ffmpeg.org/ffmpeg-filters.html#silencedetect)

    


    


    Trim all silence encountered from beginning to end where there is more
than 1 second of silence in audio :
silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-90dB

    


    


    I run this command

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.72 result1.mp3


    


    So, I am expecting that it should delete only the silence with "0.725917" duration (the last one in the above image), however it is deleting the silence that starts at 16.44s with duration of "0.714708"s. Please see the following comparison :

    


    my file and result1 adobe audition silence comparison

    


    4) Running detectsilence on result1.mp3 with same options gives even stranger results

    


    ffmpeg -i result1.mp3 -af silencedetect=noise=-50dB:d=0.2 -f null -


    


    result

    


    [mp3float @ 0000017723404280] overread, skip -5 enddists: -4 -4
[silencedetect @ 0000017723419540] silence_start: 6.21417
[silencedetect @ 0000017723419540] silence_end: 6.92462 | silence_duration: 0.710458
[mp3float @ 0000017723404280] overread, skip -7 enddists: -6 -6
[mp3float @ 0000017723404280] overread, skip -7 enddists: -2 -2
[mp3float @ 0000017723404280] overread, skip -6 enddists: -1 -1
    Last message repeated 1 times
[silencedetect @ 0000017723419540] silence_start: 23.7308
size=N/A time=00:00:24.45 bitrate=N/A speed=1.33e+03x
video:0kB audio:1146kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[silencedetect @ 0000017723419540] silence_end: 24.456 | silence_duration: 0.725167


    


    So, the results are :

    


      

    • With command to remove silences that are longer than "0.72 second", a silence that was "0.714708"s, got removed and - a silence with "0.725917"s remained as is (well, actually changed a little - as per 3rd point)
    • 


    • The first silence that had started at "6.21417" and had a duration of "0.702958"s, suddenly now has a duration of "0.710458"s
    • 


    • The 3rd silence that had started at "24.4501" (which now starts at 23.7308 - obviously because the 2nd silence was removed) and had a duration of "0.725917", now suddenly is "0.725167"s (this one is not a big difference, but still why even removing other silence, this silence's duration should change at all).
    • 


    


    Accordingly the expected results are :

    


      

    • Only the silences that match the provided condition (stop_duration=0.72) should be removed. In this specific example only the last one, but in general any silence that matches the condition of the length - irrelevant of their positioning (start, end or in the middle)
    • 


    • Other silences should remain with same exact duration they were before
    • 


    


    FFMpeg : 4.2.4-1ubuntu0.1, Ubuntu : 20.04.2

    


    Some attempts and results, while playing with ffmpeg options

    


    a)

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.72:detection=peak tmp1.mp3


    


    result :
First and second silences are removed, 3rd silence's duration remains exactly the same

    


    b)

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.71 tmp_0.71.mp3


    


    result :
First and second silences are removed, 3rd silence remains, but the duration becomes "0.72075"s

    


    c)

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.7 tmp_0.7.mp3


    


    result :
all 3 silence are removed

    


    d) the edge case

    


    this command still removes the second silence (after which the first silence become exactly as in point #4 and last silence becomes "0.721375")

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.72335499999 tmp_0.72335499999.mp3


    


    but this one, again does not remove any silence :

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.723355 tmp_0.723355.mp3


    


    e) window param case 0.03

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.72:window=0.03 window_0.03.mp3


    


    does not remove any silence, but the detect silence

    


    ffmpeg -i window_0.03.mp3 -af silencedetect=noise=-50dB:d=0.2 -f null -


    


    gives this result (compare with silences in result1.mp3 - from point #4 )

    


    [mp3float @ 000001c5c8824280] overread, skip -5 enddists: -4 -4
[silencedetect @ 000001c5c883a040] silence_start: 6.21417
[silencedetect @ 000001c5c883a040] silence_end: 6.92462 | silence_duration: 0.710458
[mp3float @ 000001c5c8824280] overread, skip -7 enddists: -6 -6
[mp3float @ 000001c5c8824280] overread, skip -7 enddists: -2 -2
[silencedetect @ 000001c5c883a040] silence_start: 16.4424
[silencedetect @ 000001c5c883a040] silence_end: 17.1555 | silence_duration: 0.713167
[mp3float @ 000001c5c8824280] overread, skip -6 enddists: -1 -1
    Last message repeated 1 times
[silencedetect @ 000001c5c883a040] silence_start: 24.4508
size=N/A time=00:00:25.17 bitrate=N/A speed=1.24e+03x
video:0kB audio:1180kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[silencedetect @ 000001c5c883a040] silence_end: 25.176 | silence_duration: 0.725167


    


    f) window case 0.01

    


    ffmpeg -i my_file.mp3 -af silenceremove=stop_periods=-1:stop_threshold=-50dB:stop_duration=0.72:window=0.01 window_0.01.mp3


    


    removes first and second silences, the detect silence with same params has the following result

    


    [mp3float @ 000001ea631d4280] overread, skip -5 enddists: -4 -4
    Last message repeated 1 times
[mp3float @ 000001ea631d4280] overread, skip -7 enddists: -2 -2
[mp3float @ 000001ea631d4280] overread, skip -6 enddists: -1 -1
    Last message repeated 1 times
[silencedetect @ 000001ea631ea1c0] silence_start: 23.0108
size=N/A time=00:00:23.73 bitrate=N/A speed=1.2e+03x
video:0kB audio:1113kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[silencedetect @ 000001ea631ea1c0] silence_end: 23.736 | silence_duration: 0.725167


    



    


    Any thoughts, ideas, points are much appreciated.

    


  • Editing a video by FFMPEG that is not recognized by some video sharing sites [closed]

    22 octobre 2024, par Ebrahim Mehri

    I have a video that was made by FFMPEG. The problem is that an old video sharing website named aparat.com does not recognize it. When I open it in Adobe Premiere, without changing any option, the resulting video is OK. I think I should downgrade my used Codecs in order to make it readable.

    


    Here's the video that doesn't open :

    


    Format                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom (isom/iso2/avc1/mp41)
Overall bit rate mode          : Variable
Overall bit rate               : 508 kb/s
Writing application            : Lavf58.78.100
Format profile                 : High 4:4:4 Predictive@L5
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 4 frames
Codec ID                       : avc1
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=4 / threads=30 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00


    


    and the working one :

    


    Format                         : MPEG-4
Format profile                 : Base Media / Version 2
Codec ID                       : mp42 (mp42/mp41)
Overall bit rate mode          : Variable
Overall bit rate               : 821 kb/s
TIM                            : 00:00:00:00
TSC                            : 25
TSZ                            : 1
Format                         : AVC
Format profile                 : Main@L5
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 4 frames
Format settings, GOP           : M=4, N=25


    


    How can I make it work ?