[FFmpeg-user] generating jpgs and sound at the same time problem with specific inputs
Kostas Psimoulis
rondinos at hotmail.com
Mon Feb 25 18:53:04 CET 2013
Hello,
I have been trying to find the best configuration options to generate jpgs and sound at the same time. The input comes from FMS (rtmp) and it can contain various codecs. It's a live stream so I am setting analyzeduration 0 but by using this option ffmpeg will not have enough time to read the sound codec. I tried to break them down and use different configuration for sound and video but it didn't work. (jpgs were not generated in specific codecs)In this particular case, I don't really care if the sound and audio is a bit desynchronized/asynchronous or delayed but I need to be able to generate jpgs and sound at the same time for most of the cases.
ffmpeg command:ffmpeg -y -f flv -i rtmp://192.168.0.15:1935/cam1/flv:s_Cam1?tcp live=1 -analyzeduration 0 -q:v 2 -r 15 /home/user/camera/living_room/%d.jpg -analyzeduration 1 -acodec libmp3lame -f mp3 out.mp3
ffmpeg version 1.1.1
I have noticed the following behavior with the inputs listed below:
video codec: FLV / Sorenson Spark / Sorenson H.263 (Flash Video)audio codec: UnknownIssues: ffprobe will take forever and it will not return any info about the audio, (analyzeduration 0 works for generating jpgs)
video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10audio codec: mp3Issue: ffprobe -analyzeduration 1 will return both audio/video info but ffmpeg will not generate any imagesanalyzeduration 1 says: [flv @ 0x1b1cd40] max_analyze_duration 1 reached at 26000 Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 1024 kb/s, 31.25 tbr, 1k tbn, 60 tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
analyzeduration 0 says: [flv @ 0x1c35d40] max_analyze_duration 0 reached at 0 Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 1024 kb/s, 30 tbr, 1k tbn, 60 tbc Stream #0:1: Audio: none, 0 channels, 131 kb/s
Thanks,Kosta P
More information about the ffmpeg-user
mailing list