VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Greetings, everyone. I'm new here, but I've been basically self-studying encoding video for the past years. This question is basically about video reencoding to play MP4 on my android. I hope this is the right place.

    I just recently tried copying my older MKV videos to my android, where I use Rockplayer to view them. Those videos have a video stream, one subtitle stream, and two audio streams. The problem with my Rockplayer is that even though it can play MKVs, it does not allow for toggling of subtitles and audio streams.

    I chose as output format MP4 with h264 and aac codec with hardcoded subtitles. I had many files to convert, so I wanted to use Windows command-line utilities in order to encode. I needed a small video size to fit many episodes on my phone, the video just needed to be watchable.

    I basically used mencoder to hardcode the subtitles onto the video stream and only use one audio stream. However the available mencoder's windows builds don't support an mp4 output, so I had to output it to a temporary avi. Then I used ffmpeg to copy the avi's streams into an mp4 file. I didn't use FFMPEG to convert the video in the first place since it doesn't hardsub.

    These were the relevant parts of the batch file:
    Code:
    mencoder "%fOnly%.mkv" -ovc x264 -oac faac -x264encopts bitrate=284 -sid 0 -aid 1  -vf scale=480:320 -o temp.avi
    ffmpeg -i "temp.avi" "%fOnly%.mp4"
    Now, I have the files that play perfectly on MPC-HC, but on the phone itself it has a couple of problems.
    1. If you play the video linearly, the audio is out of sync with the video. The problem disappears though if you skip forward by moving the slider.
    2. There are artifacts during motion scenes. When the characters are talking the mouths become pixelated, for example.
    3. There are the same artifacts with the hardcoded subtitles. When the words switch there are some remnants left behind.

    What could be the possible causes of those problems? I'm using Rockplayer, and I have no problems viewing other videos with it.
    Quote Quote  
  2. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    if you just want to convert the multi audio/subs to single audio/subs then you can use mkvtoolnix to do it with just a re-merge. install it and open mkvmergegui. check only the streams you want to keep, give the output a destination and click start muxing.
    Last edited by aedipuss; 14th Oct 2011 at 20:45. Reason: miss spelling
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  3. The problem with that is that I need to hardsub the mkv srt softsubs onto the video so that the phone player can play them, so I'll have to reencode it anyway. And whenever I do that, it's introducing the unsynching and artefacting problem in my phone's player.

    The only clue to the problem I have is that the aac audio files in the mkv seem to be "malformatted".
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!