Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8932585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:20:49+00:00 2026-06-15T09:20:49+00:00

I compiled ffmpeg for Android. The executable works from the device terminal and I

  • 0

I compiled ffmpeg for Android. The executable works from the device terminal and I can do normal video operations. I am trying to join 2 mpeg files captured using the camera at the command line on the device.

First I Capture 2 videos using the camera and save to sdcard, one.mpeg and two.mpeg. Then I do:

 ffmpeg -i one.mpeg onenew.mpeg
 ffmpeg -i twompg.mpeg twonew.mpeg 

(if i dont do the above 2 commands then it doesnt work at all)

 cat onenew.mpeg twonew.mpeg > joined.mpeg
 ffmpeg -i joined.mpeg -acodec copy -vcodec copy final.mpeg

The output (final.mpeg) doesnt play on the device but if i copy to my linux desktop it opens up and plays fine. I tested final.mpeg on a 2.3.3 device and a 2.3.6 device.

Anyone know why the device would fail to play the video file?

UPDATE
My friend tested the video on a device running 3.0, the default player never played the video however ‘moboplayer’ did, I need it to play on the default player though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:20:50+00:00Added an answer on June 15, 2026 at 9:20 am

    http://ffmpeg.mplayerhq.hu/faq.html#How-can-I-concatenate-video-files_003f

    read sect 3.14.2 in the above link. Lots of work has been done on concatenating media files in an ffmpeg env on linux and it should not really be any different on your android device.

    running ffmpeg in terminal on a phone should be just like running in linux ( just like the samples doing cat in the faq )

    Test it on linux
    then
    the same expressions should run on your android device.

    You just need to get a filetype suitable for concatenation then use the F-system to cat the files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to live stream video from android device. I found out that ffserver
I've compiled ffmpeg code on android and able to play the video without neon
I have successfully compiled the FFMPEG library to android using NDK. I want to
I am trying to extract some parts of the Video: line from below text.
I am trying to decode audio samples from various file formats using ffmpeg. Therefore
I'm having a few problems converting video files from the command line using FFMPEG.
I want to compile ffmpeg for Android ver. But everytime I try, I can't
So we have for example ffmpeg that can be compiled into > than 4
I successfully compiled libavcodec with speex enabled. I modified example from FFMPEG docs to
I have successfully integrated and compiled ffmpeg with libfaac. When I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.