[FFmpeg-user] s302m audio extraction.
Dennis
mediastream at gmail.com
Thu Apr 12 21:19:22 CEST 2012
Problem with dumping s302m audio track from mpegts (same with ffmpb 0.7-rc7):
./ffmpeg102 -y -i orig.mpg -vn -acodec copy -aframes 10 -f mpegts audio_only.ts
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 21 2012 17:29:36 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/home/dennis/010_64 --enable-static
--enable-postproc --enable-gpl --enable-avfilter --enable-libx264
--enable-libxvid --enable-libmp3lame --enable-nonfree
--enable-pthreads --enable-swscale --enable-runtime-cpudetect
--disable-devices --disable-avdevice --enable-libfaac
--extra-ldflags=-static --disable-shared --extra-libs='-lx264 -lfaac
-lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx'
--disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
--enable-version3 --enable-libvpx
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from 'orig.mpg':
Duration: 00:43:20.63, start: 0.250000, bitrate: 53933 kb/s
Program 1
Stream #0:0[0x3e9]: Video: mpeg2video (4:2:2) ([2][0][0][0] /
0x0002), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 23.98 fps,
23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x3ea]: Audio: s302m (BSSD / 0x44535342), 48000 Hz,
stereo, s32, 2688 kb/s
[mpegts @ 0xc5fe920] frame size not set
[mpegts @ 0xc5fe920] muxrate VBR, pcr every 9 pkts, sdt every 200,
pat/pmt every 40 pkts
Output #0, mpegts, to '1.ts':
Metadata:
encoder : Lavf53.32.100
Stream #0:0: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, 2688 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 149kB time=00:00:00.41 bitrate=2935.2kbits/s
video:0kB audio:137kB global headers:0kB muxing overhead 9.168212%
Now looking at the audio file shows that its broken, wont encode to anything:
./ffmpeg102 -i audio_only.ts
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 21 2012 17:29:36 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/home/dennis/010_64 --enable-static
--enable-postproc --enable-gpl --enable-avfilter --enable-libx264
--enable-libxvid --enable-libmp3lame --enable-nonfree
--enable-pthreads --enable-swscale --enable-runtime-cpudetect
--disable-devices --disable-avdevice --enable-libfaac
--extra-ldflags=-static --disable-shared --extra-libs='-lx264 -lfaac
-lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx'
--disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
--enable-version3 --enable-libvpx
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x1ce32940] decoding for stream 0 failed
[mpegts @ 0x1ce32940] Could not find codec parameters (Unknown: none
([6][0][0][0] / 0x0006))
1.ts: could not find codec parameters
Tried dumping it to a wave, interesting thing came up --- libav* calls
m302s "NONE"...? (see below)
./ffmpeg102 -y -i orig.mpg -vn -acodec copy -aframes 10 -f mpegts audio_only.wav
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 21 2012 17:29:36 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/home/dennis/010_64 --enable-static
--enable-postproc --enable-gpl --enable-avfilter --enable-libx264
--enable-libxvid --enable-libmp3lame --enable-nonfree
--enable-pthreads --enable-swscale --enable-runtime-cpudetect
--disable-devices --disable-avdevice --enable-libfaac
--extra-ldflags=-static --disable-shared --extra-libs='-lx264 -lfaac
-lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx'
--disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
--enable-version3 --enable-libvpx
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from 'orig.mpg':
Duration: 00:43:20.63, start: 0.250000, bitrate: 53933 kb/s
Program 1
Stream #0:0[0x3e9]: Video: mpeg2video (4:2:2) ([2][0][0][0] /
0x0002), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 23.98 fps,
23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x3ea]: Audio: s302m (BSSD / 0x44535342), 48000 Hz,
stereo, s32, 2688 kb/s
<HERE>>>>>>>>>V
[wav @ 0x4fcc920] NONE codec not supported in WAVE format
<HERE>>>>>>>>>A
Output #0, wav, to '1.wav':
Metadata:
encoder : Lavf53.32.100
Stream #0:0: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, 2688 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)
Any advice besides "patches are welcome" is welcome (:
More information about the ffmpeg-user
mailing list