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 182001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:51:45+00:00 2026-05-11T14:51:45+00:00

I’m having a few problems converting video files from the command line using FFMPEG.

  • 0

I’m having a few problems converting video files from the command line using FFMPEG. I’m using a CentOS server, but unfortunately I don’t have shell access.

When I suppress sound using the following command, everything works perfectly (except of course, there’s no sound!)

ffmpeg -i $infile -an test.flv 

However, when I try to enable sound in any way at all, the file being outputted has a file size of zero kb.

FFMPEG is compiled with support for libmp3lame and libfaac, and the necessary codecs are installed. Here is the configuration of FFMPEG on the server:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: –prefix=/usr –libdir=/usr/lib –mandir=/usr/share/man –incdir=/usr/include/ffmpeg –enable-libmp3lame –enable-libogg –enable-libvorbis –enable-libogg –enable-libtheora –enable-libfaad –enable-libfaac –enable-libgsm –enable-xvid –enable-x264 –enable-liba52 –enable-liba52bin –enable-pp –enable-shared –enable-pthreads –enable-gpl –disable-strip

Here is a very small sample of some of the commands I’ve tried that result in a 0Kb file size:

ffmpeg -i $infile test.flv ffmpeg -i $infile -vcodec copy -acodec ac3 test.flv ffmpeg -vcodec copy -acodec copy -i $infile -vcodec copy -acodec mp3 test.flv ffmpeg -vcodec copy -acodec copy -i $infile -vcodec copy -acodec copy $outfile ffmpeg -vcodec copy -acodec copy -i $infile -vcodec copy -acodec aac $outfile 

If anyone could provide any hints on what’s going on here, I’d really appreciate it!

EDIT – here is the result when I redirect stderr to a file

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: –prefix=/usr –libdir=/usr/lib –mandir=/usr/share/man –incdir=/usr/include/ffmpeg –enable-libmp3lame –enable-libogg –enable-libvorbis –enable-libogg –enable-libtheora –enable-libfaad –enable-libfaac –enable-libgsm –enable-xvid –enable-x264 –enable-liba52 –enable-liba52bin –enable-pp –enable-shared –enable-pthreads –enable-gpl –disable-strip libavutil version: 49.4.0 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘/path/to/7b4e37e703ce0a104f027cb9125b1a19.mp4’: Duration: 00:00:32.4, start: 0.000000, bitrate: 122 kb/s Stream #0.0(jpn): Video: h263, yuv420p, 176×144, 29.97 fps(r) Stream #0.1(jpn): Audio: samr / 0x726D6173, 8000 Hz, mono

Output #0, flv, to ‘/path/to/test.flv’: Stream #0.0: Video: flv, yuv420p, 176×144, q=2-31, 200 kb/s, 29.97 fps(c) Stream #0.1: Audio: mp3, 8000 Hz, mono, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1

Unsupported codec (id=73728) for input stream #0.1

  • 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. 2026-05-11T14:51:46+00:00Added an answer on May 11, 2026 at 2:51 pm

    What sort of access do you have to the server – you must have some ability to run commands on it.

    That being the case, what is the error output from ffmpeg?

    Possibly an appropriate verbose argument would tell you more about the problem?

    EDIT:

    Let’s see if we can get stderr output. Run:

    ffmpeg -version  

    And see if you can get some output for it. Once you’ve managed to extract some stderr output then we can investigate the original issue.

    EDIT:

    So it looks like you’re loosing stderr – now you need to work out how to retrieve it.

    Maybe:

    ffmpeg -version 2>&1 

    will work?

    EDIT:

    How we’re getting somewhere – the input audio codec isn’t supported:

    Unsupported codec (id=73728) for input stream #0.1 

    I don’t know what Stream #0.1(jpn): Audio: samr / 0x726D6173, 8000 Hz, mono is.

    But there’s you’re problem.

    I suggest that you might want to investigate on a local Linux box – it might be easier to see problems.

    EDIT:

    From http://www.nabble.com/Convert-3gp-samr-file-td20514476.html it looks like ffmpeg can be compiled with support --enable-libamr-nb --enable-libamr-wb.

    Is recompiling ffmpeg an option?

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

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It seems to me that your original two unit tests… May 11, 2026 at 11:31 pm
  • Editorial Team
    Editorial Team added an answer If you want the column name to be dynamic, you… May 11, 2026 at 11:31 pm
  • Editorial Team
    Editorial Team added an answer Short answer: Don't do it Long answer: Here is how… May 11, 2026 at 11:31 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.