#2160 closed defect (duplicate)
ffmpeg produces mpeg files with audio not playable by some players
Reported by: | kadmandux | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | unspecified | Keywords: | mpegps |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
I'm joining (concat) some mpeg2 video files with ac3 audio (from my digital camera) without re-encoding. The resulting files have no sound if you play them with mplayer or HP Video (from HP Media Suite).
Mplayer says this:
MPEG: No audio stream found -> no sound.
How to reproduce:
ffmpeg -f concat -i list.txt -c:a copy -c:v copy video.mpg
Even more simple, without concat involved:
ffmpeg -i input.mpg -c:a copy -c:v copy video.mpg ffmpeg version N-48886-g5ce023b Copyright (c) 2000-2013 the FFmpeg developers built on Jan 14 2013 19:16:33 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable -libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r libavutil 52. 14.100 / 52. 14.100 libavcodec 54. 89.100 / 54. 89.100 libavformat 54. 59.107 / 54. 59.107 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100}}}
I solved the problem with the workaround listed here:
http://www.das-werkstatt.com/forum/werkstatt/viewtopic.php?f=7&t=1834
The key is to ask for a target format:
ffmpeg -i input.mpg -target pal-dvd -c:a copy -c:v copy video.mpg
The input files have contents like this:
Input #0, mpeg, from 'm2u00117.mpg': Duration: 00:01:26.36, start: 0.118222, bitrate: 7858 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DA R 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Change History (2)
follow-up: 2 comment:1 by , 12 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | mpegps added; audio interleave removed |
Resolution: | → duplicate |
Status: | new → closed |
comment:2 by , 12 years ago
Thank you. Sorry for duplicate report, I found ticket #1720 after I sent mine.
I posted there a comment, because I found a workaround for which there is a link in my ticket.
Regards.
Apart from missing complete, uncut console output, this looks like a duplicate of ticket #1720. Please test again once that ticket is resolved.