FORUMS: list search recent posts

Streaming video with KLV data streams via UDP using ffmpeg commandline

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Robert Pardridge
Streaming video with KLV data streams via UDP using ffmpeg commandline
on Aug 16, 2011 at 5:16:55 pm

Hi, I was wondering if it was possible using ffmpeg to stream a video using UDP (or any protocol for that matter really), where the video contains 3 streams, a video, audio, and KLV data stream. I'm trying right now to use the commandline to stream and then open the video in vlc.

The problems I'm having are:
1) It appears to be streaming, but the video doesn't start playing in VLC until I either cancel the stream or it finishes

2) The KLV data stream is not part of the output

3) The bitrate is really low, around 1.0kbit/s no matter what I give it as a parameter

Here is the current command I'm using and the output:

ffmpeg -i myvideo.mp2 -f mpegts -vcodec mpeg4 -b 200kb/s -acodec mp2 -ar 44100 -ab 96000 -ac 2 -s 720x480 -r 30 -re udp://localhost:1234


[mpegts @ 0x7aa2d0]max_analyze_duration reached
[NULL @ 0x7ac280]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x7ac980]start time is not set in av_estimate_timings_from_pts

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
Input #0, mpegts, from 'myvideo.mp2':
Duration: 00:01:00.29, start: 14161.813322, bitrate: 2049 kb/s
Program 1
Stream #0.0[0x80]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 1892 kb/s, 29.97 fps, 29.97 tbr, 90k tbn,
59.94 tbc
Stream #0.1[0x90]: Data: KLVA / 0x41564C4B
Stream #0.2[0x70]: Audio: mp3, 0 channels
Output #0, mpegts, to 'udp://localhost:1234':
Stream #0.0: Video: mpeg4, yuv420p, 720x480 [PAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream #0.1: Audio: mp2, 44100 Hz, 2 channels, s16, 96 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.2 -> #0.1
Press [q] to stop encoding
[mpegts @ 0x21d0050]dts < pcr, TS is invalidime=60.17 bitrate= 0.1kbits/s dup=1 drop=0
frame= 1809 fps= 30 q=31.0 Lsize= 7456kB time=60.30 bitrate=1012.9kbits/s dup=1 drop=0
video:6403kB audio:0kB global headers:0kB muxing overhead 16.437341%


Return to posts index

Sabine Bachmayer
Re: Streaming video with KLV data streams via UDP using ffmpeg commandline
on Oct 12, 2011 at 2:41:05 pm

Hi Robert!

Could you find any solution for streaming video with a data stream?
I have the same problem. I tried to do the streaming with the vlc which actually works fine but the data stream is not part of the output as well.

Br,
Sabine


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]