Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (37)

  • 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 (7264)

  • ffmpeg autodetect and cut black bars on video [closed]

    30 octobre 2024, par some_vasya
    FILE_SRC="$HOME/some.mp4"
CROP=$(ffmpeg -ss 00:00:15 -i "${FILE_SRC}" -t 00:00:30 -vsync vfr -vf fps=1/2,cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tr ' ' '\n' | sort | uniq -c | sort -n | tail -1 | awk '{ print $NF }')

# before converting, need to check
fplay -vf "${CROP}" # <-- the black stripes remain



    


    Question : how to remove black bars in video correctly so that you can watch video on TV without black bars, taking into account the definition of bars ? I am interested in a solution using ffmpeg, and not other means

    


    I tried to find a solution to work in automatic mode, but I didn't find it

    


    I="$@"
X=${I##*.}
O=${I%.*}_zoomed.${X}
f=$(which ffmpeg 2>/dev/null)
echo ${I}
C=$($f -i "$I" -t 1 -vf cropdetect -f null - 2>&1|awk '/crop/{print $NF}'|tail -n1)
echo "${C}"
echo $f -i "$I" -vf "$C" "$O"; $f -i "$I" -vf "$C" "$O"


    


  • Black/Empty frames at beginning of video file when file Cut using FFmpeg [closed]

    28 octobre 2024, par d0tb0t

    I am cutting a video using ffmpeg and facing the Black/Empty frame at the start issue.

    


    When Codec Copy -

    


    -y -hide_banner -ss 0:1:0 -i file:///private/var/mobile/Containers/Data/PluginKitPlugin/94588A94-C451-426E-9E9C-A7555B6E7C25/tmp/trim.EC876F92-04BE-41F8-ADF3-8CFC84669908.MOV -to 0:1:33 -t 0:0:33 -vcodec copy -acodec copy -avoid_negative_ts make_zero -async 1 file:///var/mobile/Containers/Data/Application/728D5FED-5E6B-4A37-8DE4-E63E47B06DF9/Documents/FILES/FileCopy.mov


    


    When Re-Encoding -

    


    -y -hide_banner -ss 0:1:0 -i file:///private/var/mobile/Containers/Data/PluginKitPlugin/94588A94-C451-426E-9E9C-A7555B6E7C25/tmp/trim.9F2B209B-B657-471A-AE87-7C464FF10812.MOV -to 0:1:33 -t 0:0:33 -vcodec libx264 -vf scale=1280:720 -pix_fmt yuv420p10le -color_range tv -colorspace bt2020nc -color_primaries bt2020 -color_trc arib-std-b67 -crf 28 -preset ultrafast -acodec copy -avoid_negative_ts make_zero -async 1 file:///var/mobile/Containers/Data/Application/728D5FED-5E6B-4A37-8DE4-E63E47B06DF9/Documents/FILES/FileReEncode.mov


    


    Both of the command provides almost the same issue. Provided a sample gif file below to show the scenario.

    


  • Concatenate videos and add black frames between them with ffmpeg

    4 octobre 2024, par user3406207

    I have three videos that I am concatenating with ffmpeg. I would like to add a few black frames in between them. Although I've found a few hints on the web it has not worked for me yet. I have tried to generate an 'empty' video with just black frames with :

    



    ffmpeg -t 20 -s 1920x1080 -f rawvideo -pix_fmt rgb24 -r 25 -i c:\nul  E:\empty.avi


    



    and then concatenate with another one but doesn't work. I have tried a few other things without success. Any help would be greatly appreciated

    



    EDIT : also tried to add black frames before and after video with the following code, but no success :

    



    ffmpeg -f lavfi -i color=c=black:s=1920x1080:r=25:d=100 -i middle_video.avi -filter_complex 
"[0:v]trim=start_frame=1:end_frame=21[blackstart];
[0:v] trim=start_frame=1:end_frame=21 [blackend]; 
[blackstart] [1:v] [blackend] concat=n=3:v=1:a=0[out]" -map "[out]" -c:v qtrle -c:a -copy output.avi


    



    EDIT2 :
Output from ffprobe

    



    Metadata:
encoder: Lavf57.3.100
Duration: 00:00:10.05, start: 0.000000, bitrate: 43302 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 192
0x1080 [SAR 1:1 DAR 16:9], 43333 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 10k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 k
b/s


    



    EDIT 3
Link to the report of the ffmpeg console output :
FFMPEG session report