[FFmpeg-user] [FFMPEG] Audio/Video Syncing

Guillermo Martinez 94dlve1izy52e5t at gmail.com
Fri Jan 15 09:27:50 CET 2016


Hi Carl,

Good afternoon.

Thank you very much for the reply.

On 1/13/2016 9:49 PM, Carl Eugen Hoyos wrote:
> Guillermo Martinez <94dlve1izy52e5t <at> gmail.com> writes:
>
>> ffmpeg -y -ihttp://192.168.0.11:8090/VIDEO_CAM1.mpg  
>> -itsoffset 1.0 -ihttp://192.168.0.11:8090/AUDIO.mp2  
>> -map 0:0 -map 1:0 test.mp4
> Complete, uncut console output missing.
Sorry about that. The following are console outputs from the client with 
and without the "*itsoffset*" option:
==========================================================================================
*1. **ffmpeg -y -i **http://192.168.0.11:8090/VIDEO_CAM1.mpg**-i 
**http://192.168.0.11:8090/AUDIO.mp2**-map 0:0 -map 0:0 -t 15 test.mp4 
2> ffmpeg_client_without_itsoffset.txt*
         - without the "itsoffset" option
         - 
https://www.dropbox.com/s/hfo2newv7x4o12t/ffmpeg_client_without_itsoffset.txt?dl=0

***2. **ffmpeg -y -i 
**http://192.168.0.11:8090/VIDEO_CAM1.mpg**-itsoffset 1.0 -i 
**http://192.168.0.11:8090/AUDIO.mp2**-map 0:0 -map 0:0 -t 15 test.mp4 
2> ffmpeg_client_with_itsoffset.txt*
         - with the "itsoffset" option
         - 
https://www.dropbox.com/s/dirfkb3yndwtjni/ffmpeg_client_with_itsoffset.txt?dl=0
==========================================================================================

I would also like to share my "*ffserver.conf*" and "*input ffmpeg 
commands*"
==========================================================================================
*1. ffserver.conf
* https://www.dropbox.com/s/cf3kgyfimq6dgcr/ffserver.conf?dl=0*
*
*2. ffmpeg input commands (to ffserver)*
https://www.dropbox.com/s/mdl5gufzuc59wmz/start.ffmpeg.sh?dl=0
==========================================================================================

Hope this helps in getting further insight.

> Unfortunately, I suspect your http sources do not provide timestamps, 
> so there is no easy solution;-( 
I see. The stream that seems to always start at *dts=0* is the audio stream.

Please refer to the following outputs of ffprobe:
==========================================================================================
*1. ffprobe -i http://192.168.0.11:8090:AUDIO.mp2 -show_frames*
         - https://www.dropbox.com/s/xb5t88rc3vdyc0y/ffprobe_audio.txt?dl=0
         - pkt_dts and pkt_pts always start at 0

*2. ffprobe -i http://192.168.0.11:8090:VIDEO_CAM1.mpg -show_frames*
         - https://www.dropbox.com/s/ywxgznv8xjbqozj/ffprobe_video.txt?dl=0
         - pkt_dts and pkt_pts always start non-zero
==========================================================================================

I think that the solution is to add timestamp to the audio stream. But I 
already tried
using the "*use_wallclock_as_timestamp*" option in ffmpeg audio feed. 
Nothing happened.
Is there any other way to do this?

I am very sorry for the inconvenience. I am not much of a programmer, 
but more
of an enthusiast. I am using FFmpeg in my home for personal security and 
surveillance.

Regards,

Guillermo Martinez

> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


More information about the ffmpeg-user mailing list