You are not logged in.

#1 2014-10-25 14:19:17

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

[SOLVED] Convertion mpeg4/ts stream from satellite box to x264/mkv

Hi,

I have been used to convert various stream using handbrake but now I am stuck.

Here is my source stream mediainfo

eneral
ID                                       : 1 (0x1)
Complete name                            : cat_all.TS
Format                                   : MPEG-TS
File size                                : 12.0 GiB
Duration                                 : 3h 47mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 7 552 Kbps

Video
ID                                       : 611 (0x263)
Menu ID                                  : 6301 (0x189D)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 3 frames
Format settings, GOP                     : M=4, N=24
Codec ID                                 : 27
Duration                                 : 3h 47mn
Bit rate                                 : 6 985 Kbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.135
Stream size                              : 11.1 GiB (92%)            
Encryption                               : Seca Mediaguard 1/2       
Color primaries                          : BT.709                    
Transfer characteristics                 : BT.709                    
Matrix coefficients                      : BT.709                    
                                                                     
Audio                                                                
ID                                       : 612 (0x264)               
Menu ID                                  : 6301 (0x189D)             
Format                                   : MPEG Audio                
Format version                           : Version 1                 
Format profile                           : Layer 2                   
Codec ID                                 : 4                         
Duration                                 : 3h 47mn                   
Bit rate mode                            : Constant                  
Bit rate                                 : 192 Kbps                  
Channel(s)                               : 2 channels                
Sampling rate                            : 48.0 KHz                  
Compression mode                         : Lossy                     
Delay relative to video                  : -577ms                    
Stream size                              : 312 MiB (3%)              
Language                                 : French                    
Encryption                               : Seca Mediaguard 1/2 

I have no problem to read the raw stream with vlc 2.1.5.

If I use handbrake to convert it get stuck

[h264 @ 0x7ff5cc06a5e0] non-existing PPS 0 referenced
[h264 @ 0x7ff5cc06a5e0] decode_slice_header error
[h264 @ 0x7ff5cc06aba0] no frame!

If I use ffmpeg to remux

ffmpeg -i cat_all.TS -vcodec copy -acodec copy cat_all_ffmpeg_copy.mpg
 

I get some error

mpeg @ 0x1ecbe40] buffer underflow st=0 bufi=250556 size=254017
[mpeg @ 0x1ecbe40] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x1ecbe40] buffer underflow st=0 bufi=250556 size=254017
[mpeg @ 0x1ecbe40] buffer underflow st=0 bufi=252597 size=254017
[mpeg @ 0x1ecbe40] packet too large, ignoring buffer limits to mux it
[mpeg @ 0x1ecbe40] buffer underflow st=0 bufi=252597 size=254017
frame=20439 fps=5167 q=-1.0 Lsize=  377194kB time=00:06:54.55 bitrate=7453.7kbits/s    
video:365867kB audio:9575kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.466635%
Received signal 2: terminating.

but eventually get a file which only the sound can be read with vlc.


ffmpeg version

ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 15 2014 10:59:16 with gcc 4.9.1 (GCC) 20140903 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil      54.  7.100 / 54.  7.100
libavcodec     56.  1.100 / 56.  1.100
libavformat    56.  4.101 / 56.  4.101
libavdevice    56.  0.100 / 56.  0.100
libavfilter     5.  1.100 /  5.  1.100
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  0.100 /  3.  0.100
libswresample   1.  1.100 /  1.  1.100
libpostproc    53.  0.100 / 53.  0.100

Any idea about next steps to test?

Last edited by kamelie1706 (2014-10-25 14:52:58)

Offline

#2 2014-10-25 14:52:24

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: [SOLVED] Convertion mpeg4/ts stream from satellite box to x264/mkv

ffmpeg -i cat_all.TS -vcodec copy -acodec copy cat_all_ffmpeg_copy.mp4

is acutally working and now the stream can be reencode with handbrake

Offline

Board footer

Powered by FluxBB