how to enable 264 passthru Audio? - it works cmdline with '-strict -2'

Forum for questions and support relating to the 1.31.x releases only.
Post Reply
amritgary
Posts: 16
Joined: Sun Apr 29, 2018 4:41 pm
Location: Dallas, TX

how to enable 264 passthru Audio? - it works cmdline with '-strict -2'

Post by amritgary » Tue May 01, 2018 4:03 am

Hi,

with cmdline, the below WORKS and saves video+audio:
ffmpeg -i <ipaddr> -vcodec copy -strict -2 dump.mp4

This does NOT work
ffmpeg -i <ipaddr> -acodec copy -vcodec copy dump.mp4

Can you please advise what i need to do get the "-strict -2" method to work within zoneminder (any options that need to be tewaked)?
(Sorry, i am kinda new to zoneminder...)

User avatar
iconnor
Posts: 1345
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: how to enable 264 passthru Audio? - it works cmdline with '-strict -2'

Post by iconnor » Tue May 01, 2018 1:57 pm

ZM doesn't use command line ffmpeg.

If you have the store audio checkbox checked, it SHOULD just work. If not, then I want to see debug logs.

amritgary
Posts: 16
Joined: Sun Apr 29, 2018 4:41 pm
Location: Dallas, TX

Re: how to enable 264 passthru Audio? - it works cmdline with '-strict -2'

Post by amritgary » Wed May 02, 2018 3:03 am

Hi,
pls see below. Hope this helps:
05/01/18 21:54:05.114696 zmc_m3[7419].INF-zm_ffmpeg_camera.cpp/374 [Stream open <<< ip_stream >>>, parsing streams...]
05/01/18 21:54:05.148543 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/380 [Calling avformat_find_stream_info]
05/01/18 21:54:06.208185 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/389 [Got stream info]
05/01/18 21:54:06.208335 zmc_m3[7419].DB3-zm_ffmpeg_camera.cpp/434 [Found video stream at index 0]
05/01/18 21:54:06.208386 zmc_m3[7419].DB3-zm_ffmpeg_camera.cpp/435 [Found audio stream at index 1]
05/01/18 21:54:06.208538 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/499 [Failed to find decoder (h264_mmal)]
05/01/18 21:54:06.208589 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/510 [Video Found decoder h264]
05/01/18 21:54:06.208635 zmc_m3[7419].DB1-zm_ffmpeg.cpp/266 [Dumping stream index i(0) index(0)]
05/01/18 21:54:06.208682 zmc_m3[7419].DB1-zm_ffmpeg.cpp/271 [ Stream #0:0]
05/01/18 21:54:06.208726 zmc_m3[7419].DB1-zm_ffmpeg.cpp/279 [, frames:28, timebase: 1/90000]
05/01/18 21:54:06.208784 zmc_m3[7419].DB1-zm_ffmpeg.cpp/281 [: Video: h264 (High), yuv420p, 1920x1080]
05/01/18 21:54:06.208832 zmc_m3[7419].DB3-zm_ffmpeg.cpp/306 [
]
05/01/18 21:54:06.208877 zmc_m3[7419].DB1-zm_ffmpeg.cpp/229 [90k stream tb numerator , ]
05/01/18 21:54:06.208933 zmc_m3[7419].DB1-zm_ffmpeg.cpp/229 [180k codec time base:]
05/01/18 21:54:06.208982 zmc_m3[7419].DB1-zm_ffmpeg.cpp/336 [
]
05/01/18 21:54:06.209026 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/517 [Calling avcodec_open2]
05/01/18 21:54:06.210849 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/540 [HWACCEL not in use]
05/01/18 21:54:06.210978 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/552 [Audio Found decoder]
05/01/18 21:54:06.211027 zmc_m3[7419].DB1-zm_ffmpeg.cpp/266 [Dumping stream index i(1) index(0)]
05/01/18 21:54:06.211074 zmc_m3[7419].DB1-zm_ffmpeg.cpp/271 [ Stream #0:1]
05/01/18 21:54:06.211122 zmc_m3[7419].DB1-zm_ffmpeg.cpp/279 [, frames:10, timebase: 1/8000]
05/01/18 21:54:06.211215 zmc_m3[7419].DB1-zm_ffmpeg.cpp/281 [: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s]
05/01/18 21:54:06.211267 zmc_m3[7419].DB1-zm_ffmpeg.cpp/336 [
]
05/01/18 21:54:06.211314 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/559 [Calling avcodec_open2]
05/01/18 21:54:06.211379 zmc_m3[7419].DB2-zm_ffmpeg_camera.cpp/565 [Opened audio codec]
05/01/18 21:54:06.211431 zmc_m3[7419].DB3-zm_ffmpeg_camera.cpp/580 [Allocated frames]
05/01/18 21:54:06.211481 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/593 [Validated imagesize]
05/01/18 21:54:06.211527 zmc_m3[7419].DB1-zm_ffmpeg_camera.cpp/596 [Calling sws_isSupportedInput]
05/01/18 21:54:06.216163 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: -9223372036854775808, dts: -922337
2036854775808, data: 0x3c06748, size: 129320, stream_index: 0, flags: 0001, keyframe(1) pos: -1, duration: 0
]
05/01/18 21:54:06.216210 zmc_m3[7419].DB3-zm_ffmpeg_camera.cpp/830 [Clearing queue]
05/01/18 21:54:06.216236 zmc_m3[7419].DB3-zm_packetqueue.cpp/62 [Clearing all but 10 frames, queue has 0]
05/01/18 21:54:06.216260 zmc_m3[7419].DB3-zm_packetqueue.cpp/66 [Queue is empty]
05/01/18 21:54:06.216288 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/863 [about to decode video]
05/01/18 21:54:06.216337 zmc_m3[7419].DB3-zm_ffmpeg_camera.cpp/942 [Not framecomplete after av_read_frame]
05/01/18 21:54:06.216366 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: -720, dts: -720, data: 0x3cd8630,
size: 3927, stream_index: 0, flags: 0000, keyframe(0) pos: -1, duration: 0
]
05/01/18 21:54:06.216394 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/863 [about to decode video]
05/01/18 21:54:06.226392 zmc_m3[7419].DB3-zm_ffmpeg_camera.cpp/942 [Not framecomplete after av_read_frame]
05/01/18 21:54:06.226548 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 2250, dts: 2250, data: 0x3cf4758,
size: 6623, stream_index: 0, flags: 0000, keyframe(0) pos: -1, duration: 0
]
05/01/18 21:54:06.226587 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/863 [about to decode video]
05/01/18 21:54:06.269264 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/915 [Got frame 0]
05/01/18 21:54:06.276034 zmc_m3[7419].DB4-zm_monitor.cpp/2390 [Return from Capture (1)]
05/01/18 21:54:06.276175 zmc_m3[7419].INF-zm_monitor.cpp/2467 [zm2 Dining Rm: images:1 - Capturing at 500.00 fps, capturing bandwidth 649114193bytes/sec]
05/01/18 21:54:06.308729 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 5310, dts: 5310, data: 0x3cf6718, size: 8218, stream_index: 0, flags: 0000, keyframe(0) pos: -1, duration: 0
05/01/18 21:54:06.308831 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/863 [about to decode video]
05/01/18 21:54:06.309184 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/915 [Got frame 1]
05/01/18 21:54:06.320223 zmc_m3[7419].DB4-zm_monitor.cpp/2390 [Return from Capture (2)]
05/01/18 21:54:06.342198 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 8280, dts: 8280, data: 0x3cf8d00, size: 9416, stream_index: 0, flags: 0000, keyframe(0) pos: -1, duration: 0
]
05/01/18 21:54:06.342322 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/863 [about to decode video]
05/01/18 21:54:06.343408 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/915 [Got frame 2]
05/01/18 21:54:06.351322 zmc_m3[7419].DB4-zm_monitor.cpp/2390 [Return from Capture (3)]
05/01/18 21:54:06.376249 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 1696, dts: 1696, data: 0x3cf63b0, size: 800, stream_index: 1, flags: 0001, keyframe(1) pos: -1, duration: 800
]
05/01/18 21:54:06.376371 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/965 [Have audio packet, but not recording atm]
05/01/18 21:54:06.409561 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 2496, dts: 2496, data: 0x3cf8758, size: 800, stream_index: 1, flags: 0001, keyframe(1) pos: -1, duration: 800
]
05/01/18 21:54:06.409715 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/965 [Have audio packet, but not recording atm]
05/01/18 21:54:06.442940 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 3296, dts: 3296, data: 0x3cfb1f0, size: 800, stream_index: 1, flags: 0001, keyframe(1) pos: -1, duration: 800
]
05/01/18 21:54:06.443103 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/965 [Have audio packet, but not recording atm]
05/01/18 21:54:06.476422 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 11250, dts: 11250, data: 0x3cfbae0, size: 9633, stream_index: 0, flags: 0000, keyframe(0) pos: -1, duration: 0
]
05/01/18 21:54:06.476582 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/863 [about to decode video]
05/01/18 21:54:06.478107 zmc_m3[7419].DB4-zm_ffmpeg_camera.cpp/915 [Got frame 3]
05/01/18 21:54:06.486004 zmc_m3[7419].DB4-zm_monitor.cpp/2390 [Return from Capture (4)]
05/01/18 21:54:06.510313 zmc_m3[7419].DB2-zm_ffmpeg.cpp/462 [/build/zoneminder-4kq0QQ/zoneminder-1.31.44~20180501094414/src/zm_ffmpeg.cpp:462:DEBUG: pts: 14220, dts: 14220, data: 0x3cfe650, size: 10219, stream_index: 0, flags: 0000, keyframe(0) pos: -1, duration: 0
]

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest