GStreamer > rtsp > tcp dump > dissector > reaasembly > playable video file
Michael Gruner
michael.gruner at ridgerun.com
Sat Feb 23 02:06:17 UTC 2019
I may be missing some context here, but why do you need to TCP dump in order to save into a file?
Won’t something like the following achieve roughly the same?
gst-launch-1.0 uridecodebin uri=rtsp://ip.address:port/mapping ! x264enc ! qtmux ! filesink location=file.mp4 -e
This will receive de RTSP stream, decode it, re-encode it, and save it to a file. If you knew the camera’s encoding format and handled key frames properly you could do it without the transcoding and save the processing (and battery life).
You could even capture the 4 cameras and combine them in a single file using the compositor.
Michael
www.ridgerun.com
> On Feb 22, 2019, at 8:32 AM, Nicolas Dufresne <nicolas at ndufresne.ca> wrote:
>
>
>
> Le ven. 22 févr. 2019 04 h 27, darius <manta103g at gmail.com> a écrit :
>> re:
>> GStreamer > rtsp > tcp dump > dissector > reaasembly > playable video file
>>
>> Hi,
>>
>> I plan to install a number of IP (Wifi) cameras supporting WiFi Direct
>> (P2P)
>>
>> I can access a single IP camera from app run on Android tablet.
>>
>> Some claim, 4 wifi cameras can be connected to Android tablet to get quad
>> video mode enabled.
>>
>> I would like to emulate WiDi Direct camera with GStreamer, as a proof of
>> concept,
>> if rtsp video stream can tcp dumped (saved to a file), processed
>> (dissected), reassembled into video (file), animated gif, image frames, to
>> be played back as video in VLC or other video player.
>>
>> My project aims at setting up a number of WiFi Direct cameras in outdoor, to
>> let a driver on-the-goto watch a front and back of high/ her car while
>> driving.
>>
>> As you know, a driver is banned to operate his tablet, smartphone while
>> driving, for safety reasons.
>>
>> So an app run on Android's tablet, smartphone , should monitor WiFi traffic,
>> select Wifi video stream from my WiFi Direct camera/s , save it as tcp dump,
>> process, dissect, reassmbly and play back as a video, for just few seconds,
>> while a driver is still in close proximity of such camera.
>>
>> Ok, WiFi Direct camera can support multicast, to let more drivers to access
>> the same video stream, to be played on their smartphone, following:
>> 1. WiFi pairing
>> 2. Start video player app
>> 3. Close video player app if signal from WiFi Direct camera is lost
>>
>> but if you drive a car, it takes time to execute the above operations, so
>> video stream signal can be easily lost
>>
>> The same procedure should be repeated accessing another WiFi Direct camera (
>> known by UID or SSID).
>>
>> Video stream from my cameras should bo open, public, not encrypted
>>
>> That way WiFi Direct camera can work as an old analog camera, multicasting
>> video to unlimited of concurrent users.
>>
>> WiFi direct camera has a limit set on a number of concurrent users, so video
>> access can be easily disrupted if a number of drivers park their cars while
>> keeping connected to WiFi Direct camera match the limit and a new driver
>> on-the-go can not be paired to the same camera.
>>
>> Some use a solution to power on/ power off a camera to log out long-time
>> users, in a loop.
>>
>> But I don't have such option and it takes camera more than 10-20s to start
>> video streaming again after power is back, making such solution not welcome.
>>
>> So my idea is to use GStreamer to emulate WiFi Direct camera
>> and save rtsp video stream as tcp dump
>> find a proper dissector ( none found with wireshark)
>> and
>> tcp reassembler
>>
>> to make things to work as planned.
>>
>> Please let me know your opinion.
>
>
> I'm not saying I have followed everything here, but are you looking for pcapparse element ?
>
>>
>>
>>
>> --
>> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190222/218ae569/attachment.html>
More information about the gstreamer-devel
mailing list