[Live-devel] Problem with sending a PAUSE command

SIMON Loic loic.simon.ext at oktal.fr
Tue Jan 19 08:20:19 PST 2016


Fantastic , i managed to make someting that works great thanks to that

I have a last little question about the recording of audio with openRTSP, when i use the  ' -a ' option in a command line, i get a Mpeg4-generic file ( wich one i cant read with usual players ).
In my application, i get in output a mp4 video alone file, and I am looking to have automatically a mp4 file with both audio and video.
Am i missing an option ? Or maybe openRTSP doesnt allow that ?

Thanks

________________________________________
De : live-devel <live-devel-bounces at ns.live555.com> de la part de Ross Finlayson <finlayson at live555.com>
Envoyé : lundi 18 janvier 2016 22:54
À : LIVE555 Streaming Media - development & use
Objet : Re: [Live-devel] Problem with sending a PAUSE command

> I am working on little app to record RTSP streaming
> So i included a large part of OpenRTSP in my app, calling it in another thread (my entry point is the main function), but i got stuck very fast in the infinite loop "DoEventLoop" and I managed to make myself a exit point using watchVariable
> But now i am trying to send a PAUSE command unsuccessfully for now
> So my question is, how can i send a PAUSE command ( and PLAY to resume) from another thread knowing that my "Open rtsp" thread is in the doEventLoop ??

First, if you haven’t already done so, please read:
        http://live555.com/liveMedia/faq.html#threads

You cannot ‘send’ a PAUSE command (or any other command) from another thread, because only the ‘LIVE555 event loop’ thread can do this.  However (and I think this is what you meant to ask), your separate ‘user interface’ thread can ‘signal’ the ‘LIVE555 event loop’ thread, by making it handle a special event.  The handler for this event would then send the PAUSE or PLAY command - i.e., within the ‘LIVE555 event loop’ thread.  One way to do this is to use the LIVE555 ‘event trigger’ mechanism; see:
        http://live555.com/liveMedia/faq.html#other-kinds-of-event


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
This email is intended only for the above addressee. Since the integrity of this message is not being secured on the internet, OKTAL SAS cannot be held responsible for its contents. Any use or unauthorized distribution is prohibited. If you are not the addressee of this message, please delete it and notify the sender.



More information about the live-devel mailing list