
Recherche avancée
Autres articles (54)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 (...)
Sur d’autres sites (4476)
-
How does the ProcessBuilder constructor parameter work ?
19 septembre 2014, par HousemanI’m doing this :
String[] command = {ffmpegLoc+"ffmpeg.exe",
"-i ",
"\""+dir+params.getString(4)+".flv"+"\"",
"-copyts",
"-crf 18",
"-profile:v baseline",
"-level 3.0",
"-pix_fmt yuv420p",
"-preset veryslow",
"\""+dir+params.getString(4)+".mp4"+"\""};
try {
getLogger().info("ffmpeg command " + command);
ProcessBuilder builder = new ProcessBuilder(command);
builder.redirectErrorStream(true);
getLogger().info("Starting process");
Process process = builder.start();
InputStream stream = process.getInputStream();
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line = null;
while((line = in.readLine()) != null) {
System.out.println(line);
}
process.waitFor();And I get this error from ffmpeg, which initializes correctly :
Unrecognized option 'i '.
Error splitting the argument list: Option not foundSo I thought "Maybe I don’t need to split out each argument into an array"
So I replaced the command with this :
String[] command = {ffmpegLoc+"ffmpeg.exe",
"-i " + "\""+dir+params.getString(4)+".flv"+"\"" + " -copyts -crf 18 -profile:v baseline -level 3.0 -pix_fmt yuv420p -preset veryslow "+"\""+dir+params.getString(4)+".mp4"+"\""};And now I get this :
Unrecognized option 'i C:/Program'.
Error splitting the argument list: Option not foundWhat happened to that hyphen before
i
?What happened to those double quotes wrapping the path to the .flv file ?
What is going on here ?
Edit :
I dropped the escaped double-quotes, as per this answer, and now I get this :
Unrecognized option 'i C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.1.0/content/recorder/vid_test001.flv -copyts -crf 18 -profile:v baseline -level 3.0 -pix_fmt yuv420p -preset veryslow C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.1.0/content/recorder/vid_test001.mp4'.
Error splitting the argument list: Option not foundAnd again that hyphen in front of the
i
is missing.Edit 2 :
Let’s combine them : No escaped double-quotes combined with arguments each on their own index :
String[] command = {ffmpegLoc+"ffmpeg.exe",
"-i",
dir+params.getString(4)+".flv",
"-copyts",
"-crf 18",
"-profile:v baseline",
"-level 3.0",
"-pix_fmt yuv420p",
"-preset veryslow",
dir+params.getString(4)+".mp4"};ffmpeg now gives me :
Unrecognized option 'crf 18'.
So we got to where we encountered our first whitespace, then failed.
-
Set content-length when converting video stream to audio (w/ FFMPEG & Node.js)
15 septembre 2014, par TaconutSo I’m building a program that requires that I take a video and convert it to audio. I’m currently streaming the audio directly to the browser via node.js, but I’ve run into a major problem : I don’t know how to find out how many bytes my audio is. As a result, the browser keeps throwing
net::ERR_CONTENT_LENGTH_MISMATCH
when I don’t get the right content-length. I’ve tried several strategies, all of which have failed :-
Computing the size manually (Seconds * bitrate(kbps) * (1024 / 8)).
This produces an approximate answer, since I only know the length down to the nearest couple of seconds. Even though I’m relatively close, I still end up getting the same MISMATCH error. -
Piping the Stream to a buffer, getting the buffer’s length, and piping the buffer to the browser
This works, but it can take 15-20 seconds to load each song. It’s incredibly slow and puts a considerably larger load on the server
-
-
FFMPEG - Merge two video files into one [duplicate]
24 septembre 2015, par MaximusThis question already has an answer here :
-
Concatenate two mp4 files using ffmpeg
8 answers
I have converted two different format videos into TS format by using FFMPEG and now I am trying to merge them into one video. I have used following two commands but the output file only shows the first video.
- ffmpeg -i "concat:1.ts|2.ts" -c copy -qscale:v 2 output.mp4
- ffmpeg -i "concat:1.ts|2.ts" -c copy -bsf:a aac_adtstoasc -qscale:v 2 output.mp4
1.ts
video does not have audio. -
Concatenate two mp4 files using ffmpeg