Re: [FFmpeg-user] Failure with assertion "avpkt->buf failed at libavcodec/encode.c"
>This issue was fixed over the weekend. > >Carl Eugen I am assuming I just need to recompile then? Thanks Carl CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Failure with assertion "avpkt->buf failed at libavcodec/encode.c"
Hello, I am getting a failure (the assertion at the end) trying to transcode using h264_nvenc. The error goes away only when I remove the h264_nvenc encoder. I cannot find any information on this error. Has anyone seen this before? Hostname:~$ ffmpeg -i 'udp://@239.1.1.92:59092' -vcodec h264_nvenc -f mpegts 'udp://@239.129.100.1:59001?pkt_size=1316' ffmpeg version N-95733-g73ee53f Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libx265 --enable-nonfree libavutil 56. 35.101 / 56. 35.101 libavcodec 58. 62.100 / 58. 62.100 libavformat58. 35.100 / 58. 35.100 libavdevice58. 9.100 / 58. 9.100 libavfilter 7. 66.100 / 7. 66.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc55. 6.100 / 55. 6.100 [mpeg2video @ 0x55e2ee091f00] Invalid frame dimensions 0x0. Last message repeated 19 times Input #0, mpegts, from 'udp://@239.1.1.92:59092': Duration: N/A, start: 33261.731900, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) (descriptions) Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_nvenc)) Stream #0:1 -> #0:1 (ac3 (native) -> mp2 (native)) Press [q] to stop, [?] for help Output #0, mpegts, to 'udp://@239.129.100.1:59001?pkt_size=1316': Metadata: encoder : Lavf58.35.100 Stream #0:0: Video: h264 (h264_nvenc) (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc Metadata: encoder : Lavc58.62.100 h264_nvenc Side data: cpb: bitrate max/min/avg: 0/0/200 buffer size: 400 vbv_delay: N/A Stream #0:1(eng): Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s Metadata: encoder : Lavc58.62.100 mp2 Assertion !avpkt->data || avpkt->buf failed at libavcodec/encode.c:4380.0kbits/s speed=0.332x Aborted (core dumped) Thanks, -James CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Continuity issues with multiple UDP output streams.
On Tue, 12 Nov 2019, Marton wrote: >I meant using the bitrate option of the UDP protocol, not the bitrate of the >video. Ah, yeah I mis-read that. I tested with this and while I did see a reduction in discontinuities, it did not resolve the issues. I worked with our server provider and have isolated the cause. For anyone looking into this in the future, the Intel x722 ethernet adapters are the root cause. Our previous servers were using the Intel i350 NICs. If I pop a 4 port i350 PCI NIC card into the server and use those ports, we are not seeing any issues. Thanks for the help, -James CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Continuity issues with multiple UDP output streams.
Marten, Thanks for the reply. I am currently only copying to eliminate all other settings within my FFMPEG command string as a possible cause. The intent is to transcode, which I can already do from other servers to the receiver here, but I have to resolve this first. Using socat will not help me here. I had already verified the input side is not dropping packets with debugging in FFMPEG. I had done this with one source stream previously but since you brought it up, this time I decided to pull 15 and they all came in without errors. I did not need buffer adjustments for this. My debug command : ffmpeg -v debug -i udp://@239.1.1.92:59092 -f null /dev/null As far as the output goes, we are regularly using VBR streams in UDP multicast transport and the hd ones can jump from 8000K to 18000K but we do not see this issue. When I started working on this I was setting the bitrate to 3500K cbr and transcoding to h264 and the issue persisted. From a transmit and capture perspective they seem to be staying around speed=1.01x so I think I am good there. Thanks, -James -Original Message- From: ffmpeg-user On Behalf Of Marton Balint Sent: Tuesday, November 12, 2019 2:23 PM To: FFmpeg user questions Subject: Re: [FFmpeg-user] Continuity issues with multiple UDP output streams. On Tue, 12 Nov 2019, James E. Baird wrote: > To add to this, I did some further testing and it would seem the lower > the bitrate I make the streams from the transmitter, the more streams > I can have without continuity errors on the receiver side. I did a > resolution change from 1080p to 480p and dropped the bitrate on my > streams from 12000-14000K to 1500K (mpeg2 to mpeg2) and I could add 7 > processes before I started seeing the streams having issues. > > Using this command: > ffmpeg -i 'udp://@237.1.1.92:59092' -s 864x486 -b:v 100 -acodec copy -f > mpegts 'udp://@237.129.100.2:59002?pkt_size=1316' > > Not sure if this helps anyone have a eureka moment. If you are only copying streams, then I suggest you use another tool, like socat to relay streams. Not that you can't make ffmpeg work to some degree. First you have to make sure you are not dropping packets on the input side. I suggest you use 0 as fifo size and 512000 as buffer size (see the docs for these options). In order to be able to set this you have to tune linux kernel parameters (net.core.rmem_max) as well. Then you have to make sure your output is not bursting too much. You should limit the output bitrate using the bitrate option. Make sure your processes can still operate at realtime speed, otherwise packets will queue up or get dropped. Even if you do this, depending on your receiver device it might still not work, because ffmpeg mpegts muxer does not honor TS buffering requirements, so the generated TS will not be standard compliant. Regards, Marton CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Continuity issues with multiple UDP output streams.
To add to this, I did some further testing and it would seem the lower the bitrate I make the streams from the transmitter, the more streams I can have without continuity errors on the receiver side. I did a resolution change from 1080p to 480p and dropped the bitrate on my streams from 12000-14000K to 1500K (mpeg2 to mpeg2) and I could add 7 processes before I started seeing the streams having issues. Using this command: ffmpeg -i 'udp://@237.1.1.92:59092' -s 864x486 -b:v 100 -acodec copy -f mpegts 'udp://@237.129.100.2:59002?pkt_size=1316' Not sure if this helps anyone have a eureka moment. Thanks, -James CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Continuity issues with multiple UDP output streams.
The version with the output was from the ffmpeg installed from the Ubuntu repository after a reinstall of Ubuntu to save testing time (I have tested 3.4.6, 4.1 and 4.2 on this server). I have validated 3.4.6 and 4.2 on another server as mentioned. The other transmitter is not having issues with either version. Thanks, -James -Original Message- From: ffmpeg-user On Behalf Of Carl Zwanzig Sent: Tuesday, November 12, 2019 11:11 AM To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] Continuity issues with multiple UDP output streams. On 11/12/2019 8:22 AM, James E. Baird wrote: > Tested: > Compiling FFMPEG from source Maybe from source, but not with the -current- source. > ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the > FFmpeg developers Please try with a newer version, preferably the git head (which is the only one officially supported here). If you can't install that, at least get a "4.1" or newer binary version. Late,r z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser=DwIGaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=ZivZtP57cMKuu2tKfRvd0k_0a0IqQY24ZAIXeQbuPz8=4gjTBWOXqIWjLB4bh7Gjyipg3hhoZpKWg9SHR6n03-I=Pyq8FQqNbfs8vKrBxq-MgGH2Zc5piBQBZQ-jPG-HIr0= To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Continuity issues with multiple UDP output streams.
Hello, I have run into an issue that I am stumped on. When copying UDP streams and output onto a new Multicast, I am seeing discontinuities on my receiver. It only happens if I add more than one instance of FFMPEG to the transmitter. It does not show continuity errors when debugging the stream on the transmitter. Both the reciever and the transmitter are on the same switch within the same VLAN. I have a third server that I setup as a transmitter and we are not seeing the same issue. Tested: New switchport New network New server NIC for output Known working good port Compiling FFMPEG from source Fresh FFMPEG version install from repo Fresh Ubuntu 18 install Fresh Ubuntu 16 install Turned off hyperthreading Reconfigured the server without the Ubuntu software RAID CPU utilization and load are low. <5% with a load <1. Only 600mb of 96GB of RAM utilized. No other applications running. Command used to copy the stream: ffmpeg -i 'udp://@237.1.1.92:59092' -c copy -f mpegts 'udp://@237.129.100.2:59002?pkt_size=1316' & ffmpeg -i 'udp://@237.1.1.93:59093' -c copy -f mpegts 'udp://@237.129.100.3:59003?pkt_size=1316' & ffmpeg -i 'udp://@237.1.1.94:59094' -c copy -f mpegts 'udp://@237.129.100.4:59004?pkt_size=1316' & ffmpeg -i 'udp://@237.1.1.95:59095' -c copy -f mpegts 'udp://@237.129.100.5:59005?pkt_size=1316' & The output is below. I did have to cut some of the continuity errors from the reciever output or it would have been a really long post. I know this may not be FFMPEG (in fact my hunch is not) but I am looking for possible causes that may be outside what I looked at above. == Transmitter output (4 streams running simultaneously): ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat57. 83.100 / 57. 83.100 libavdevice57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc54. 7.100 / 54. 7.100 ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
Re: [FFmpeg-user] SRT server setup, buffer overrun and connection issues
Yes. That is the IP for the listener server. The caller can connect up so that is working correctly. -Jimbo CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] SRT server setup, buffer overrun and connection issues
Hello, I am trying to setup an SRT server. First, we are dealing with live continuos streams, not files. I can get the connection setup easily enough and move the streams fine. I am grabbing a UDP multicast stream from one site and uploading to another site. Output at remote site is UDP. The transmitting server is setup as the listener with the remote server as the caller. I am running into 2 issues. --- 1. When setting up the connection, the listener side starts having circular buffer overruns if the caller doesn't connect within the first few seconds of the listener being started. I added overrun_nonfatal but found that even after the caller connects, the listener is still in an overrun state. Is there a way to purge the buffer once an overrun is reached? I simply want the stream to be available whenever the caller "dials in". So the listener should be available 24x7 even if the caller is offline for a few hours. Output from the listener showing this problem: user@hostname:~$ ffmpeg -fflags +genpts -re -i 'udp://x.x.x.x:x?overrun_nonfatal=1' -acodec copy -vcodec copy -strict -2 -y -f mpegts 'srt://y.y.y.y:pkt_size=1316=listener==32' ffmpeg version N-95534-gac0f5f4 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-libsrt --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libx265 --enable-nonfree libavutil 56. 35.101 / 56. 35.101 libavcodec 58. 59.102 / 58. 59.102 libavformat58. 33.100 / 58. 33.100 libavdevice58. 9.100 / 58. 9.100 libavfilter 7. 64.100 / 7. 64.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc55. 6.100 / 55. 6.100 [mpeg2video @ 0x563bb1a8fa00] Invalid frame dimensions 0x0. Last message repeated 21 times Input #0, mpegts, from 'udp://x.x.x.x:?overrun_nonfatal=1': Duration: N/A, start: 71228.181744, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) (descriptions) Output #0, mpegts, to 'srt://y.y.y.y:?pkt_size=1316=listener=xx=32': Metadata: encoder : Lavf58.33.100 Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [udp @ 0x563bb1a8a0c0] Circular buffer overrun. Surviving due to overrun_nonfatal option 1x Last message repeated 105 times [udp @ 0x563bb1a8a0c0] Circular buffer overrun. Surviving due to overrun_nonfatal option 1x Last message repeated 37 times [mpegts @ 0x563bb1a89540] PES packet size mismatch:00:19.71 bitrate=6787.4kbits/s speed= 1x Last message repeated 1 times frame= 815 fps= 28 q=-1.0 size= 23899kB time=00:00:28.81 bitrate=6793.4kbits/s speed= 1x - 2. When I kill the caller side ffmpeg process, the listener side exits ffmpeg as well. Is there a way to make this survivable so the listener stays available? Remaining output (continuation from above) from the listener side when the caller connection ends: [udp @ 0x563bb1a8a0c0] Circular buffer overrun. Surviving due to overrun_nonfatal option 1x Last message repeated 39 times [mpegts @ 0x563bb1a89540] PES packet size mismatch Last message repeated 1 times [srt @ 0x563bb1afbf80] Operation not supported: Invalid socket IDte=6348.0kbits/s speed= 1x av_interleaved_write_frame(): Unknown error occurred Error writing trailer of srt://y.y.y.y:?pkt_size=1316=listener=xx=32: Unknown error occurred frame= 5223 fps= 29 q=-1.0 Lsize= 137315kB time=00:02:57.26 bitrate=6345.6kbits/s speed= 1x video:124754kB audio:8215kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.268119% Conversion failed! ---
[FFmpeg-user] Discontinuities on Transcoded feeds showing only on VMWare virtual machines
Hello, I have an interesting problem I am working through and I am hoping to get some insight as to a root cause. I am taking antenna feeds that are converted to multicast into a transcoding server that is running FFMPEG. I am transcoding the streams using h264_nvenc encoder and outputting them onto the network. The issue is that the receiving servers are getting continuity errors on the transcoded streams periodically. You can also see these in the video playback in the form of very minor pixilation and slight audio skips. This only seems to effect HD stream, and only when the receiving server is virtualized. What I have tried: Testing in 3 separate physical locations/networks Verified that only virtual machines are effected. Physical baremetal linux installed machines do not see continuity errors. Verified that the problem is only present on HD transcoded streams. SD transcoded streams and the original source streams do not display continuity issues. I noticed variation in packet size so I forced consistent packet size with the ffmpeg command. 2 separate physical transcoder servers. 2 separate models of Nvidia cards. P2000 and RTX4000. Changing the virtual machines NIC driver from VMXNET3 to E1000. Increasing buffers of the Linux OS's that are receiving the channels. Verified that it was not a resource issue on the graphics card by reducing to a single stream with one transcoded output. Verified the GPU is not under load. It is currently using less than 10% of the NVENC chip to process one of these streams. Verified that the continuities are an issue on both audio streams and the video stream. Verified the issue is present across multiple versions of FFMPEG including a newly compiled from source version. Command that I am using to transcode: ffmpeg -hwaccel nvdec -i 'udp://@239.200.200.100:6001?fifo_size=100_nonfatal=1' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 5500K -minrate 5500k -maxrate 5500k -bufsize 11000k -profile:v high -level 4.0 -acodec libfdk_aac -ac 2 -b:a 128k -flush_packets 0 -f mpegts 'udp://@239.200.200.103:59103' ==Command on the transcoding server to kick off the process: james@transcoder:~$ ffmpeg -hwaccel nvdec -i 'udp://@239.1.1.93:59093?overrun_nonfatal=1' -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 5500K -minrate 5500k -maxrate 5500k -bufsize 11000k -profile:v high -level 4.0 -acodec libfdk_aac -ac 2 -b:a 128k -flush_packets 0 -f mpegts 'udp://@239.100.100.3:59003' ffmpeg version N-93005-gd92f06e Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x5630735fc900] Invalid frame dimensions 0x0. Last message repeated 37 times Input #0, mpegts, from 'udp://@239.1.1.93:59093?overrun_nonfatal=1': Duration: N/A, start: 52458.920733, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_nvenc)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help Output #0, mpegts, to 'udp://@239.100.100.3:59003': Metadata: encoder : Lavf58.26.100 Stream #0:0: Video: h264 (h264_nvenc) (High), nv12, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 5500 kb/s, 59.94 fps, 90k tbn, 59.94 tbc Metadata: encoder : Lavc58.44.100 h264_nvenc Side data: cpb: bitrate max/min/avg: 550/0/550 buffer size: 1100 vbv_delay: -1 Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc58.44.100 libfdk_aac frame=18186 fps= 60 q=19.0 size= 226856kB time=00:05:04.10 bitrate=6111.1kbits/s speed=1.01x ==FFProbe from the receiving server: ffprobe udp://@239.100.100.3:59003 ffprobe version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2007-2018 the FFmpeg developers built with
[FFmpeg-user] Varying audio bitrate when transcoding from AC3 5.1 to AAC Stereo
Hello, I am seeing a fluctuating bitrate when I attempt to convert an AC3 audio stream that is 5.1 Dolby to AAC in stereo. I thought that to do the proper downmux you simply need to add the -ac 2 option to your audio output command but I must be missing something. The target bitrate is 128 but I see it dipping as low as 114 and peak as high as 140. Am I missing something or is this expected behavior for what I am doing? Here is the command and output: user@gpu-transcoder:~/scripts$ ffmpeg -i 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1' -vcodec h264_nvenc -bf:v 2 -g 60 -rc cbr -b:v 6000K -minrate 6000k -maxrate 6000k -bufsize 12000k -profile:v high -level 4.0 -acodec libfdk_aac -ac 2 -b:a 128k -f mpegts 'udp://@233.1.1.100:59100?pkt_size=1316' ffmpeg version N-93005-gd92f06e Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 Input #0, mpegts, from 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1': Duration: N/A, start: 58320.721844, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) (descriptions) Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_nvenc)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help Output #0, mpegts, to 'udp://@239.129.2.220:59220?pkt_size=1316': Metadata: encoder : Lavf58.26.100 Stream #0:0: Video: h264 (h264_nvenc) (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 6000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc Metadata: encoder : Lavc58.44.100 h264_nvenc Side data: cpb: bitrate max/min/avg: 600/0/600 buffer size: 1200 vbv_delay: -1 Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc58.44.100 libfdk_aac frame= 1622 fps= 33 q=34.0 size= 43862kB time=00:00:54.42 bitrate=6602.5kbits/s speed=1.11x Here are the FFPROBE outputs to show the audio bitrate changes: Input #0, mpegts, from 'udp://@233.1.1.100:59100': Duration: N/A, start: 47.096589, bitrate: N/A Program 1 Metadata: service_name: Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s And another: Input #0, mpegts, from 'udp://@239.129.2.100:59100': Duration: N/A, start: 206.629456, bitrate: N/A Program 1 Metadata: service_name: Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 120 kb/s Let me know what else you may need. Thanks, Jimbo CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. ??2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe,
[FFmpeg-user] EPG from OTA stream acquired via UDP
Hello, Does anyone know of a way to grab EPG data from a live OTA stream in UDP format without having to save to file. I know that this can be viewed with MediaInfo but in order to access it I need to save a clip and then open the clip with MediaInfo for analysis. The other tools I have seen for this seem to require a DVB card for acquiring the signal (as opposed to the UDP streams we currently have) and that is not an option here. The intended end result is something I can incorporate from an automated perspective and I would prefer to use ffmpeg. Specifically looking for the data values that show up in the "Menu" section of Mediainfo; "Title:" and "Law rating:" Any help is appreciated. Thanks, Jimbo CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. ??2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] PTS and DTS sync accross multiple output streams.
Does anyone have any ideas on this? I am essentially trying to keep the timestamps with 3 output the same. Thoughts? James Baird Systems Administrator CCR p: (319) 734-3528 m: (319) 775-7460 w: www.ccr.net -Original Message- From: James E. Baird Sent: Monday, March 11, 2019 12:24 PM To: 'ffmpeg-user@ffmpeg.org' Subject: PTS and DTS sync accross multiple output streams. Hello, I have a setup where I am transcoding live feeds from OTA broadcasts to H264 using the Nvidia NVENC encoder. I am also transcoding the audio to AAC. We are trying to output 3 cbr streams and various bitrates. The problem I am running into is that the PTS and DTS on the multiple outputs are not aligning which is critical for our use case. I am hoping there is an easy fix to this but I have not yet been able to locate one. Any thoughts on how to accomplish this? ===> Source Feed <=== ffprobe udp://@238.224.1.5:59005 ffprobe version N-93005-gd92f06e Copyright (c) 2007-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x558e5a80fa40] Invalid frame dimensions 0x0. Last message repeated 22 times Input #0, mpegts, from 'udp://@238.224.1.5:59005: Duration: N/A, start: 89037.540778, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s ===> Command I am currently running to transcode <=== screen -d -m ffmpeg -i 'udp://@238.224.1.5:59005?fifo_size=100_nonfatal=1' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 6000K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts -metadata service_name="test6000" -metadata service_provider="test" 'udp://@239.1.1.1:59001?pkt_size=1316' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 3500K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts -metadata service_name="test3500" -metadata service_provider="test" 'udp://@239.1.1.2:59002?pkt_size=1316' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 1500K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts -metadata service_name="test1500" -metadata service_provider="test" 'udp://@239.1.1.3:59003?pkt_size=1316' Let me know what other info may be needed. Thanks in advance to any replies. CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] PTS and DTS sync accross multiple output streams.
Hello, I have a setup where I am transcoding live feeds from OTA broadcasts to H264 using the Nvidia NVENC encoder. I am also transcoding the audio to AAC. We are trying to output 3 cbr streams and various bitrates. The problem I am running into is that the PTS and DTS on the multiple outputs are not aligning which is critical for our use case. I am hoping there is an easy fix to this but I have not yet been able to locate one. Any thoughts on how to accomplish this? ===> Source Feed <=== ffprobe udp://@238.224.1.5:59005 ffprobe version N-93005-gd92f06e Copyright (c) 2007-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x558e5a80fa40] Invalid frame dimensions 0x0. Last message repeated 22 times Input #0, mpegts, from 'udp://@238.224.1.5:59005: Duration: N/A, start: 89037.540778, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s ===> Command I am currently running to transcode <=== screen -d -m ffmpeg -i 'udp://@238.224.1.5:59005?fifo_size=100_nonfatal=1' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 6000K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts -metadata service_name="test6000" -metadata service_provider="test" 'udp://@239.1.1.1:59001?pkt_size=1316' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 3500K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts -metadata service_name="test3500" -metadata service_provider="test" 'udp://@239.1.1.2:59002?pkt_size=1316' \ -vcodec h264_nvenc -bf:v 2 -g 120 -rc cbr -b:v 1500K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts -metadata service_name="test1500" -metadata service_provider="test" 'udp://@239.1.1.3:59003?pkt_size=1316' Let me know what other info may be needed. Thanks in advance to any replies. CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Errors and discontinuities while GPU trancoding to H264
Anybody have any thoughts on this? Thanks, -James CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ 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] Errors and discontinuities while GPU trancoding to H264
After spending more time digging through the limited info on the internet, I have made some edits to my command and am seeing better results. I am still seeing a high number of errors and discontinuities however. I believe that I can capture clips now because ffmpeg is buffering the video enough to prevent the discontinuities from showing in the stream. I am still not sure the cause of the errors. I take it from the lack of response that not many have experience with this. Any ideas would be greatly appreciated. Here is my new command to transcode. ffmpeg -i 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1' -vcodec h264_nvenc -g 120 -rc cbr -b:v 1500K -profile:v high -level 4.0 -acodec aac -ac 2 -b:a 128k -ar 44100 -f mpegts udp://@239.129.2.242:59242 Thanks, -James CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ 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] Errors and discontinuities while GPU transcoding to H264
Hello, Looking for assistance on this issue I am struggling with. I am trying to take a live OTA stream (free-to-air broadcast) and transcode it (using Nvidia Quadro p2000 card) from mpeg2ts and ac3 to h264 and AAC. I need the output to be in 3 separate bitrates and in UDP multicast format. Here is the source stream from ffprobe output (also gives you my version number for ffmpeg). ==Source: gpu-transcoder:~$ ffprobe udp://@239.1.1.92:59092 ffprobe version N-93005-gd92f06e Copyright (c) 2007-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x5582ad6afa40] Invalid frame dimensions 0x0. Last message repeated 19 times Input #0, mpegts, from 'udp://@239.1.1.92:59092': Duration: N/A, start: 73120.077033, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) ==So here is the command that I am using for the transcode: ffmpeg -i 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1' \ -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 6000k -minrate 6000k -maxrate 6000k -bufsize 12000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.220:59220 \ -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize 9000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.221:59221 \ -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 3000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.222:59222 ==Here is the output while the command is running: gpu-transcoder:~$ ffmpeg -i 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1' -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 6000k -minrate 6000k -maxrate 6000k -bufsize 12000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.220:59220 -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize 9000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.221:59221 -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 3000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.222:59222 ffmpeg version N-93005-gd92f06e Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x564c01e22f40] Invalid frame dimensions 0x0. Last message repeated 29 times Input #0, mpegts, from 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1': Duration: N/A, start: 73483.943033, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) Codec AVOption x264opts (x264 options) specified for
[FFmpeg-user] Errors and discontinuities while GPU trancoding to H264
Hello, Looking for assistance on this issue I am struggling with. I am trying to take a live OTA stream (free-to-air broadcast) and transcode it (using Nvidia Quadro p2000 card) from mpeg2ts and ac3 to h264 and AAC. I need the output to be in 3 separate bitrates and in UDP multicast format. Here is the source stream from ffprobe output (also gives you my version number for ffmpeg). ==Source: gpu-transcoder:~$ ffprobe udp://@239.1.1.92:59092 ffprobe version N-93005-gd92f06e Copyright (c) 2007-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x5582ad6afa40] Invalid frame dimensions 0x0. Last message repeated 19 times Input #0, mpegts, from 'udp://@239.1.1.92:59092': Duration: N/A, start: 73120.077033, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) ==So here is the command that I am using for the transcode: ffmpeg -i 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1' \ -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 6000k -minrate 6000k -maxrate 6000k -bufsize 12000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.220:59220 \ -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize 9000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.221:59221 \ -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 3000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.222:59222 ==Here is the output while the command is running: gpu-transcoder:~$ ffmpeg -i 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1' -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 6000k -minrate 6000k -maxrate 6000k -bufsize 12000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.220:59220 -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize 9000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.221:59221 -c:v h264_nvenc -x264opts keyint=120:no-scenecut -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 3000k -profile:v high -level 4.0 -c:a aac -f mpegts udp://@239.129.2.222:59222 ffmpeg version N-93005-gd92f06e Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --prefix=/home/circle/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/circle/ffmpeg_build/include --extra-ldflags=-L/home/circle/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/circle/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 44.100 / 58. 44.100 libavformat58. 26.100 / 58. 26.100 libavdevice58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc55. 4.100 / 55. 4.100 [mpeg2video @ 0x564c01e22f40] Invalid frame dimensions 0x0. Last message repeated 29 times Input #0, mpegts, from 'udp://@239.1.1.92:59092?fifo_size=100_nonfatal=1': Duration: N/A, start: 73483.943033, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired) Codec AVOption x264opts (x264 options) specified for
Re: [FFmpeg-user] Need assistance finding l transcoding
>It's actually ABR you're creating, if I understand correctly. Not yet as I am actually outputting 3 multicast streams, each with a set bitrate(1500/3500/6000). They will be captured on the other side of the network and then muxed together to create the ABR stream (a design that, as of yet, cannot be avoided). >Unfortunately, that preset is a bandwidth hog, and will drop quality >significantly. Actually, it also lowers your profile to "Constrained >Baseline". :-( Bandwidth piece wouldn't be as much of a problem since this is layer2 to the endpoint that will mux them back together but the quality loss and profile change is a problem. If I go to superfast my speed drops to .914 on average. If I understand correctly, this means I am slowing getting farther and farther behind? Will I eventually have an overrun in my fifo buffer causing a reset and lost data? Just double checking my understanding there. Thanks so far for the help so far. Maybe someone else will chime in with the best answer ever! -Jimbo CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ 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] Need assistance finding l transcoding
Moritz, >Does it need to be fixed bitrate? (Just wondering.) It does need to be a CBR. It will be converted to an adaptive stream for a streaming app >Is this ultimately the issue? That you can't encode at real time? These are live streams that need to be forwarded off, packaged in HLS and sent to streaming app and accessible within 1 minute from broadcast so that is part of it. >At "constant"/average bitrate (-b:v), you should be able to use libx264's >presets to trade off quality for speed. Perhaps you can achieve >1.0x that >way. I don't see how you will do three simultaneous encodes though. >BTW, eight CPUs to encode 1280x720@59.94 in realtime seems sort of heavy. Are >these Atom cores or something similarly weak? I felt that I should get more horsepower as well and that is the main reason I started this thread. I have been working with live streams for a few years now but surprisingly, this is the first time I have needed to dig into transcoding like this so I was hoping there was something glaringly inefficient about how I was trying to get to the end result. I see some venders of transcoders using CPUs that are not as powerful as this one on their transcoding hardware (without GPU or ASIC chips) and I am assuming they are leveraging FFMPEG or something similar in the background. I have edited my command a bit. The biggest performance change I am seeing is changing the preset to ultrafast. I am not sure that quality will work yet but it gets the utilization down to 350% CPU usage. The other performance gain comes from combing the 3 output bitrates into a single command. Not sure if anyone has further suggestions for this? === New command transcoder:~$ ffmpeg -i 'udp://@239.129.2.110:59110?fifo_size=100_nonfatal=1' \ > -c:v libx264 -x264opts keyint=120:no-scenecut -preset ultrafast -b:v 6000k > -minrate 6000k -maxrate 6000k -bufsize 12000k -profile:v high -level 4.0 -c:a > aac -f mpegts udp://@239.129.2.240:59240 \ > -c:v libx264 -x264opts keyint=120:no-scenecut -preset ultrafast -b:v 3500k > -minrate 3500k -maxrate 3500k -bufsize 9000k -profile:v high -level 4.0 -c:a > aac -f mpegts udp://@239.129.2.241:59241 \ > -c:v libx264 -x264opts keyint=120:no-scenecut -preset ultrafast -b:v 1500k > -minrate 1500k -maxrate 1500k -bufsize 3000k -profile:v high -level 4.0 -c:a > aac -f mpegts udp://@239.129.2.242:59242 ===OUTPUT === ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat57. 83.100 / 57. 83.100 libavdevice57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc54. 7.100 / 54. 7.100 [mpeg2video @ 0x556b70e9c580] Invalid frame dimensions 0x0. Last message repeated 7 times Input #0, mpegts, from 'udp://@239.129.2.110:59110?fifo_size=100_nonfatal=1': Duration: N/A, start: 95234.341144, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, bottom first), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Stream #0:0 -> #1:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:1 -> #1:1 (ac3 (native) -> aac (native)) Stream #0:0 -> #2:0 (mpeg2video (native) -> h264 (libx264))
Re: [FFmpeg-user] Need assistance finding l transcoding
Carl, Thanks for the suggestions so far. I suspect there is something in that command that is causing the high CPU usage. Maybe there is a better way to structure the command. I spun up a new server running Ubuntu 18.04.1 LTS and installed FFMPEG version 7.3.4.4 which is the current supported version for Bionic Beaver. I tried what you said and output to NULL with the same results in regards to the CPU usage so I don’t think it’s the re-pack to UDP multicast. OUTPUT == transcoder:~$ ffmpeg -i 'udp://@239.129.2.110:59110?fifo_size=100_nonfatal=1' -c:v libx264 -x264opts keyint=120:no-scenecut -b:v 6000k -profile:v high -c:a aac -f null /dev/null ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat57. 83.100 / 57. 83.100 libavdevice57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc54. 7.100 / 54. 7.100 [mpeg2video @ 0x55d5c951cec0] Invalid frame dimensions 0x0. Last message repeated 13 times Input #0, mpegts, from 'udp://@239.129.2.110:59110?fifo_size=100_nonfatal=1': Duration: N/A, start: 89749.701144, bitrate: N/A Program 3 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, bottom first), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [libx264 @ 0x55d5c9a46980] using SAR=1/1 [libx264 @ 0x55d5c9a46980] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4 [libx264 @ 0x55d5c9a46980] profile High, level 3.2 Output #0, null, to '/dev/null': Metadata: encoder : Lavf57.83.100 Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 6000 kb/s, 59.94 fps, 59.94 tbn, 59.94 tbc Metadata: encoder : Lavc57.107.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/600 buffer size: 0 vbv_delay: -1 Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1(side), fltp, 341 kb/s Metadata: encoder : Lavc57.107.100 aac frame= 2917 fps= 49 q=31.0 size=N/A time=00:00:48.91 bitrate=N/A speed=0.828x Thoughts? -Jimbo CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ 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] Need assistance finding l transcoding
Hello, I am trying to find the most efficient way to take a udp stream (Source OTA) and transcode video to h.264, audio to AAC, output as 3 aligned cbr (1500/3500/6000k) streams (udp), gop 2 (60 for 30FPS or 120 for 60FPS) Here is the command I am currently using but the CPU usage seems way to high for what I am doing. AMD Opteron(tm) Processor 6282 SE with 8 cores assigned to VM but all 8 are pegged when running this. ffmpeg -i 'udp://@239.129.1.5:59005?fifo_size=100_nonfatal=1' -c:v libx264 -x264opts keyint=120:no-scenecut -b:v 6000k -profile:v high -c:a aac -f mpegts udp://@239.129.2.10:50010 -Thanks, Jimbo CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential and may contain information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox. ___ 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".