Ok, so the script
```
s = single("test.avi")
output.file(%external(process="ffmpeg -i pipe:0 -f avi pipe:1",video=true),
"/tmp/test.avi", s)
```
results in
```
2019/05/22 13:28:36 [single_8310:3] "test.avi" is static, resolving once for
all...
2019/05/22 13:28:36 [test(dot)avi:4] Content kind is {audio=2;video=1;midi=0}.
2019/05/22 13:28:36 [test(dot)avi:4] Activations changed:
static=[/tmp/test(dot)avi:/tmp/test(dot)avi], dynamic=[].
2019/05/22 13:28:36 [decoder.gstreamer:4] Using GStreamer 1.14.4.
2019/05/22 13:28:36 [decoder.gstreamer:5] Decode A/V: true/true.
2019/05/22 13:28:36 [decoder.gstreamer:5] Gstreamer pipeline: filesrc
location="test.avi" ! decodebin name=d d. ! queue ! audioconvert !
audioresample ! appsink max-buffers=10 drop=false sync=false name="audio_sink"
caps="audio/x-raw,format=S16LE,layout=interleaved,channels=2,rate=44100" d. !
queue ! videoconvert ! videoscale add-borders=true ! videorate ! appsink
name="video_sink" drop=false sync=false max-buffers=10
caps="video/x-raw,format=RGBA,width=320,height=240,framerate=25/1,pixel-aspect-ratio=1/1".
2019/05/22 13:28:36 [test(dot)avi:3] Prepared "test.avi" (RID 0).
2019/05/22 13:28:36 [/tmp/test(dot)avi:4] Activations changed:
static=[/tmp/test(dot)avi], dynamic=[].
2019/05/22 13:28:36 [/tmp/test(dot)avi:4] Enabling caching mode: active source.
2019/05/22 13:28:36 [/tmp/test(dot)avi:3] Starting process: ffmpeg -i pipe:0 -f
avi pipe:1
2019/05/22 13:28:36 [threads:3] Created thread "wallclock_main" (2 total).
2019/05/22 13:28:36 [clock:4] Main phase starts.
2019/05/22 13:28:36 [clock.wallclock_main:3] Streaming loop starts,
synchronized with wallclock.
2019/05/22 13:28:37 [/tmp/test(dot)avi:5] stderr: ffmpeg version 4.1.3
Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-4)
configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg
--disable-libopencv --disable-outdev=sdl2 --disable-podpages --disable-sndio
--disable-stripping --enable-libaom --enable-avfilter --enable-avresample
--enable-gcrypt --enable-gnutls --enable-gpl --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2
--enable-libfdk-aac --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc
--enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtesseract --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-l
2019/05/22 13:28:37 [/tmp/test(dot)avi:5] stderr: ibx265 --enable-libxvid
--enable-libzvbi --enable-nonfree --enable-opencl --enable-opengl
--enable-postproc --enable-pthreads --enable-shared --enable-version3
--enable-libwebp --incdir=/usr/include/x86_64-linux-gnu
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened
--enable-frei0r --enable-chromaprint --enable-libx264 --enable-libiec61883
--enable-libdc1394 --enable-vaapi --enable-libmfx --disable-altivec
--shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
2019/05/22 13:28:36 [/tmp/test(dot)avi:3] Closing process's stdin
2019/05/22 13:28:37 [clock.wallclock_main:2] Source /tmp/test(dot)avi failed
while streaming: Process_handler.Finished!
2019/05/22 13:28:37 [clock.wallclock_main:3] Raised at file
"tools/process_handler.ml", line 317, characters 34-48
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"tools/tutils.ml", line 80, characters 16-19
2019/05/22 13:28:37 [clock.wallclock_main:3] Re-raised at file
"tools/tutils.ml", line 82, characters 33-40
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"tools/process_handler.ml", line 314, characters 16-202
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"encoder/external_encoder.ml", line 145, characters 8-87
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"tools/tutils.ml", line 80, characters 16-19
2019/05/22 13:28:37 [clock.wallclock_main:3] Re-raised at file
"tools/tutils.ml", line 82, characters 33-40
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"encoder/external_encoder.ml", line 143, characters 4-239
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"outputs/output.ml", line 256, characters 10-21
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"outputs/output.ml", line 264, characters 35-47
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file
"outputs/output.ml", line 180, characters 6-22
2019/05/22 13:28:37 [clock.wallclock_main:3] Called from file "clock.ml", line
160, characters 17-25
2019/05/22 13:28:37 [/tmp/test(dot)avi:4] Activations changed: static=[],
dynamic=[].
2019/05/22 13:28:37 [source:4] Source /tmp/test(dot)avi gets down.
2019/05/22 13:28:37 [/tmp/test(dot)avi:5] stderr: Guessed Channel Layout for
Input Stream #0.1 : stereo
Input #0, avi, from 'pipe:0':
Metadata:
encoder : Liquidsoap/1.4.0+scm (Unix; OCaml 4.07.1)
Duration: 47721:51:31.80, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, bgr24, 320x240, 25 fps, 25 tbr, 25 tbn, 25 tbc
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 (rawvideo (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
2019/05/22 13:28:37 [/tmp/test(dot)avi:5] stderr: Output #0, avi, to 'pipe:1':
Metadata:
ISFT : Lavf58.20.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31,
200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc58.35.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 44100 Hz,
stereo, s16p
Metadata:
encoder : Lavc58.35.100 libmp3lame
2019/05/22 13:28:37 [/tmp/test(dot)avi:5] stderr: frame= 0 fps=0.0 q=0.0
Lsize= 1kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters
if used)
2019/05/22 13:28:36 [/tmp/test(dot)avi:3] Process exited with code 0
2019/05/22 13:28:36 [/tmp/test(dot)avi:3] Cleaning up process
```
So, it looks like Liquidsoap is shutting down the external encoder... @toots
any idea why?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/789#issuecomment-494765699
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users