[FFmpeg-user] RTSP Streaming FFMPEG -> VLC etc.

Rick van der Boor rick.vanderboor at jvr.nl
Mon Nov 25 14:22:11 CET 2013


Allright here comes:

FFMPEG output:
C:\Users\rick>ffmpeg -f lavfi -i testsrc -f rtp rtp://224.0.0.10:20000
ffmpeg version N-58241-g260fc0d Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 18 2013 02:25:42 with gcc 4.8.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 53.100 / 52. 53.100
  libavcodec     55. 43.101 / 55. 43.101
  libavformat    55. 21.100 / 55. 21.100
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1
 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Output #0, rtp, to 'rtp://224.0.0.10:20000':
  Metadata:
    encoder         : Lavf55.21.100
    Stream #0:0: Video: mpeg4, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 k
b/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 224.0.0.10
t=0 0
a=tool:libavformat 55.21.100
m=video 20000 RTP/AVP 96
b=AS:200
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=1

Press [q] to stop, [?] for help
frame=  298 fps=0.0 q=2.7 size=     465kB time=00:00:11.92 bitrate= 319.8kbits/s
frame=  594 fps=0.0 q=4.8 size=     867kB time=00:00:23.76 bitrate= 299.0kbits/s
frame=  887 fps=591 q=6.6 size=    1191kB time=00:00:35.48 bitrate= 275.0kbits/s
frame= 1180 fps=589 q=7.6 size=    1493kB time=00:00:47.20 bitrate= 259.1kbits/s
frame= 1248 fps=588 q=7.4 Lsize=    1557kB time=00:00:49.92 bitrate= 255.4kbits/
s


SDP OUTPUT:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 224.0.0.10
t=0 0
a=tool:libavformat 55.21.100
m=video 20000 RTP/AVP 96
b=AS:200
a=rtpmap:96 MP4V-ES/90000
ffplay
a=fmtp:96 profile-level-id=1

FFPLAY Output:
C:\Users\rick>ffplay D:\lavfi.sdp
ffplay version N-58241-g260fc0d Copyright (c) 2003-2013 the FFmpeg developers
  built on Nov 18 2013 02:25:42 with gcc 4.8.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 53.100 / 52. 53.100
  libavcodec     55. 43.101 / 55. 43.101
  libavformat    55. 21.100 / 55. 21.100
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mpeg4 @ 006b4080] hmm, seems the headers are not complete, trying to guess time
_increment_bits
[mpeg4 @ 006b4080] my guess is 5 bits ;)
[mpeg4 @ 006b4080] hmm, seems the headers are not complete, trying to guess time
_increment_bits
[mpeg4 @ 006b4080] my guess is 5 bits ;)
[mpeg4 @ 006b4080] looks like this file was encoded with (divx4/(old)xvid/opendi
vx) -> forcing low_delay flag
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture   0KB sq=    0B f=0/0
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
[mpeg4 @ 006b4080] releasing zombie picture
[mpeg4 @ 006b4080] [IMGUTILS @ 029ef724] Picture size 0x0 is invalid
[mpeg4 @ 006b4080] video_get_buffer: image parameters invalid
[mpeg4 @ 006b4080] get_buffer() failed
[mpeg4 @ 006b4080] thread_get_buffer() failed
[mpeg4 @ 006b4080] get_buffer() failed (-22 00000000)
Input #0, sdp, from 'D:\lavfi.sdp':
  Metadata:
    title           : No Name
  Duration: N/A, start: 0.040000, bitrate: N/A
    Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 320x240 [SAR 1:1 DAR 4:
3], 25 fps, 25 tbr, 90k tbn, 25 tbc
[mpeg4 @ 007076e0] warning: first frame is no keyframe
   4.30 M-V:  0.020 fd=   0 aq=    0KB vq= 2517KB sq=    0B f=2/0
C:\Users\rick>

(working)

VLC OUTPUT:
[020cfbe4] oldrc interface: VLC media player - 2.1.1 Rincewind
[020cfbe4] oldrc interface: Copyright © 1996-2013 the VideoLAN team
[020cfbe4] oldrc interface:
Waarschuwing: als u de GUI niet meer kunt bereiken, opent u een commandoregelven
ster en start u in de map waar u VLC geïnstalleerd heeft "vlc -l qt".

Afstandsbediening interface geinitialiseerd, `help' voor help.
[020cfbe4] main interface debug: using interface module "oldrc"
[020ba584] main playlist debug: processing request item: null, node: Afspeellijs
t, skip: 0
[020ba584] main playlist debug: rebuilding array of current - root Afspeellijst
[020ba584] main playlist debug: rebuild done - 1 items, index -1
[020ba584] main playlist debug: starting playback of the new playlist item
[020ba584] main playlist debug: resyncing on lavfi.sdp
[020ba584] main playlist debug: lavfi.sdp is at 0
[020ba584] main playlist debug: creating new input thread
[020dd464] main input debug: Creating an input for 'lavfi.sdp'
[020dd464] main input debug: using timeshift granularity of 50 MiB, in path 'C:\
Users\rick\AppData\Local\Temp'
[020dd464] main input debug: `file:///D:/lavfi.sdp' gives access `file' demux `'
 path `/D:/lavfi.sdp'
[020dd464] main input debug: creating demux: access='file' demux='' location='/D
:/lavfi.sdp' file='D:\lavfi.sdp'
[0210e49c] main demux debug: looking for access_demux module matching "file": 12
 candidates
[0210e49c] main demux debug: no access_demux modules matched
[020dd464] main input debug: creating access 'file' location='/D:/lavfi.sdp', pa
th='D:\lavfi.sdp'
[0215d7d4] main access debug: looking for access module matching "file": 20 cand
idates
[0215d7d4] filesystem access debug: opening file `D:\lavfi.sdp'
[0215d7d4] main access debug: using access module "filesystem"
[020ff63c] main stream debug: Using stream method for AStream*
[020ff63c] main stream debug: starting pre-buffering
[020ff63c] main stream debug: received first data after 1 ms
[020ff63c] main stream debug: pre-buffering done 191 bytes in 0s - 93 KiB/s
[020ff59c] main stream debug: looking for stream_filter module matching "any": 6
 candidates
[020ff59c] main stream debug: no stream_filter modules matched
[020ff59c] main stream debug: looking for stream_filter module matching "record"
: 6 candidates
[020ff59c] main stream debug: using stream_filter module "record"
[020dd464] main input debug: creating demux: access='file' demux='' location='/D
:/lavfi.sdp' file='D:\lavfi.sdp'
[0210e49c] main demux debug: looking for demux module matching "any": 63 candida
tes
[0210e49c] live555 demux debug: version 2012.12.18
[0210e49c] live555 demux debug: RTP subsession 'video/MP4V-ES'
[020dd464] main input debug: selecting program id=0
[0210e49c] live555 demux debug: setup start: 0.000000 stop:0.000000
[0210e49c] live555 demux debug: play start: 0.000000 stop:0.000000
[0210e49c] main demux debug: using demux module "live555"
[020dd464] main input debug: looking for a subtitle file in D:\
[020bf4dc] main decoder debug: looking for decoder module matching "any": 39 can
didates
[020bf4dc] avcodec decoder debug: trying to use direct rendering
[020bf4dc] avcodec decoder debug: allowing 4 thread(s) for decoding
[020bf4dc] avcodec decoder debug: avcodec codec (MPEG-4 Video) started
[020bf4dc] main decoder debug: using decoder module "avcodec"
[020cfce4] main demux meta debug: looking for meta reader module matching "any":
 2 candidates
[020cfce4] lua demux meta debug: Trying Lua scripts in C:\Users\rick\AppData\Roa
ming\vlc\lua\meta\reader
[020cfce4] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\Vi
deoLAN\VLC\lua\meta\reader
[020cfce4] lua demux meta debug: Trying Lua playlist script C:\Program Files (x8
6)\VideoLAN\VLC\lua\meta\reader\filename.luac
[020cfce4] main demux meta debug: no meta reader modules matched
[020dd464] main input debug: `file:///D:/lavfi.sdp' successfully opened
[0210e49c] live555 demux error: no data received in 10s, aborting
[020dd464] main input debug: EOF reached
[[020bf4dc] main decoder debug: 0removing module "avcodec"20ba584] main playlist
 debug:
finished input
[020bf4dc] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) stopped
[020bf4dc] main decoder debug: killing decoder fourcc `mp4v', 0 PES in FIFO
[0210e49c] main demux debug: removing module "live555"
[020ff59c] main stream debug: removing module "record"
[0215d7d4] main access debug: removing module "filesystem"
[020dd464] main input debug: Program doesn't contain anymore ES
[020ba584] main playlist debug: dead input
[020ba584] main playlist debug: changing item without a request (current 0/1)
[020ba584] main playlist debug: nothing to play





2013/11/25 rick at jvr.nl <rick at jvr.nl>:
> Should you need log outputs etc. please let me know!

No doubts we need it!
Please provide
- full uncut ffmpeg console output with command itself
- VLC full command and console output (could be more helpful with "-v -v -v")
- produced SDP file
- source media file sample, or specify if your problem reproduces with test sources available with ffmpeg ("-f lavfi -i testsrc", etc.)

--
Andrey Utkin
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user



Rick van der Boor
Warehouse

 Mobile: +31 (0) 621 66 94 78
 Email: rick.vanderboor at jvr.nl
Chamber of commerce No. 20040032
Rotterdam                  |                 Hilversum                 |                 Roosendaal
JVR audiovisual bv
Rucphensebaan 52
4706 PJ  Roosendaal
Netherlands

T:  +31 (0)165 581000
F:  +31 (0)165 581347
W: www.jvr.nl
All quotes and purchase orders are subject to our Terms and Conditions of business.

JVR audiovisual is an Avesco Group plc company.

The information contained in this email and any attachments may be confidential. If you have received this
email in error, please notify us immediately by telephone or return email. If you are not the intended
recipient, you should delete the email and any attachments from your system and you should not read, use
for any purpose or disclose to any person the contents.

mcl United Kingdom | jvr Netherlands | action Spain are part of the MCL Europe Group of companies.



More information about the ffmpeg-user mailing list