-
Notifications
You must be signed in to change notification settings - Fork 573
Closed
Description
I have an h.264 encoded file which looks good when I use ffmpeg to place it in an mp4 container, but when I use isoparser it doesnt look good at all. Heres the code that I used
H264TrackImpl h264Track = new H264TrackImpl(new FileDataSourceImpl("dump.h264"));
Movie m = new Movie();
m.addTrack(h264Track);
Container out = new DefaultMp4Builder().build(m);
FileOutputStream fos = new FileOutputStream(new File("output.mp4"));
FileChannel fc = fos.getChannel();
out.writeContainer(fc);
fos.close();
Here is the ffmpeg command line:
ffmpeg -i dump.h264 -an -threads 0 ffoutput.mp4
Bad image: https://dl.dropboxusercontent.com/u/7316897/projects/h264/bad.png
Good image: https://dl.dropboxusercontent.com/u/7316897/projects/h264/good.png
Dump file for verification: https://dl.dropboxusercontent.com/u/7316897/projects/h264/dump.h264
Metadata
Metadata
Assignees
Labels
No labels