H264 receiving problem with VLC

About encoding, codec settings, muxers and filter usage
silvara
Blank Cone
Blank Cone
Posts: 29
Joined: 03 Jul 2008 10:52

H264 receiving problem with VLC

Postby silvara » 03 Jul 2008 11:11

Hi all;

I search the forum but unfortunately i couldnt find the answer for my problem.
My application creates rtp socket from ip 192.168.0.135 to 192.168.0.165.It carries video packages with H264 format.
I want to receive this stream from vlc at 192.168.0.165. So i create below sdp file;

Code: Select all

v=0 o=- 597327894206 2 IN IP4 192.168.0.165 s=NONE t=0 0 c=IN IP4 192.168.0.165 m=video 14444 RTP/AVP 98 b=AS:28 a=rtpmap:98 H264/90000
When i load it , VLC displays only one frame and it stops. I also tried to stop and play , it still shows only one fram and stops.

What might be the problem ? Your help will be appriciated

Below is the messages of vlc;



Code: Select all

main debug: creating new input thread main debug: waiting for thread completion main debug: thread 4176 (input) created at priority 1 (input/input.c:265) main debug: `file://C:\a.sdp' gives access `file' demux `' path `C:\a.sdp' main debug: creating demux: access='file' demux='' path='C:\a.sdp' main debug: looking for access_demux module: 0 candidates main warning: no access_demux module matched "file" main debug: creating access 'file' path='C:\a.sdp' main debug: looking for access2 module: 5 candidates access_file debug: opening file `C:\a.sdp' main debug: using access2 module "access_file" main debug: pre-buffering... main debug: received first data for our buffer main debug: creating demux: access='file' demux='' path='C:\a.sdp' main debug: looking for demux2 module: 45 candidates live555 debug: RTP subsession 'video/H264' main debug: selecting program id=0 main debug: using demux2 module "live555" main debug: looking for a subtitle file in C:\ main debug: looking for decoder module: 28 candidates ffmpeg debug: libavcodec already initialized ffmpeg debug: postprocessing disabled ffmpeg debug: ffmpeg codec (h264) started main debug: using decoder module "ffmpeg" main debug: looking for packetizer module: 17 candidates main debug: using packetizer module "packetizer_h264" main debug: thread 4124 (decoder) created at priority 0 (input/decoder.c:159) [quote]main debug: `file://C:\a.sdp' successfully opened packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS[/quote] packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 debug: found NAL_SPS packetizer_h264 debug: found NAL_PPS ffmpeg debug: concealing 99 DC, 99 AC, 99 MV errors (h264@00B949D0) ffmpeg debug: concealing 0 DC, 0 AC, 0 MV errors (h264@00B949D0) main debug: no usable vout present, spawning one main debug: window size: 176x144 main debug: looking for video output module: 6 candidates vout_directx debug: creating DirectXEventThread main debug: waiting for thread completion vout_directx debug: DirectXCreateWindow vout_directx debug: created video sub-window main debug: thread 4016 (DirectX Events Thread) created at priority 0 (directx.c:278) vout_directx debug: DirectXEventThread running vout_directx debug: DirectXInitDDraw vout_directx debug: directx-device: vout_directx debug: DirectXEnumCallback: Primary Display Driver, display vout_directx debug: DirectXEnumCallback: Mobile Intel(R) 965 Express Chipset Family, \\.\DISPLAY1 vout_directx debug: selecting Mobile Intel(R) 965 Express Chipset Family, \\.\DISPLAY1 vout_directx debug: DirectXEnumCallback: Mobile Intel(R) 965 Express Chipset Family, \\.\DISPLAY2 vout_directx debug: screen dimensions (0x0,1280x800) vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1 vout_directx debug: End DirectXInitDDraw vout_directx debug: DirectXCreateDisplay main debug: Registering subpicture channel, ID: 2 main debug: Registering subpicture channel, ID: 3 main debug: Registering subpicture channel, ID: 4 main debug: Registering subpicture channel, ID: 5 vout_directx debug: DirectXCreateClipper vout_directx debug: disabling screen saver main debug: using video output module "vout_directx" main debug: waiting for thread completion vout_directx debug: NewPictureVec overlay:yes chroma:YV12 vout_directx debug: YUV overlay created successfully vout_directx debug: End NewPictureVec (succeeded) main debug: got 1 direct buffer(s) main debug: picture in 176x144 (0,0,176x144), chroma I420, ar 11:9, sar 1:1 main debug: picture user 176x144 (0,0,176x144), chroma I420, ar 11:9, sar 1:1 main debug: picture out 176x144 (0,0,176x144), chroma I420, ar 11:9, sar 1:1 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 4224 (video output) created at priority 1 (video_output/video_output.c:421) main warning: late picture skipped (7053002) main warning: late picture skipped (7276855) main warning: late picture skipped (7438828) main warning: late picture skipped (7641654) main warning: late picture skipped (7803978) main warning: late picture skipped (8006802) main warning: late picture skipped (8169603) main warning: late picture skipped (8331729) main warning: late picture skipped (8535067) main warning: late picture skipped (8696931) main warning: late picture skipped (8776983) main warning: late picture skipped (8899168) main warning: late picture skipped (9124533) main warning: late picture skipped (9265476) main warning: late picture skipped (9386777) main debug: control type=0 main debug: control: stopping input main debug: closing input main debug: removing module "live555" main debug: removing module "access_file" ffmpeg debug: ffmpeg codec (h264) stopped main debug: removing module "ffmpeg" main debug: thread times: real 0m9.968813s, kernel 0m0.031250s, user 0m0.015625s main debug: thread 4124 joined (input/decoder.c:191) main debug: killing decoder fourcc `h264', 0 PES in FIFO main debug: removing module "packetizer_h264" main debug: thread times: real 0m9.984438s, kernel 0m0.015625s, user 0m0.000000s main debug: thread 4176 joined (input/input.c:412) main debug: garbage collector destroys 1 vout vout_directx debug: DirectXCloseSurface vout_directx debug: DirectXCloseDisplay vout_directx debug: DirectXCloseDisplay clipper vout_directx debug: DirectXCloseDisplay display vout_directx debug: DirectXCloseDDraw vout_directx debug: CloseVideo vout_directx debug: DirectXEventThread terminating vout_directx debug: DirectXCloseWindow vout_directx debug: WinProc WM_DESTROY main debug: thread times: real 0m3.218770s, kernel 0m0.015625s, user 0m0.000000s main debug: thread 4016 joined (directx.c:509) main debug: removing module "vout_directx" main debug: thread times: real 0m3.125020s, kernel 0m0.031250s, user 0m0.015625s main debug: thread 4224 joined (video_output/video_output.c:461)

caalip
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2008 06:50

Re: H264 receiving problem with VLC

Postby caalip » 10 Jul 2008 02:15

I have simular problem.

I get this message about a hundred times, when trying to play an rtsp stream from a VLC server.

Code: Select all

packetizer_h264 warning: waiting for SPS/PPS
I guess VLC does not stream rtsp with h264 properly. If you figure out anything about the problem, I would be interested in the solution.

gooral
New Cone
New Cone
Posts: 1
Joined: 05 Aug 2008 03:38

Re: H264 receiving problem with VLC

Postby gooral » 05 Aug 2008 03:41

you should insert pps and sps information to sdp file or send it in rtp packet.

caalip
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2008 06:50

Re: H264 receiving problem with VLC

Postby caalip » 06 Aug 2008 18:54

you should insert pps and sps information to sdp file or send it in rtp packet.
I think it is basically a bug in vlc that vlc does not send the pps/sps information with the first i-frame. So if the video only has one iframe the movie will never display.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests