[FFmpeg-user] Lipsync of a UDP stream
Amar Mash
amar.mashruwala at gmail.com
Thu Mar 2 02:46:50 EET 2023
I have a docker container which when run opens a URL using firefox which is
the input and stream it to an RTMP URL using FFMPEG FLV. here is the
Github project if anyone wants to test. Nice application.
https://github.com/amarmashruwala/Chime-to-Broadcast-Automation
Here is the ffmpeg code. Anything i can add to get the audio in sync. maybe
timecode? not sure.
ffmpeg \
-hide_banner -loglevel error \
-nostdin \
-s ${SCREEN_RESOLUTION} \
-r ${VIDEO_FRAMERATE} \
-draw_mouse 0 \
-f x11grab \
-i ${DISPLAY} \
-f pulse \
-ac 2 \
-i default \
-c:v libx264 \
-pix_fmt yuv420p \
-profile:v main \
-preset slow \
-x264opts "nal-hrd=cbr:no-scenecut" \
-minrate ${VIDEO_BITRATE} \
-maxrate ${VIDEO_BITRATE} \
-g ${VIDEO_GOP} \
-filter_complex "
aresample=async=1000:min_hard_comp=0.100000:first_pts=0,adelay=delays=562|562
" \
-c:a aac \
-b:a ${AUDIO_BITRATE} \
-ac ${AUDIO_CHANNELS} \
-ar ${AUDIO_SAMPLERATE} \
-f flv ${RTMP_URL}
On Thu, Mar 2, 2023 at 9:48 AM Carl Zwanzig <cpz at tuunq.com> wrote:
> On 3/1/2023 2:24 PM, Amar Mash wrote:
> > What do you do when audio is in sync (lip sync) at times and off at other
> > times ?
>
> How can you programmatically tell? I don't know of an easy way.
>
> (The other thing to do is not top-post on this mailing list.)
>
> Later,
>
> z!
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list