Note that there are some explanatory texts on larger screens.

plurals
  1. POFFMPEG - zero file size when sound enabled
    primarykey
    data
    text
    <p>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.</p> <p>When I suppress sound using the following command, everything works perfectly (except of course, there's no sound!)</p> <pre><code>ffmpeg -i $infile -an test.flv </code></pre> <p>However, when I try to enable sound in <em>any</em> way at all, the file being outputted has a file size of zero kb.</p> <p>FFMPEG is compiled with support for libmp3lame and libfaac, and the necessary codecs are installed. Here is the configuration of FFMPEG on the server:</p> <blockquote> <p>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</p> </blockquote> <p>Here is a very small sample of some of the commands I've tried that result in a 0Kb file size:</p> <pre><code>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 </code></pre> <p>If anyone could provide any hints on what's going on here, I'd really appreciate it!</p> <p><strong>EDIT</strong> - here is the result when I redirect stderr to a file</p> <p>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) </p> <p>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, 176x144, 29.97 fps(r) Stream #0.1(jpn): Audio: samr / 0x726D6173, 8000 Hz, mono </p> <p>Output #0, flv, to '/path/to/test.flv': Stream #0.0: Video: flv, yuv420p, 176x144, 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 </p> <p>Unsupported codec (id=73728) for input stream #0.1</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload