[FFmpeg-user] Using tee with segmenter
Hello fellow ffmpeg users, I'm trying to use a tee to output my stream into 1min segments and into a file at the same time. Here's my command: ffmpeg -i "rtsp://${cameraIp}:554/axis-media/media.amp?videocodec=h264=1280x720=15" -c copy -map 0 \ -f tee "[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15] ${rootPath}/${storeId}-${location}-%03d.mp4 \ | /tmp/${cameraIp}.mkv" Individually (without tee) both outputs work fine. So I can either output into segmented files or into a non-segmented file. But with the tee I get this error: [stream_segment,ssegment @ 0x217ece0] Failed to open segment ' /etc/cida/diagnostics/vid/780801-99-000.mp4' [tee @ 0x217d820] Slave '[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15] /etc/cida/diagnostics/vid/780801-99-%03d.mp4': error writing header: No such file or directory See full command output below. Any suggestions? ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat57. 71.100 / 57. 71.100 libavdevice57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 / 3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc54. 5.100 / 54. 5.100 Input #0, rtsp, from 'rtsp://10.83.245.7:554/axis-media/media.amp?videocodec=h264=1280x720=15': Metadata: title : Session streamed with GStreamer comment : rtsp-server Duration: N/A, start: 0.080011, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 180k tbc [stream_segment,ssegment @ 0x217ece0] Failed to open segment ' /etc/cida/diagnostics/vid/780801-99-000.mp4' [tee @ 0x217d820] Slave '[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15] /etc/cida/diagnostics/vid/780801-99-%03d.mp4': error writing header: No such file or directory [tee @ 0x217d820] Slave muxer #0 failed, aborting. Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory Stream mapping: Stream #0:0 -> #0:0 (copy) Last message repeated 1 times Regards, Lev ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] An error in decoding RTMP (h264) live streaming
Dear Sir / Madam: I use ffplay to play a RTMP live streaming (url is "rtmp://live.hkstv.hk.lxdns.com/live/hks"). After 16819 seconds of receiving, the decoding function returns error, and the error info is as follows. Or it can be easily happened when use "$ ffmpeg -ss 16750 -i rtmp://live.hkstv.hk.lxdns.com/live/hks -f null - "command. I tried ffmpeg version 3.0, 3.1, 3.3, and it has the same problem. I hope you can tell me where is wrong or how to slove this problem. Best wishes, xyzero [h264 @ 094e5180] P sub_mb_type 13 out of range at 23 25 0B f=15/15 [h264 @ 094e5180] error while decoding MB 23 25 [h264 @ 094e5180] concealing 226 DC, 226 AC, 226 MV errors in P frame HandleInvoke, Sanity failed. no string method in invoke packet=15/15 [flv @ 08772fe0] DTS 16808050 < 2353520185 out of order 0B f=15/15 [aac @ 09527a60] This decoder does not support parameter changes, but PARAM_CHAN GE side data was sent to it. [h264 @ 087c9880] [aac @ 09527a60] mb_type 34 in P slice too large at 33 24 Error applying parameter changes. [h264 @ 087c9880] error while decoding MB 33 24 [h264 @ 087c9880] concealing 256 DC, 256 AC, 256 MV errors in P frame [flv @ 08772fe0] Audio codec (e) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [flv @ 08772fe0] If you want to help, upload a sample of this file to ftp://uplo ad.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel @ffmpeg.org) [aac @ 09527a60] This decoder does not support parameter changes, but PARAM_CHAN GE side data was sent to it. [aac @ 09527a60] Error applying parameter changes. [aac @ 09527a60] This decoder does not support parameter changes, but PARAM_CHAN GE side data was sent to it. [aac @ 09527a60] 16819.03 A-V:-2336735.363 fd= 259 aq=1KB vq=0KB sq= Error applying parameter changes. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Convert a Camera source to an IP Camera signal
Hi, I am using Wirecast Pro as a switcher for live streams. I have two cameras one is connected through a thunderbolt cable to the Wirecast machine but the second one I want to connect via WiFi. Therefore I try to stream it over IP to Wirecast. The second camera is connected to the second computer through a firewire cable and provides a HDV Mpeg2 stream. I tried sending the stream with rtmp but that means I have to transcode it 2 times and I am loosing to much quality. Therefore I am looking for a way to stream it with RTSP or HTTP in Mpeg2 or Motion JPEG. The Wirecast Web Stream plugin accepts IP Cameras delivering in these format. But I can't figure out how to send the stream with ffmpeg that it will be recognised like an IP Camera from Wirecast. Thank you for your help. Best Regards, Robert ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Extract xvid stream in mov container
2017-04-30 16:04 GMT+02:00 jacques perconte: > Dear all, i have to find another file, this one is 40Go :) Is the issue still reproducible if you cut the first 100MB? If the first 100MB are unreadable, process the file with tools/qt-faststart first (or provide the first 100MB, the last 100MB and the exact file size). Stop top-posting, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Extract xvid stream in mov container
Dear all, i have to find another file, this one is 40Go :) So thank you. i let you know. Jacques ☀︎ Jacques Perconte +33 660 615 408 http://www.jacquesperconte.com → http://timeline.technart.fr / news → https://twitter.com/jacquesperconte / voix On Sun, Apr 30, 2017 at 1:22 PM, Carl Eugen Hoyoswrote: > 2017-04-28 17:36 GMT+02:00 jacques perconte : >> Yes, the video file is damaged, this is my weird way of working video. >> >> The file does play on mac with quicktime and perian installed > > Please provide the input sample. > > Please do not top-post here, Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?
2017-04-29 11:25 GMT+02:00 Cley Faye: > 2017-04-28 16:52 GMT+02:00 Guilherme de Oliveira Costa > : > >> I am using ffmpeg record a video from a webcam, but the memory >> usage is very high, and keeps increasing with video length. You can use massif to check where memory is allocated, and complete, uncut console output missing. >> For example, I use an embedded device with 64 MB of RAM, and >> when I recorded a 30 minute video, I was left with 2MB of RAM in >> the last minutes of the recording. > > I'm wondering, how do you check how much "free" memory you > have while ffmpeg is running? Since it didn't OOM or die, it might > just have been cache from the OS, which will gracefully yield if > another program request it. Sounds likely. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Extract xvid stream in mov container
2017-04-28 17:36 GMT+02:00 jacques perconte: > Yes, the video file is damaged, this is my weird way of working video. > > The file does play on mac with quicktime and perian installed Please provide the input sample. Please do not top-post here, Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".