This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

incorrect processing of the input file *.mp4
#1
The output is a small non-working file
Reply
#2
Hybrid calls ffmpeg with:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y  -r 25/1 -i "C:\Windows\Temp\2022-03-06@18_30_20_5910__05.mkv" -i "C:\Windows\Temp\iId_1_aid_0_2022-03-06@18_30_20_5910_02.wav" -vcodec copy -acodec copy -metadata encoding_tool="Hybrid 2021.12.10.1" -map 0:0 -map 1:0  -aspect 704:476 -r 25/1 -f avi "D:\clips\new68 [2022.03.04]\Boney M\norm\1978.01.19_Intro + Belfast (Picolo Slam)_new.avi"
which reports:
ffmpeg version N-104760-g48fbb2bf17-ga7df966c82+3 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (Rev2, Built by MSYS2 project)
  configuration:  --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-chromaprint --enable-frei0r --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfribidi --enable-libgme --enable-libilbc --enable-libsvthevc --enable-libsvtvp9 --enable-libkvazaar --enable-libmodplug --enable-librtmp --enable-librubberband --enable-libtesseract --enable-libxavs --enable-libzmq --enable-libzvbi --enable-openal --enable-libcodec2 --enable-ladspa --enable-libglslang --enable-vulkan --enable-libdavs2 --enable-libxavs2 --enable-libuavs3d --enable-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCHROMAPRINT_NODLL --extra-libs=-lstdc++ --extra-cflags=-DZMQ_STATIC --extra-libs=-lpsapi --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-cflags=-DKVZ_STATIC_LIB --extra-cflags=-DAL_LIBTYPE_STATIC --extra-cflags='-II:/media-autobuild_suite/local64/include' --extra-cflags='-II:/media-autobuild_suite/local64/include/AL'
  libavutil      57. 10.101 / 57. 10.101
  libavcodec     59. 14.100 / 59. 14.100
  libavformat    59.  9.102 / 59.  9.102
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8. 18.100 /  8. 18.100
  libswscale      6.  1.101 /  6.  1.101
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100

Input #0, matroska,webm, from 'C:\Windows\Temp\2022-03-06@18_30_20_5910__05.mkv':
  Metadata:
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2022-03-06T14:30:22.000000Z
  Duration: 00:04:22.80, start: 0.000000, bitrate: 1676 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(tv, unknown/bt709/bt709, progressive), 704x476 [SAR 1:1 DAR 176:119], 25 fps, 25 tbr, 1k tbn (default) (forced)
    Metadata:
      BPS             : 1674769
      DURATION        : 00:04:22.800000000
      NUMBER_OF_FRAMES: 6570
      NUMBER_OF_BYTES : 55016191
      _STATISTICS_WRITING_APP: mkvmerge v59.0.0 ('Shining Star') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:30:22
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'C:\Windows\Temp\iId_1_aid_0_2022-03-06@18_30_20_5910_02.wav':
  Duration: 00:04:23.01, bitrate: 1411 kb/s
  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s

Overriding aspect ratio with stream copy may produce invalid files
Output #0, avi, to 'D:\clips\new68 [2022.03.04]\Boney M\norm\1978.01.19_Intro + Belfast (Picolo Slam)_new.avi':
  Metadata:
    encoding_tool   : Hybrid 2021.12.10.1
    ISFT            : Lavf59.9.102
  Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, unknown/bt709/bt709, progressive), 704x476 [SAR 1:1 DAR 176:119], q=2-31, 25 fps, 25 tbr, 25 tbn (default) (forced)
    Metadata:
      BPS             : 1674769
      DURATION        : 00:04:22.800000000
      NUMBER_OF_FRAMES: 6570
      NUMBER_OF_BYTES : 55016191
      _STATISTICS_WRITING_APP: mkvmerge v59.0.0 ('Shining Star') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:30:22
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-1.0 size=      10kB time=00:00:00.00 bitrate=N/A speed=   0x    
[avi @ 000001233fbaaf40] H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)
av_interleaved_write_frame(): Invalid data found when processing input

frame: 1, fps: 0
-> time: inf
frame=    1 fps=0.0 q=-1.0 Lsize=      14kB time=00:00:00.02 bitrate=4877.2kbits/s speed=30.5x    
video:38kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
So I could write a workaround, by adding '-bsf:v h264_mp4toannexb' to the ffmpeg muxing call whenever someone wants to muxliplex a H.264 stream into an .avi file, but since this is only needed if the input is broken in some way (remuxing H.264 mp4 files to mkv works fine here for all my samples) I do not plan to write a workaround for this. (Hybrid is not meant to try to cope with broken/malformed input files.)
You can try to remux your file with mkvtoolnix to mkv before processing it with Hybrid. (mkvtoolnix does some attempts to 'repair' files.)

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)