
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (20)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)
Sur d’autres sites (6097)
-
Why did this bat script delete all my files ? [closed]
25 novembre 2024, par YaBoyShreddersonI don't know anything about .bat scripting, but my needs were pretty basic. Go through a folder and sort the videos into folders based on resolution. I have asked chatgpt to create these types of simple scripts for me before, but this time it went very wrong. In hindsight, I obviously should have tested it first, but it appears to have deleted almost all of my files. Why did this happen, and is it possible it moved them somewhere else, if so where ?


@echo off
:: Prompt user for the path
set /p "folder=Enter the folder path: "

:: Check if the folder exists
if not exist "%folder%" (
 echo The folder does not exist.
 pause
 exit /b
)

:: Go to the specified folder
cd /d "%folder%"

:: Create a temporary file to store filenames
set "tempfile=%~dp0filelist.tmp"
del "%tempfile%" 2>nul

:: Get the list of video files
for %%f in (*.mp4 *.avi *.mkv *.mov *.flv *.wmv) do echo "%%f" >> "%tempfile%"

:: Process each file
for /f "delims=" %%f in ('type "%tempfile%"') do (
 :: Get resolution using ffmpeg
 for /f "tokens=1,2 delims=x" %%w in ('ffmpeg -i "%%~f" 2^>^&1 ^| findstr /r /c:"[0-9]*x[0-9]*"') do (
 set "width=%%w"
 set "height=%%h"
 )

 :: Create folder for resolution if it doesn't exist
 setlocal enabledelayedexpansion
 set "resFolder=!width!x!height!"
 if not exist "!resFolder!" mkdir "!resFolder!"

 :: Move the file
 move "%%~f" "!resFolder!"
 endlocal
)

:: Clean up
del "%tempfile%" 2>nul
echo Done!
pause



-
reading lines from txt file into .csv
7 janvier 2014, par Dynamite Mediai have a .TXT file i created via batch file using ffmpeg. it returns the following info ( more but trying to make short)
major_brand=isom
minor_version=512
compatible_brands=isomiso2avc1mp41
creation_time=1970-01-01 00:00:00
encoder=Lavf53.19.0
genre=sport
track=1
title=IRWX_TV_Vol_01_1_Pt_4
episode_id=0101the .TXT file comes back with 3 of these above. well i want to be able to only use some of the info above and then i want to create a .CSV file so that i can load into .XLS file
I have used the following and it's close :
REM now lets get info we need from result.txt
pause
REM checks how many times finds genre and loops that many times
FOR /f "delims=" %%b IN ('findstr "genre" result.txt') DO (
for %%f in (result.txt) do (
set i=0
for /F "delims= tokens=2,3*" %%l in (%%f) do (
set /A i+=1
set line!i!=%%l
)
echo !line9!, !line6!, !line8!, >> result.csv
)
)
pauseand this is coming back with the following :
title=IRWX_TV_Vol_01_1_Pt_4 , genre=sport, episode_id=0101
title=IRWX_TV_Vol_01_1_Pt_4 , genre=sport, episode_id=0101
title=IRWX_TV_Vol_01_1_Pt_4 , genre=sport, episode_id=0101ONLY the 1st video title from .TXT file and not each of them
AND i would prefer it to come back like this :
IRWX_TV_Vol_01_1_Pt_4,sport,0101
Minus the variables, the "=" and the space issues you see above.
i have been going over and over this trying different things and it is just not working.
Hopefully someone here can see the issue and help out, Thanks
-
Having issues parsing cropdetect values from ffmpeg in batch script
23 mars 2024, par Alex SadlerI have this script that I'm trying to write that finds video files in a dir, automatically removes black bars and transcodes to x265...


@echo off
setlocal enabledelayedexpansion

REM Loop through all video files in the current directory
for %%F in (*.mp4, *.avi, *.mkv, *.ts) do (
 echo Processing "%%F"

 REM Use FFMPEG to detect crop values
 for /f "tokens=*" %%a in ('ffmpeg -i "%%F" -vf "cropdetect" -f null - 2^>^&1 ^| find /i "crop="') do (
 set cropfilter=%%a
 )

 REM Extract the crop filter result
 set cropfilter=!cropfilter:*crop=! 
 set cropfilter=!cropfilter: =!

 REM Use the detected crop filter to crop the video
 if not "!cropfilter!"=="" (
 echo Detected crop filter: !cropfilter!
 ffmpeg -i "%%F" -map 0:v:0 -map 0:a:0 -map 0:s? -c:v:0 libx265 -crf 18 -vf "crop=!cropfilter!" -c:a:0 aac -ac 2 -b:a:0 256k -c:a:1 aac -ac 6 -b:a:1 512k -c:s copy "encoded.mkv"
 ) else (
 echo No cropping needed for "%%F".
 )
)

echo Processing complete.
pause



I'm struggling to correctly parse the crop values output from the initial ffmpeg query though. What its grabbing at the moment is :


detect_0@000001ce4b0e2040]x1:0x2:1919y1:131y2:948w:1920h:816x:0y:132pts:625483604t:6949.817822limit:0.094118crop=1920:816:0:132



When I really just need this bit :


crop=1920:816:0:132



So that I can call it in the transcode command.


Thanks in advance.