I am trying to transcode a video stream into h264 format and properly play it on the receiver side. For the moment, I am using a .h264 extension file and I can play it on vlc with no problem and the codec setting verifies that its H264-MPEG-4 AVC(part 10)(h264). However, there seems to be a problem with my transcoding options, I can actually observe H264 packets but for some reason the receiver side cant decode it properly. Here's my command line;
Code: Select all
vlc -vvv H264.h264 :sout#transcode{vcodec=h264,vb=300,acodec=none}:duplicate{dst=rtp{dst=230.0.0.0,port-video=9004,sdp=sap://,name=test264}}
Code: Select all
rtp://230.0.0.0:9004
http://i51.tinypic.com/nbotux.jpg
I had similar problems for the audio(g711/alaw) when streaming to a SIP telephony where the sound was intermittent and kinda robotic, I fixed this by modifying ptime value for rtp_set_ptime function call in rtp.c. I was wondering if this is a similar problem or do I have to change transcoding settings(do I need to use ffmpeg,x264 etc. libs for h264?).
Any help would be appriciated.