
Recherche avancée
Autres articles (56)
-
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 (6565)
-
Extracting aspect ratio from ffprobe
29 décembre 2020, par LinxI'm using ffprobe to determine a video's properties and assign them as variables in a bash script for batch encoding with ffmpeg, like so :


eval $(ffprobe -v quiet -show_format -of flat=s=_ -show_entries 
 stream=height,width,duration,display_aspect_ratio "$f");
 width=${streams_stream_0_width};
 height=${streams_stream_0_height};
 aspect=${streams_stream_0_display_aspect_ratio};
 
 echo -e "Height/Width = $height/$width, Aspect = $aspect\n";



That returns "Height/Width = 480/720, Aspect = 4:3" exactly like it should. But I need to insert the variable into my encode command as 4/3 and not 4:3. I'm not very good with bash scripting and I've searched for a solution, but I'm not even sure what you call what I'm trying to do, so I'm sure I've done the wrong search terms. How can I convert this ratio into a fraction to insert into a ffmpeg command ?


-
Creating automated ffmpeg converter
27 janvier 2019, par Jeffrey MoserI am trying to create an automated process using ffmpeg and am having issues understanding how to adapt the code to automator.
The code works beautifully in the terminal, but requires each filename to me entered manually. I am trying to automate the process.
for f in "$@"
do
FILE= "$f"
OUT=${FILE/mp4/png}
OUT_WIDTH=10800
OUT_HEIGHT=3600
eval $(ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=height,width "${FILE}")
IN_WIDTH=${streams_stream_0_width}
IN_HEIGHT=${streams_stream_0_height}
eval $(ffprobe -v error -of flat=s=_ -count_frames -select_streams v:0 -show_entries stream=nb_read_frames "${FILE}")
IN_FRAMES=${streams_stream_0_nb_read_frames}
W_TILES=$(bc <<< "(sqrt($OUT_WIDTH*$IN_FRAMES*$IN_HEIGHT/($IN_WIDTH*$OUT_HEIGHT))+3)")
H_TILES=$(bc <<< "(sqrt($OUT_HEIGHT*$IN_FRAMES*$IN_WIDTH/($OUT_WIDTH*$IN_HEIGHT)))")
W_SHRUNK=$(bc <<< "$OUT_WIDTH/$W_TILES")
H_SHRUNK=$(bc <<< "$OUT_HEIGHT/$H_TILES")
ffmpeg -i "${FILE}" -vf "hflip,transpose=cclock,scale=${H_SHRUNK}:${W_SHRUNK},tile=${H_TILES}x${W_TILES},transpose=clock,hflip,scale=${OUT_WIDTH}x${OUT_HEIGHT}" -an -sn -vsync 0 "${OUT}"
doneI expected the code to produce an image of every frame of the film. But instead I got a massive error message.
The action “Run Shell Script” encountered an error: “-: line 5: /Users/jeffreymoser/21 A New Dawn.mp4: Permission denied
-: line 14: ffprobe: command not found
-: line 18: ffprobe: command not found
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
-: line 29: ffmpeg: command not found
-: line 5: /Users/jeffreymoser/22 Battle Hymn.mp4: Permission denied
-: line 14: ffprobe: command not found
-: line 18: ffprobe: command not found
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
-: line 29: ffmpeg: command not found
-: line 5: /Users/jeffreymoser/23 Reckless.mp4: Permission denied
-: line 14: ffprobe: command not found
-: line 18: ffprobe: command not found
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
-: line 29: ffmpeg: command not found
-: line 5: /Users/jeffreymoser/24 Showdown.mp4: Permission denied
-: line 14: ffprobe: command not found
-: line 18: ffprobe: command not found
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
-: line 29: ffmpeg: command not found
-: line 5: /Users/jeffreymoser/25 Wedding Bells.mp4: Permission denied
-: line 14: ffprobe: command not found
-: line 18: ffprobe: command not found
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
-: line 29: ffmpeg: command not found -
Revision 198fa6d0a0 : Add Neon horizontal and vertical vp9_mbloop_filter - The vp9 mbfilter C code wi
1er juillet 2013, par Frank GalliganChanged Paths :
Modify /vp9/common/arm/neon/vp9_loopfilter_neon.asm
Modify /vp9/common/vp9_rtcd_defs.sh
Add Neon horizontal and vertical vp9_mbloop_filterThe vp9 mbfilter C code will branch on flat and mask. This CL
will perform both branches and combine the data. A later CL will
perform a check to see if all patch will take one branch.These functions are about 1.75 times faster than the C code on
Nexus 7.PS #3
Changed all functions to dub limit, blimit, and thresh from
vld dx[], freeing up r4-r6.Changed code to use vbif to reduce one instruction and free
up a d register.Change-Id : I028dae0e434dc9891c3677bdb182e201ffb04777