Saturday, January 5, 2013

FFMpeg parameters to transcode enigma2 recordings

After a lot of trial and error I found that the following ffmpeg command line work well with transcoding recordings from my enigma2 satelite box. For some reason a few SD channels transmit with a very high bitrate and encoded in mpeg2. With the transcoding to h264 I manage to get the file size down to about 1/3th the original without visibly lowered quality. In this example the recording has two different audio streams which I only copy.

start /low  ffmpeg.exe -vsync 0 -copyts -i "input.ts" -map 0:0 -map 0:1 -map 0:2 -codec:v libx264 -g 50 -crf 22 -aud 1 -mpegts_service_id 0xBB9 -codec:a copy -codec:a copy -y -f mpegts "output.ts"

The ffmpeg version I use is 20121230-git-518239c.

No comments:

Post a Comment