Hi
As first, big thanks for great piece of software.
I am trying record video and audio from the desktop and transmit it to the DVB-T, everything works perfect, except audio video sync. Audio is 3 s after video (depends on commands order pesvideo2ts, pesaudio2ts , if i switch this commands, delay is larger).
CPU has no problem with power, ussage is approx. 30 - 40%.
If i try capture screen from avconv direct to the MKV, no audio delay (merge 2 avconv commands to one audio + video).
Is some possibility to fix this? Or another solution?
Thanks
Code:
avconv -y -video_size 1600x900 -r 25 -framerate 25 -f x11grab -i :0.0+0,0 \
-f mpeg2video -s 720x576 -r 25 -b 5000k -maxrate 5000k -minrate 5000k -bf 2 -an -bufsize 1835008 fifo.mp2 2> /dev/null &
avconv -y -f pulse -i default -ab 128k -ar 48000 -acodec mp2 -vn -ac 2 fifoA.mp2 1> /dev/null &
esvideompeg2pes fifo.mp2 1> ed.video.pes 2> ed.pes.length &
esaudio2pes fifoA.mp2 1152 48000 384 -1 3600 > ed.audio.pes &
pesvideo2ts 2064 25 112 7000000 0 ed.video.pes > fifo2 &
pesaudio2ts 2068 1152 48000 384 1 ed.audio.pes > fifoA1 &
tscbrmuxer b:7000000 fifo2 b:188000 fifoA1 b:1500 firstsdt.ts b:3008 firstpat.ts b:3008 firstpmt.ts o:7464681 null.ts > fifo3 &
tsstamp fifo3 7464681 > fifo4 &
tsrfsend fifo4 0 586000 8000 4 3/4 1/4 8 0 -15