Skip to content

ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input #1201

@gsustek

Description

@gsustek
  1. Reviewed guide and contributing documents? (Yes/No):
  2. version [4.3.1, hash, other]:
  3. installed as a package or compiled from sources [deb, rpm, git, other]:
  4. standalone or part of third party [motion, MotionEyeOS, other]:
  5. video stream source [V4L (card or USB), net cam (mjpeg, rtsp, other), mmal]:
  6. hardware [x86, ARM, other]:
  7. operating system [20.04, Stretch, etc, FreeBSD, other]:

camera: logitech c270
v4l2-ctl -d /dev/video2 --list-formats
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'YUYV' (YUYV 4:2:2)
[1]: 'MJPG' (Motion-JPEG, compressed)

sudo v4l2-ctl -d /dev/video0 --all
Driver Info:
Driver name : uvcvideo
Card type : UVC Camera (046d:0825)
Bus info : usb-0000:00:14.0-8
Driver version : 5.4.52
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : uvcvideo
Model : UVC Camera (046d:0825)
Serial : 73BAAAE0
Bus info : usb-0000:00:14.0-8
Media version : 5.4.52
Hardware revision: 0x00000012 (18)
Driver version : 5.4.52
Interface Info:
ID : 0x03000002
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : UVC Camera (046d:0825)
Function : V4L2 I/O
Flags : default
Pad 0x01000007 : 0: Sink
Link 0x02000019: from remote pad 0x100000a of entity 'Extension 4': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 1280/960
Pixel Format : 'MJPG' (Motion-JPEG)
Field : None
Bytes per Line : 0
Size Image : 816000
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 1280, Height 960
Default : Left 0, Top 0, Width 1280, Height 960
Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 960, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 960, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0
brightness 0x00980900 (int) : min=0 max=255 step=1 default=128 value=128
contrast 0x00980901 (int) : min=0 max=255 step=1 default=32 value=32
saturation 0x00980902 (int) : min=0 max=255 step=1 default=32 value=32
white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1
gain 0x00980913 (int) : min=0 max=255 step=1 default=64 value=131
power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2
0: Disabled
1: 50 Hz
2: 60 Hz
white_balance_temperature 0x0098091a (int) : min=0 max=10000 step=10 default=4000 value=7380 flags=inactive
sharpness 0x0098091b (int) : min=0 max=255 step=1 default=24 value=24
backlight_compensation 0x0098091c (int) : min=0 max=1 step=1 default=0 value=0
exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3
1: Manual Mode
3: Aperture Priority Mode
exposure_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=166 value=667 flags=inactive
exposure_auto_priority 0x009a0903 (bool) : default=0 value=1
led1_mode 0x0a046d05 (menu) : min=0 max=3 default=3 value=0
0: Off
1: On
2: Blink
3: Auto
led1_frequency 0x0a046d06 (int) : min=0 max=131 step=1 default=0 value=0

cameera 1 motion.conf

# /etc/motion/camera3.conf
#
# This config file was generated by motion 4.3.1

###########################################################
# Configuration options specific to camera 3
############################################################
# User defined name for the camera.
camera_name DNEVNA_SOBA

# Numeric identifier for the camera.
camera_id 102

# The full URL of the network camera stream.
#netcam_url rtmp://yourcamera3ip:port/camera/specific/url
netcam_url v4l2:///dev/video0
#videodevice /dev/video0
v4l2_palette 8

movie_passthrough on

# Image width in pixels.
width 1280

# Image height in pixels.
height 960

# Maximum number of frames to be captured per second.
framerate 30

# Text to be overlayed in the lower left corner of images
text_left DS

# Text to be overlayed in the lower right corner of images.
text_right DS\n%Y-%m-%d\n%T-%q


# File name(without extension) for movies relative to target directory
movie_filename DS_%t-%v-%Y%m%d%H%M%S

Video: ffprobe /mnt/sdc1/Backups/motion/DS_102-04-20200914192357.mp4
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[mjpeg @ 0x55a6774d3b80] unable to decode APP fields: Invalid data found when processing input
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/sdc1/Backups/motion/DS_102-04-20200914192357.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.29.100
Duration: 00:00:10.50, start: 0.034000, bitrate: 7066 kb/s
Stream #0:0(und): Video: mjpeg (Baseline) (mp4v / 0x7634706D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x960, 7064 kb/s, 15.15 fps, 15.08 tbr, 1000k tbn, 1000k tbc (default)
Metadata:
handler_name : VideoHandler

log

[0:motion] [INF] [ALL] [Sep 14 19:22:29] Thread 1 - Config file: /etc/motion/camera2-dist.conf
[0:motion] [INF] [ALL] [Sep 14 19:22:29] camera_name DNEVNA_SOBA
[0:motion] [INF] [ALL] [Sep 14 19:22:29] camera_id 102
[0:motion] [INF] [ALL] [Sep 14 19:22:29] v4l2_palette 8
[0:motion] [INF] [ALL] [Sep 14 19:22:29] netcam_url
[0:motion] [INF] [ALL] [Sep 14 19:22:29] text_left DS
[0:motion] [INF] [ALL] [Sep 14 19:22:29] text_right DS\n%Y-%m-%d\n%T-%q
[0:motion] [INF] [ALL] [Sep 14 19:22:29] movie_passthrough on
[0:motion] [INF] [ALL] [Sep 14 19:22:29] movie_filename DS_%t-%v-%Y%m%d%H%M%S
[0:motion] [NTC] [STR] [Sep 14 19:22:29] webu_start_strm: Starting all camera streams on port 8081
[0:motion] [NTC] [STR] [Sep 14 19:22:29] webu_strm_ntc: Started camera 102 stream on port/camera_id 8081/102
[0:motion] [NTC] [STR] [Sep 14 19:22:29] webu_start_ctrl: Starting webcontrol on port 8080
[0:motion] [NTC] [STR] [Sep 14 19:22:29] webu_start_ctrl: Started webcontrol on port 8080
[0:motion] [NTC] [ENC] [Sep 14 19:22:29] ffmpeg_global_init: ffmpeg libavcodec version 58.54.100 libavformat version 58.29.100
[0:motion] [NTC] [ALL] [Sep 14 19:22:29] translate_init: Language: English
[0:motion] [NTC] [ALL] [Sep 14 19:22:29] motion_start_thread: Camera ID: 102 is from /etc/motion/camera2-dist.conf
[0:motion] [NTC] [ALL] [Sep 14 19:22:29] motion_start_thread: Camera ID: 102 Camera Name: DNEVNA_SOBA Service: v4l2:
[0:motion] [NTC] [ALL] [Sep 14 19:22:29] main: Waiting for threads to finish, pid: 1784597
[1:ml1:DNEVNA_SOBA] [NTC] [ALL] [Sep 14 19:22:29] motion_init: Camera 102 started: motion detection Enabled
[1:ml1:DNEVNA_SOBA] [NTC] [VID] [Sep 14 19:22:29] vid_start: Opening Netcam RTSP
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_parms: Setting up Normal resolution stream.
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] util_check_passthrough: pass-through is enabled but is still experimental.
[1:ml1:DNEVNA_SOBA] [INF] [NET] Above message repeats 1 times
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_url_parse: Using port number 0
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_path: Setting up v4l2 via ffmpeg netcam
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_v4l2: Normal resolution: Requested v4l2_palette option: 8
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_v4l2: Normal resolution: Requested FOURCC code: MJPG
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_v4l2: Normal resolution: Setting v4l2 input_format: mjpeg
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_v4l2: Normal resolution: Setting v4l2 framerate: 30
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_set_v4l2: Normal resolution: Setting v4l2 video_size: 1280x960
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:29] netcam_rtsp_open_context: Normal resolution: Opened camera(DNEVNA_SOBA)
[1:ml1:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:31] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[1:ml1:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:31] ffmpeg_avcodec_log: deprecated pixel format used, make sure you did set range correctly
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:31] netcam_rtsp_copy_stream: Stream copied for pass-through
[1:ml1:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:31] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc:
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc: ******************************************************
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc: The image sent is being
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc: trancoded to YUV420P. If possible change netcam
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc: picture format to YUV420P to possibly lower CPU usage.
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc: ******************************************************
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_ntc:
[1:ml1:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:31] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[1:ml1:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_connect: Normal resolution: Camera (DNEVNA_SOBA) connected
[1:ml1:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:31] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[1:ml1:DNEVNA_SOBA] [NTC] [ALL] [Sep 14 19:22:31] image_ring_resize: Resizing pre_capture buffer to 1 items
[2:nc2:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:31] netcam_rtsp_handler: Normal resolution: Camera handler thread [2] started
[2:nc2:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:31] netcam_rtsp_open_context: Normal resolution: Opened camera(DNEVNA_SOBA)
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:32] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:32] ffmpeg_avcodec_log: deprecated pixel format used, make sure you did set range correctly
[2:nc2:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:32] netcam_rtsp_copy_stream: Stream copied for pass-through
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:32] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:33] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [NTC] [NET] [Sep 14 19:22:33] netcam_rtsp_connect: Normal resolution: Camera (DNEVNA_SOBA) connected
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:33] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:33] netcam_rtsp_pktarray_resize: Normal resolution: Resized packet array to 30
[1:ml1:DNEVNA_SOBA] [NTC] [ALL] [Sep 14 19:22:33] image_ring_resize: Resizing pre_capture buffer to 4 items
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:33] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 12 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:34] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:35] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:36] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:37] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:38] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:39] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:40] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:41] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:42] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:43] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 15 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:44] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:45] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:46] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:47] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:48] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:49] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:50] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:51] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[1:ml1:DNEVNA_SOBA] [INF] [EVT] Above message repeats 11 times
[1:ml1:DNEVNA_SOBA] [INF] [EVT] [Sep 14 19:22:51] event_new_video: Source FPS 30
[1:ml1:DNEVNA_SOBA] [INF] [NET] [Sep 14 19:22:51] util_check_passthrough: pass-through is enabled but is still experimental.
[1:ml1:DNEVNA_SOBA] [NTC] [ENC] [Sep 14 19:22:51] ffmpeg_passthru_codec: pass-through mode enabled. Changing to MP4 container.
[1:ml1:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:51] ffmpeg_passthru_codec: Pass-through stream opened
[1:ml1:DNEVNA_SOBA] [NTC] [EVT] [Sep 14 19:22:51] event_newfile: File of type 8 saved to: /mnt/sdc1/Backups/motion/DS_102-01-20200914192251.mp4
[1:ml1:DNEVNA_SOBA] [NTC] [ALL] [Sep 14 19:22:51] motion_detected: Motion detected - starting event 1
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:51] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 2 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:52] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times
[2:nc2:DNEVNA_SOBA] [INF] [ENC] [Sep 14 19:22:53] ffmpeg_avcodec_log: unable to decode APP fields: Invalid data found when processing input
[2:nc2:DNEVNA_SOBA] [INF] [ENC] Above message repeats 14 times

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions