
Recherche avancée
Autres articles (50)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8928)
-
ffmpeg have unmet dependencies (Ubuntu20) [closed]
10 août 2024, par mojiangwhen installing ffmpeg with ubuntu20(fosal), it have conflict dependencies :


# sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ffmpeg : Depends: libavdevice58 (= 7:4.2.7-0ubuntu0.1) but it is not going to be installed
 Depends: libavfilter7 (= 7:4.2.7-0ubuntu0.1)
 Depends: libavformat58 (= 7:4.2.7-0ubuntu0.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.



I solved it by install the reason of conflit library with a specific version, may be someone will need the solution.


step 1. fix-broken


sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree 
Reading state information... Done



step2. find the reason of unmet dependencies :


# sudo apt install libavdevice58=7:4.2.7-0ubuntu0.1 libavfilter7=7:4.2.7-0ubuntu0.1 libavformat58=7:4.2.7-0ubuntu0.1
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libavformat58 : Depends: libchromaprint1 (>= 1.3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.



Here the problem is from libchromaprint1


step3. find candidate versions of libchromaprint1(conflict reason)


# apt-cache policy libchromaprint1
libchromaprint1:
 Installed: (none)
 Candidate: 1.5.1-1~20.04.sav0
 Version table:
 1.5.1-1~20.04.sav0 500
 500 http://ppa.launchpad.net/savoury1/multimedia/ubuntu focal/main amd64 Packages
 1.4.3-3build1 500
 500 http://mirrors.cloud.aliyuncs.com/ubuntu focal/universe amd64 Packages
 500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages



step4. install the old version of libchromaprint1 to solve the conflicts


# sudo apt install libchromaprint1=1.4.3-3build1
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following NEW packages will be installed:
 libchromaprint1
0 upgraded, 1 newly installed, 0 to remove and 223 not upgraded.
Need to get 37.6 kB of archives.



step5. reinstall ffmpeg


# sudo apt install ffmpeg
Reading package lists... Done
Building dependency tree 
Reading state information... Done



Done. the reason of conflict is that the latest version of libraries have conflict, by install old version of the conflicted ones to solve it.


-
Révision 101151 : Mise à jour de librairie getid3 en 1.9.13
17 décembre 2016, par kent1@arscenic.infohttps://github.com/JamesHeinrich/getID3/releases/tag/v1.9.13
bugfix #89 : ID3v2.4 custom genres with slashes
bugfix #88 : large QuickTime files exceed PHP memory limit
bugfix #87 : ID3v2 write GRID data not working properly
bugfix #86 : Increase autoloading definitions
bugfix #84 : ID3v2 available writable frames list
bugfix #82 : ID3v2 datetime logic
bugfix #80 : attempt to autodetect ID3v1 encoding
bugfix #77 : add partial support of DSSv6
bugfix #76 : add mysqli version of caching extension
bugfix #75 : mysql cache max key length
bugfix #71 : custom error handler to catch exif_read_data() errors
bugfix #71 : add support for mb_convert_encoding
bugfix #70 : ID3v2 POPM / UFID
bugfix #68 : workaround broken iTunes ID3v2
bugfix #48 : Quicktime set MIME to video/mp4 where applicable
bugfix #1930 fread on pipes
bugfix #1926 relax ID3v2.IsValidURL check -
ffprobe to bitrate variable stopped working
6 novembre 2023, par BricktopI have a simple script to encode a video using the same bitrate as the original. I use ffprobe to fetch the bitrate like this :


ffprobe "%file%" -v 0 -select_streams v:0 -show_entries stream=bit_rate -print_format compact=p=0:nokey=1 >%temp%\bitrate.txt



However, while fixing a but in the script where I had an odd number of
"
marks, I suddenly ran into this problem with ffprobe :

Argument ' -v 0 -select_streams v:0 -show_entries stream=bit_rate -print_format compact=p=0:nokey=1 >C:\Users\ADMINI~1\AppData\Local\Temp\bitrate.txt' provided as input filename, but 'D:\VIDEO\AMBIANCE\SCOPITONE\MUSIC TELEVISION\This Here - Calm - OFFICIAL VIDEO (1080p 25fps AV1-128kbit AAC).mp4' was already specified.



I am trying to understand this, scanning insanely for yet another
"
or something in my code but can't figure it out. Here is the full code :

:: write file to queue (first)
move /y "%~dpn0.txt" "%temp%\%~n0.tmp" >nul
echo "%~1" >"%~dpn0.txt"
type "%temp%\%~n0.tmp" >>"%~dpn0.txt"

:: desyncronize instances (todo: try support for adding 9 files at a time)
timeout /t %time:~9,1% /nobreak
:: if not first instance exit
tasklist /fi "imagename eq handbrakecli.exe" | find /i "handbrakecli" && exit
title Transcode

:: delegate queue
for /f "delims=" %%f in (%~dpn0.txt) do (
 set "name=%%~nf"
 set "file=%%~f"
 rem todo: if file has x264 or other video codec mentioned, change to x265
 set "code=%%~dpnf (x265 transcoded)%%~xf"
 call :transcode
)
echo all done!
exit /b

:transcode
title "%name%"
if not exist "%file%" echo %date% %time% source file missing %file% >>%~dpn0.log & goto cleanup
if exist "%code%" echo %date% %time% target file exists %file% >>%~dpn0.log & goto cleanup

:: determine appropriate bitrate (does not seem to work on .webm files, closing the script as a result)
%~dp0ffprobe "%file%" -v 0 -select_streams v:0 -show_entries stream=bit_rate -print_format compact=p=0:nokey=1 >%temp%\bitrate.txt
set /p bitrate=<%temp%\bitrate.txt
:: reduce to full kilobytes
set "bitrate=%bitrate:~0,-3%"
if not defined bitrate echo failed to fetch bitrate & echo %date% %time% no bitrate for %file% >>%~dpn0.log & exit /b
if %bitrate% gtr 7000 set bitrate=7000

:: transcode
%~dp0HandBrakeCLI -i "%file%" -o "%code%" --encoder x265_10bit --encoder-preset slow --encoder-profile main444-10 --vb %bitrate% --two-pass --turbo --audio 1-9 --aencoder copy --audio-copy-mask aac,ac3,mp2,mp3,opus --audio-fallback opus --ab 160 --drc 2.0

:: remove current file from queue, regardless
:cleanup
findstr /v /c:"%file%" "%~dpn0.txt" >"%temp%\%~n0.tmp"
move /y "%temp%\%~n0.tmp" "%~dpn0.txt"



It appears that the
set "file=%%~f"
is the problem, somehow it shows up asset "file=D:\VIDEO\this video here.mp4" "
where the last two characters"
should not belong, and I don't know what to change to fix this.

Every type of improvement to the script is very welcomed !