--- On Sat, 27/11/10, avcoder <[email protected]> wrote:

> From: avcoder <[email protected]>
> Subject: Re: [libav-user] Problem encoding MPEG-TS file
> To: "Libav* user questions and discussions" <[email protected]>
> Date: Saturday, 27 November, 2010, 2:28
> ffmpeg -i udp:/xxxx will fail to
> receive all udp packet, you should create
> a separate thread to receive packet.
> 
> On Sat, Nov 27, 2010 at 6:12 AM, JULIAN GARDNER <[email protected]>wrote:
> 
> > I have a problem in that i am trying to reencode some
> iptv streams to send
> > over my network. Now the thing is i can play the files
> with ffplay
> > (SVN-r25825) but when i come to do the encode and send
> i get lots of decode
> > errors.
> >
> > Any suggestions, see my command line for my settings
> >
> > ./ffmpeg -re -i udp://224.10.1.12:1234 -vcodec libx264
> -vpre ultrafast -s
> > 352x288 -b 1150k -bt 1250k -minrate 1150k -maxrate
> 1250k -bufsize 2M -acodec
> > mp2 -async 1 -f mpegts
> udp://224.200.10.10:1234?pkt_size=1316
> >
> > Below are a selection of the errors
> >
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 32 12
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 1 18
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 19
> > [mpeg2video @ 0xa5c4e20] skipped MB in I frame at 1
> 20
> > [mpeg2video @ 0xa5c4e20] invalid mb type in I Frame at
> 1 21
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 22
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 23
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 24
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 25
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 26
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 27
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 28
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 29
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 30
> > [mpeg2video @ 0xa5c4e20] skipped MB in I frame at 1
> 31
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 32
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 2 33
> > [mpeg2video @ 0xa5c4e20] skipped MB in I frame at 1
> 34
> > [mpeg2video @ 0xa5c4e20] ac-tex damaged at 0 35
> >
> > Now i could see a network problem causing this but
> using ffplay i watched
> > the system for 10 minutes with no noticeable errors.
> >

Right i have modified udp.c so that i have a seperate task running which is 
collecting all the data from the socket into a circular buffer og 2Mb.

The udp_read function now takes this from this circular buffer so im not losing 
any data, well i dont seem to be, but i am still getting errors on the decode 
side?

I will add code to make sure that the continuation counters are moving along 
and i am not losing data, but when i stop the decode/encode i print the buffers 
max size and how much data is left and usually i have used at most 600K and 
usually have left 10k of data.

Any ideas?

joolz



      
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to