Hi Moritz, thanks for reply, this one, im always unable to get round match 
duration:

echo VIDEO FORMAT CONTAINER DURATION:
ffprobe -v error -show_entries format=duration \
  -of default=noprint_wrappers=1:nokey=1 output.mp4
echo VIDEO STREAM DURATION:
ffprobe -v error -select_streams v:0 -show_entries stream=duration \
  -of default=noprint_wrappers=1:nokey=1 output.mp4

________________________________
Da: ffmpeg-user <[email protected]> per conto di Moritz Barsnick 
<[email protected]>
Inviato: sabato 25 gennaio 2020 22:21
A: FFmpeg user discussions <[email protected]>
Oggetto: Re: [FFmpeg-user] Generete one second of black video and relative 
silence audio with the same duration

On Sat, Jan 25, 2020 at 20:54:20 +0000, Gian Maria Allibrante wrote:
> How can I generate a black mp4 video with relative silent audio track with 
> ffmpeg, I need the audio and video tracks to correspond to the duration of 1 
> second.
> ffmpeg -f lavfi -i color=c=black:s=1920x1080:r=24/1 -c:v h264 -f lavfi -i 
> anullsrc=cl=stereo:r=44100 -video_track_timescale 90k -c:a mp3 -b:a 320k -ar 
> 44100 -ac 2 -t 1 out.mp4
>
> VIDEO FORMAT CONTAINER DURATION: 3.026000
> VIDEO STREAM DURATION: 3.000000
>
> how can i match these durations?

Which tool gives you this information? If I use your command, I get one
second duration. The ffmpeg conversion command says so, as does a
check of the resulting file with ffmpeg and mediainfo.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-user&amp;data=02%7C01%7C%7Cf55496db01384c05f86408d7a1e4f540%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637155877060241184&amp;sdata=WD%2B1QAkpCjjDgOZ5S4%2BQHFTCfV8iBVUTM7fo9oSxEOM%3D&amp;reserved=0

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

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to