Recording RTP stream to HDD
Hi, I'm working on a project to read from a RTP stream which has MPEG-TS in it over multicast. The video should be recorded to my HDD. I am able to see the stream in mplayer. - Does mplayer use ffmpeg, live.com or own functions to read the RTP stream? - I'm using the following command to start ffmpeg: #ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video -o dvd /tmp/test.vob Should this be ok for what I'm trying to achieve? If I use it this way ffmpeg doesn't do anything and looks to be "stuck". It does not even create an empty output file. It also does not matter if I remove "-f mpegts -vcodec mpeg2video" from the command. I have tried the "normal" executable and the ffmpeg_g (freshly build from CVS), all the same output: # ./ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard configuration: built on Sep 5 2005 15:45:29, gcc: 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) Thanks, Rick Koning
Rick Koning wrote:
Hi,
I'm working on a project to read from a RTP stream which has MPEG-TS in it over multicast. The video should be recorded to my HDD. I am able to see the stream in mplayer.
- Does mplayer use ffmpeg, live.com or own functions to read the RTP stream?
- I'm using the following command to start ffmpeg: #ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video -o dvd /tmp/test.vob
Certainly not, -o is not a legal option, you probably want -target. Besides, -f mpegts should probably go *before* the -i.
Should this be ok for what I'm trying to achieve? If I use it this way ffmpeg doesn't do anything and looks to be "stuck". It does not even create an empty output file. It also does not matter if I remove "-f mpegts -vcodec mpeg2video" from the command.
I have tried the "normal" executable and the ffmpeg_g (freshly build from CVS), all the same output:
# ./ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard configuration: built on Sep 5 2005 15:45:29, gcc: 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Thanks,
Rick Koning
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
About the option -o, I got it from the documentation and thought it was for output.. didn't check though: http://ffmpeg.sourceforge.net/ffmpeg-doc.html section 2.2 Video and Audio file format conversion. * You can output to a RAW YUV420P file: ffmpeg -i mydivx.avi -o hugefile.yuv The options I put in it I got from the VOB transcode trick. You are right.. if I put them in this order FFMPEG will try to transcode it to MPEG-TS. Without any of the option it also doesn't work and get's "stuck" not telling what is wrong. This could be because I didn't gave the right input codec, MPEG-TS. I also tried putting in another (fake) address and then the same thing happens. I also heard that the RTP function is still in very beta (alpha?) development status in FFMPEG. Is this true? Could this be the reason it won't work with me? I can see the stream in Mplayer, which uses many ffmpeg functions. So if Mplayer also uses the RTP part from ffmpeg, it should work. I found a page on the live.com mailinglist where someone is telling "Mplayer's " rtp://" hack is code that someone else added and it work works only for MPEG2-TS streams. It's not completely clear if it was added to Mplayer itselve or FFMPEG. Thank you for trying to help me out! -----Original Message----- From: ffmpeg-user-bounces at mplayerhq.hu [mailto:ffmpeg-user-bounces at mplayerhq.hu] On Behalf Of Michel Bardiaux Sent: Monday, September 05, 2005 5:12 PM To: FFMpeg user questions and RTFMs Subject: Re: [Ffmpeg-user] Recording RTP stream to HDD Rick Koning wrote:
Hi,
I'm working on a project to read from a RTP stream which has MPEG-TS in it over multicast. The video should be recorded to my HDD. I am able to see the stream in mplayer.
- Does mplayer use ffmpeg, live.com or own functions to read the RTP stream?
- I'm using the following command to start ffmpeg: #ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video -o dvd /tmp/test.vob
Certainly not, -o is not a legal option, you probably want -target. Besides, -f mpegts should probably go *before* the -i.
Should this be ok for what I'm trying to achieve? If I use it this way ffmpeg doesn't do anything and looks to be "stuck". It does not even create an empty output file. It also does not matter if I remove "-f mpegts -vcodec mpeg2video" from the command.
I have tried the "normal" executable and the ffmpeg_g (freshly build from CVS), all the same output:
# ./ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard configuration: built on Sep 5 2005 15:45:29, gcc: 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Thanks,
Rick Koning
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/ _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
R. Koning wrote:
About the option -o, I got it from the documentation and thought it was for output.. didn't check though:
http://ffmpeg.sourceforge.net/ffmpeg-doc.html section 2.2 Video and Audio file format conversion.
* You can output to a RAW YUV420P file: ffmpeg -i mydivx.avi -o hugefile.yuv
The options I put in it I got from the VOB transcode trick. You are right.. if I put them in this order FFMPEG will try to transcode it to MPEG-TS.
Without any of the option it also doesn't work and get's "stuck" not telling what is wrong. This could be because I didn't gave the right input codec, MPEG-TS.
I also tried putting in another (fake) address and then the same thing happens. I also heard that the RTP function is still in very beta (alpha?) development status in FFMPEG. Is this true? Could this be the reason it won't work with me?
I can see the stream in Mplayer, which uses many ffmpeg functions. So if Mplayer also uses the RTP part from ffmpeg, it should work. I found a page on the live.com mailinglist where someone is telling "Mplayer's " rtp://" hack is code that someone else added and it work works only for MPEG2-TS streams. It's not completely clear if it was added to Mplayer itselve or FFMPEG.
Thank you for trying to help me out!
mplayer's rtp code works well (using mplayer's internal code), and it's also true that it works only with mpeg-ts. You can safely use it to remux or recode to dvd (man mplayer about -mpegopts)
R. Koning wrote: Please dont top-post!
About the option -o, I got it from the documentation and thought it was for output.. didn't check though:
http://ffmpeg.sourceforge.net/ffmpeg-doc.html section 2.2 Video and Audio file format conversion.
* You can output to a RAW YUV420P file: ffmpeg -i mydivx.avi -o hugefile.yuv
And when I try it I get: ffmpeg -i utc_1434.mpg -o jef.yuv ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-mp3lame --disable-strip --enable-amr_nb --enable-a52 --enable-gpl --enable-amr_wb --disable-shared --enable-libgsm built on Aug 25 2005 18:42:41, gcc: 2.95.4 20011002 (Debian prerelease) Input #0, mpeg, from 'utc_1434.mpg': Duration: 00:00:57.0, start: 92564.370489, bitrate: 668 kb/s Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288, 25.00 fps, 104857 kb/s Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, mono, 32 kb/s ffmpeg: unrecognized option '-o' Ergo you dont have a recent version. That's one of the reasons you should always post the full output: it gives the exact version. Clearly documentation error, patch forthcoming.
The options I put in it I got from the VOB transcode trick. You are right.. if I put them in this order FFMPEG will try to transcode it to MPEG-TS.
Without any of the option it also doesn't work and get's "stuck" not telling what is wrong. This could be because I didn't gave the right input codec, MPEG-TS.
I also tried putting in another (fake) address and then the same thing happens. I also heard that the RTP function is still in very beta (alpha?) development status in FFMPEG. Is this true? Could this be the reason it won't work with me?
I can see the stream in Mplayer, which uses many ffmpeg functions. So if Mplayer also uses the RTP part from ffmpeg, it should work. I found a page on the live.com mailinglist where someone is telling "Mplayer's " rtp://" hack is code that someone else added and it work works only for MPEG2-TS streams. It's not completely clear if it was added to Mplayer itselve or FFMPEG.
Thank you for trying to help me out!
-----Original Message----- From: ffmpeg-user-bounces at mplayerhq.hu [mailto:ffmpeg-user-bounces at mplayerhq.hu] On Behalf Of Michel Bardiaux Sent: Monday, September 05, 2005 5:12 PM To: FFMpeg user questions and RTFMs Subject: Re: [Ffmpeg-user] Recording RTP stream to HDD
Rick Koning wrote:
Hi,
I'm working on a project to read from a RTP stream which has MPEG-TS in it over multicast. The video should be recorded to my HDD. I am able to see the stream in mplayer.
- Does mplayer use ffmpeg, live.com or own functions to read the RTP stream?
- I'm using the following command to start ffmpeg: #ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video -o dvd /tmp/test.vob
Certainly not, -o is not a legal option, you probably want -target. Besides, -f mpegts should probably go *before* the -i.
Should this be ok for what I'm trying to achieve? If I use it this way ffmpeg doesn't do anything and looks to be "stuck". It does not even create an empty output file. It also does not matter if I remove "-f mpegts -vcodec mpeg2video" from the command.
I have tried the "normal" executable and the ffmpeg_g (freshly build from CVS), all the same output:
# ./ffmpeg -i rtp://224.216.13.206:7070 -f mpegts -vcodec mpeg2video ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard configuration: built on Sep 5 2005 15:45:29, gcc: 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Thanks,
Rick Koning
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
participants (4)
-
mbardiaux@mediaxim.be -
nsabbi@tiscali.it -
r.koning@trinite.nl -
spoormosai@kriocoucke.mailexpire.com