Ticket #573 (closed defect: fixed)
rtp streaming problem
| Reported by: | apolychrono | Owned by: | michael |
|---|---|---|---|
| Priority: | important | Component: | undetermined |
| Version: | git-master | Keywords: | rtp |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
I am trying to encode (in h264/Baseline) and stream a yuv420p file but i am getting some errors see bellow:
ffmpeg -re -s 352x288 -f rawvideo -pix_fmt yuv420p -r 10 -i sample_352x288@10_YUV420p.yuv -an -vcodec libx264 -preset fast -profile baseline -threads 0 -r 10 -s 352x288 -b 200k -flags global_header -f rtp rtp://127.0.0.1:9999 ;
ffmpeg version N-33240-ga5dfeb6, Copyright (c) 2000-2011 the FFmpeg developers
built on Oct 3 2011 10:48:31 with gcc 4.4.3
configuration: --enable-static --enable-gpl --enable-nonfree --enable-postproc --enable-runtime-cpudetect --enable-libfaac --enable-libx264 --enable-protocol=rtp --enable-muxer=rtp --enable-ffplay
libavutil 51. 19. 0 / 51. 19. 0
libavcodec 53. 19. 0 / 53. 19. 0
libavformat 53. 13. 0 / 53. 13. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rawvideo @ 0x262cac0] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'sample_352x288@10_YUV420p.yuv':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 10 tbr, 10 tbn, 10 tbc
Please use -b:a or -b:v, -b is ambiguous
Output #0, rtp, to 'rtp://127.0.0.1:9999':
Output file #0 does not contain any stream
there is also a post at ffmpeg-forum: http://ffmpeg.test-lab.ch/viewtopic.php?f=12&t=24
thanks
Change History
comment:2 in reply to: ↑ 1 Changed 20 months ago by apolychrono
Replying to cehoyos:
Is this also reproducible without an external library (without libx264)?
I tried the following command which i think it does not use an external lib and the outpout is the same as before.
ffmpeg -re -s 352x288 -f rawvideo -pix_fmt yuv420p -r 10 -i sample_352x288@10_YUV420p.yuv -an -vcodec mpeg4 -r 10 -s 352x288 -b:v 200k -f rtp rtp://127.0.0.1:9999;
ffmpeg version N-33240-ga5dfeb6, Copyright (c) 2000-2011 the FFmpeg developers
built on Oct 3 2011 10:48:31 with gcc 4.4.3
configuration: --enable-static --enable-gpl --enable-nonfree --enable-postproc --enable-runtime-cpudetect --enable-libfaac --enable-libx264 --enable-protocol=rtp --enable-muxer=rtp --enable-ffplay
libavutil 51. 19. 0 / 51. 19. 0
libavcodec 53. 19. 0 / 53. 19. 0
libavformat 53. 13. 0 / 53. 13. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rawvideo @ 0x2471ac0] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'sample_352x288@10_YUV420p.yuv':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 10 tbr, 10 tbn, 10 tbc
Output #0, rtp, to 'rtp://127.0.0.1:9999':
Output file #0 does not contain any stream
Sorry for the delay but i was in abroad for the last 12 days.
thanks
comment:3 follow-up: ↓ 4 Changed 20 months ago by cehoyos
- Keywords h264 muxing streaming removed
- Component changed from FFmpeg to undetermined
Could you test current git head?
I cannot reproduce your problem and your FFmpeg version is aound 1000 changes older.
comment:4 in reply to: ↑ 3 ; follow-up: ↓ 5 Changed 20 months ago by apolychrono
Replying to cehoyos:
Could you test current git head?
I cannot reproduce your problem and your FFmpeg version is aound 1000 changes older.
I have done the git clone git://git.videolan.org/ffmpeg.git ffmpeg
and following this guide http://ffmpeg.test-lab.ch/viewtopic.php?f=25&t=14 i installed the ffmpeg on my system. Then i type the following command:
ffmpeg -re -s 352x288 -f rawvideo -pix_fmt yuv420p -r 10 -i sample_352x288@10_YUV420p.yuv -an -vcodec libx264 -preset fast -profile baseline -threads 0 -r 10 -s 352x288 -b:v 200k -flags global_header -f rtp rtp://127.0.0.1:9999 ;
ffmpeg version N-34329-g26b6455, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 1 2011 15:01:44 with gcc 4.4.3
configuration: --enable-static --enable-gpl --enable-nonfree --enable-postproc --enable-runtime-cpudetect --enable-libfaac --enable-libx264 --enable-muxer=rtp --enable-demuxer=rtp
libavutil 51. 22. 0 / 51. 22. 0
libavcodec 53. 26. 0 / 53. 26. 0
libavformat 53. 18. 0 / 53. 18. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 45. 3 / 2. 45. 3
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rawvideo @ 0x2ef8a80] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'sample_352x288@10_YUV420p.yuv':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 10 tbr, 10 tbn, 10 tbc
[buffer @ 0x2ef87c0] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[libx264 @ 0x2f02480] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x2f02480] profile Constrained Baseline, level 1.3
[libx264 @ 0x2f02480] 264 - core 118 r2085 8a62835 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, rtp, to 'rtp://127.0.0.1:9999':
Metadata:
encoder : Lavf53.18.0
Stream #0:0: Video: h264, yuv420p, 352x288, q=-1--1, 200 kb/s, 90k tbn, 10 tbc
Stream mapping:
Stream #0.0 -> #0.0 (rawvideo -> libx264)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 53.18.0
m=video 9999 RTP/AVP 96
b=AS:200
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0LADdsFgloQAAADABAAAAMBQPFCrg==,aMqMsg==
Press [q] to stop, [?] for help
frame= 76 fps= 10 q=-1.0 Lsize= 204kB time=00:00:07.50 bitrate= 222.8kbits/s
.............
...........
So seems to be fine now. I don't know if u have done any changes but thanks a lot anyway. I will try later from another system (my laptop) and if i have any problems i 'll be back.
Is it something i should to close this ticket ?
Thanks
comment:5 in reply to: ↑ 4 Changed 20 months ago by cehoyos
- Status changed from new to closed
- Resolution set to fixed
Replying to apolychrono:
I have done the git clone git://git.videolan.org/ffmpeg.git ffmpeg
and following this guide http://ffmpeg.test-lab.ch/viewtopic.php?f=25&t=14 i installed the ffmpeg on my system.
Installing libfaad is not necessary/not useful when building FFmpeg (ffmpeg does not use libfaad). Never use --enable-runtime-cpudetect, it hurts performance (it is only useful if you are a distributor, but distributors cannot use libfaac), --enable-static is default and does not have to be added.
(I never install, running from the build directory works fine.)



Is this also reproducible without an external library (without libx264)?