[FFmpeg-user] Integration of ffmpeg

The Admin admin at globotrac.com
Tue Aug 17 05:21:46 EEST 2021


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-user at 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 at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list