ffmpeg stuck when reads inputs from unix socketTroubleshooting “stream 0 codec frame rate differs from...

What linear sensor for a keyboard?

Could solar power be utilized and substitute coal in the 19th Century

How to color a curve

Find last 3 digits of this monster number

How do I repair my stair bannister?

Can I sign legal documents with a smiley face?

Have I saved too much for retirement so far?

How can "mimic phobia" be cured or prevented?

Greatest common substring

Why did the HMS Bounty go back to a time when whales are already rare?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Are lightweight LN wallets vulnerable to transaction withholding?

Visiting the UK as unmarried couple

Reply 'no position' while the job posting is still there

Can somebody explain Brexit in a few child-proof sentences?

Constructing Group Divisible Designs - Algorithms?

Can the Supreme Court overturn an impeachment?

Will adding a BY-SA image to a blog post make the entire post BY-SA?

A social experiment. What is the worst that can happen?

How must one send away the mother bird?

Is a model fitted to data or is data fitted to a model?

Indicating multiple different modes of speech (fantasy language or telepathy)

How do I extrude a face to a single vertex

Wrapping Cryptocurrencies for interoperability sake



ffmpeg stuck when reads inputs from unix socket


Troubleshooting “stream 0 codec frame rate differs from container frame rate” when splitting AVI in ffmpegHow can I use ffmpeg to accurately export images from a video file?Using pipes on ffmpeg has different behaviour than using filessilence in front of generated audio mpegtsHow to multicast live H264 without transcoding?FFMPEG extract audio from video with an annoying sound at the endChanging the codec while keeping the bitrate with ffmpegSave DATA streamRe-encode 4K video to H.265/HEVC with FFmpeg for playback in QuickTimeHow to convert (broken) MPEG1 video to format that can be viewed by most people













0















I have a streaming system structure running on my iMac:





  • MediaParser: A golang program that connects to TCP socket and find media frames. This socket does not contains encoded video, the connection is used to transmit any kind of message. Each detected audio or video frame is passed to their previous created unix socket server(I prefer unix sockets instead of named pipes).


  • HLSServer: Another golang program which connects to MediaParser's
    unix sockets, reads the audio and video, transcode them(using a system call to ffmpeg command) and creates a HLS playlist.


The first one program woks fine, but I have problems running ffmpeg from the HLSServer.



When I try to use only one unix socket(audio or video) there is no problem:



ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


However, when I try to run ffmpeg using both sources, it gets stuck like it's waiting for something on the second input:



ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


I check the process on the Activity Monitor and no memory or CPU is used and, if I run the command from terminal and send the stop signal, ffmpeg stops immediately.
I also try to invert the inputs order but the result is the same.



Outputs:



Initial output:



ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8
[info] ffmpeg version N-93264-g85051febc6-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
[info] built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
[info] configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
[info] libavutil 56. 26.100 / 56. 26.100
[info] libavcodec 58. 47.102 / 58. 47.102
[info] libavformat 58. 26.101 / 58. 26.101
[info] libavdevice 58. 6.101 / 58. 6.101
[info] libavfilter 7. 48.100 / 7. 48.100
[info] libswscale 5. 4.100 / 5. 4.100
[info] libswresample 3. 4.100 / 3. 4.100
[info] libpostproc 55. 4.100 / 55. 4.100
[warning] Guessed Channel Layout for Input Stream #0.0 : mono
[info] Input #0, alaw, from 'unix:./files/L_12345_2_A.sock':
[info] Duration: N/A, bitrate: 352 kb/s
[info] Stream #0:0: Audio: pcm_alaw, 44100 Hz, mono, s16, 352 kb/s
[h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
[h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
[h264 @ 0x7fc1a6806c00] [error] no frame!


After send the stop signal(Ctrl+C):



[h264 @ 0x7fc1a8000000] [info] decoding for stream 0 failed
[h264 @ 0x7fc1a8000000] [warning] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[info] Input #1, h264, from 'unix:./files/L_12345_2_V.sock':
[info] Duration: N/A, bitrate: N/A
[info] Stream #1:0: Video: h264, none, 26.08 fps, 25 tbr, 1200k tbn, 50 tbc
[info] Stream mapping:
[info] Stream #1:0 -> #0:0 (copy)
[info] Stream #0:0 -> #0:1 (pcm_alaw (native) -> aac (native))
[warning] Finishing stream 0:1 without any data written to it.
[hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_20.ts' for writing
[info] Output #0, hls, to './files/media/video/l/12345_2.m3u8':
[info] Metadata:
[info] encoder : Lavf58.26.101
[info] Stream #0:0: Video: h264, none, q=2-31, 26.08 fps, 25 tbr, 90k tbn, 25 tbc
[info] Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 69 kb/s
[info] Metadata:
[info] encoder : Lavc58.47.102 aac
[hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_2.m3u8.tmp' for writing
[info] frame= 0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
[info] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[aac @ 0x7fc1a781d200] [info] Qavg: nan
[info] Exiting normally, received signal 2.


The output messages:




[h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
[h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
[h264 @ 0x7fc1a6806c00] [error] no frame!




Seems to be normal when no key frame is found at command start. After some seconds all works fine. So I think this errors are not part of the stuck problem.



I don't know what could be the reason of these behavior. I read about sync options but they not work.









share







New contributor




Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I have a streaming system structure running on my iMac:





    • MediaParser: A golang program that connects to TCP socket and find media frames. This socket does not contains encoded video, the connection is used to transmit any kind of message. Each detected audio or video frame is passed to their previous created unix socket server(I prefer unix sockets instead of named pipes).


    • HLSServer: Another golang program which connects to MediaParser's
      unix sockets, reads the audio and video, transcode them(using a system call to ffmpeg command) and creates a HLS playlist.


    The first one program woks fine, but I have problems running ffmpeg from the HLSServer.



    When I try to use only one unix socket(audio or video) there is no problem:



    ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


    ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


    However, when I try to run ffmpeg using both sources, it gets stuck like it's waiting for something on the second input:



    ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


    I check the process on the Activity Monitor and no memory or CPU is used and, if I run the command from terminal and send the stop signal, ffmpeg stops immediately.
    I also try to invert the inputs order but the result is the same.



    Outputs:



    Initial output:



    ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8
    [info] ffmpeg version N-93264-g85051febc6-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
    [info] built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
    [info] configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
    [info] libavutil 56. 26.100 / 56. 26.100
    [info] libavcodec 58. 47.102 / 58. 47.102
    [info] libavformat 58. 26.101 / 58. 26.101
    [info] libavdevice 58. 6.101 / 58. 6.101
    [info] libavfilter 7. 48.100 / 7. 48.100
    [info] libswscale 5. 4.100 / 5. 4.100
    [info] libswresample 3. 4.100 / 3. 4.100
    [info] libpostproc 55. 4.100 / 55. 4.100
    [warning] Guessed Channel Layout for Input Stream #0.0 : mono
    [info] Input #0, alaw, from 'unix:./files/L_12345_2_A.sock':
    [info] Duration: N/A, bitrate: 352 kb/s
    [info] Stream #0:0: Audio: pcm_alaw, 44100 Hz, mono, s16, 352 kb/s
    [h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
    [h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
    [h264 @ 0x7fc1a6806c00] [error] no frame!


    After send the stop signal(Ctrl+C):



    [h264 @ 0x7fc1a8000000] [info] decoding for stream 0 failed
    [h264 @ 0x7fc1a8000000] [warning] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [info] Input #1, h264, from 'unix:./files/L_12345_2_V.sock':
    [info] Duration: N/A, bitrate: N/A
    [info] Stream #1:0: Video: h264, none, 26.08 fps, 25 tbr, 1200k tbn, 50 tbc
    [info] Stream mapping:
    [info] Stream #1:0 -> #0:0 (copy)
    [info] Stream #0:0 -> #0:1 (pcm_alaw (native) -> aac (native))
    [warning] Finishing stream 0:1 without any data written to it.
    [hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_20.ts' for writing
    [info] Output #0, hls, to './files/media/video/l/12345_2.m3u8':
    [info] Metadata:
    [info] encoder : Lavf58.26.101
    [info] Stream #0:0: Video: h264, none, q=2-31, 26.08 fps, 25 tbr, 90k tbn, 25 tbc
    [info] Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 69 kb/s
    [info] Metadata:
    [info] encoder : Lavc58.47.102 aac
    [hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_2.m3u8.tmp' for writing
    [info] frame= 0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
    [info] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [aac @ 0x7fc1a781d200] [info] Qavg: nan
    [info] Exiting normally, received signal 2.


    The output messages:




    [h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
    [h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
    [h264 @ 0x7fc1a6806c00] [error] no frame!




    Seems to be normal when no key frame is found at command start. After some seconds all works fine. So I think this errors are not part of the stuck problem.



    I don't know what could be the reason of these behavior. I read about sync options but they not work.









    share







    New contributor




    Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have a streaming system structure running on my iMac:





      • MediaParser: A golang program that connects to TCP socket and find media frames. This socket does not contains encoded video, the connection is used to transmit any kind of message. Each detected audio or video frame is passed to their previous created unix socket server(I prefer unix sockets instead of named pipes).


      • HLSServer: Another golang program which connects to MediaParser's
        unix sockets, reads the audio and video, transcode them(using a system call to ffmpeg command) and creates a HLS playlist.


      The first one program woks fine, but I have problems running ffmpeg from the HLSServer.



      When I try to use only one unix socket(audio or video) there is no problem:



      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


      However, when I try to run ffmpeg using both sources, it gets stuck like it's waiting for something on the second input:



      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


      I check the process on the Activity Monitor and no memory or CPU is used and, if I run the command from terminal and send the stop signal, ffmpeg stops immediately.
      I also try to invert the inputs order but the result is the same.



      Outputs:



      Initial output:



      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8
      [info] ffmpeg version N-93264-g85051febc6-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
      [info] built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
      [info] configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
      [info] libavutil 56. 26.100 / 56. 26.100
      [info] libavcodec 58. 47.102 / 58. 47.102
      [info] libavformat 58. 26.101 / 58. 26.101
      [info] libavdevice 58. 6.101 / 58. 6.101
      [info] libavfilter 7. 48.100 / 7. 48.100
      [info] libswscale 5. 4.100 / 5. 4.100
      [info] libswresample 3. 4.100 / 3. 4.100
      [info] libpostproc 55. 4.100 / 55. 4.100
      [warning] Guessed Channel Layout for Input Stream #0.0 : mono
      [info] Input #0, alaw, from 'unix:./files/L_12345_2_A.sock':
      [info] Duration: N/A, bitrate: 352 kb/s
      [info] Stream #0:0: Audio: pcm_alaw, 44100 Hz, mono, s16, 352 kb/s
      [h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
      [h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
      [h264 @ 0x7fc1a6806c00] [error] no frame!


      After send the stop signal(Ctrl+C):



      [h264 @ 0x7fc1a8000000] [info] decoding for stream 0 failed
      [h264 @ 0x7fc1a8000000] [warning] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
      Consider increasing the value for the 'analyzeduration' and 'probesize' options
      [info] Input #1, h264, from 'unix:./files/L_12345_2_V.sock':
      [info] Duration: N/A, bitrate: N/A
      [info] Stream #1:0: Video: h264, none, 26.08 fps, 25 tbr, 1200k tbn, 50 tbc
      [info] Stream mapping:
      [info] Stream #1:0 -> #0:0 (copy)
      [info] Stream #0:0 -> #0:1 (pcm_alaw (native) -> aac (native))
      [warning] Finishing stream 0:1 without any data written to it.
      [hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_20.ts' for writing
      [info] Output #0, hls, to './files/media/video/l/12345_2.m3u8':
      [info] Metadata:
      [info] encoder : Lavf58.26.101
      [info] Stream #0:0: Video: h264, none, q=2-31, 26.08 fps, 25 tbr, 90k tbn, 25 tbc
      [info] Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 69 kb/s
      [info] Metadata:
      [info] encoder : Lavc58.47.102 aac
      [hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_2.m3u8.tmp' for writing
      [info] frame= 0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
      [info] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
      [aac @ 0x7fc1a781d200] [info] Qavg: nan
      [info] Exiting normally, received signal 2.


      The output messages:




      [h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
      [h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
      [h264 @ 0x7fc1a6806c00] [error] no frame!




      Seems to be normal when no key frame is found at command start. After some seconds all works fine. So I think this errors are not part of the stuck problem.



      I don't know what could be the reason of these behavior. I read about sync options but they not work.









      share







      New contributor




      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a streaming system structure running on my iMac:





      • MediaParser: A golang program that connects to TCP socket and find media frames. This socket does not contains encoded video, the connection is used to transmit any kind of message. Each detected audio or video frame is passed to their previous created unix socket server(I prefer unix sockets instead of named pipes).


      • HLSServer: Another golang program which connects to MediaParser's
        unix sockets, reads the audio and video, transcode them(using a system call to ffmpeg command) and creates a HLS playlist.


      The first one program woks fine, but I have problems running ffmpeg from the HLSServer.



      When I try to use only one unix socket(audio or video) there is no problem:



      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


      However, when I try to run ffmpeg using both sources, it gets stuck like it's waiting for something on the second input:



      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8


      I check the process on the Activity Monitor and no memory or CPU is used and, if I run the command from terminal and send the stop signal, ffmpeg stops immediately.
      I also try to invert the inputs order but the result is the same.



      Outputs:



      Initial output:



      ffmpeg -y -nostdin -loglevel repeat+level -thread_queue_size 32768 -f alaw -i unix:./files/L_12345_2_A.sock -f h264 -i unix:./files/L_12345_2_V.sock -vcodec copy -acodec aac -f hls -hls_list_size 2 ./files/media/video/l/12345_2.m3u8
      [info] ffmpeg version N-93264-g85051febc6-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
      [info] built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
      [info] configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
      [info] libavutil 56. 26.100 / 56. 26.100
      [info] libavcodec 58. 47.102 / 58. 47.102
      [info] libavformat 58. 26.101 / 58. 26.101
      [info] libavdevice 58. 6.101 / 58. 6.101
      [info] libavfilter 7. 48.100 / 7. 48.100
      [info] libswscale 5. 4.100 / 5. 4.100
      [info] libswresample 3. 4.100 / 3. 4.100
      [info] libpostproc 55. 4.100 / 55. 4.100
      [warning] Guessed Channel Layout for Input Stream #0.0 : mono
      [info] Input #0, alaw, from 'unix:./files/L_12345_2_A.sock':
      [info] Duration: N/A, bitrate: 352 kb/s
      [info] Stream #0:0: Audio: pcm_alaw, 44100 Hz, mono, s16, 352 kb/s
      [h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
      [h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
      [h264 @ 0x7fc1a6806c00] [error] no frame!


      After send the stop signal(Ctrl+C):



      [h264 @ 0x7fc1a8000000] [info] decoding for stream 0 failed
      [h264 @ 0x7fc1a8000000] [warning] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
      Consider increasing the value for the 'analyzeduration' and 'probesize' options
      [info] Input #1, h264, from 'unix:./files/L_12345_2_V.sock':
      [info] Duration: N/A, bitrate: N/A
      [info] Stream #1:0: Video: h264, none, 26.08 fps, 25 tbr, 1200k tbn, 50 tbc
      [info] Stream mapping:
      [info] Stream #1:0 -> #0:0 (copy)
      [info] Stream #0:0 -> #0:1 (pcm_alaw (native) -> aac (native))
      [warning] Finishing stream 0:1 without any data written to it.
      [hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_20.ts' for writing
      [info] Output #0, hls, to './files/media/video/l/12345_2.m3u8':
      [info] Metadata:
      [info] encoder : Lavf58.26.101
      [info] Stream #0:0: Video: h264, none, q=2-31, 26.08 fps, 25 tbr, 90k tbn, 25 tbc
      [info] Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 69 kb/s
      [info] Metadata:
      [info] encoder : Lavc58.47.102 aac
      [hls @ 0x7fc1a781a400] [info] Opening './files/media/video/l/12345_2.m3u8.tmp' for writing
      [info] frame= 0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
      [info] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
      [aac @ 0x7fc1a781d200] [info] Qavg: nan
      [info] Exiting normally, received signal 2.


      The output messages:




      [h264 @ 0x7fc1a6806c00] [error] non-existing PPS 0 referenced
      [h264 @ 0x7fc1a6806c00] [error] decode_slice_header error
      [h264 @ 0x7fc1a6806c00] [error] no frame!




      Seems to be normal when no key frame is found at command start. After some seconds all works fine. So I think this errors are not part of the stuck problem.



      I don't know what could be the reason of these behavior. I read about sync options but they not work.







      linux audio video ffmpeg unix





      share







      New contributor




      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 mins ago









      TakumiTakumi

      1




      1




      New contributor




      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Takumi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Takumi is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1417086%2fffmpeg-stuck-when-reads-inputs-from-unix-socket%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Takumi is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Takumi is a new contributor. Be nice, and check out our Code of Conduct.













          Takumi is a new contributor. Be nice, and check out our Code of Conduct.












          Takumi is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1417086%2fffmpeg-stuck-when-reads-inputs-from-unix-socket%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...