[FFmpeg-user] MPEG-TS file to x264 TS (dropped packets?)
Ibrahim Tachijian
barhom at gmail.com
Tue Nov 26 03:52:59 CET 2013
There is no damage of the input file (which in this case is actually a live
feed from a satellite link). The playback of the input in mpeg2 is perfect
but for some reason transcoding just produced the dropped packets.
Can somebody confirm that they get the same results (The input file is
linked below)
On Mon, Nov 25, 2013 at 4:02 PM, Ibrahim Tachijian <barhom at gmail.com> wrote:
> We usually have no issues with transcoding mpeg2 video to x264. Audio in
> this case is mp2 -> aac.
>
> However this particular file doesnt want to transcode and its just giving
> me a bunch of dropped packets. I have no issues with using the *exact* same
> command line to produce what I want, its just this particular channel
> (source is from sat) that doesnt want to transcode.
>
>
> The issue with how to reproduce:
>
> 1. Download the input file (mpeg2 video with mp2 audio)
> 2. Run the following command to transcode to x264+aac
>
> ffmpeg -analyzeduration 1000000 -i test.ts -c:v libx264 -preset superfast
> -g 25 -crf 15 -maxrate 9000k -bufsize 1500k -filter:v yadif -c:a libfdk_aac
> -b:a 96k -f mpegts test-x264.ts
>
> 3. All frames are dropped for some reason.
>
> Files:
>
> Input file can be downloaded from here (its a recording of a satellite
> channel called MBC MAGHREB AL ARABIA)
>
> https://mega.co.nz/#!PRcHCaJB!IfRFawaT8Kmlc4u_Rxk4cHyNJgFjxvWCq23VYDIofGU
>
>
>
>
> COMPLETE UNCUT:
>
> root at transcoder0:~# ffmpeg -analyzeduration 1000000 -i test.ts -c:v
> libx264 -preset superfast -g 25 -crf 15 -maxrate 9000k -bufsize 1500k
> -filter:v yadif -c:a libfdk_aac -b:a 96k -f mpegts test-x264.ts
> ffmpeg version 1.0.7 Copyright (c) 2000-2013 the FFmpeg developers
> built on Jul 19 2013 07:14:44 with gcc 4.7 (Debian 4.7.2-5)
> configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector
> --param=ssp-buffer-size=4 -Wformat -Werror=format-security '
> --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared
> --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis
> --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc
> --enable-x11grab --enable-libgsm --enable-libtheora
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
> --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx
> --enable-libschroedinger --disable-encoder=libschroedinger
> --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter
> --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb
> --enable-libvo-amrwbenc --enable-libaacplus
> --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray
> --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl
> --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac
> --enable-libdc1394 --disable-altivec --dis libavutil 51. 73.101 / 51.
> 73.101
> libavcodec 54. 59.100 / 54. 59.100
> libavformat 54. 29.104 / 54. 29.104
> libavdevice 54. 2.101 / 54. 2.101
> libavfilter 3. 17.100 / 3. 17.100
> libswscale 2. 1.101 / 2. 1.101
> libswresample 0. 15.100 / 0. 15.100
> libpostproc 52. 0.100 / 52. 0.100
> [mpeg2video @ 0x1f5a4a0] 0x0 is invalid
> Last message repeated 3 times
> [mp2 @ 0x1f5fbc0] Header missing
> [mpeg2video @ 0x1f5a4a0] 0x0 is invalid
> Last message repeated 6 times
> [mpegts @ 0x1f4fd80] max_analyze_duration 1000000 reached at 1008000
> [mpegts @ 0x1f4fd80] PES packet size mismatch
> Last message repeated 1 times
> Input #0, mpegts, from 'test.ts':
> Duration: 19:00:07.54, start: 4978.976522, bitrate: 3 kb/s
> Program 9515
> Metadata:
> service_name : MBC MAGHREB AL ARABIA
> service_provider: Du
> Stream #0:0[0x204]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
> yuv420p, 720x576 [SAR 16:15 DAR 4:3], 15000 kb/s, 45.42 fps, 25 tbr, 90k
> tbn, 50 tbc
> Stream #0:1[0x2aa]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
> stereo, s16, 128 kb/s
> No Program
> Stream #0:2[0x1023]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
> [libx264 @ 0x1fce320] using SAR=16/15
> [libx264 @ 0x1fce320] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
> AVX
> [libx264 @ 0x1fce320] profile High, level 3.0
> [mpegts @ 0x1f5e780] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
> every 40 pkts
> Output #0, mpegts, to 'test-x264.ts':
> Metadata:
> encoder : Lavf54.29.104
> Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 16:15 DAR 4:3],
> q=-1--1, 90k tbn, 25 tbc
> Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 96 kb/s
> Stream mapping:
> Stream #0:0 -> #0:0 (mpeg2video -> libx264)
> Stream #0:1 -> #0:1 (mp2 -> libfdk_aac)
> Press [q] to stop, [?] for help
> PES packet size mismatch0 size= 0kB time=00:00:00.00 bitrate=
> 0.0kbits/s dup=0 drop=1421
> [mpeg2video @ 0x1f5a4a0] ac-tex damaged at 8 29
> [mpeg2video @ 0x1f5a4a0] Warning MVs not available
> [mpeg2video @ 0x1f5a4a0] concealing 315 DC, 315 AC, 315 MV errors in P
> frame
> [mp2 @ 0x1f5ae00] incomplete frame
> Error while decoding stream #0:1: Invalid data found when processing input
> frame= 0 fps=0.0 q=0.0 Lsize= 820kB time=00:00:00.00 bitrate=
> 0.0kbits/s dup=0 drop=1544
> video:0kB audio:731kB subtitle:0 global headers:0kB muxing overhead
> 12.227332%
> root at transcoder0:~#
>
> --
> Ibrahim Tachijian
>
--
Ibrahim Tachijian
More information about the ffmpeg-user
mailing list