
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (39)
-
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 -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (4374)
-
Unable to access user selected file via NSOpenPanel in FFMPEG process in macOS app
12 décembre 2019, par RaptorI am new to macOS development via SwiftUI. I’m trying to run a FFMPEG process after I selected a MP4 file via
NSOpenPanel
. However, theFFMPEG
responded with :file :///Users/MyUsername/Documents/Video.mp4 : No such file or directory
Here is my simple codes :
import SwiftUI
struct ContentView: View {
@State var selectedURL: URL?
var body: some View {
VStack {
if selectedURL != nil {
Text("Selected: \(selectedURL!.absoluteString)")
} else {
Text("Nothing selected")
}
Button(action: {
let panel = NSOpenPanel()
panel.allowedFileTypes = ["mp4"]
panel.canChooseDirectories = false
panel.canCreateDirectories = false
panel.allowsMultipleSelection = false
let result = panel.runModal()
if result == .OK {
self.selectedURL = panel.url
let savePath = self.getDownloadDirectory().appendingPathComponent("video.webm")
self.convertVideo(inputFilePath: self.selectedURL!.absoluteString, outputFilePath: savePath.absoluteString, callback: {(s) in
// omit the callback at this moment
})
}
}) {
Text("Select File")
}
}
.frame(width: 640, height: 480)
}
func getDownloadDirectory() -> URL {
let paths = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask)
return paths[0]
}
func convertVideo(inputFilePath: String, outputFilePath: String,
callback: @escaping (Bool) -> Void) -> (Process, DispatchWorkItem)? {
guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else {
return nil
}
let process = Process()
let task = DispatchWorkItem {
process.launchPath = launchPath
process.arguments = [
"-y",
"-i", inputFilePath,
"-vcodec", "vp8",
"-acodec", "libvorbis",
"-pix_fmt", "yuva420p",
"-metadata:s:v:0",
"alpha_mode=\"1\"",
"-auto-alt-ref", "0",
outputFilePath
]
process.standardInput = FileHandle.nullDevice
process.launch()
process.terminationHandler = { process in
callback(process.terminationStatus == 0)
}
}
DispatchQueue.global(qos: .userInitiated).async(execute: task)
return (process, task)
}
}What did I miss to allow FFMPEG process to access my selected file ? Thanks !
-
mpeg12dec : Extract CC user data into frame side data
26 novembre 2013, par John Stebbins -
Why does ffmpeg.exe started from Windows batch file close immediately without waiting for user input ?
12 juin 2017, par user2566350I searched google for an hour but I could not find anything to fix my issue. I found only "similar" fixes for problems I’m not having.
I am opening
ffmpeg.exe
from a batch file that only hasffmpeg.exe
with no arguments in it and it doesn’t work even though it did few hours ago.If I open command line from the folder and enter
ffmpeg.exe
it works because it’s not closingffmpeg
but waits for my input which is exactly how the batch file worked before.What could be the issue ?
I have not changed the batch file or
ffmpeg
one or their locations.Running on Windows 7 x64 if that matters.
Edit : File name is
start ffmpeg.bat
. It’s content is onlyffmpeg.exe
which used to work. I also triedstart ffmpeg.exe
andffmpeg
and changed the filename to1.bat
and1.cmd
but neither worked.Edit2 : Sorry i can’t explain myself better my english isn’t very good, however I will try to explain using these images :
This is what i get if i run CMD from the desktop and enter ffmpeg.exe
This is what I get when i run the batch file (after i added pause)
Batch contents : 1st line=ffmpeg.exe, 2nd line=pause.As you can see without the pause ffmpeg will terminate and not remain on the screen like the in first image.
I tried renaming the file and I tried to run it as admin but neither worked, Any suggestion why is it suddenly not running as it did yesterday ?