Project

General

Profile

Bug #5033

Libav can not find parser

Added by Flole Systems over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-03-25
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1206~g5de70b4
Affected Versions:

Description

I am trying to open an h264 Stream from my IPTV Provider, but something is going wrong with libav. As I am using the automatic config because of a huge amount of channels I am using. Manually setting up the pipes would take forever. This is the debug log output:

Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: Format mpegts probed with size=2048 and score=50
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: stream=0 stream_type=1b pid=100 prog_reg_desc=
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: stream=1 stream_type=f pid=101 prog_reg_desc=
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: Before avformat_find_stream_info() pos: 0 bytes read:11507 seeks:0 nb_streams:2
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: parser not found for codec h264, packets or times may be invalid.
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: All programs have pmt, headers found
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: parser not found for codec h264, packets or times may be invalid.
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVCodecContext: nal_unit_type: 9, nal_ref_idc: 0
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVCodecContext: nal_unit_type: 7, nal_ref_idc: 3
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVCodecContext: nal_unit_type: 8, nal_ref_idc: 3
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVCodecContext: nal_unit_type: 5, nal_ref_idc: 3
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVCodecContext: Reinit context to 1920x1088, pix_fmt: yuv420p
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVCodecContext: no picture
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2500
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2499
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2498
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2497
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2496
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2495
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2494
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2493
Mar 25 01:07:13 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2492
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2491
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2490
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2489
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2488
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2487
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2486
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2485
Mar 25 01:07:14 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2484
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2483
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2482
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2481
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: probing stream 1 pp:2480
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: probed stream 1
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: parser not found for codec aac, packets or times may be invalid.
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVCodecContext: Multiple frames in a packet.
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: All info found
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: Setting avg frame rate based on r frame rate
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: After avformat_find_stream_info() pos: 2883544 bytes read:2884392 seeks:0 frames:25
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: muxrate VBR,
Mar 25 01:07:15 Server tvheadend[10303]: libav: AVFormatContext: pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Mar 25 01:07:17 Server tvheadend[10303]: service: myservice: Status changed to [Graceperiod expired] [Data timeout]


I am using the latest testing (tvheadend: version 4.3-1206~g5de70b4). When I run avprobe against that stream I get:
ffprobe version 3.3.4-2 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
  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-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     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-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  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
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mpegts, from 'myurl.ts':
  Duration: N/A, start: 8142.451544, 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, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 142 kb/s

I have libx264-dev installed. Why does it seem to be unable to find those parsers?

History

#1

Updated by Flole Systems over 3 years ago

Sorry, category should not be Infrastructure.

#2

Updated by Jaroslav Kysela over 3 years ago

If your source is MPEG-TS, you may try to uncheck the 'Use libav library' in the auto IPTV network.

#3

Updated by Flole Systems over 3 years ago

I have tried disabling that checkbox and the result is that the transcoding seems to fail: The pass profile works, everything else has an output bandwidth of 0 b/s. Which is easier to track down: libav or transcoding issue? I assume they are exactly the same issue, just at a different point.

#4

Updated by Flole Systems over 3 years ago

Please give me information on how to do further debugging. Also can someone please fix the Category, I put it in the wrong one and can't change it anymore.

#5

Updated by Mark Clarkstone over 3 years ago

  • Category deleted (Infrastructure)

Also available in: Atom PDF