Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


rtp streaming problem

Discussions about problems encountered using ffserver.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

rtp streaming problem

Postby apolychrono » Mon Oct 03, 2011 9:52 am

I was using ffmpeg-0.8.3 and the following command seems work:

ffmpeg -re -s 320x240 -f rawvideo -pix_fmt yuv420p -r 10 -i sample_320x240@10_YUV420p.yuv -an -vcodec libx264 -preset fast -profile baseline -threads 0 -r 10 -s 320x240 -b 200k -flags global_header -f rtp rtp://127.0.0.1:9999 ;

However after updated the ffmpeg to N-33240-ga5dfeb6 using git i got the following output:
"Output file #0 does not contain any stream"

Do you have any ideas ?

PS: there is also another similar issue: http://ffmpeg.org/pipermail/ffmpeg-user ... 02385.html

thanks
apolychrono
 
Posts: 4
Joined: Mon Jun 27, 2011 1:17 pm

Re: rtp streaming problem

Postby admin » Sat Oct 15, 2011 8:21 pm

Hi,

Can you please paste the output log, so we can see where the problem occured.
admin
Site Admin
 
Posts: 26
Joined: Thu May 05, 2011 4:24 pm

Re: rtp streaming problem

Postby apolychrono » Sat Oct 15, 2011 9:58 pm

Code: Select all
ffmpeg  -re -s 352x288 -f rawvideo -pix_fmt yuv420p  -r 40 -i sample.yuv -an  -vcodec libx264  -preset fast -profile baseline -threads 0 -r 40 -s 352x288 -b:v 200k -flags global_header  -f rtp rtp://127.0.0.1:9999 ;

ffmpeg version N-33552-gbebaf4e, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 13 2011 00:22:35 with gcc 4.4.5 20101112 (Red Hat 4.4.5-2)
  configuration: --enable-static --enable-gpl --enable-nonfree --enable-postproc --enable-runtime-cpudetect --enable-libfaac --enable-libx264
  libavutil    51. 20. 1 / 51. 20. 1
  libavcodec   53. 20. 1 / 53. 20. 1
  libavformat  53. 15. 0 / 53. 15. 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 @ 0x9f3bca0] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'sample.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, 40 tbr, 40 tbn, 40 tbc
Output #0, rtp, to 'rtp://127.0.0.1:9999':
Output file #0 does not contain any stream


This is the output i get.
Nice to hear from you :)

thanks
apolychrono
 
Posts: 4
Joined: Mon Jun 27, 2011 1:17 pm

Re: rtp streaming problem

Postby admin » Sun Oct 16, 2011 6:58 pm

"-b:v 200k" is not a valid switch.. try using only "-b 200k"

seems like I'm wrong.. I guess it's a new ffmpeg syntax..
can you try:
Code: Select all
ffmpeg -re -s 320x240 -f rawvideo -pix_fmt yuv420p -r 10 -i sample_320x240@10_YUV420p.yuv -an -vcodec libx264 -preset fast -profile baseline -threads 0 -r 10 -s 320x240 -b 200k -flags global_header -f mp4 out.mp4

and see if that works, so we can be sure if the problem is in the input or the output muxer?
admin
Site Admin
 
Posts: 26
Joined: Thu May 05, 2011 4:24 pm

Re: rtp streaming problem

Postby apolychrono » Mon Oct 17, 2011 1:11 pm

Code: Select all
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


As you can see i get a (warning i suppose) message to not use -b and use -b:v instead.
apolychrono
 
Posts: 4
Joined: Mon Jun 27, 2011 1:17 pm

Re: rtp streaming problem

Postby burek » Wed Oct 19, 2011 5:31 pm

Hm.. It looks like a bug to me..
Could you please create a bug report for that here: https://ffmpeg.org/trac/ffmpeg
Thanks in advance.
burek
 
Posts: 867
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia


Return to ffserver

Who is online

Users browsing this forum: No registered users and 0 guests