
Recherche avancée
Autres articles (42)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (8630)
-
FFMPEG segment stream into MP4 chunks of 4 seconds [AV out of sync]
18 décembre 2015, par Kr0eI want to segment an incoming RTMP stream into MP4 chunks of 4 seconds.
These MP4 chunks contain both, audio and video tracks.Unfortunately, the duration of the audio and video track are not equal, which leads to AV out-of-sync when playing both tracks at the same time in HTML 5 MSE source buffers.
mp4info outputs :
Track 1:
flags: 3 ENABLED IN-MOVIE
id: 1
type: Video
duration: 4000 ms
Track 2:
flags: 3 ENABLED IN-MOVIE
id: 2
type: Audio
duration: 3994 msSo, obviously, the audio system does not care about video keyframes.
How can I fix this ?
Btw. :
This is my only issue, MP4 fragmentation is solved using mp4box.js.
AV out-of-sync is my end boss =]
Command :
let camera2TS = spawn('./ffmpeg/darwin/ffmpeg', [
'-rtmp_listen', '1', '-i', 'rtmp://127.0.0.1:1935/foxnet/live',
'-c:v', 'libx264', '-x264-params', 'keyint=240:no-scenecut=1', '-pix_fmt', 'yuv420p',
'-force_key_frames', 'expr:gte(t,n_forced*4)', '-frag_duration', '4',
'-preset', 'ultrafast', '-profile:v', 'baseline', '-level:v', '3', '-r', '25', '-g', '100',
'-strict', 'experimental', '-b:v', '3500k', '-bufsize', '3500k',
'-c:a', 'aac', '-af', 'aresample=async=1',
'-f', 'segment', '-segment_time', '4', '-reset_timestamps', '1',
'chunks/%01d.mp4'
]); -
How do I cut the last 10 seconds from mpeg using ffmpeg (and applescript etc) [closed]
10 décembre 2015, par EvGeniy IlyinI have many different mpeg files. In every mpeg file are credits at the end of the video. I need to cut it. How I can do it for bath(list) ?
for example :ffmpeg -i my.mp4 -vcodec copy -acodec copy -ss 00:10:10 my_cute.mp4
but every mpeg file has different duration...
Is there a way to specify the indent from the end ?my answer
using applescript organizing logic
main parameters : the length of the titles and file folder- to draw up a list of specified path mp4 files
- cycles through each file
- using ffprobe obtain data in xml with a total length video
- parse xml, we obtain the duration of the
- using ffmpeg, knowing the total duration of the video and the length of the credits at the end - set the new duration
-- settings
set titresDuration to 54.0
set folderPath to "/Users/-/Downloads/-.XviD.SATRip.Thunder"
set filesList to my filesInFolder(folderPath, true, ".mp4")
repeat with fileName in filesList
set videoDuration to my videoDurationOfFile(fileName)
set fileCutName to do shell script "echo '" & fileName & "' | sed 's/\\.mp4/c\\.mp4/g'"
if videoDuration > titresDuration then
set videoDurationWithoutTitres to videoDuration - titresDuration
set videoDurationWithoutTitres to my numberToString(videoDurationWithoutTitres)
set ffmpegScript to "/usr/local/bin/ffmpeg -y -i " & quoted form of fileName & " -t " & videoDurationWithoutTitres & " -c copy " & quoted form of fileCutName
set info to do shell script ffmpegScript
end if
end repeat
log "the end"
-- helpers methods
on videoDurationOfFile(fileName)
set probeScript to "/usr/local/bin/ffprobe -v quiet -print_format xml -show_format " & quoted form of fileName
set videoTags to do shell script probeScript --"/usr/local/bin/ffprobe -v quiet -print_format xml -show_format " & fileName
set videoDuration to 0.0
tell application "System Events"
set xmlData to make new XML data with properties {name:"xmldata", text:videoTags}
set xmlFFprobe to XML element "ffprobe" of xmlData
set xmlFormat to XML element "format" of xmlFFprobe
set attrs to value of XML attribute "duration" of xmlFormat
set attrs to do shell script "echo '" & attrs & "' | sed 's/[0]*$//g'"
set attrs to do shell script "echo '" & attrs & "' | sed 's/\\./,/g'"
set videoDuration to attrs as real
end tell
return videoDuration
end videoDurationOfFile
on numberToString(this_number)
set this_number to this_number as string
set this_number to do shell script "echo '" & this_number & "' | sed 's/,/\\./g'"
if this_number contains "E+" then
set x to the offset of "." in this_number
set y to the offset of "+" in this_number
set z to the offset of "E" in this_number
set the decimal_adjust to characters (y - (length of this_number)) thru ¬
-1 of this_number as string as number
if x is not 0 then
set the first_part to characters 1 thru (x - 1) of this_number as string
else
set the first_part to ""
end if
set the second_part to characters (x + 1) thru (z - 1) of this_number as string
set the converted_number to the first_part
repeat with i from 1 to the decimal_adjust
try
set the converted_number to ¬
the converted_number & character i of the second_part
on error
set the converted_number to the converted_number & "0"
end try
end repeat
return the converted_number
else
return this_number
end if
end numberToString
on filesInFolder(folderPath, lookInSubfolders, filter)
set filesList to {}
tell application "System Events" to set filesList to POSIX path of (files of folder folderPath whose name contains filter)
if lookInSubfolders then
tell application "System Events" to set subfoldersList to POSIX path of (folders of folder folderPath)
repeat with subfolderPath in subfoldersList
set subfilesList to my filesInFolder(subfolderPath, true, filter)
repeat with subfile in subfilesList
set end of filesList to subfile
end repeat
end repeat
end if
return filesList
end filesInFolder -
FFMPEG to trim off last 3 seconds of videos
27 janvier 2023, par humble5050I am trying to trim/cut off the last 3 secs of my videos with FFMPEG but this has really been an headache.



The following code trims but only retains the last 3 seconds.
I don't want to retain the 3 secs, i don't need that, i want to retain the deleted part.



ffmpeg -sseof -3 -i input.mp4 output.mp4



Can someone please help me with the right code ?.
I will also like to request a batch code that will auto trim all last 3 secs of videos in my folder.
Thanks for the help.