[FFmpeg-trac] #542(FFmpeg:new): Missing audio when encoding to mpeg-ts with "-threads 0"
FFmpeg
trac at avcodec.org
Tue Oct 11 16:35:25 CEST 2011
#542: Missing audio when encoding to mpeg-ts with "-threads 0"
--------------------------------------+---------------------------------
Reporter: terran | Owner: michael
Type: defect | Status: new
Priority: important | Component: FFmpeg
Version: git-master | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
--------------------------------------+---------------------------------
When encoding from h264/aac mp4 to mpeg-ts, the audio stream is lost or
corrupt. Mediainfo reports an audio stream but it appears to be empty.
This *only* occurs when '-threads' set to 0. Using a specific thread size
(e.g. -threads 4) prevents the issue.
I can consistently reproduce this with centos 5, but not with osx.
Note that both audio and video playback with -threads >0 as well as builds
from August and earlier.
command used:
ffmpeg -i rehearsal.mp4 -threads 0 -s 1920x1080 -f mpegts -b:v 7000000
-qscale:v 1 -r 30.0 -g 30.0 -map_chapters -1 -vcodec libx264 -coder 0 -cmp
+chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method hex
-subq 5 -me_range 16 -keyint_min 25 -sc_threshold 0 -i_qfactor 0.71
-b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 1 -wpredp
0 -fast-pskip 1 -vprofile baseline -acodec libfaac -b:a 48000 -ac 2 -ar
44100 -t 5 -y rehearsal.ts
output from ffmpeg -v 9 -loglevel 99 -i:
ffmpeg version N-33513-g3473639, Copyright (c) 2000-2011 the FFmpeg
developers
built on Oct 11 2011 10:15:29 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configuration: --enable-pthreads --enable-avfilter --enable-shared
--enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables
--enable-libx264 --enable-libfaac
libavutil 51. 20. 1 / 51. 20. 1
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 15. 0 / 53. 15. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17a32780] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17a32780] ISO: File Type Major Brand: mp42
[aac @ 0x17a3a7e0] Unsupported bit depth: 0
[h264 @ 0x17a39a40] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17a32780] All info found
Seems stream 0 codec frame rate differs from container frame rate: 59.94
(60000/1001) -> 29.97 (2997/100)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rehearsal.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2011-08-17 04:36:21
Duration: 00:12:29.95, start: 0.000000, bitrate: 30155 kb/s
Stream #0:0(eng), 10, 1/29970: Video: h264 (Main) (avc1 / 0x31637661),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1001/60000, 29995 kb/s, 29.97 fps,
29.97 tbr, 29970 tbn, 59.94 tbc
Metadata:
creation_time : 2011-08-17 04:36:21
Stream #0:1(eng), 1, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000
Hz, stereo, s16, 157 kb/s
Metadata:
creation_time : 2011-08-17 04:36:21
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/542>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list