Hello support I need to re-encode high video bit rate video to low video bitrate . I took rtmp in from media server and then use ffmpeg to re-encode using libx264 but after few minute the ffmpeg encoding drops.
*ffmpeg -i 'rtmp://192.168.0.44:1935/live/SONYHD1500.stream <http://192.168.0.44:1935/live/SONYHD1500.stream>' -r 25 -b:v 800k -vf "scale=720:480" -c:a aac -c:v nvenc -gpu 0 -f flv 'rtmp://admin:[email protected]:1935/test/SONYHD450.stream <http://admin:[email protected]:1935/test/SONYHD450.stream>'* ffmpeg version 3.0.11 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609 configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc --extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils --enable-decklink --extra-cflags=-I/usr/local/sdk/Linux/include/ --extra-ldflags=-L/usr/local/sdk/Linux/include libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 *Input #0, flv, from 'rtmp://192.168.0.44:1935/live/SONYHD1500.stream <http://192.168.0.44:1935/live/SONYHD1500.stream>':* Metadata: encoder : Lavf58.18.100 Duration: 00:00:00.00, start: 8781.280000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3000 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s *[rtmp @ 0x2760e60] Ignoring unsupported var reason* *Output #0, flv, to '**rtmp://admin:[email protected]:1935/test/SONYHD450.stream <http://admin:[email protected]:1935/test/SONYHD450.stream>* *':* * Metadata:* * encoder : Lavf57.25.100* * Stream #0:0: Video: h264 (nvenc) (Main) ([7][0][0][0] / 0x0007), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 800 kb/s, 25 fps, 1k tbn, 25 tbc* * Metadata:* * encoder : Lavc57.24.102 nvenc* * Side data:* * unknown side data type 10 (24 bytes)* * Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 128 kb/s* * Metadata:* * encoder : Lavc57.24.102 aac* *Stream mapping:* * Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc))* * Stream #0:1 -> #0:1 (aac (native) -> aac (native))* *Press [q] to stop, [?] for help* *av_interleaved_write_frame(): Broken pipeB time=00:03:30.39 bitrate= 918.8kbits/s speed=1.02x* * Last message repeated 1 times* *[flv @ 0x25db400] Failed to update header with correct duration.* *[flv @ 0x25db400] Failed to update header with correct filesize.* *Error writing trailer of rtmp://admin:[email protected]:1935/test/SONYHD450.stream <http://admin:[email protected]:1935/test/SONYHD450.stream>: Broken pipeframe= 5214 fps= 25 q=-0.0 Lsize= 23608kB time=00:03:30.60 bitrate= 918.3kbits/s speed=1.02x* *video:20065kB audio:3317kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.963503%* *[aac @ 0x2781900] Qavg: 548.828* *Conversion failed!* _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
