Replies: 2 comments
-
The formats listed hvc1/mp4a are valid formats for quicktime according to this: http://mp4ra.org/#/codecs However the change in duration leads me to believe that the tail end of the media could be cut off like in this exoplayer reported issue google/ExoPlayer#6441 |
Beta Was this translation helpful? Give feedback.
-
Right now I am just downloading it from KVS media playback in AWS console by clicking the That's a good point - it is weird that the duration is slightly shorter after I pass it through |
Beta Was this translation helpful? Give feedback.
-
My live stream works fine, I don't have errors or glitches and everything looks good. If I play the video in VLC or Audacity I hear the audio as expected. However, I can't hear the audio in QuickTime. If I pass over it w/ ffmpeg, ie
ffmpeg -I input.mp4 -c copy -map 0 output.mp4
then output.mp4 will play audio in QuickTime as expected.Here is the output if I run this ffmpeg command on a video I download from KVS (I share this incase you see ffmpeg is doing any re-encoding.. I am trying to ensure it does not re-encode or modify the streams at al. If ffmpeg re-encodes the audio then that also fixes it and will playback in QT correctly):
The clue I have right now is the video's metadata. Ffmpeg seems to add
encoder : Lavf59.27.100
to top level metadata and it changescompatible_brands
fromiso2mp41avc1
toisomiso2mp41
. I am not sure if this is what solves the issue, if so I need some guidance on how to set this correctly in c producer lib.Before ffmpeg (does not play audio in QuickTime):
After ffmpeg (does play audio in QT):
I setup the live stream very similar to the audio and video sample provided in this repo. But here is my exact code where I set this up incase it helps. My audio stream is encoded as AAC_LC (44.1 kHz, 88,200bps, 1 channel mono)
Beta Was this translation helpful? Give feedback.
All reactions