[FFmpeg-user] rtp streaming - ok with ffmpeg 0.8.3 - error with ffmpeg git version N-32748-g358d837
xfly
xflyway at gmail.com
Wed Sep 21 14:05:38 CEST 2011
Hi,
I want to stream the video captured from my camera via rtp.
I'm using this simple command:
$ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0 -f rtp -muxdelay 0
-vcodec mpeg2video -sameq rtp://$DEFAULT_HOST:$VIDEO_PORT
It works with ffmpeg version 0.8.3. Details:
ffmpeg version 0.8.3, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 21 2011 11:47:11 with gcc 4.4.3
configuration: --prefix=/usr --enable-shared --enable-pthreads
--enable-version3 --enable-libtheora --enable-libdc1394 --enable-libvorbis
--enable-libschroedinger --enable-zlib --enable-bzlib --enable-vdpau
--enable-libdirac
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
It does NOT work with ffmpeg version N-32748-g358d837 pulled down TODAY from
git repo. Details:
ffmpeg version N-32748-g358d837, Copyright (c) 2000-2011 the FFmpeg
developers
built on Sep 21 2011 11:33:34 with gcc 4.4.3
configuration: --prefix=/usr --enable-shared --enable-pthreads
--enable-version3 --enable-libtheora --enable-libdc1394 --enable-libvorbis
--enable-libschroedinger --enable-zlib --enable-bzlib --enable-vdpau
--enable-libdirac
libavutil 51. 16. 1 / 51. 16. 1
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
This what I get from ffmpeg version N-32748-g358d837 when I run the command:
$ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0 -f rtp -muxdelay 0
-vcodec mpeg2video -sameq rtp://$DEFAULT_HOST:$VIDEO_PORT
Output:
ffmpeg version N-32748-g358d837, Copyright (c) 2000-2011 the FFmpeg
developers
built on Sep 21 2011 11:33:34 with gcc 4.4.3
configuration: --prefix=/usr --enable-shared --enable-pthreads
--enable-version3 --enable-libtheora --enable-libdc1394 --enable-libvorbis
--enable-libschroedinger --enable-zlib --enable-bzlib --enable-vdpau
--enable-libdirac
libavutil 51. 16. 1 / 51. 16. 1
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
[video4linux2 @ 0x97533a0] The driver changed the time per frame from 1/25
to 1/30
[video4linux2 @ 0x97533a0] Estimating duration from bitrate, this may be
inaccurate
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 1316603488.369544, bitrate: 147456 kb/s
Stream #0.0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480,
147456 kb/s, 30 tbr, 1000k tbn, 30 tbc
Output #0, rtp, to 'rtp://127.0.0.1:5000':
Output file #0 does not contain any stream
I also tried the following commands obtaining the same result "Output file
#0 does not contain any stream"
$ ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0 -f rtp -vcodec
mpegts -vframes 25 rtp://127.0.0.1:5000
$ ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0 -f mpegts -f rtp
rtp://127.0.0.1:5000
Is there any problem with the syntax of the command in the new ffmpeg
version? Did the syntax changed for rtp streaming?
Thank you in advance for your help.
Xfly
More information about the ffmpeg-user
mailing list