[FFmpeg-trac] #2085(undetermined:new): MP4 remux with playback stuck at 2nd seconds
FFmpeg
trac at avcodec.org
Tue Jul 23 14:49:45 CEST 2013
#2085: MP4 remux with playback stuck at 2nd seconds
-------------------------------------+-------------------------------------
Reporter: mikhailov | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: h264 flv | Resolution:
mov | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by mikhailov):
Replying to [comment:56 cehoyos]:
> Great that you changed your opinion, I am always unhappy if tickets
remain unresolved!
>
> If you want to help fixing this problem, please find a minimal (that is
an as-short-as-possible) MP4Box command line that ''fixes'' an input file
produced by FFmpeg that does not play on your Android device by outputting
a file that plays fine on the same device.
MP4Box is very difficult to build on newere Linuxes such Red Hat 4.6.3-2,
but on old Ubuntu this minimal command lines could fix the problem:
{{{
$ ffmpeg -y -i input.flv -vcodec copy -acodec libvo_aacenc -ac 1 -ar 22050
-ab 64k output.mp4 # Change container to MP4 because MP4Box doesn't work
with FLV container
$ MP4Box -raw 1 output.mp4 # Demux stream
$ MP4Box -raw 2 output.mp4 # Demux stream
$ MP4Box -add output_track1.h264:fps=15 -add output_track2.aac output.mp4
# Mux two streams back
$ MP4Box -hint output.mp4 # Moov atom place to the file beginning, qt-
faststart does the same
$ rm output_track1.h264 && rm output_track2.aac
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2085#comment:57>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list