question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expected Start Word 0xfff

See original GitHub issue

Hello, excuse me for my bad english. I want to merge in the same file two audios (one is music, and the otherone is an audio file record with the mobile) I don´t want append, i want that i can listen music and voice at the same time. I was trying to use:
AACTrackImpl aacTrack = new AACTrackImpl(new FileDataSourceImpl("audio.aac")); But always receive the same error, with the music and with de audio recorder… Expected Start Word 0xfff My audio is record with mediaMuxer and mediacoder. How can i solve that? i don´t know what else find and test. Thank You so much.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
koodzicommented, Jul 22, 2020

Hi, I had the same issue with " Expected Start Word 0xfff", but I found a solution.

It seams that MediaMuxer creates a container (mp4) so you just need to use the Movie class not the AACTrackImpl

        Movie video = MovieCreator.build(videoFile.getAbsolutePath());
        Track videoTrack = video.getTracks().get(0);


        Movie audio = MovieCreator.build(audioEncodedFile.getAbsolutePath()); // here
        Track audioTrack = audio.getTracks().get(0);

        Movie movie = new Movie();
        movie.addTrack(videoTrack);
        movie.addTrack(audioTrack);

        Container out = new DefaultMp4Builder().build(movie);

// ...
0reactions
AllwinJohnsoncommented, Aug 13, 2020

I got this same issue, I’m using AAC audio file to merge with an mp4 video file.

W/System.err: java.io.IOException: Expected Start Word 0xfff at com.googlecode.mp4parser.authoring.tracks.AACTrackImpl.readADTSHeader(AACTrackImpl.java:291)

Track nuAudio = new AACTrackImpl(new FileDataSourceImpl(audio));

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mux mp4 file with aac file - Google Groups
IOException : Expected Start Word 0xfff. I have the following Code for recording the audio: myAudioRecorder.setAudioSource(MediaRecorder.
Read more >
Encode wav to AAC on Android - Stack Overflow
io.IOException: Expected Start Word 0xfff - Are the headers correct in the output? – JCutting8. Sep 25, 2018 at 6: ...
Read more >
Bug when using EnableHexNumpad for Unicode character ...
For some codes, mainly below 0xFFF, it seems that Word uses somehow the ... When the code contains hex letter digits, it works...
Read more >
futex(2) - Linux manual page - man7.org
It then may pass the lock's flag as a futex word and the value ... This load, the comparison with the expected value,...
Read more >
PIC16F15245, PICKIT4 and ERROR'S
program memory: start address = 0xb00, end address = 0xfff configuration memory [ Pgm ] at 0x0, expected 0x00003180, got 0x00000000.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found