[FFmpeg-trac] #2360(FFmpeg:new): FFmpeg rtp streaming was not simultaneously
FFmpeg
trac at avcodec.org
Thu Mar 14 10:16:03 CET 2013
#2360: FFmpeg rtp streaming was not simultaneously
-------------------------------------+-------------------------------------
Reporter: Ken_JJ | Type: defect
Status: new | Priority: normal
Component: FFmpeg | Version: 1.1.3
Keywords: rtp | Blocked By:
simultaneously | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Hello,I use ffmpeg-1.1.3 and deliver stream to darwin server.
First,I create a sdp data.
ffmpeg -f video4linux2 -s 720:480 -i /dev/video0 -f alsa -i hw:0,0 -an
-vcodec libx264 -pix_fmt yuv420p -s 176x144 -b 104k -r 12 -profile
baseline -level 30 -flags +global_header -f rtp rtp://XXXIP:20000 -vn
-flags +global_header -acodec libfaac -ac 1 -ar 16000 -ab 16k -f rtp
rtp://XXXIP:20002>test.sdp
SDP Data
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 54.59.106
m=video 20000 RTP/AVP 96
c=IN IP4 XXXIP
b=AS:104
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-
sets=Z0LAHtkCxOhAAAADAEAAAAYDxYuS,aMuMsg==; profile-level-id=42C01E
m=audio 20002 RTP/AVP 97
c=IN IP4 XXXIP
b=AS:16
a=rtpmap:97 MPEG4-GENERIC/16000/1
a=fmtp:97 profile-level-id=1;mode=AAC-
hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=1408
Second,I copy the sdp data in Darwin Server /usr/local/movies/
and remove the word "SDP:"
Third,
Play ffmpeg
ffmpeg -f video4linux2 -s 720:480 -i /dev/video0 -f alsa -i hw:0,0 -an
-vcodec libx264 -pix_fmt yuv420p -s 176x144 -b 104k -r 12 -profile
baseline -level 30 -flags +global_header -f rtp rtp://XXXIP:20000 -vn
-flags +global_header -acodec libfaac -ac 1 -ar 16000 -ab 16k -f rtp
rtp://XXXIP:20002
But,I use feature phone(rtsp),it has no audio,so I fix the parameter.(add
-rtpflags latm)
ffmpeg -f video4linux2 -s 720:480 -i /dev/video0 -f alsa -i hw:0,0 -an
-vcodec libx264 -pix_fmt yuv420p -s 176x144 -b 104k -r 12 -profile
baseline -level 30 -flags +global_header -f rtp rtp://XXXIP:20000 -vn
-flags +global_header -rtpflags latm -acodec libfaac -ac 1 -ar 16000 -ab
16k -f rtp rtp://XXXIP:20002>test.sdp
SDP Data:
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 54.59.106
m=video 20000 RTP/AVP 96
c=IN IP4 XXXIP
b=AS:104
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-
sets=Z0LAHtkCxOhAAAADAEAAAAYDxYuS,aMuMsg==; profile-level-id=42C01E
m=audio 20002 RTP/AVP 97
c=IN IP4 XXXIP
b=AS:16
a=rtpmap:97 MP4A-LATM/16000/1
a=fmtp:97 profile-level-id=40;cpresent=0;config=400028103fc0
It look perfectly,but the sound is faster than video.
So,have anyone known how to sovle it?
Thanks
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2360>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list