[FFmpeg-trac] #542(undetermined:new): Missing audio when encoding to mpeg-ts with "-threads 0"

FFmpeg trac at avcodec.org
Tue Oct 11 21:51:27 CEST 2011


#542: Missing audio when encoding to mpeg-ts with "-threads 0"
-------------------------------------+-------------------------------------
             Reporter:  terran       |                    Owner:  michael
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by terran):

 > I meant more something like
 > ffmpeg -i rehearsal.mp4 -qscale 2 -threads 0 out.ts
 > (Definitely no need to recompile)

 Are there other params required? That command results in:

 Error while opening encoder for output stream #0.0 - maybe incorrect
 parameters such as bit_rate, rate, width or height

 > Is the problem only reproducible for ts, or also for mp4?

 It appears to be mpeg-ts only. Muxing to mp4 works. I dont know if it's
 related, but using libavformat to open the file shows a different format
 as well. With ts:

 Output #0, mpegts, to '':
     Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080,
 q=2-31, 10015 kb/s, 90k tbn, 30 tbc
     Stream #0:1: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 33 kb/s

 With mp4:

 Output #0, mpegts, to 's':
     Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080,
 q=2-31, 90k tbn, 30 tbc
     Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels

 > Is the problem perhaps only libfaac related? (ffmpeg -i rehearsal.mp4
 -qscale 2 -threads 0 -acodec libfaac out.ts or ffmpeg -i rehearsal.mp4
 -threads 0 -vn -acodec libfaac out.ts or ffmpeg -i rehearsal.mp4 -threads
 0 -acodec libfaac out.aac)

 Doesn't look like it's libfaac. The following worked, verified the audio:

 ffmpeg -i rehearsal.mp4 -threads 0 -f mpegts -vn -acodec libfaac -ab 48000
 rehearsal.ts

 > Is the problem reproducible with any sample or really only with a
 specific one?

 I've tried other files but haven't reproduced it with others.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/542#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list