FFdynamic
FFdynamic copied to clipboard
Empty output file
Hi! First of, thanks for the project!
I'm having some issues testing the IAL app.
Here are the requests I'm sending:
wget 127.0.0.1:8080/api1/ial/create_room --post-data '{"room_id":"test", "input_urls":["/srv/resources/video.mp4", "/srv/resources/video.copy.mp4"], "room_output_base_url": "/srv/resources/", "output_stream_infos": [{"output_setting_id": "720p_2000kb"}]}'
and
wget 127.0.0.1:8080/api1/ial/create_room --post-data '{"room_id":"test", "input_urls":["/srv/resources/video.mp4", "/srv/resources/video.copy.mp4"], "room_output_base_url": "/srv/resources/", "output_stream_infos": [{"output_setting_id": "1080p_4000kb", "output_urls": ["/srv/resources/output_1080p.flv"]} ]}'
Both requests generate an empty output file (zero bytes).
ffprobe -show_format test_720p_2000kb_0
test_720p_2000kb_0: Invalid data found when processing input
ffprobe -show_format output_1080p.flv
output_1080p.flv: Invalid data found when processing input
There are no errors in the logs. However there are some "invalid argument" in the muxer section:
appService.cpp:140] [FFMPEG][mpegts]Application provided invalid, non monotonically increasing dts to muxer in stream 0: -3000 >= -3000
ffmpegMux.cpp:99] [Mux-ffmpeg3] {code:-22, detail: Invalid argument, mux do interleave write fail}
davImpl.cpp:96] [Mux-ffmpeg3] {code:-22, detail: Invalid argument, Invalid argument, mux do interleave write fail}
davProc.cpp:166] [Mux-ffmpeg3] {code:-1229211973, detail: Imp - failed on dynamic initialization, Fail with proc's process, quit proc thread. Invalid argument, Invalid argument, mux do interleave write fail}
Also the last log shows empty stat:
out stat: {}}
Any idea of what could be the problem?
I'm using the provided config file.
Also here are some info about ffmpeg and the input:
ffprobe -show_format video.mp4
ffprobe version 4.0.6 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-libsrt --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
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
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-01-21T17:26:11.000000Z
Duration: 00:00:30.05, start: 0.000000, bitrate: 1495 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1301 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
creation_time : 2016-01-21T17:26:11.000000Z
handler_name : IsoMedia File Produced by Google, 5-11-2011
vendor_id : [0][0][0][0]
[FORMAT]
filename=video.mp4
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=30.045000
size=5617101
bit_rate=1495650
probe_score=100
TAG:major_brand=mp42
TAG:minor_version=0
TAG:compatible_brands=isommp42
TAG:creation_time=2016-01-21T17:26:11.000000Z
[/FORMAT]