Opened 11 years ago

Closed 11 years ago

#2627 closed defect (duplicate)

Using -vf fps results in no audio

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

Description

Summary of the bug:
When using -vf fps filter there is no sound in the output. I tried with mplayer, vlc and xine and all behave the same. No sound at all. mplayer even reports that there is no audio track, even though MediaInfo says there is

The input in this case is 25 fps and I'm trying to convert it to 29.970

How to reproduce:

% /usr/local/bin/ffmpeg -i var/VideoSamples/var/jlo.mpg -c:v mpeg2video -b:v 3500k -c:a ac3 -b:a 192k -vf fps=fps=29.970 -y out.mpg

Change History (4)

comment:1 by microchip, 11 years ago

Complete output

ffmpeg version N-53746-gec34963 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun  1 2013 22:52:29 with gcc 4.7 (SUSE Linux)
  configuration: --enable-shared --enable-gpl --enable-version3 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-avresample --prefix=/usr/local
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 13.100 / 55. 13.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 74.101 /  3. 74.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpeg @ 0x12dd8c0] max_analyze_duration 5000000 reached at 5000000 microseconds
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mpeg, from 'var/VideoSamples/var/jlo.mpg':
  Duration: 00:05:12.91, start: 0.280000, bitrate: 8234 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0xa0]: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
[mpeg @ 0x12de840] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
  Metadata:
    encoder         : Lavf55.8.102
    Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 3500 kb/s, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
  Stream #0:1 -> #0:1 (pcm_s16be -> ac3)
Press [q] to stop, [?] for help
[mpeg2video @ 0x12de3c0] warning: first frame is no keyframe
    Last message repeated 1 times
frame= 2768 fps=410 q=4.2 Lsize=   41902kB time=00:01:32.32 bitrate=3717.9kbits/s

comment:2 by Elon Musk, 11 years ago

Did you checked that ffmpeg and all other players can play audio from input mpg file?
Did you checked if same happens without fps filter?

You do not need to answer above questions if you provide way to download that file.

comment:3 by Carl Eugen Hoyos, 11 years ago

Component: FFmpegundetermined
Keywords: mpegps added

comment:4 by Carl Eugen Hoyos, 11 years ago

Resolution: duplicate
Status: newclosed

Looks like a duplicate of ticket #1720

Note: See TracTickets for help on using tickets.