[FFmpeg-trac] #2160(undetermined:new): ffmpeg produces mpeg files with audio not playable by some players

FFmpeg trac at avcodec.org
Sun Jan 20 02:38:20 CET 2013


#2160: ffmpeg produces mpeg files with audio not playable by some players
-------------------------------------+-------------------------------------
             Reporter:  kadmandux    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  audio        |               Blocked By:
  interleave                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 I'm joining (concat) some mpeg2 video files with ac3 audio (from my
 digital camera) without re-encoding. The resulting files have no sound if
 you play them with mplayer or HP Video (from HP Media Suite).

 Mplayer says this:
 ''MPEG: No audio stream found -> no sound.''

 How to reproduce:
 {{{
 ffmpeg -f concat -i list.txt -c:a copy -c:v copy video.mpg
 }}}
 Even more simple, without concat involved:
 {{{
 ffmpeg -i input.mpg -c:a copy -c:v copy video.mpg

 ffmpeg version N-48886-g5ce023b Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan 14 2013 19:16:33 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-av
 isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enab
 le-libass --enable-libbluray --enable-libcaca --enable-libfreetype
 --enable-libg
 sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-
 amrwb --e
 nable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinger --e
 nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-
 aacenc --en
 able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
 --enable
 -libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r
   libavutil      52. 14.100 / 52. 14.100
   libavcodec     54. 89.100 / 54. 89.100
   libavformat    54. 59.107 / 54. 59.107
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100}}}
 }}}
 I solved the problem with the workaround listed here:

 http://www.das-werkstatt.com/forum/werkstatt/viewtopic.php?f=7&t=1834

 The key is to ask for a target format:
 {{{
 ffmpeg -i input.mpg -target pal-dvd  -c:a copy -c:v copy video.mpg
 }}}
 The input files have contents like this:
 {{{
 Input #0, mpeg, from 'm2u00117.mpg':
   Duration: 00:01:26.36, start: 0.118222, bitrate: 7858 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
 64:45 DA
 R 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2160>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list