I had this problem running it under C# once. I can't remember what the 
solution was, but I seem to recall that it was something to do with the fact 
that ffmpeg writes most of its status information not to standard output, but 
to standard error, presumably so as to keep standard output free for the media 
data it's producing.
(If it has occurred to anyone that the 1970s punch-card model of data handling 
which provokes this situation is no longer entirely appropriate for modern 
computing, you're not alone.)
P
    On Tuesday, 17 August 2021, 03:34:54 BST, The Admin <ad...@globotrac.com> 
wrote:  
 
 Hi Jim,

  I ran it without redirecting the output and it worked.  I prefer writing
all the output to a log file, but if it works, that is more important in
this case.

Marc.

On Mon, Aug 16, 2021 at 10:21 PM The Admin <ad...@globotrac.com> wrote:

> Hi Jim,
>
>  Thanks for suggesting the -nostdin option.  Unfortunately, it didn't
> work.
>
> I am redirecting the output of the subprocess to a file on Windows log
> file.
>
> *Log file highlights*
>
> Parameters written to a file named *filter.txt *from a batch file
> echo
> [0]adelay=0:all=1[0a];[1]adelay=17650:all=1[1a];[2]adelay=37510:all=1[2a];[0a][1a][2a]amix=inputs=3
> > "filter.txt"
>
> Referring to a parameter *-filter_complex_script filter.txt*
> C:\progra~1\GloboTRAC\ffmpeg\bin\ffmpeg.exe -nostdin -loglevel verbose -i
> a0.m3u8 -i a1.m3u8 -i a2.m3u8 -filter_complex_script filter.txt -y
> all_audio.mp4
>
> <Hangs after the previous line>
>
> NOTE:
> I removed the -map "[a]" and the [a] reference in the file because I
> thought perhaps the double quotes were creating an issue.
>
> Marc.
>
> On Mon, Aug 16, 2021 at 9:17 PM Jim DeLaHunt <list+ffmpeg-u...@jdlh.com>
> wrote:
>
>> On 2021-08-16 17:38, The Admin wrote:
>>
>> > Hi,
>> >
>> >    Here the command that works fine at the command prompt.
>> > C:\progra~1\GloboTRAC\ffmpeg\bin\ffmpeg.exe -i a0.m3u8 -i a1.m3u8 -i
>> > a2.m3u8 -filter_complex
>> >
>> "[0]adelay=0:all=1[0a];[1]adelay=17650:all=1[1a];[2]adelay=37510:all=1[2a];[0a][1a][2a]amix=inputs=3[a]"
>> > -map "[a]"  -y all_audio.mp4
>> >
>> > When I run the same command from the Process.Start command in C#, it
>> just
>> > hangs.  I've even tried triggering the execution from .bat file and it
>> > hangs as well.
>> >
>> > If it is the subprocess, I am open to any suggestions.
>> >
>> > Any help would be appreciated.
>> >
>> > Marc.
>>
>> It may be that FFmpeg is trying to interact with stdin, and the
>> subprocess is not responding like a live shell would. Try adding the
>> `-nostdin` option to your command line. See answer
>> <https://stackoverflow.com/a/47114881/1099571> to question, "ffmpeg
>> hangs when run in background".
>>
>> If that answer helps you, consider upvoting it.
>>
>> Best regards,
>>      —Jim DeLaHunt
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>>
>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
  
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to