Hi!
I want to generate a silent audio track with the same duration of a video.
The solution should work for every video file.
I have tried
None worked.Code:ffmpeg.exe -i input1.mkv -f lavfi -i anullsrc -vn -c:a flac -shortest silence.flac ffmpeg.exe -f lavfi -i anullsrc=channel_layout=5.1(side):sample_rate=48000 -i input1.mkv -vn -c:a flac -shortest silence.flac ffmpeg.exe -f lavfi -i anullsrc=channel_layout=5.1:sample_rate=48000 -i input1.mkv -vn -c:a flac -shortest silence.flac ffmpeg.exe -f lavfi -i anullsrc=channel_layout=5.1:sample_rate=48000 -i input1.mkv -shortest -vn -c:a flac silence.flac ffmpeg.exe -f lavfi -i anullsrc=r=48000:cl=1 -i input1.mkv -shortest -vn -c:a flac silence.flac
It always creates either a flac with audio in it, or a silent track which duration is longer than the video (I stop the process because it would continue producing silence), it ignores the -shortest flag...
What am I doing wrong?
Thanks.
+ Reply to Thread
Results 1 to 3 of 3
-
-
Since you are discarding the video -shortest is the length of the generated audio. Output video and audio to an MKV file then extract the audio.
-
Thank you for your reply!
Then what should I do so that the video part is as small as possible, so the process is quite quick and resulting file is as small as possible?
something like creating a continuous blank frame...
Similar Threads
-
FFMPEG doesn't capture audio from .m3u8
By nick9826 in forum Video Streaming DownloadingReplies: 1Last Post: 24th Nov 2016, 12:27 -
m3u8 dropping/stopping in VLC, ffmpeg, & doesn't work in livestreamer.
By nobodyhome in forum Video Streaming DownloadingReplies: 3Last Post: 12th Oct 2016, 07:56 -
FFMPEG: how to fill the audio "gap" with silence?
By marcorocchini in forum Newbie / General discussionsReplies: 9Last Post: 17th Mar 2016, 15:30 -
[SOLVED] ffmpeg doesn't actually resize video
By yetanotherlogin in forum Video ConversionReplies: 8Last Post: 21st Apr 2014, 10:43 -
Full range(0-255)colors of x264 doesn't work in FFMPEG-based softwares
By Stears555 in forum Video ConversionReplies: 1Last Post: 17th Apr 2014, 09:07