Bitrate range when streaming to udp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Bitrate range when streaming to udp

Alex Alex
Hello!
I try to solve a problem which seems to be very simple. There is a
source file which is to be streamed as multicast (UDP) infinitely. Ok,
not even infinitely, just once. What is the problem? Terrible bitrate range.
Here is my source file:

Input #0, mpegts, from 'test.ts':
  Duration: 00:08:14.46, start: 1.458667, bitrate: 4490 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k
tbn, 50 tbc
    Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F),
48000 Hz, stereo, fltp, 139 kb/s

I try to stream it:

ffmpeg -threads 0 -re -stream_loop -1 -i test.ts -c copy -f mpegts
"udp://@235.5.2.193:1234?pkt_size=1316"

But when I analyze the result multicast I see bitrate jumps from almost
zero to 12 Mbps:

http://image.ibb.co/cqrhPw/ffmpeg_stream.png

I made a lot of attempts to change some parameters but nothing helped.
Is it possible to get smoother bitrate? I don't even dream about CBR but
I would be happy to get 3-5 Mbps at least.

WBR Alex

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Bitrate range when streaming to udp

Carl Eugen Hoyos-2
2018-01-09 23:37 GMT+01:00 Alex Alex <[hidden email]>:

> I try to solve a problem which seems to be very simple. There is a
> source file which is to be streamed as multicast (UDP) infinitely.

If you don't want to reencode the file, there must be a better
tool than FFmpeg (I don't know of any).
Among the reasons is that our mpegts muxer is not bug-free.

Generally, please never post an excerpt of the command line and
console output when asking for help here, always post the command
line you tested together with the complete, uncut console output.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Bitrate range when streaming to udp

Alex Alex
OK thank you. I'm sorry.

Just one more question (maybe, stupid one). Does multicast bitrate
depend on a source file features? Is it possible to prepare the file
better for getting smoother output bitrate?

WBR Alex.


10.01.2018 04:36, Carl Eugen Hoyos пишет:

> 2018-01-09 23:37 GMT+01:00 Alex Alex <[hidden email]>:
>
>> I try to solve a problem which seems to be very simple. There is a
>> source file which is to be streamed as multicast (UDP) infinitely.
> If you don't want to reencode the file, there must be a better
> tool than FFmpeg (I don't know of any).
> Among the reasons is that our mpegts muxer is not bug-free.
>
> Generally, please never post an excerpt of the command line and
> console output when asking for help here, always post the command
> line you tested together with the complete, uncut console output.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Bitrate range when streaming to udp

Carl Eugen Hoyos-2
2018-01-12 12:56 GMT+01:00 Alex Alex <[hidden email]>:

> Does multicast bitrate depend on a source file features? Is it
> possible to prepare the file better for getting smoother output
> bitrate?

Are you asking about adaptive bitrate? That either needs files
encoded to the desired bitrates in advance or real-time encoding.
Sorry, I am not sure I understand the question.

Please do not top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Bitrate range when streaming to udp

Alex Alex
I'm sorry my explanation may be really unclear. I'll make one more
attempt :)

I have a *.ts file. I want to stream it via udp. No transcoding or other
similar things, just one stream of MPEG TS. And I'd like to have CBR of
the stream, as constant as possible.

When trying to stream the file (with ffmpeg, vlc, tsplay etc.), I get a
terrible bitrate dispersion which was shown at the picture (see link in
the first message of this topic). I was very unhappy with this. And I
was surprised that all tools I have used give me terrible bitrate
dispersion. May the problem be not in tools but in the source file? Is
it possible to prepare the file better in order to get better result
stream bitrate? Or, is the result stream bitrate independent of the
source file?

WBR Alex


12.01.2018 16:20, Carl Eugen Hoyos пишет:

> 2018-01-12 12:56 GMT+01:00 Alex Alex <[hidden email]>:
>
>> Does multicast bitrate depend on a source file features? Is it
>> possible to prepare the file better for getting smoother output
>> bitrate?
> Are you asking about adaptive bitrate? That either needs files
> encoded to the desired bitrates in advance or real-time encoding.
> Sorry, I am not sure I understand the question.
>
> Please do not top-post here, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Bitrate range when streaming to udp

Carl Eugen Hoyos-2
2018-01-15 13:26 GMT+01:00 Alex Alex <[hidden email]>:
> I have a *.ts file. I want to stream it via udp. No transcoding
> or other similar things, just one stream of MPEG TS.

> And I'd like to have CBR of the stream, as constant as possible.

Do you know what CBR exactly means for a conforming
transport stream?

The reason I ask is that the answer is not trivial, the answer has
nothing to do with constant frame size and you need a stream
analyzer to decide if a transport stream is cbr.

Apart from that:
If you don't want to transcode, then the tool sending via udp
cannot influence if what is sent is cbr or not, it is a property
of the input file.

Stop top-posting here!

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Bitrate range when streaming to udp

Beltran Cambronero
>
> Stop top-posting here!
>
> Carl Eugen
>

Hi Carl,
I understand you are very strict about the top-posting issue and I'm not
going to discuss that: "your e-mail list, your rules"

What I would like to ask is for you to be a little bit more constructive
when you reprimand people for doing it (I was one of them :)

- To be frank, this was the first time anybody asked me not to top-post as
a participation rule... but again: "your e-mail list, your rules"
- A lot of e-mail clients just hide the previous content so when you reply
you don't may even notice or realize that you are top-posting
- A lot of non-english speaking (like me) have no idea what top-posting
is... in my case, when you asked me not to top-post, on a different thread,
I had to goggle it and learn about it.

In summary, if you are so strict about this subject, instead of just saying
"stop top-posting here!" you may also include a link (like the one below)
for people to learn about it

https://en.wikipedia.org/wiki/Posting_style


Regards,
(NOTE: this message was bottom-posted :)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".