On Tue, Jul 24, 2018 at 7:12 PM, Carl Eugen Hoyos <[email protected]> wrote: > 2018-07-24 19:53 GMT+02:00, Micael Silva <[email protected]>: >> On Tue, Jul 24, 2018 at 8:14 AM, Anthony Griffiths <[email protected]> >> wrote: >> >>> I use ffmpeg on a centos 6 machine to create a live stream that goes >>> to a centos 6 vps server running nginx. This is the command: >>> >>> ffmpeg -y -f mpegts -i /dev/dvb/adapter0/dvr0 -f flv \ >>> -codec:v libx264 -preset slow -s 320x180 -qscale:v 20 -maxrate 600k >>> -bufsize 1000k -vf scale=-1:240 -threads 0 \ >>> -vsync cfr -framerate 25 -c:a aac -b:a 64k -af aformat=s16:44100 >>> rtmp://nginx-server/mobile > > Complete, uncut console output missing. > -f mpegts should be removed, -s and -vf scale is undefined > behaviour imo, I suspect -qscale has no effect on x264, > threads 0 is superfluous
thankyou and yes I realised afterwards - here is the ffmpeg console output from my command: ------------------------------------- ffmpeg version 4.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=g$ libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100 [mpeg2video @ 0x6c24a80] Invalid frame dimensions 0x0. Last message repeated 7 times Input #0, mpegts, from '/dev/dvb/adapter0/dvr0': Duration: N/A, start: 63189.112022, bitrate: N/A Stream #0:0[0x5dd]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x5de]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (mp2 (native) -> aac (native)) Press [q] to stop, [?] for help [libx264 @ 0x6c90380] -qscale is ignored, -crf is recommended. [libx264 @ 0x6c90380] using SAR=1/1 [libx264 @ 0x6c90380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x6c90380] profile High, level 1.3 [libx264 @ 0x6c90380] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: caba$ Output #0, flv, to 'rtmp://198.91.92.112/mobile': Metadata: encoder : Lavf58.12.100 Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 320x180 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc58.18.100 libx264 Side data: cpb: bitrate max/min/avg: 600000/0/0 buffer size: 1000000 vbv_delay: -1 Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 64 kb/s Metadata: encoder : Lavc58.18.100 aac frame= 114 fps=0.0 q=28.0 size= 66kB time=00:00:03.78 bitrate= 143.0kbits/s dup=20 drop=0 speed=7.57x ^Mframe= 187 fps=182 q=28.0 size= _______________________________________________ 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".
