[FFmpeg-user] Transcode TVheadend stream (mpegts )
hans gerte
hansoggerte at gmail.com
Tue Jul 17 12:39:46 EEST 2018
Im using the newest version of the ffmpeg (installed via apt ffmpeg)
here is the output:
ffmpeg -f mpegts -i
http://username:password@192.168.0.14:4445/stream/channelid/9 -vcodec
libx264 -vb 1000k -acodec libfdk_aac -ar 48000 -ab 48k -f flv rtmp://
192.168.0.58:1935/test
ffmpeg version 3.4.2-2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu2)
configuration: --prefix=/usr --extra-version=2 --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
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 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
libpostproc 54. 7.100 / 54. 7.100
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
[mp3 @ 0x55b77a48ede0] Header missing
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] SPS unavailable in decode_picture_timing
[h264 @ 0x55b77a48dba0] non-existing PPS 0 referenced
[h264 @ 0x55b77a48dba0] decode_slice_header error
[h264 @ 0x55b77a48dba0] no frame!
Input #0, mpegts, from '
http://username:password@192.168.0.14:4445/stream/channelid/9':
Duration: N/A, start: 76799.806511, bitrate: N/A
Program 1
Metadata:
service_name : ?
service_provider: ?
Stream #0:0[0x50f]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg, top first), 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25
tbr, 90k tbn, 50 tbc
Stream #0:1[0xd10](dan): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 256 kb/s
Unknown encoder 'libfdk_aac'
2018-07-17 10:24 GMT+02:00 Moritz Barsnick <barsnick at gmx.net>:
> On Tue, Jul 17, 2018 at 09:59:08 +0200, hans gerte wrote:
>
> > ffmpeg -f mpegts -i
> > http://username:password@192.168.0.14:4445/stream/channelid/9
> -deinterlace
> > -vcodec libx264 -vb 1000k -acodec libfacc -ar 48000 -ab 48k -f flv
> rtmp://
> > 192.168.0.58:1935/test
> >
> > Input is the tvheadend server, rtmp is the ffmpeg server where the input
> > will be restream from
> >
> > it then gives these error:
> > Unknown encoder 'libfacc'
>
> You should usually give us the complete, uncut console output in
> addition to your actual command line.
>
> In this case, it's pretty obvious that ffmpeg has no support for the
> libfacc encoder - because that has never existed. It was called libfaac
> (as the audio format is also called AAC, not ACC).
>
> Recent ffmpeg doesn't support libfaac anymore (and hasn't for quite
> some time, IIRC). Just use "-acodec aac" with recent ffmpeg, that works
> fine. Other, find out which encoders your ffmpeg supports by issuing:
> $ ffmpeg -encoders
>
> (For example it might have libfdk_aac, which is also good.)
>
> Also, make sure you use a very recent version of ffmpeg for best
> results. ;-)
>
> I'm also not sure the "-deinterlace" option exists anymore (even though
> it's referenced once in the docs). Use one of the deinterlacing
> filters instead, such as yadif.
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list