Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-23 Thread Alex Lin
Hi Maziar, I am implementing the client. Before the server sends video stream to me, it sends a SIP INVITE with SDP which describes the video stream. Once I get the SIP INVITE, I can create a SDP file according to the SIP packet and call ffmpeg to record the incoming video stream. I have not prog

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-23 Thread Maziar Mehrabi
Hi, No problem, it was yourself who figured it out after all. I have a question still though. How do you transmit the SDP file to the client? I mean apparently for every stream you should have an SDP file generated and sent to the client before the client is able to play it. This problem is a majo

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-23 Thread Alex Lin
Hi Maziar, I finally figured it out. Instead of using udp stream as input, I generated a SDP file and use it as the input. Prior to receiving the audio packets, I receive a SIP packet with SDP payload. The SDP payload describes the IP/port of the video packet as well as the format. I just created

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-23 Thread Maziar Mehrabi
Hi, Try testing it over http first, rather than UDP or RTP. What I understand is that the errors somehow are related to audio channel, and RTP divides the media into two streams (one audio and one video) and sends them through separate ports, so I guess you should have some sort of mechanism on th

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-22 Thread Alex Lin
Hi Bill, >> I might be tempted to set both video and audio codec to copy, and save in a .TS file without -f at all. I did a look search on google about .ts files. My understanding is that, I can use videosnarf to convert a packet trace to .TS file. Is that the way you have in mind as well? Thank

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-22 Thread Alex Lin
Hi Maziar, >> I'm a bit confused here, first you said RTP and then you're using UDP in your commands. Can you explain it to me? The packets I am getting is H264 over RTP. Since RTP is a subset of UDP, so I thought it would be okay to just let ffmpeg read the UDP packets. >> Try playing directly f

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-19 Thread Bill Davidsen
Alex Lin wrote: Hi all, I am using Windows 7 64 bit, and I downloaded the 64 bit version of ffmpeg: ffmpeg-20140916-git-b76d613-win64-static.7z I have spent the entire day experimenting with ffmpeg today but I haven't quite figure out if ffmpeg is the right solution to my problem yet, so I woul

Re: [FFmpeg-user] ffmpeg read from UDP/Port

2014-09-18 Thread Maziar Mehrabi
Hi, I'm a bit confused here, first you said RTP and then you're using UDP in your commands. Can you explain it to me? Try playing directly from the stream with ffplay and see what will happen. ffplay udp://192.168.1.200:50002/stream_name I can capture and save from udp but the result is very noisy

[FFmpeg-user] ffmpeg read from UDP/Port

2014-09-17 Thread Alex Lin
Hi all, I am using Windows 7 64 bit, and I downloaded the 64 bit version of ffmpeg: ffmpeg-20140916-git-b76d613-win64-static.7z I have spent the entire day experimenting with ffmpeg today but I haven't quite figure out if ffmpeg is the right solution to my problem yet, so I would like to get some