lafirst.blogg.se

How to use ffmpeg to stream audio
How to use ffmpeg to stream audio





Fixing the mp4 files after the fact would also be acceptable, but at that point I don't want a re-encode. I have HandBrake all set up with my new h264/mp4 settings and would like to continue using that application to re-encode the MakeMKV source files.Īn ideal solution would be to fix the mkv segment duration in the MakeMKV source files.

how to use ffmpeg to stream audio

I believe my media streaming app will then be able to serve the files directly instead of re-encoding to h264 or remuxing (depending on the client, it always does one or the other right now). What I want to do is enable several older players by encoding to h264 mp4s with faststart. There's no problem there, even though the mkv file durations are wrong. When playing the MKV files, my media streaming app (and MPC-HC) correctly determine the length of the file from the movie DURATION tag. These files also have the segment duration vs movie DURATION tag mismatch.

how to use ffmpeg to stream audio

I converted these MakeMKV mkv files using HandBrake into h265 mkv files. Re-ripping the BluRays is an acceptable solution, if this problem has been fixed (I haven't pulled the BluRays out of storage and tried it). The track 2 (audio) movie DURATION tag is 25:53.14133333. The MKV files themselves have the same problem: the segment duration is 25:53.088, with a track 1 movie DURATION tag of 25:24.397875. I have a bunch of BluRays that I ripped a couple of years ago with MakeMKV 1.10.4. Remuxing the original mkv file using MkvToolnix.įfmpeg with the -t option may work, but I've got a few thousand files to go through and I don't want to manually type a different command for each one.mp4box -add file.mp4 -new out.mp4 - also doesn't fix the duration.

how to use ffmpeg to stream audio

  • ffmpeg -i file.mp4 -shortest -codec copy out.mp4 - doesn't have any effect (other than removing the mp4 faststart, which I want to keep).
  • It seems like this would be an easy thing to do, but I can't find any solution. I want to set the "Movie" duration to the video duration value without re-encoding. The duration of the audio stream is 1553152ms (25:53.152), and seems to be driving the "Movie" duration.

    how to use ffmpeg to stream audio

    The duration of the video stream is 1524398ms (25:24.398), which is correct. Specifically, the "Movie" duration is 1553152ms (25:53.152), which is too long. MPEG-4 Audio Object Type: 2 (AAC Low Complexity)ĭuration: 1524356 (media timescale units) This file doesn't play back nicely in my media streaming app (or MPC-HC) when I reach the end of the file.ĭuration: 137195807 (media timescale units)ĪVC SPS: ĭuration: 74551296 (media timescale units) I have an mp4 file (converted from an mkv file) that has a longer audio than video stream.







    How to use ffmpeg to stream audio