
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (67)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
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 à (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (8867)
-
How to record live streamed video from rtsp url in android
22 mars 2017, par AstroI am doing an android application. In my application I need to record live streamed video.And here I am using rtsp protocol and ffmpeg library to stream and record video.Live streaming is working properly, but video recording is not working. I think it’s a problem of URL Connection I am used here to record video.But I don’t know what is the correct connection method.I search lot about this, but can’t find anything. If anybody know this please help me.
This is my startRecording() method
private void startRecording() {
try {
URL url = new URL(path);
URLConnection urlConnection1 = url.openConnection();
in1 = new BufferedInputStream(urlConnection1.getInputStream());
} catch (IOException e) {
e.printStackTrace();
}
try {
mIn = new MjpegInputStream(in1,MIN_ARRAY_LENGTH);
mIn.resetFrameCount();
// return new MjpegInputStream(in, MIN_ARRAY_LENGTH);
recorder.start();
calltimer();
audioStatus = Micstatus.equals("1");
startTime = 0;
completedFrames = 0;
audioCompleted = 0;
isRecording = true;
if (isJelliBean) {
resetTextureLayout();
}
trial.setCanZoom(isRecording);
setMenuEnabled();
threadVideo = new VideoRecording();
threadVideo.start();
if (audioStatus) {
threadAudio = new AudioRecordRunnables();
threadAudio.start();
}
} catch (Exception e) {
try {
isRecording = false;
trial.setCanZoom(isRecording);
setMenuEnabled();
Toast.makeText(getApplicationContext(), "Try again1", Toast.LENGTH_SHORT).show();
} catch (Exception e1) {
}
}
}This is my ViedoRecording class
private class VideoRecording extends Thread implements Runnable {
public void run() {
try {
int i = -1;
int cc = 0;
int completed = 0;
FileOutputStream out;
RecordingHelper recordingHelper;
try {
Thread.sleep(VIDEO_FRAME_RATE < 6 ? 2000 : 300);
} catch (Exception e) {
}
String file = getCacheDir() + "/temp.jpg";
opencv_core.IplImage iplImage;
runOnUiThread(videoTimeRunnable);
while (isRecording || completed < mIn.totalFrames || true) {
try {
if (cc < 10) {
cc++;
}
if (i > (MIN_ARRAY_LENGTH - 2)) {
i = -1;
}
recordingHelper = mIn.datas[i + 1];
if (recordingHelper != null && recordingHelper.length > 1) {
i++;
completed++;
if (startTime == 0) {
startTime = System.currentTimeMillis();
}
completedFrames++;
out = new FileOutputStream(file);
out.write(recordingHelper.data);
out.flush();
out.close();
Log.e("recording", "=" + recordingHelper.rotaion);
iplImage = cvLoadImage(file, 1);
OpenCVFrameConverter.ToIplImage grabberConverter = new OpenCVFrameConverter.ToIplImage();
Frame frame = grabberConverter.convert(iplImage);
recorder.record(frame);
opencv_core.cvReleaseImage(iplImage);
mIn.datas[i] = null;
totalFramesRecordedByActivity++;
runOnUiThread(videoTimeRunnable);
} else if (!isRecording && startTime > 0) {
break;
} else if (cc > 5 && mIn.totalFrames < 1) {
break;
}
} catch (Exception e) {
}
}
new File(file).delete();
endTime = System.currentTimeMillis();
videoThreadFinished = true;
finalizeRecording();
} catch (Throwable t) {
finishThis();
}
}
} -
If multiple channels, merge then take sample length from audio file and save it to s3
18 mai 2017, par khinesterI am using transloadit to extract the audio from a video file, which is then saved to S3.
This works great, but I wanted to know how to :-
check if the file has multiple channels and then squash it inot one as per https://transloadit.com/demos/audio-encoding/merging-multiple-audio-streams/ - do I need to check for this or do i default to use this robot ?
-
extract a small sample from the audio file - and save this as a separate file.
For example, I have a 2h audio file from which I want to take 5% of the length and save this as sample.mp3
In ffmpeg, i can cut :
ffmpeg -ss 0 -t 30 -i original.mp3 sample.mp3
but I am unsure how to chain this workflow, here is what i have thus far :
const opts = {
params: {
notify_url: `${ process.env.SELF }/services/trans/${ jwToken }`,
steps: {
import: {
robot: '/s3/import',
use: ':original',
bucket: process.env.S3_INGEST,
path: ingest.key,
key: process.env.AWS_ID,
secret: process.env.AWS_SECRET,
},
encode: {
robot: '/audio/encode',
use: 'import',
ffmpeg_stack: 'v2.2.3',
preset: 'aac',
ffmpeg: {
ab: '128k',
},
},
export: {
robot: '/s3/store',
use: 'encode',
bucket: s3Export,
path: `${ prefix }/${ token }.m4a`,
headers: {
'Content-Type': 'audio/mp4',
'x-amz-server-side-encryption': 'AES256',
},
key: process.env.AWS_ID,
secret: process.env.AWS_SECRET,
},
},
},
};in the docs, https://transloadit.com/docs/conversion-robots/ i can’t see how to do this ?
any advice is much appreciated.
-
-
ffmpeg - Concat multi mp4 files with audio file not working
29 mars 2017, par Thanh DaoI follow this thread to concat multi mp4 files with audio file.
But its not success. Have a lots error notifications had been displayed. I dont know how to fix it.
Below is my command :"ffmpeg" -f concat -safe 0 \
-i /path/to/text.txt \
-i /path/to/audio.mp3 -vsync vfr -vf scale="640:640" -pix_fmt yuv420p \
/path/to/output.mp4 2>&1The detail contents of
text.txt
file '/path/to/file1.mp4'
file '/path/to/file2.mp4'
file '/path/to/file3.mp4'
file '/path/to/file4.mp4'
file '/path/to/file5.mp4'
file '/path/to/file6.mp4'
file '/path/to/file7.mp4'
file '/path/to/file8.mp4'
file '/path/to/file9.mp4'
file '/path/to/file10.mp4'
file '/path/to/file11.mp4'
file '/path/to/file12.mp4'
file '/path/to/file13.mp4'
file '/path/to/file14.mp4'
file '/path/to/file15.mp4'
file '/path/to/file16.mp4'
file '/path/to/file17.mp4'
file '/path/to/file18.mp4'And some lines of output errors :
[concat @ 0x357e620] DTS 192000 < 229888 out of order
[h264 @ 0x36920e0] top block unavailable for requested intra mode -1
[h264 @ 0x36920e0] error while decoding MB 32 0
[h264 @ 0x36920e0] concealing 2025 DC, 2025 AC, 2025 MV errors in I frame
[h264 @ 0x36b7a80] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
[h264 @ 0x36ff440] corrupted macroblock 26 1 (total_coeff=-1)
[h264 @ 0x36ff440] error while decoding MB 26 1
[h264 @ 0x36ff440] concealing 2003 DC, 2003 AC, 2003 MV errors in P frame
[h264 @ 0x371af40] concealing 1456 DC, 1456 AC, 1456 MV errors in P frame
[h264 @ 0x3736a40] ref 5 overflow
[h264 @ 0x3736a40] error while decoding MB 1 1
[h264 @ 0x3736a40] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
[h264 @ 0x3752520] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
[h264 @ 0x376dfa0] P sub_mb_type 8 out of range at 2 1
[h264 @ 0x376dfa0] error while decoding MB 2 1
[h264 @ 0x376dfa0] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
[h264 @ 0x37a55a0] ref 6 overflow
[h264 @ 0x37a55a0] error while decoding MB 3 1
[h264 @ 0x37a55a0] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
[h264 @ 0x3789aa0] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame
[h264 @ 0x36b7a80] ref 5 overflow
[h264 @ 0x36b7a80] error while decoding MB 4 1
[h264 @ 0x36b7a80] concealing 2025 DC, 2025 AC, 2025 MV errors in P frame
[h264 @ 0x36920e0] concealing 1449 DC, 1449 AC, 1449 MV errors in P frame