[FFmpeg-user] ffmpeg "mpegts" working on linux not on windows ...
debug asm
debugasm at gmail.com
Wed May 4 16:09:38 CEST 2016
I have to create a slide show from png images using ffmpeg. The slide show
is a group of PNG picture and using ffmpeg to convert into a MPEG TS stream.
I have used the same 10 pictures on linux and windows.
This is a command line that I have used :
ffmpeg -v 9 -loglevel 99 -indexmem 32M -rtbufsize 64M -framerate 1/4 -i
image_%03d.png -c:v mpeg2video -pix_fmt yuv420p -r 25 -s 720x576 -b:v 4000k
-minrate:v 4000k -maxrate:v 4000k -bufsize 1000k -g 100 -bf 2 -b_strategy 1
-streamid:v 0:256 -streamid:a 1:257 -packetsize 188 -f mpegts
-mpegts_service_type digital_tv -mpegts_service_id 0x0001 -metadata
service_provider="Service" -metadata service_name="Slide Show"
-mpegts_original_network_id 0x217C -mpegts_transport_stream_id 0x03E9
-mpegts_pmt_start_pid 0x0080 -mpegts_start_pid 0x0100 -muxrate 5000000 -y
transport.ts
But only on linux working, on windows the "MPEG TS" It is not
generated properly.
The size of the file differs greatly: linux [24995540 bytes] windows
[238533 bytes]
##
## Log on linux
##
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
[mpeg2video @ 0x89740] intra_quant_bias = 96 inter_quant_bias = 0
[mpegts @ 0x88850] muxrate 5000000, pcr every 66 pkts, sdt every 1662,
pat/pmt every 332 pkts
Output #0, mpegts, to 'transport.ts':
Metadata:
service_provider: GD Service
service_name : Slide Show
encoder : Lavf56.25.101
Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 720x576 [SAR
9356:8265 DAR 2339:1653], 1/25, q=2-31, 4000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.26.100 mpeg2video
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
Cliping frame in rate conversion by 0.000008
[AVIOContext @ 0x1c8fa0] Statistics: 2444082 bytes read, 0 seeks
[AVIOContext @ 0x26a5d0] Statistics: 1732559 bytes read, 0
seekste=5020.8kbits/s dup=198 drop=0
[AVIOContext @ 0xdb920] Statistics: 2669247 bytes read, 0
seeksate=5013.8kbits/s dup=297 drop=0
[mpeg2video @ 0x89740] reencoding frame due to VBV
[AVIOContext @ 0x1ce2b0] Statistics: 2867231 bytes read, 0
seekste=5010.4kbits/s dup=396 drop=0
[AVIOContext @ 0xdb9d0] Statistics: 3358881 bytes read, 0
seeksate=5008.3kbits/s dup=495 drop=0
[mpeg2video @ 0x89740] reencoding frame due to VBV
Last message repeated 1 times
[AVIOContext @ 0x17c350] Statistics: 3134336 bytes read, 0
seekste=5006.9kbits/s dup=594 drop=0
[AVIOContext @ 0xd5530] Statistics: 2857669 bytes read, 0
seeksate=5005.9kbits/s dup=693 drop=0
[mpeg2video @ 0x89740] reencoding frame due to VBV
Last message repeated 1 times
fps= 24 q=0.0 size= 19478kB time=00:00:31.88 bitrate=5005.1kbits/s
dup=792 drop=0
fps= 23 q=2.0 size= 21919kB time=00:00:35.88 bitrate=5004.6kbits/s
dup=891 drop=0
[output stream 0:0 @ 0x7ce20] EOF on sink link output stream
0:0:default.kbits/s dup=990 drop=0
No more output streams to write to, finishing.
frame= 1000 fps= 21 q=2.0 Lsize= 24410kB time=00:00:39.96
bitrate=5004.1kbits/s dup=990 drop=0
video:19501kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 25.173283%
Input file #0 (image_%03d.png):
Input stream #0:0 (video): 10 packets read (24170217 bytes); 10 frames
decoded;
Total: 10 packets (24170217 bytes) demuxed
Output file #0 (transport.ts):
Output stream #0:0 (video): 1000 frames encoded; 1000 packets muxed
(19968750 bytes);
Total: 1000 packets (19968750 bytes) muxed
10 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x93780] Statistics: 0 seeks, 1041 writeouts
##
## Log on windows
##
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
[mpeg2video @ 02d58340] intra_quant_bias = 96 inter_quant_bias = 0
[mpegts @ 02d57820] muxrate 5000000, pcr every 66 pkts, sdt every 1662,
pat/pmt every 332 pkts
Output #0, mpegts, to 'transport.ts':
Metadata:
service_provider: GD Service
service_name : Slide Show
encoder : Lavf56.40.101
Stream #0:0, 0, 1/90000: Video: mpeg2video, 1 reference frame, yuv420p,
720x576 [SAR 9356:8265 DAR 2339:1653], 1/25, q=2-31, 4000 kb/s, 25 fps, 90k
tbn, 25 tbc
Metadata:
encoder : Lavc56.60.100 mpeg2video
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
[AVIOContext @ 032ef5c0] Statistics: 2444082 bytes read, 0 seeks
[AVIOContext @ 070b79c0] Statistics: 1732559 bytes read, 0 seeks
[AVIOContext @ 070b79c0] Statistics: 2669247 bytes read, 0 seeks
[AVIOContext @ 070b79c0] Statistics: 2867231 bytes read, 0 seeks
[AVIOContext @ 070b79c0] Statistics: 3358881 bytes read, 0 seeks
[AVIOContext @ 070b79c0] Statistics: 3134336 bytes read, 0 seeks
[AVIOContext @ 070b79c0] Statistics: 2857669 bytes read, 0 seeks
Cliping frame in rate conversion by 0.000008
[mpeg2video @ 02d58340] reencoding frame due to VBV
Last message repeated 9 times
[output stream 0:0 @ 02d5c740] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
frame= 10 fps=0.0 q=15.7 Lsize= 21988kB time=00:00:32.04
bitrate=5621.8kbits/s
video:233kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 9339.131836%
Input file #0 (image_%03d.png):
Input stream #0:0 (video): 10 packets read (24170217 bytes); 10 frames
decoded;
Total: 10 packets (24170217 bytes) demuxed
Output file #0 (transport.ts):
Output stream #0:0 (video): 10 frames encoded; 10 packets muxed (238533
bytes);
Total: 10 packets (238533 bytes) muxed
10 frames successfully decoded, 0 decoding errors
[AVIOContext @ 02d5a3a0] Statistics: 0 seeks, 692 writeouts
What could be the problem ?
debugasm
More information about the ffmpeg-user
mailing list