Problem with anullsink

For the developers that use FFmpeg in their software.
Post Reply
tomsss
Posts: 4
Joined: Mon Sep 24, 2018 11:20 am

Problem with anullsink

Post by tomsss » Mon Sep 24, 2018 11:27 am

Hi,
I'm converting a .mov file with one audiotrack/6 channels. I want to delete/mute the center channel.
First step to do this i use "-filter_complex [1:1:a]apad,channelsplit=channel_layout=5.1(side)[FLa0][FRa0][FCa0][LFEa0][SLa0][SRa0]..."
then i route the center channel to anullsink "....[FCa0]anullsink;...." at least i put an anullsrc to the output and map it "...[0:a]amerge=inputs=1[aoutt2]...
-map [aoutt2]". [0:a] => -f lavfi -i anullsrc=channel_layout=mono:sample_rate=48000.
There is no error when running the ffmpeg command, but the conversion doesn't stop!!!
The ffmpeg command "-shortest" or "-t 30.0" doesn't stop the conversion. Any Idears? Is it a bug from anullsink?

Best regards,
Thomas

richardpl
Posts: 54
Joined: Sat Aug 01, 2015 6:35 pm

Re: Problem with anullsink

Post by richardpl » Wed Sep 26, 2018 8:08 am

You are using apad filter, which will pad audio with silence forever.

tomsss
Posts: 4
Joined: Mon Sep 24, 2018 11:20 am

Re: Problem with anullsink

Post by tomsss » Wed Sep 26, 2018 9:37 am

Thanks a lot, this was the Problem!

Post Reply
'