[FFmpeg-user] Playing an uncompressed raw interlaced RTP video stream

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Sep 26 18:30:40 EEST 2018


2018-09-26 14:15 GMT+02:00, villastar at yahoo.com.au
<villastar-at-yahoo.com.au at ffmpeg.org>:
> Hi,
>
> I am unable to get ffplay to play back a raw uncompressed interlaced
> video from an RTP stream, coming from a camera feed. The camera
> broadcasts the SDP using SAP, which I have been able to extract into
> a local file. The contents of the SDP:
>
>   v=0
>   o=- 340496 340496 IN IP4 192.168.204.40
>   s=Camera 2
>   c=IN IP4 239.192.1.40/15
>   t=0 0
>   m=video 5004 RTP/AVP 97
>   a=rtpmap:97 raw/90000
>   a=fmtp:97 sampling=YCbCr-4:2:2; width=720; height=576; depth=8;
> colorimetry=BT601-5; interlace
>   a=framerate:25
>
> I am using the following command to play it back with ffplay:
>
>   ffplay -protocol_whitelist file,rtp,udp -strict -2  -f sdp \
>     camera2.sdp

Complete, uncut console output missing.

> This resulting image showed two almost identical images laid out
> vertically.

This sounds like an issue that can be fixed with "-vf il=i" (or very
similar)...

> In order to show the results I am getting, I have also
> recorded a small sample with the following:
>
>   ffmpeg -protocol_whitelist file,rtp,udp -strict -2 -f sdp -i \
>     camera2.sdp -t 5 -vf "scale=240x192,idet" camera2_sample.mp4

But the file you provided looks completely broken / unfixable.

Is the only issue the missing interleaving?

Carl Eugen


More information about the ffmpeg-user mailing list