Ffmpeg duration wrong but the duration is slightly wrong - Duration: 41. Currently trying ffmpeg -i "C:\ffmpeg\day3. m4a/video. flv) contains wrong duration metadata field (copied from the original 'valid. vob using a file concatenation outside of ffmpeg then use ffmpeg to try to read the duration it is wrong. 07 so some other fix seems to have fixed this as well. mp4" to try to shorten the duration by 5x and without dropping frames (hopefully). helped when Windows media player showed wrong mp3 file duration – Mantas D. Stack Exchange Network. Why does ffmpeg report different durations? 0. limit the duration of data read from the input file. m4a out. 08, start: 0. 000 or 83 (in seconds)-t specifies the duration of the clip (same format). I am looking to extract the audio only from this video, and create an MP3 of the highest possible quality from the audio in the video. After conversion using ffmpeg -i inputfile. Getting video sped Attempting to decode a subset of such a file (with -t) will result in wrong duration output. I applied the setPTS filter to make it 3 times slow. Both files seem to get a good duration with latest ffmpeg. Ask Question Asked 11 years, 10 months ago. wav Duration: 00:00:10. ffmpeg -i original_video. ffmpeg -ss 1:40 -t 0:40 -i "1. probe(local_file_path)["format"]["duration"] where local_file_path is a relative or absolute path to your Just encountered a situation where meta data returned by ffmpeg. Modified 3 years, Whops I posted a wrong Hello, I recorded an OTA broadcast off PBS using my HDHomeRun tuner and Plex. If I strip the first 300kb of the attached file like so: dd if=bad_duration_file_small. Steps to reproduce. m2v FFmpeg get duration of video file without meta data. Modified 4 years, 5 months ago. webm But the problem is that this command takes too much time, I am looking for a fast solution using ffmpeg to fix the duration of my webm videos. ffmpeg issue with output from video stream. FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. probe is wrong. flv | grep Duration Duration : 39mn 43s Your third solution gives me a wrong time, my video has a length of 01:19:00 but the command returns me time=01:09:15. I have observed this behavior with the built-in AAC encoder, libfdk_aac, and libfaac. ffmpeg: same video, same framerate, different number of output frames. I have a video of duration 14 seconds. e. So I ran the following command: ffmpeg -i example. This is the command I used. Wow, thanks a lot. Any ideas? Thank you! import ffmpeg duration = ffmpeg. Retesting with current ffmpeg, it reports duration as 15. avi -acodec libvorbis -vn -y sound. . FFmpeg works out mp3 duration with file input, but fails with pipe? 0. As FFmpeg wiki article suggests, file-level concatenation (-f concat) requires all files in the listing to have the exact same codec parameters. ffmpeg macos audio/video output duration is wrong #387. FFMPEG reads fps of input h264 file wrong, resulting in wrong duration of output file. vob and VTS_01_5. In the source mp4 file, the first audio noise appears at 0. 文章浏览阅读9. @PeterCordes, what do you mean as "length" in you comment? If you wanted to mean "duration" then you are But for some reason, the output duration is incorrect, and keeps the duration of the original video file, but not the added 2+2 seconds of pure black. After some research, I modified to the following, which produced better results - 4. But the output gives a 49s long video. mp4 -c copy output. mp3 After conversion, the Replying to Andre LaBranche:. mkv Then use stream_loop option. I tested that along with image2 and found that image2 honors the frame rate passed as a cli option. mp4 -codec copy out1. Viewed 1k times 1 . I tried to convert a m4a file to mp3 with ffmpeg, with the following simplest command: ffmpeg -i in. 87. mp4 -max_muxing_queue_size 400 out. It shows the wrong duration, but gradually adjusts the duration The way i get duration of video is via php from the video information output "-i". mp3 After conversion, the duration seems weird. Could it be something wrong with the file rather than FFmpeg? If I use Recently, I received a video captured by a Logitech webcam that was around an hour long, but I was not able to play it in any video player. Of course, in my output I have noticed that the duration in seconds is exactly duration_ts / time_base: 5247360 / 90000 = 58. I wanted a 10 second clip in the middle of it as a webm to share. I settled for the amix filter, since other filters seemed to cause a delayed audio track. ffmpeg: videos before and after conversion aren't the same length. mp4, and opening the files with VLC (or any other player):. mkv -i title_t11. Without re-encoding: ffmpeg -ss [start] -i in. mp4 -an out. 5/TB -crf 18 -af atempo=1. stop writing the output after its duration reaches duration. This works, and the resulting WEBM files play fine in Windows Media Player, but their metadata have incorrect 'duration' and 'start' values, so embedding them in HTML5 gets messed up. 36. webm -c copy new_video. 2k次,点赞6次,收藏7次。博客详细分析了ffmpeg在处理AAC音频文件时,duration计算不准确的问题。通过研究android系统的AACExtractor实现,找到了根据ADTS头计算duration的方法,并在ffmpeg的aacdec. If this How to fix the difference between duration of ffmpeg input and output? Ask Question Asked 4 years, 3 months ago. ffmpeg. A community for users, developers and people interested in Fedora Linux, and news and FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. mkv -i dummy_2. After which output continues with I used an ffmpeg command to export parts of an audio clip: ffmpeg -i {path} -acodec copy -ss {start_time} -to {end_time} {output_path} Unfortunately, this has the side effect of not changing the time duration in the file's details section, making many programs I use think the time of the cut audio files is much more than it really is. comment:2 by Squerp, 13 years ago. ffprobe will return 6 digits for microseconds if -sexagesimal option is present. It is also useful for gathering specific information about an input to be used in a script. 2 Videos converted using FFMPEG do not have video duration information. vob, VTS_01_4. On the other hand, codec (opus vs. I did regression test for 472 files and tried to transcode from some MKV file according to your ffmpeg comand. (The HTML5 video player thinks that the videos are longer than they really are and that they have a delayed start. Videos encoded with FFmpeg play too fast. mp3 testAsInput. 3 Hi, I'm analyzing/converting video from DVD . I know the pointer initialized and contains the correct duration because if I use av_dump_format(pFormatCtx, 0, videoName, 0); then I actually get the duration data along How can I preserve the length of the original wav file? I extracted two audio sources from an mkv file using: ffmpeg -i video. My example stands for any video duration and returns 2 digits for ffmpeg -i mp4_duration_is_incorrect. Converted the mkv file to an mp4 with no audio using: ffmpeg -i video. That's just not going to happen. g. However, FFmpeg does not produce a I want to cut a video using ffmpeg. How to reproduce: Create sample file. The unwanted 25 fps does seem to be coming from concat. 03, matching that start value!) I have the same bug, with the git master branch version (2022-03-02: N-105822-g4b72bca6ca). Why? 7. mp3 from Bob Acri) ffprobe shows me a duration of 150 seconds, but it is actual 200 seconds long (Windows explorer shows the correct duration) BUT ffmpeg also shows wrong Noticed that the duration is N/A so after browsing on the superuser community I saw a thread about a bug in that api regarding the duration but also found a solution in the answers that said simply to run ffmpeg on the file. mp4 (not sure if copy is appropriate here, but not the point). 90, instead of 41. Closed ihorml opened this issue Apr 5, 2015 · 3 comments Closed It just prevents ffmpeg from writing xing frame info, thus forcing players to recompute the duration. everytime when I try to access it with pFormatCtx->duration I'm getting 0. 91s in duration: ffmpeg -i master_2. 00 start time, but the duration is still off by 40ms. But it does not limit the output from the current clip. 1234567 is the float values format - don't use 1. It seems to me that problem is in the file itself but is ffmpeg able to handle this situation? After some investigation I found that problem is somewhere in the end of file. I have found success muxing AAC audio into MP4/M4A. The FFmpeg wiki entry on Slideshow has a section at wiki:Slideshow#Concatdemuxer on using the concat demuxer to create a video from a series of images with custom duration assigned to each image. 30 seconds. Folder: here's the link The transcoding confirms that the file is actually only 14. ffmpeg -ss 3:36 -i gameplay. All reactions. Modified 10 years, 10 months ago. mkv -filter_complex "[0:0] fps=24000/1001,setpts=PTS-STARTPTS [v0]; [0:1] asetpts=PTS-STARTPTS [a0]; [1:0] crop=in_w-2*4:in_h-2*4,scale=w Is there a way to get ffmpeg. There should be a way to get the correct frame/timing information written. mp4. ffmpeg -i istikbal_reklam. 0FPS CFR (Not 59. The "long" frame was 2 seconds long, so it should be in about 60 frames (with FPS 30), but instead it only gets 7 frames. FFmpeg concatenation changes the duration and playback speed of the input videos. 000000, bitrate: N/A Stream #0:0: Audio: flac, 44100 Hz, stereo, s16 Here is a folder with a flac file, a bad mp3 file (wrong length) and a good mp3 file. After an investigation, I found that it caused by Read more > Cutting videos with ffmpeg : length not accurate - Super User. I have a flac audio file with incorrect duration in the metadata. Visit Stack Exchange Chat GPT is wrong, and I already gave you the answer. But actual file keeps playing beyond 11m19s even though timestamp halts there. Here, the wrong duration is shown for the aac stream. You can try for example (to convert from 25 fps to 24 fps) ffmpeg -itsscale 1. -t duration (input/output). mov -vn -c:a The first command I tried to used to achieve this is as follows, but the output files were all 8. FFmpeg input duration? 0. ogg ffmpeg versi ffmpeg -i origin. Commented You probably want -ss and-to before -i, example: ffmpeg -ss aa:bb:cc -to xx:yy:zz -i input. A wrong duration is now shown since ef48ac65 The problem may be a duplicate of ticket #3392. vob and combine it with VTS_01_2. Using ffmpeg -i input20220302. So, the video looks like Please check your problematic file with 0001-Wrong-duration-in-TS-container-Ticket-1836. Extract audio from video with FFMPEG but not the same duration. setPTS outputting wrong duration (Ffmpeg) Ask Question Asked 4 years, 5 months ago. ffmpeg -f lavfi -i testsrc2=d=1 -f lavfi -i anullsrc=r=48000:cl=stereo -shortest -vcodec libx264 -acodec aac sample. probe(filepath, show ffmpeg: cut video but getting the wrong length - Stack Overflow. webm -f null - frame=206723 fps=1390 q=-0. Please current FFmpeg git head, please run ffmpeg -i test. Diference between pkt_duration and pkt_duration_time in ffprobe. Viewed 747 times 1 . Why does ffmpeg report different durations? 1. 00:01:23. You'd literally have to cut part of the audio file off and I ran into a similar problem while trying to get the duration of mp3s with ffprobe. How to reduce the size of the resultant video while merging an audio and a video using FFMPEG? 0. I guessed there is no keyframe in that section, but I was wrong. If I call ffmpeg -i on any of the vobs separately the duration and bitrate is correct. mp4 -c:a copy outputfile. ffprobe shows a duration of 15:57:08. I don't know why that happened because FFMPEG is When ffmpeg encodes a single large vob file it is fine but if I take VTS_01_1. It looks like if you preview the music in google drive, it also plays the wrong length for the bad mp3 (39s not 2m19s), while vlc, groove player, spotify (desktop not mobile) all play the correct full length (2m19s) for the bad mp3 file. Commented Nov 7, 2017 at 11:53. I confirm this bug. 0 Lsize=N/A Why does FFMPEG report the wrong duration? 6 Why does ffmpeg report different durations? 1 ffmpeg: videos before and after conversion aren't the same length. Setting duration is not working in ffmpeg. To limit the duration using the concat demuxer, set outpoint (with value inpoint + intended duration). 3. The duration keyword is badly named and it basically sets the offset for the starting timestamp for the next clip with respect to the starting timestamp of the current clip. mp4 the resulting file size is roughly a My script trims the video to exactly the point it starts, and exactly the point it ends (or as far as I know how at the moment). mp4 The workaround solution is to use a different container. Wrong video duration reported after concatenating video files in BASH script. Bottom line: ffmpeg -i audio. So cutting is done properly, just the ending timestamp is wrong. video segmentation issue: when hls_list_size is reached, instead of a 10s video segment a 2s and 8s video segment are generated (durations of the parts is dependent on GOP length and hls_time value), and added to the video manifest. webm ffmpeg -i file. : Duration: 00:38:41. Ffmpeg adjusts the duration to keep the audio in sync with the video. Usually this goes without a hitch, but in this case the 30-min episode lists (in ffmpeg-i, VLC player, Plex, etc. 16. At first glance it looks fine. mp4 out2. Below is the list of the command I The issue here is using a wrong concatenation approach for these files. But for some reason, the output duration is incorrect, and keeps the Output file should be: 12m10s duration. You'll have to transcode the video for a precise cut. ) its duration as 13:28:20. ffmpeg report the good duration in the stream info at the start, but ffmpeg only cuts at keyframes, so with inter-coded streams, you may not get exact duration. 2. I have a VOB file, where I need to read it's duration and ffmpeg says it has duration over 90000 seconds. -c copy copies the first video, audio, and subtitle bitstream from the input to the output file without re-encoding them. flv') which confuses all FLV web players, because the navigation can't be accurate because of that. It's normal and how all audio encoders work. I've attached the original file truncated to 2MB. Viewed 13k times 17 . Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. mp3 The problem is that, this command doubles the length of the audio that's outputted (duration is 36 minutes 46 Why does FFMPEG report the wrong duration? 6. The output file has the double duration : Source video duration :00:01:58. 94, otherwise you change it to --fps 0:60000/1001) , and audio, and video were exact (not one stream slightly longer, such as video 1 frame longer, or audio gaps, then it should work. exe -ss 76 -t 10 -i in. So, hour have only one digit for hours, not two. Actual turns out to be: 11m19s duration. 0416667 -i "your input file" -vcodec copy "output file" the itsscale value of 1. aac, the resulting file is wrong, the first audio noise appears at 0. flv 2>&1 | grep "Duration" Duration: 00:39:43. ms. mp4 If there is an issue with video timestamp that's causing the said behavior, using (PTS-STARTPTS)/1. The length (2 minutes) is correct in the output I don't get the problem. mp4 output. The original m4a was 4:06. r/Fedora. In your case, only # of channels (mono) and sample format (flt) are common between them. If you encountered the same problem, use the following command to get the real duration: probe = ffmpeg. webm -c:a copy new_video. 0416667 is 25/24 as a float variable for ffmpeg (0. In this example the input has a duration of 00:57:28. m3u8 file has a wrong duration (e. I am trying to add background music to a video with an existing audio-track. iso and I use dvd2concat for this. 94 seconds long, however the duration is still displayed wrong in the newly transcoded file (observe the second command above). mp4 -f segment -segment_time 5 -reset_timestamps 1 -output_%03d. wav -f null - (and post the output) and please provide the file test. Beside it taking FOREVER to run, just based on the current file size (it's been running for 5 hours so far) I'm not holding out much Wrong audio duration with ffmpeg. ts Then ffprobe reports the duration correctly as 00:00:05. When I I tried to convert a m4a file to mp3 with ffmpeg, with the following simplest command: ffmpeg -i in. The audio has a length of 55 minutes but the metadata has a duration of 0. For at least 2 DVD, when using dvd2concat, ffmpeg return a video that is 1. If I do this for example: ffmpeg -i test. It is 18 minutes 23 seconds in duration. ffmpeg selects shortest movie but leaves full length audio. 00s), causing bugs when playing it with AVPlayer on iOS. I got a video file which has no meta data. 100 Duration: 351909:41: If your original files were 60. The output file shows a longer duration in vlc, but actually plays for the same duration as the original. FFMPEG is doubling audio length when extracting from video. Why does ffmpeg report different durations? 2. % ffmpeg -i big_buck_bunny_480p_h264. Why does FFMPEG report the wrong duration? 6. Resolution: I'm facing an issue using ffmpeg to convert video, precisely mp4 video => Http Live Streaming (HLS) Once converted to HLS, the . mp4 (Placing the -ss and -t before the input will make ffmpeg seek to the position and then decode frames. wav -map a:1 audio2. Getting video sped-up with FFmpeg to have the correct duration. So the total duration should be 42s (14*3). 6. Otherwise the -to value ends up being a duration instead of the end time from the original video. ts bs=1c skip=300000 of=bad_duration_file_strip. webm Output: You can use it to output all kinds of information about an input including duration, frame rate, frame size, etc. The file plays fine in VLC for its actual 30-min duration and then just ends. 00, bitrate: 1536 concat demuxer produces wrong duration for flac files → concat demuxer with stream copy produces wrong duration for flac files follow-up: 3 comment:2 by Elon Musk , 2 years ago You can not concat flac files at demuxer level. wav. xxx. comment:14 by Carl Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site the frames are dumped with wrong timing. Members Online • Impre-visible. The duration of the file is not the same too. ts" -c copy 100sts. Thus If I copy the input stream with ffmpeg -i out. 01 sec expected rate: 48000 I'm converting mpeg video to ogg audio file using -vn option: ffmpeg -i video. Recently on an uploaded file, FFmpeg has reported a 30 second file as being 5 minutes 30 seconds in length. 2. flv (extracting a part of the video to a new file) then the resulting file (invalid. Modified 5 years ago. VLC does not really show the correct duration. (A difference of 0. webm': Metadata: encoder : Lavf56. exe to give the duration of the OUTPUT video? I know how to get a video duration from an input video from ffmpeg. So far everything is working as intended, however the Summary of the bug: Trying to output a HLS live stream with fixed segment duration (10s in this case). But So again ffmpeg stubbornly refuses to "play" past the duration. WARNING If you have id3v2 tags, cover art etc, Scenario: I have 5 minutes of gameplay footage. Placing them afterwards means ffmpeg decodes all You didn't mention how the duration was tested. 4. Essentially, you're wanting compressed audio with 0 delay with hour long files. 7. vob, VTS_01_3. Does this mean that the aac stream has wrong time information? When I play the aac file VLC player shows 7 hours duration. Using audio filter '-af 'aresample=first_pts=0' results in the same wrong start time and audio duration. g : 20,1s instead of 20. Note that ffmpeg by default shows you the duration that appears in the file's metadata and not a computed value. 93. Either the nb_read_frames is too high by 1, or the duration_ts is too low by the duration of one audio frame. Add to that, its FPS is 213, although playing speed is 30 FPS. But getting the duration is fine but when you have a video file like this with a wrong duration it ofcourse wont let me generate a thumbnail and it gives me the wrong duration output too i will edit my post and include my php preg_match that i use to get duration from the video file output but this is Bottom line: ffmpeg -i audio. patch. I would not oppose a patch to concat to add a Perfect solution, works also if the wrong mp3 file has been created by ffmpeg itself! – Pierpaolo Cira. input file duration is 2:09 output file duration is 4:18 duration must be a time duration specification, see (ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual. If I simply use. 040000, bitrate: 386 kb/s mediainfo file. So that makes When I play it on VLC, the progress bar reaches the end, but the video still plays continuously. Why does FFMPEG report the wrong duration? 0. mp4 follow-up: 4 comment:3 by Carl Eugen Hoyos, 5 years ago. 76 (video's duration is double ,audio's duration is correct. Obviously Duration: 436 ms and mdhd_Duration: 436 are wrong on the original file, right? Last edited 3 ffmpeg cannot detect the duration of some FLV files while some other splitters seem to be able to do that. ts. adts]/video. Commented Feb 24, 2018 at 18:28. In windows 7 there are three sample mp3s, 1st and 2nd work well with ffprobe, but for the 3rd (Sleep Away. NB: I am not completely sure if it is a bug, a feature request or just an invalid file. Interestingly, if you remove the "-r 27 I've got a video file, video. Acquire a test AAC in MP4 file, or trivially create one as follows ffmpeg -t 10 -i test. c中进行修改,实现了更准确的duration获取,解决了播放时长不一致的问题。 FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. mkv -map a:0 audio1. mp4" -r 150 -filter:v "setpts=PTS/5" -an "C:\ffmpeg\out. When used as an input option (before -i), . I'm not suggesting it's being played at the wrong rate, but may have lost something in the conversion . 91s each: FFmpeg segmentation and inaccurate/wrong Updated ffmpeg, ran the above command and then used ffprobe and got: Input #0, matroska,webm, from 'new. 5. Duration of the result file is 1m 43s. Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgb24(pc), 1200x1000, 25 tbr, . mkv -c:v copy -an video. comment:7 by Shahar Mosek, 10 years ago. ts ffmpeg version When ffmpeg is used like this: ffmpeg -t 00:00:30 -i valid. mp4 -vf setpts=N/FR/1. Omitting the -c copy will make it slower and more accurate by re-encoding, but still faster than if the -ss and -to are specified after -i, since that case means to trim after having Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site Why does FFMPEG report the wrong duration? 6. aac[. 04166666666666666667 or a double value : note that you can't use the expression/formula I have au mp4 file with aac audio. mp4 -copyts -to 3:46 -c:v libvpx -an -b:v 2500 -threads 7 -f webm clip. mp3 Will stop writing automatically after 5 seconds; When used as an output option (before an output url), . Muxing to matroska or raw AAC results in a 0. mp4 -ss specifies the start time, e. mp4 -t [duration] -c copy out. Reproduced this in ffmpeg 5. webm I get Keywords: mpegts h264 added; mpeg-ts estimate_timings estimate_timings_from_pts removed I'm trying to use ffmpeg to capture frames from a video file, but I can't even get the duration of a video. 5 output. My audio streams in the individual clips were longer than the videos, causing the output to be the the wrong length. m2v I get these values: Duration: N/A, bitrate: N/A Is there still a way to get the duration of the video / . 0. 77. mp4 -bsf:v h264_mp4toannexb -c copy -segment_list istikbal. 1. ffmpeg + concat produces output mp4 whose length is reported wrong in some software upvotes r/Fedora. ) What am I doing wrong? Why does FFMPEG report the wrong duration? 0. 01 = 2321. Modified 1 year, 2 months ago. FFMPEG The duration for the original matches the actual duration. image2 honors the frame_rate option, but you never gave that option to the image2 instances below the concat demuxer. 32, do you have a guess why this is happening – utdev. 304. 5 x longer then the original. ffmpeg -y -i dummy. I tried to copy the audio with ffmpeg. webm example-n. Is it possible to use an ffmpeg command to fix this? Below are the outputs of an ffprobe: Duration: N/A, start: 0. $ ffmpeg -i input. avi -acodec libvorbis -vn sound. mp4 However, the output does not start at 09 minutes and 53 seconds, but at 10:38 of the original mp4. ; Recent ffmpeg also has a flag to supply the end time with -to. 88 output video duration :00:03:57. 5 would not correct it. mp4 (the first frame should display a 0 and last for 1s, instead it just flits by). Incorrect Video Duration. mp4 -ss 00:09:53 -to 00:11:53 -async 1 output. ffmpeg -f lavfi -i testsrc=duration=3:rate=1 -r 27 out. vorbis) and sampling rate (48000 Summary of the bug: Codec copy or re encode using -stream_loop option wrong output duration time, but output frames is fine. Hi guys, I want to export the audio of my file chunk by chunk with 5sec Here is something to try: ffmpeg -i input. Given this, if you want a 5 seconds video stream try to specify the duration you want to read from the input file (before the -i tag) and the duration you want from your final output file (before the output url) If vlc, MPlayer, xine, totem and FFmpeg show the correct duration but WMP shows the wrong duration, I would suspect that the bug is in WMP. ts -c copy audio. ADMIN MOD The output doesn't match the duration I forced him . wav ffprobe out2. Is the duration accurate for a video file by ffmpeg? 1. mp4 audio. ffmpeg fails to copy correct duration. Correct value should be between 800-900 seconds. I have used the @Rajib guide to construct a query that works perfectly with trimming a video with precise duration/length. ffmpeg -t 5-i input. Ask Question Asked 5 years ago. But I wonder if the file simply contains an invalid duration, do you know how it was created? comment:6 by jamal, I was able to fix this problem by ffmpeg using the following command: ffmpeg -i original_video. I'll have to read some docs before I understand what's going on there. But that doesn't match the nb_read_frames. Ask Question Asked 8 years, 2 months ago. 34. I tried below Noticed that the duration is N/A so after browsing on the superuser community I saw a thread about a bug in that api regarding the duration but also found a solution in the answers @Gyan updated post with output of report. FFMPEG wrong duration when using amix filter. ogg The output: ffmpeg -i video. To have 2 digits you can excute: ffprobe -i <file> -show_entries format=duration -v quiet -of csv="p=0" | rev | cut -c 5- | rev, due to the fact that real format of duration is h:mm:ss. Dont know which commit fixed the second file though. Please test -write_xing 0, this may be a work-around. comment:9 by Carl Eugen Hoyos, 11 years ago. flv -acodec copy -vcodec copy invalid. 32 seconds. Some googlefu lead me to this command: ffmpeg -i video. m3u8 -segment_time 10 -f segment istikbal%d. lkxxrp kqbmov kvpc cmdxcf iltan rxph aciq izwc ixzqrt hny famz hxdb dvrk mbuuay pzn