Ticket #1720 (open defect)

Opened 9 months ago

Last modified 4 months ago

ffmpeg with -vcodec copy -acodec copy creates files "without audio" for certain players

Reported by: rogerdpack Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mpegps
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug: $title

How to reproduce:

 I noticed with this file:

http://rogerdpack.t28.net/incoming/sintel.mpg

 and this command:

 $ ffmpeg -y -i sintel.mpg -t 60 -vcodec copy -acodec copy out.mpg
 ffmpeg version N-43577-g045f8dd Copyright (c) 2000-2012 the FFmpeg developers
   built on Aug 15 2012 14:10:50 with gcc 4.7.1 (GCC)
   configuration: --enable-memalign-hack --arch=x86 --enable-gpl
 --enable-libx264 --enable-avisynth --enable-libxvid
 --target-os=mingw32
 --cross-prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/bin/i686-w64-mingw32-
 --pkg-config=pkg-config --enable-libmp3lame --enable-version3
 --enable-libvo-aacenc --enable-libvpx --extra-libs=-lws2_32
 --extra-libs=-lpthread --enable-zlib --extra-libs=-lwinmm
 --extra-libs=-lgdi32 --enable-librtmp --enable-runtime-cpudetect
   libavutil      51. 69.100 / 51. 69.100
   libavcodec     54. 52.100 / 54. 52.100
   libavformat    54. 23.100 / 54. 23.100
   libavdevice    54.  2.100 / 54.  2.100
   libavfilter     3.  9.100 /  3.  9.100
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpeg2video @ 01C2F6A0] ac-tex damaged at 40 7
 [mpeg2video @ 01C2F6A0] Warning MVs not available
 [mpeg2video @ 01C2F6A0] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame
 [mpeg @ 03361800] max_analyze_duration 5000000 reached at 5024000
 Input #0, mpeg, from 'sintel.mpg':
   Duration: 00:14:47.58, start: 0.233367, bitrate: 4132 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480
 [SAR 32:27 DAR 16:9], 7000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94
 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
 Output #0, mpeg, to 'out.mpg':
   Metadata:
     encoder         : Lavf54.23.100
     Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR
 16:9], q=2-31, 7000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
     Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame= 1638 fps=0.0 q=-1.0 Lsize=   32396kB time=00:01:00.00
 bitrate=4423.1kbits/s
 video:28947kB audio:3281kB subtitle:0 global headers:0kB muxing
 overhead 0.520095%

command succeeds. File is playable (with audio) by ffplay, but has "no audio" in either VLC or Windows Media Player.

If I dump it to out.avi, the resultant file has "no video" in WMP, but does have audio, and plays fine in VLC. Or should I file that as a separate ticket?

MediaInfo? seems to reveal it having an audio track ok.

Attachments

sintel.2.5.mpg Download (2.4 MB) - added by rogerdpack 9 months ago.
there is an initial "thud" that tells you whether audio is working or not.
out.mpg Download (2.4 MB) - added by rogerdpack 9 months ago.
the resultant file that has "no audio VLC, no audio WMP" even though the original works with both

Change History

Changed 9 months ago by rogerdpack

there is an initial "thud" that tells you whether audio is working or not.

Changed 9 months ago by rogerdpack

the resultant file that has "no audio VLC, no audio WMP" even though the original works with both

comment:1 in reply to: ↑ description Changed 9 months ago by michael

Replying to rogerdpack:

If I dump it to out.avi, the resultant file has "no video" in WMP, but does have audio, and plays fine in VLC. Or should I file that as a separate ticket?

id say, thats probably a seperate issue

comment:2 Changed 9 months ago by cehoyos

Is this also reproducible with a shorter input file? If yes, please attach a sample.

comment:3 Changed 9 months ago by rogerdpack

shorter than the sintel.2.5.mpg file attached? It seems to reproduce it.

comment:4 Changed 9 months ago by cehoyos

  • Status changed from new to open
  • Version changed from unspecified to git-master
  • Component changed from undetermined to avformat

Sorry, the sample is sufficient.

comment:5 Changed 7 months ago by cehoyos

  • Keywords mpegps added
  • Reproduced by developer set

sintel.2.5.mpg plays fine with WMP, both remuxing and re-encoding ac3 in mpeg-ps leads to files that play silent with WMP.

comment:6 follow-up: ↓ 10 Changed 5 months ago by rogerdpack

appears to lack audio with mplayer, as well:

$ mplayer.exe out.mpg
MPlayer GIT-EDL-0.5-gcc4.5.1 (C) 2000-2012 MPlayer Team

Playing out.mpg.
libavformat version 54.46.100 (internal)
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.

comment:7 Changed 5 months ago by cehoyos

MPlayer is distributed via svn...

comment:8 Changed 5 months ago by rogerdpack

That was my own distro of svn (which I believe is pretty up to date). Here's one that is based off an SVN revision:

MPlayer-rtm-svn-34401\mplayer.exe out.mpg
MPlayer Sherpya-SVN-r34401-4.6.2 (C) 2000-2011 MPlayer Team

Playing out.mpg.
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 7000.0 kbps (875.0 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Audio: no sound

Last edited 5 months ago by rogerdpack (previous) (diff)

comment:9 Changed 5 months ago by cehoyos

Works fine with mplayer -demuxer lavf.

comment:10 in reply to: ↑ 6 Changed 4 months ago by kadmandux

Replying to rogerdpack:

appears to lack audio with mplayer, as well:
MPEG: No audio stream found -> no sound.

Please have a look here for a workaround:

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

You must make a little change in the parameters:

Instead of -target dvd use -target pal-dvd or what is applicable in your case

Last edited 4 months ago by kadmandux (previous) (diff)
Note: See TracTickets for help on using tickets.