Opened 11 years ago

Closed 11 years ago

#2098 closed defect (invalid)

ffmpeg force transcoding from h264 to mpeg2video while stream mpegts from h264 file

Reported by: Gery Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Carl Eugen Hoyos)

I am trying to stream over mpegts/udp h264 from file

Problem that ffmpeg force transcoding h264 to mpeg2video

ffmpeg started on 2013-01-02 at 15:17:57
Report written to "ffmpeg-20130102-151757.log"
Command line:
ffmpeg -report -re -i ./transformers/trans3-720p.h264 -c:v copy -f mpegts udp://192.168.1.2:5004
ffmpeg version N-48393-g8bc7422 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  2 2013 14:48:50 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/opt/x86 --enable-gpl --enable-shared --enable-libx264 --enable-libxvid --extra-cflags=-I/opt/x86/include --extra-ldflags=-L/opt/x86/lib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 85.100 / 54. 85.100
  libavformat    54. 59.100 / 54. 59.100
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 30.102 /  3. 30.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ... matched as input file with argument './transformers/trans3-720p.h264'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'.
Reading option 'udp://192.168.1.2:5004' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file ./transformers/trans3-720p.h264.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: ./transformers/trans3-720p.h264.
[h264 @ 0x81f3540] Format h264 probed with size=2048 and score=51
[h264 @ 0x81f3540] File position before avformat_find_stream_info() is 0
[h264 @ 0x81f97a0] no picture
[h264 @ 0x81f3540] max_analyze_duration 5000000 reached at 5005000
[h264 @ 0x81f3540] Estimating duration from bitrate, this may be inaccurate
[h264 @ 0x81f3540] File position after avformat_find_stream_info() is 3917824
Input #0, h264, from './transformers/trans3-720p.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 122, 1/1200000: Video: h264 (High), yuv420p, 1280x720, 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc
Successfully openened the file.
Parsing a group of options: output file udp://192.168.1.2:5004.
Applying option c:v (codec name) with argument copy.
Applying option f (force format) with argument mpegts.
Successfully parsed a group of options.
Opening an output file: udp://192.168.1.2:5004.
Successfully openened the file.
[mpegts @ 0x81faa60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'udp://192.168.1.2:5004':
  Metadata:
    encoder         : Lavf54.59.100
    Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 1280x720, q=2-31, 23.98 fps, 90k tbn, 23.98 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x81faa60] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input
Statistics: 3932160 bytes read, 0 seeks

Change History (1)

comment:1 by Carl Eugen Hoyos, 11 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

Nothing in your console output indicates that FFmpeg tries to re-encode your video using the mpeg2video encoder, on the contrary, see "Output ... h264" and "Stream #0:0 -> #0:0 (copy)".

Last edited 11 years ago by Carl Eugen Hoyos (previous) (diff)
Note: See TracTickets for help on using tickets.