[FFmpeg-trac] #873(FFmpeg:new): PCM signed big-endian encoding as unsigned

FFmpeg trac at avcodec.org
Thu Jan 5 19:00:13 CET 2012


#873: PCM signed big-endian encoding as unsigned
-------------------------------------+-------------------------------------
             Reporter:  Glinx        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  FFmpeg
              Version:  unspecified  |               Resolution:
             Keywords:  PCM signed   |               Blocked By:
  big endian                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Glinx):

 SIGNED pcm_s16be

 [gavin at gavin-desktop MTS_tests]$ ffmpeg -i 00000.MTS -vcodec dnxhd
 -threads 4 -b:v 240M -pix_fmt yuv422p -acodec pcm_s16be -sn out.mov
 ffmpeg version N-35110-g0b9a69f, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Nov 23 2011 12:55:01 with gcc 4.6.2
   configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis
 --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora
 --enable-libgsm --enable-libspeex --enable-postproc --enable-shared
 --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb
 --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-
 gpl --enable-version3 --enable-runtime-cpudetect --disable-debug
 --disable-static
   libavutil    51. 26. 0 / 51. 26. 0
   libavcodec   53. 37. 0 / 53. 37. 0
   libavformat  53. 21. 0 / 53. 21. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 49. 0 /  2. 49. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [mpegts @ 0x1de7760] parser not found for codec hdmv_pgs_subtitle, packets
 or times may be invalid.
 [h264 @ 0x1deb680] Increasing reorder buffer to 1
 Input #0, mpegts, from '00000.MTS':
   Duration: 00:00:04.81, start: 0.801678, bitrate: 27247 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 5.1(side), s16, 384 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090)
 [buffer @ 0x1deeaa0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:
 [buffersink @ 0x1de6fe0] auto-inserting filter 'auto-inserted scale 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0x1defc40] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv422p
 flags:0x4
 Output #0, mov, to 'out.mov':
   Metadata:
     encoder         : Lavf53.21.0
     Stream #0:0: Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080 [SAR
 1:1 DAR 16:9], q=2-31, 240000 kb/s, 50 tbn, 50 tbc
     Stream #0:1: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
 5.1(side), s16, 4608 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> dnxhd)
   Stream #0:1 -> #0:1 (ac3 -> pcm_s16be)
 Press [q] to stop, [?] for help
 frame=  241 fps= 18 q=1.0 Lsize=  145393kB time=00:00:04.82
 bitrate=247107.4kbits/s dup=1 drop=0
 video:142672kB audio:2718kB global headers:0kB muxing overhead 0.001915%
 [gavin at gavin-desktop MTS_tests]$



 UNSIGNED pcm_s16be

 [gavin at gavin-desktop MTS_tests]$ ffmpeg -i 00000.MTS -vcodec dnxhd
 -threads 4 -b:v 240M -pix_fmt yuv422p -acodec pcm_s16be -sn out.mov
 ffmpeg version N-35681-g16abd68, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Dec 11 2011 22:09:57 with gcc 4.6.2 20111125 (prerelease)
   configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis
 --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora
 --enable-libgsm --enable-libspeex --enable-postproc --enable-shared
 --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb
 --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-
 libpulse --enable-gpl --enable-version3 --enable-runtime-cpudetect
 --disable-debug --disable-static
   libavutil    51. 32. 0 / 51. 32. 0
   libavcodec   53. 42. 0 / 53. 42. 0
   libavformat  53. 24. 0 / 53. 24. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 53. 0 /  2. 53. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [h264 @ 0xbce680] Increasing reorder buffer to 1
 Input #0, mpegts, from '00000.MTS':
   Duration: 00:00:04.81, start: 0.801678, bitrate: 27247 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 5.1(side), s16, 384 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090)
 [buffer @ 0xbd11a0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:
 [buffersink @ 0xbd0060] auto-inserting filter 'auto-inserted scale 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0xbca580] w:1920 h:1080 fmt:yuv420p -> w:1920 h:1080 fmt:yuv422p
 flags:0x4
 Output #0, mov, to 'out.mov':
   Metadata:
     encoder         : Lavf53.24.0
     Stream #0:0: Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080 [SAR
 1:1 DAR 16:9], q=2-31, 240000 kb/s, 50 tbn, 50 tbc
     Stream #0:1: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
 5.1(side), s16, 4608 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> dnxhd)
   Stream #0:1 -> #0:1 (ac3 -> pcm_s16be)
 Press [q] to stop, [?] for help
 frame=  241 fps= 18 q=1.0 Lsize=  145394kB time=00:00:04.82
 bitrate=247109.4kbits/s dup=1 drop=0
 video:142672kB audio:2718kB global headers:0kB muxing overhead 0.002705%
 [gavin at gavin-desktop MTS_tests]$


 I tried some dnxhd 1080p 50/25 fps s16be footage I found, they came out as
 u16be as well.
 Regards
 Gavin

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


More information about the FFmpeg-trac mailing list