Page 1 of 1

MKV remuxing without transcoding

PostPosted: Mon Feb 20, 2012 9:05 pm
by ssmanian
I have a Synology NAS running Serviio, the renderer is a Sharp Aquos. I can usually watch movies from the NAS fairly well. When playing MKV files, I see that my serviio is running ffmpeg to transcode these mkv files to stf's.. Because of the lack of CPU power on the Synology, it takes several hours and sometimes days to convert these, which makes it nearly useless. After reading through this forum and synology forums, I have tried to run ffmpeg and once the stf file is created, I rename it to mpeg and use it. This is to avoid the transcoding on the fly everytime. However, the mpeg does not have audio, that makes it useless. I have read in some of the forums that you dont have to transcode the mkv files, just remuxing them would work. Is that right? If so how do I do that?

Secondly, can I have a background task that would convert these MKVs and store them in mpeg or some other format (without a lot of loss in quality) so that I dont have to transcode these files on the fly and just use them? If so how do can I do that. The following is the output of ffmpeg of the file that I was complaining to not have any audio.

DiskStation> ffmpeg -i kalvarey-temp-124-MPEG2PS.stf
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 4 2011 02:28:29 with gcc 4.2.1
configuration: --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame
libavutil 50. 40. 1 / 50. 40. 1
libavcodec 52.120. 0 / 52.120. 0
libavformat 52.108. 0 / 52.108. 0
libavdevice 52. 4. 0 / 52. 4. 0
libavfilter 1. 77. 0 / 1. 77. 0
libswscale 0. 14. 0 / 0. 14. 0
Input #0, mpeg, from 'kalvarey-temp-124-MPEG2PS.stf':
Duration: 00:02:52.29, start: 1.000000, bitrate: 23193 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 1920x816 [PAR 1:1 DAR 40:17], 104857 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
At least one output file must be specified
DiskStation>

Thanks
Senthil

Re: MKV remuxing without transcoding

PostPosted: Mon Feb 20, 2012 9:36 pm
by Cerberus
thats correct that file has not audio track.

Re: MKV remuxing without transcoding

PostPosted: Mon Feb 20, 2012 11:32 pm
by ssmanian
Thanks for the reply. Can you please let me know why the original mkv file plays fine with audio on a VLC player. So what would be the reason for ffmpeg to transcode it without the audio?

Also, can I just remux the mkv file without transcoding it?

Thanks

Re: MKV remuxing without transcoding

PostPosted: Mon Feb 20, 2012 11:53 pm
by Cerberus
ssmanian wrote:Thanks for the reply. Can you please let me know why the original mkv file plays fine with audio on a VLC player. So what would be the reason for ffmpeg to transcode it without the audio?

Also, can I just remux the mkv file without transcoding it?

Thanks


i wouldnt know as i havent seen info on original file, but sharp have bad support so answer is more than likely going to be no.

Re: MKV remuxing without transcoding

PostPosted: Fri Feb 24, 2012 2:23 am
by ssmanian
Update - After playing with ffmpeg for a while, I was able to transcode the mkv file to a stf file using ffmpeg and renamed it to mpeg. My TV can play this well and I did not notice much of a degrade in the picture quality. Transcoding on a synology with a low power CPU is extremely slow and painful but atleast there is a way to play these files.