
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (53)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (11517)
-
FFmpeg : method DESCRIBE failed - 404 not found
17 avril 2018, par Trần Quốc ViệtI trying to play RTSP stream from my IP camera by FFmpeg lib.
Here is my code :
const char *filenameSrc = "rtsp://admin:Centic.vn2018@113.176.100.223/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif"; //Axis
AVDictionary *options = NULL;
av_dict_set(&options,"rtsp_flags","prefer_tcp",0);
av_dict_set(&options,"stimeout","1000000",0);
if ( avformat_open_input( &pFormatCtx, filenameSrc, NULL, &options ) != 0 ) {
std::cout << "Open File Error 12" << std::endl;
return -12;
}I get this error :
LBMixtureOfGaussians()
[rtsp @ 0xf22bc0] method DESCRIBE failed: 404 Not Found
Open File Error 12Someone can help me find the reason, thank in advance !
-
Android IP Camera
23 décembre 2014, par CptCattivoI’m looking for a good working solution to integrate an IP-Cameras video stream in my Android App. At the moment i am using the "Axis P1214-E" which has a good image quality, but i couldn’t get a "LIVE" stream from it. Either the stream is very laggy or it’s a few seconds delayed (sometimes even more) or the stream is shutting down after awhile. What i tried so far :
-
Using a SurfaceView to get the MJPEG Stream as described in this post : Android and MJPEG
Problem : Lagging -
Using a WebView to get the RTSP stream :
public class MainActivity extends Activity {
private static final String TAG = "VideoViewExample.MainActivity";
private static final String RTSP_URL = "rtsp://ip/axis-media/media.amp";
private VideoView videoView;
private MediaController mediaController;
private OnPreparedListener opl;
private int position = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if(savedInstanceState != null)
position = savedInstanceState.getInt("POSITION");
videoView = (VideoView) findViewById(R.id.videoView);
opl = new OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
videoView.seekTo(position);
if (position == 0) {
videoView.start();
}
else {
videoView.pause();
}
}
};
if (mediaController == null){
mediaController = new MediaController(this);
}
mediaController.setAnchorView(videoView);
AsyncTask at = new AsyncTask() {
@Override
protected Void doInBackground(Void... params) {
try{
videoView.setMediaController(mediaController);
videoView.setVideoURI(Uri.parse(RTSP_URL));
} catch (Exception e) {
Log.d(TAG, e.getMessage());
}
videoView.requestFocus();
videoView.setOnPreparedListener(opl);
return null;
}
};
at.execute();
}
@Override
protected void onPause() {
position = videoView.getCurrentPosition();
super.onPause();
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putInt("POSITION", position);
}
}Problem : Good video Quality, but delayed.
- Using external frameworks like FFMPEG and GSTREAMER (Only some examples so far)
Problem : Also very laggy and/or delayed.
Now i’m running out of ideas to get this working. It’s very important for my Application that the stream is live and not lagging.
I’m developing on a "Banana Pi" board with Android 4.2.2 (4.4 is possible as well).Does anybody know how to get this working ? Or maybe should i use an other camera ? Do you have any suggestions that would work well with android ?
Thanks in advance
Christian
-
-
Inserting SPS, PPS values using ffmpeg for a manifest file
1er mai 2023, par GatothgajI have a bunch of ts segments captured from an RTSP stream coming from an Axis camera which does not have SPS/PPS parameters set.


Because of this I am not able to play the ts segments.


I get the following error when trying to play using ffplay.


[NULL @ 0x109813830] non-existing PPS 0 referenced
[h264 @ 0x117f0a360] non-existing PPS 0 referenced
[h264 @ 0x117f0a360] decode_slice_header error
[h264 @ 0x117f0a360] no frame!



Is there a way to recover the video by lets say inserting sprop-parameters (SPS/PPS) before every IDR frame ?


Is there a way to recover these ts segments ? How can I add SPS/PPS before every IDR ?


I tried to do that with gstreamer as well but no luck.


gst-launch-1.0 filesrc location=0.ts ! tsdemux name=demux demux. ! \
 h264parse config-interval=-1 ! mpegtsmux name=mux ! filesink location=0_gstfix.ts demux. ! mux.



Thanks a lot for your help !