Re: [FFmpeg-user] Need help to re-stream multicast

2020-10-28 Thread Karim SLIMANI
Hello,

i am not sure about PAT and PMT errors. Maybe using mpegts muxer options :
https://ffmpeg.org/ffmpeg-formats.html#mpegts-1

PS: note that fifo_size and overrun_nonfatal are "receiver" only options
and, i think, have no effect on output udp url.






Le mer. 28 oct. 2020 à 18:52, Daniel Dimitrov <596...@gmail.com> a écrit :

> On Wed, Oct 28, 2020 at 12:56 PM Karim SLIMANI 
> wrote:
>
> > hello,
> >
> > i think you need to increase fifo_size parameter. (remove pkt_size and
> > buffer_size parameters, but keep overrun_nonfatal=1)
> >
> > try a fifo_size=524288 if it continue to crash, then try a value of
> > fifo_size=2621400
> >
> > Circular buffer overrun happen when the computer cannot catch up in
> > processing received data, so increasing the size may help (ie: fifo_size)
> > To understand what is happening here, take a look at
> > https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/udp.c#L500
> >
> > Best regards,
> >
> >
> > Le mar. 27 oct. 2020 à 22:19, Daniel Dimitrov <596...@gmail.com> a
> écrit :
> >
> > > Dear all,
> > > I try to retransmit  multicast stream . I can partially manage to do it
> > > unfortunately some interruptions in the stream appear , Please help me
> to
> > > correctly calculate the parameters for the udp url (fifo_size ,
> > > buffer_size,bitrate, pkt_size) i want to set video bitrate to 3M and i
> am
> > > not sure if i have to do muxrate. Command is here :
> > >
> > > *ffmpeg -i
> > > "udp://@
> > >
> >
> 238.252.250.9:5000?overrun_nonfatal=1_size=35_size=1316_size=1000
> > > <
> > >
> >
> http://238.252.250.9:5000?overrun_nonfatal=1_size=35_size=1316_size=1000
> > > >"
> > >-vf scale=720:576-b:v 3M -maxrate 4M -bufsize 8M   -b:a 128k
> > >  -muxrate 5M -f mpegts
> > > "udp://@
> > >
> >
> 239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=500
> > > <
> > >
> >
> http://239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=500
> > > >"*
> > >
> > > i have doubts about most of the udp parameters so please correct me if
> > > anything looks wrong to you.
> > >
> > > *Here is the input stream:*
> > >
> > > Input #0, mpegts, from 'udp://@238.252.250.9:5000':
> > >   Duration: N/A, start: 31142.994278, bitrate: N/A
> > >   Program 2002
> > > Metadata:
> > >   service_name: RT Doc HD
> > >   service_provider: GLOBECAST
> > > Stream #0:0[0x7e5]: Video: h264 (High) ([27][0][0][0] / 0x001B),
> > > yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50
> > > tbr, 90k tbn, 50 tbc
> > > Stream #0:1[0x7e6](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
> > > stereo, fltp, 192 kb/s
> > > Stream #0:2[0x7e7](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
> > Hz,
> > > stereo, fltp, 192 kb/s
> > >
> > >
> > > * If i execute the command above it crashes after 5min with :*
> > >
> > >
> > > [h264 @ 0x6b52480] reference picture missing during reorder
> > > Last message repeated 1 times
> > > [h264 @ 0x6b52480] Missing reference picture, default is 65814
> > > Last message repeated 1 times
> > > [h264 @ 0x6ad5380] reference picture missing during reorder
> > > [h264 @ 0x6ad5380] Missing reference picture, default is 65815
> > > Output #0, mpegts, to 'udp://@
> > >
> > >
> >
> 239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=400
> > > ':
> > >   Metadata:
> > > encoder : Lavf58.45.100
> > > Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45
> > DAR
> > > 16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn, 25 tbc
> > > Metadata:
> > >   encoder : Lavc58.91.100 mpeg2video
> > > Side data:
> > >   cpb: bitrate max/min/avg: 400/0/300 buffer size: 200
> > > vbv_delay: N/A
> > > Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
> > > Metadata:
> > >   encoder : Lavc58.91.100 mp2
> > > Stream #0:2(eng): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
> > > Metadata:
> > >   encoder : Lavc58.91.100 mp2
> > > av_interleaved_write_frame(): Cannot allocate mem

Re: [FFmpeg-user] Need help to re-stream multicast

2020-10-28 Thread Karim SLIMANI
hello,

i think you need to increase fifo_size parameter. (remove pkt_size and
buffer_size parameters, but keep overrun_nonfatal=1)

try a fifo_size=524288 if it continue to crash, then try a value of
fifo_size=2621400

Circular buffer overrun happen when the computer cannot catch up in
processing received data, so increasing the size may help (ie: fifo_size)
To understand what is happening here, take a look at
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/udp.c#L500

Best regards,


Le mar. 27 oct. 2020 à 22:19, Daniel Dimitrov <596...@gmail.com> a écrit :

> Dear all,
> I try to retransmit  multicast stream . I can partially manage to do it
> unfortunately some interruptions in the stream appear , Please help me to
> correctly calculate the parameters for the udp url (fifo_size ,
> buffer_size,bitrate, pkt_size) i want to set video bitrate to 3M and i am
> not sure if i have to do muxrate. Command is here :
>
> *ffmpeg -i
> "udp://@
> 238.252.250.9:5000?overrun_nonfatal=1_size=35_size=1316_size=1000
> <
> http://238.252.250.9:5000?overrun_nonfatal=1_size=35_size=1316_size=1000
> >"
>-vf scale=720:576-b:v 3M -maxrate 4M -bufsize 8M   -b:a 128k
>  -muxrate 5M -f mpegts
> "udp://@
> 239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=500
> <
> http://239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=500
> >"*
>
> i have doubts about most of the udp parameters so please correct me if
> anything looks wrong to you.
>
> *Here is the input stream:*
>
> Input #0, mpegts, from 'udp://@238.252.250.9:5000':
>   Duration: N/A, start: 31142.994278, bitrate: N/A
>   Program 2002
> Metadata:
>   service_name: RT Doc HD
>   service_provider: GLOBECAST
> Stream #0:0[0x7e5]: Video: h264 (High) ([27][0][0][0] / 0x001B),
> yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50
> tbr, 90k tbn, 50 tbc
> Stream #0:1[0x7e6](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
> stereo, fltp, 192 kb/s
> Stream #0:2[0x7e7](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
> stereo, fltp, 192 kb/s
>
>
> * If i execute the command above it crashes after 5min with :*
>
>
> [h264 @ 0x6b52480] reference picture missing during reorder
> Last message repeated 1 times
> [h264 @ 0x6b52480] Missing reference picture, default is 65814
> Last message repeated 1 times
> [h264 @ 0x6ad5380] reference picture missing during reorder
> [h264 @ 0x6ad5380] Missing reference picture, default is 65815
> Output #0, mpegts, to 'udp://@
>
> 239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=400
> ':
>   Metadata:
> encoder : Lavf58.45.100
> Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR
> 16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn, 25 tbc
> Metadata:
>   encoder : Lavc58.91.100 mpeg2video
> Side data:
>   cpb: bitrate max/min/avg: 400/0/300 buffer size: 200
> vbv_delay: N/A
> Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
> Metadata:
>   encoder : Lavc58.91.100 mp2
> Stream #0:2(eng): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
> Metadata:
>   encoder : Lavc58.91.100 mp2
> av_interleaved_write_frame(): Cannot allocate memory:18.08
> bitrate=4995.0kbits/s speed=1.01x
> Last message repeated 1 times
> Error writing trailer of udp://@
>
> 239.253.251.13:5505?overrun_nonfatal=1_size=35_size=188&_size=200=400
> :
> Cannot allocate memory
> frame= 9427 fps= 25 q=2.8 Lsize=  230612kB time=00:06:18.24
> bitrate=4994.6kbits/s speed=1.01x
> video:138661kB audio:11807kB subtitle:0kB other streams:0kB global
> headers:0kB muxing overhead: 53.263130%
> [udp @ 0x682e200] Circular buffer overrun. Surviving due to
> overrun_nonfatal option
> Last message repeated 121516 times
> Conversion failed!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Encrypted SRT Does Not Work

2020-10-01 Thread Karim SLIMANI
Le jeu. 1 oct. 2020 à 16:10, Tim McClure  a écrit :

> When I stream ffmpeg SRT to Wowza without encryption it works however when
> I
> stream SRT encrypted I get the error listed below.  I can use other
> software
> to stream encrypted SRT to Wowza and it works so I think the issue is on
> the
> ffmpeg side.  Here is the script I am using:
>
> ffmpeg -v verbose -re -i
> IndagoLE.ts -map 0:0 -pix_fmt yuv420p -vsync 1 -vf scale=1024:576 -vcodec
> libx264 -r 25 -g 100 -sc_threshold 0 -threads 0 -b:v: 2048k -bufsize 2244k
> -maxrate 2560k -preset veryfast -profile:v baseline -tune film -f mpegts
> srt://
> 192.168.1.118:5090?pbkeylen=16=1234567890123456_size=1316
>
> The error returned is:
> processAsyncConnectRequest FAILED. Setting TTL as EXPIRED.
>
[srt @ 0x55f6073be680] Connection to srt://192.168.1.118:5090?pbkeylen=16
> failed: Input/output error
> srt://192.168.1.118:5090?pbkeylen=16: Input/output error
> [AVIOContext @ 0x55f60737a640] Statistics: 3002512 bytes read, 3 seeks
>
>
Hello Tim,

In the error message
*" [srt @ 0x55f6073be680] Connection to
srt://192.168.1.118:5090?pbkeylen=16
 failed: Input/output error"* the
server url seems troncated.

I may be wrong, but try to put double quote on server url in your script
file.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Where can I find source code?

2020-02-07 Thread Karim SLIMANI
> I keep winding up here:
> git.videolan.org
>
> Where can I find source code?
>
> Thanks,
> Mark.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


https://www.ffmpeg.org/download.html

:-)
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Building ffmpeg - pkgconfig, again (libmp3lame, this time)

2018-12-01 Thread Karim SLIMANI
Le dim. 2 déc. 2018 à 00:37,  a écrit :


> Building both the shared and static libraries seemed to do the trick.
> Now the challenge is libmp3lame, because that package does not generate
> a '.pc' file. I tried creating one by hand, using some of the others as
> models, but pkg-config doesn't recognize it. I built both the static and
> shared versions of the library, but no such luck. Anyone who has managed
> to build libmp3lame into ffmpeg and remembers what worked? I would sure
> appreciate it!
>
>
i am not sure it can help you, but take a look at this simple scripts set :
https://github.com/kslimani/ffmpeg-static
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Streaming overseas

2018-11-04 Thread Karim SLIMANI
Le sam. 3 nov. 2018 à 14:59, Louis Letourneau  a
écrit :

> I was wondering if anyone had experience streaming 720p ~5000kbit/s
> video overseas successfully? If so which protocol did you use?
>
> I'm trying to stream between Stockholm sweden to toronto canada.
> Using mpegts over tcp, I sometimes get so many retries that the
> bandwith falls below 5MBit/s for many seconds.
>
> The source and destination buffers are 16MBytes
>
> I wanted to try pro-mpeg, but ffmpeg only has it as a send protocol
> not receive (or I missed something)
>
> I can't use HLS/MPEG-Dash which would be my first choice for reasons
> at the source I can't get into.
>
> My 2 choices I think
> 1- Spawn an amazon or whatever cloud instance as close as possible and
> grab the stream THEN convert to HLS and send it overseas
>
> 2- Use another protocol I don't know
>
> Thanks for the input
> Louis
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Hello Louis,

Have you take a look at SRT protocol ?

Source code : https://github.com/Haivision/srt

Latest FFmpeg handle this protocol (if i am not wrong).

Regards,
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] m3u8 live stream will not play in google chrome

2018-07-25 Thread Karim SLIMANI
I am not sure that Chrome desktop can natively play HLS stream.
I suggest you try to play video using a playback library, for example,
HLS.JS (just google it).
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Multicasting to 2 different output channels

2016-06-29 Thread Karim SLIMANI
2016-06-29 15:31 GMT+02:00 Moritz Barsnick :

> On Fri, Jun 24, 2016 at 11:20:49 -0700, Praveen wrote:
> > Youtube live and Facebook live simultaneously. One option i was thinking
> > of is to send a unicast stream using ffmpeg on to a ffserver and from
> > there multicast to two different output streams (one each for Youtube
> > lice & Facebook live respectively). Is this possible ? If so, can
> > someone give me hints please ?
>
> I would rather have suggested to let one ffmpeg instance create two
> outputs. This is either by specifying two output targets (each with
> their own encoding options), or by using the the tee muxer. In the
> first case, ffmpeg would be encoding twice in parallel; in the second
> case, ffmpeg would encode only once, but both YouTube and Facebook
> would need to accept the same codec options.
>
> To repeat Reuben's request: Could you share the details of streaming to
> Facebook? Thanks.
>
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>

Or maybe one FFmpeg instance which encode and send to localhost as
multicast (for example in mpeg-ts).
And two other instances which read mpeg-ts (use copy method) and send as
rtmp to each target.

The main reason is (if i am not wrong) you use a single FFmpeg instance to
do that, if, for example, Facebook is down, then the instance will stop and
the Youtube stream will be also down.
Using 3 instances, if the Facebook one is down, the Youtube will still work.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".