
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (65)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPré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 ) (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (6533)
-
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 !


-
FFmpeg pipe input, error while transcoding from WebM to MP4
7 mai 2022, par sauravI am trying to record a video from pipe input using FFMPEG. The pipe input is in WebM format i.e. the video codec is VP8 and the audio codec is OPUS. I am able to save the output video in the WebM format using FFMPEG without any issue. But when I am trying to save it in MP4 format, I am not getting the desired output. Though there are no errors while saving, the output file shows an error with description " This file contains no playable streams !."


These are the options for successfully recording in the WebM format.


'-loglevel', 'debug', '-protocol_whitelist', 'pipe,udp,rtp', 
'-fflags', '+genpts', '-i', 'pipe:0', '-map', '0:v:0', '-c:v', 
'copy', '-map', '0:a:0', '-strict', '-2', '-c:a', 'copy', '-flags',
 '+global_header', '-f', 'webm', 'output.webm'



Here are my ffmpeg options for recording in the MP4 format.


'-thread_queue_size', '4096', '-r', '25', '-i', 'pipe:0', 
 '-c:v', 'libx264', '-preset', 'veryFast', '-pix_fmt', 'yuvj420p', 
 '-acodec', 'aac', "output.mp4"



Console output after executing this command as a subprocess


> ffmpeg::process::data [data:' libavutil 56. 31.100 / 56. 
31.100\n' + ' libavcodec 58. 54.100 / 58. 54.100\n' + ' 
libavformat 58. 29.100 / 58. 29.100\n' + ' libavdevice 58. 
 8.100 / 58. 8.100\n' + ' libavfilter 7. 57.100 / 7. 57.100\n'
 + ' libavresample 4. 0. 0 / 4. 0. 0\n' + ' libswscale 
 5. 5.100 / 5. 5.100\n' + ' libswresample 3. 5.100 / 3.
 5.100\n' + ' libpostproc 55. 5.100 / 55. 5.100\n'] +1ms
> 
> ffmpeg ffmpeg::process::data [data:"Input #0, matroska,webm, from
> 'pipe:0':\n" + ' Metadata:\n' + ' encoder : Chrome\n' + ' 
> Duration: N/A, start: 0.000000, bitrate: N/A\n' + ' Stream
> #0:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)\n' + ' 
 Stream #0:1(eng): Video: vp8, yuv420p(progressive), 1920x950, SAR 1:1
> DAR 192:95, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)\n' + ' 
> Metadata:\n' + ' alpha_mode : 1\n'] +1s
> 
> 
> ffmpeg::process::data [data:'Stream mapping:\n' + ' Stream #0:1 ->
> #0:0 (vp8 (native) -> h264 (libx264))\n' + ' Stream #0:0 -> #0:1 
(opus (native) -> aac (native))\n'] +1ms
> 
> ffmpeg::process::data [data:'[swscaler @ 0x55a63050ddc0] deprecated
> pixel format used, make sure you did set range correctly\n'] +23ms
> 
> ffmpeg::process::data [data:'[libx264 @ 0x55a630489980] using
> SAR=1/1\n'] +10ms
> 
> ffmpeg::process::data [data:'[libx264 @ 0x55a630489980] using cpu
> capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2\n'] +0ms
> 
> ffmpeg::process::data [data:'[libx264 @ 0x55a630489980] profile
> High, level 4.0\n'] +8ms
> 
> ffmpeg::process::data [data:'[libx264 @ 0x55a630489980] 264 - core
> 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 -
> http://www.videolan.org/x264.html - options: cabac=1 ref=1
> deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00
> mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0
> deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18
> lookahead_threads=6 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=1 keyint=250
> keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf
> mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
> aq=1:1.00\n'] +1ms
> 
> ffmpeg::process::data [data:"Output #0, mp4, to 'output.mp4':\n" + '
> Metadata:\n' + ' encoder : Lavf58.29.100\n' + ' Stream
> #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), 
yuvj420p(pc), 1920x950 [SAR 1:1 DAR 192:95], q=-1--1, 25 fps, 12800 tbn, 25 tbc
> (default)\n' + ' Metadata:\n' + ' alpha_mode : 1\n' + ' 
> encoder : Lavc58.54.100 libx264\n' + ' Side data:\n' + ' 
> cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1\n' + ' 
> Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> stereo, fltp, 128 kb/s (default)\n' + ' Metadata:\n' + ' 
> encoder : Lavc58.54.100 aac\n'] +0ms
> 
> ffmpeg::process::data [data:'frame= 45 fps=0.0 q=28.0 size= 
> 0kB time=00:00:01.87 bitrate= 0.2kbits/s speed=3.48x \r'] +505ms
> 
> ffmpeg::process::data [data:'frame= 61 fps= 56 q=28.0 size= 
> 0kB time=00:00:02.41 bitrate= 0.2kbits/s speed=2.22x \r'] +564ms
> 
> ffmpeg::process::data [data:'frame= 76 fps= 48 q=28.0 size= 
> 0kB time=00:00:02.88 bitrate= 0.1kbits/s speed=1.81x \r'] +492ms



I have a doubt on this output as it may have been causing the issue.


ffmpeg::process::data [data:'[swscaler @ 0x55a63050ddc0] deprecated
 pixel format used, make sure you did set range correctly\n'] +23ms



I hope I have provided enough information about the issue I am facing. Please ask for any other information needed to understand the issue correctly.


I am sure that I am missing some ffmpeg options which is causing this issue. But I am not able to identify them ! Any help in correcting this issue would be greatly appreciated.


Thank you.


-
ffmpeg not producing duration value when converting a media file. If this media is used in an html player, seeking fails on some browsers
4 décembre 2020, par DavidI'm asking this question because I didn't find information on the web and this seems to be uncommon issue. After a lot of trial and error I'm creating this answer for reference.


I'm using python which runs the ffmpeg command to convert an MP4 into WEBM file. I noticed that some of the conversions didn't seek when displaying in the webpage but other webm files worked on the same server. I was converting from two different machines. The core problem was the ffmpeg command was using pipe during the conversion process on one machine and output directly to a file on the other.


Apparently doing this doesn't populate the duration attribute in the file but if I ran ffmpeg with the same switches, same order and output to a file on the system, the duration attribute would populate.


I was converting from MP4 to WEBM format using opus for the audio. This issue might only impact certain file types, webm as an example and not others.