Page 1 of 1

Problem transcoding (ubuntu, vorbis, mkv, Samsung D-series)

PostPosted: Tue Dec 06, 2011 7:25 pm
by GuSec
Hi, I'm using Ubuntu 11.10 with serviio 0.6.0.1, streaming to a Samsung UE46D5005!

I'm having some difficulty playing a .mkv-file. The video works fine, as well as the first audio stream [Eng] since it is aac. As soon as I switch to the second stream [Jap] I get the message "Audio codec not supported" on my TV, I figured this is because the second audio stream is encoded in vorbis. So I thought it should work fine with transcoding since serviio supports vorbis audio!

I get the same message though when I have activated transcoding and added this to my profiles.xml (under the "Samsung TV / player (C/D-series)"-section since I'm using that profile):
  Code:
<!-- Test to try and transcode vorbis audio -->
<Video targetContainer="mpegts" targetACodec="ac3">
   <Matches container="matroska" aCodec="vorbis"/>
</Video>


This is my output of ffmpeg -i on the file in question:
  Code:
ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers
  built on Oct  2 2011 15:12:32 with gcc 4.6.1
  configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  avutil      configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avcodec     configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avformat    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avdevice    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avfilter    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  swscale     configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  postproc    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[mpeg4 @ 0x8fd4640] frame skip 8
    Last message repeated 1 times
[matroska,webm @ 0x8fcca40] max_analyze_duration reached
[matroska,webm @ 0x8fcca40] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'SamuraiChamploo-01.mkv':
  Metadata:
    title           : Samurai Champloo - Episode 01: Tempestuous Temperaments
  Duration: 00:23:19.73, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 29.97 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Video
    Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : English Audio
    Stream #0.2(jpn): Audio: vorbis, 48000 Hz, stereo, s16
    Metadata:
      title           : Japanese Audio
    Stream #0.3(eng): Subtitle: ass (default)
    Metadata:
      title           : English Default Subtitles
    Stream #0.4(eng): Subtitle: ass
    Metadata:
      title           : English Subtitles
    Stream #0.5: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : chaucer.TTF
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ECHELON_.TTF


So how to I debug this problem further? My /log/serviio.log is't commenting anything on the matter and I don't know how to proceed. Is the problem because it's the second stream and not the default, first stream? Do serviio only try and transcode at file-loading, and not when changing the stream from the TV?

I know that I am not using the recommended version of ffmpeg with my serviio-version (0.6.0.1) but I would like to wait with compiling my own version (instead of relying on the current repository-version) if this is not the problem. This because the process (removal of the packages) requires the removal of a hell lot of dependent packages and therefore seems a bit complicated!
If this is the problem though, I of course need to do it (if it can't be circumvented in another fashion).

So what to I do to find out the problem? Where do I get additional debug information? :D

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 3:25 am
by bugalugs
Just pre-empting the experts on this forum but I'm sure they are going to ask you to enable the DEBUG parameter in the log4j.xml file and show the generated ffmpeg command line. As it pays to check whether your file is in fact being transcoded correctly. You might even wish to manually transcode the file yourself and then playback natively.

A question I have for you however is how did you switch audio playback to the second audio stream.. :?:

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 7:38 am
by Cerberus
bugalugs wrote:Just pre-empting the experts on this forum but I'm sure they are going to ask you to enable the DEBUG parameter in the log4j.xml file and show the generated ffmpeg command line. As it pays to check whether your file is in fact being transcoded correctly. You might even wish to manually transcode the file yourself and then playback natively.

A question I have for you however is how did you switch audio playback to the second audio stream.. :?:


what he said ;) and can you update your version of FFmpeg as you are using a very old version :)

Personaly id also use MKVmerge and remove all unwanted extra streams to to make file a bit smaller but thats personal preference.

EDIT: removed my brain fart :(

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 1:23 pm
by zip
the file is delivered natively because at this point Serviio has no idea there is the vorbis stream (only indexes the first one). Switching streams is then done on the client on the native file. In order to play your japanese audio you'd have to remove the AAC stream from the file, re-add it to the Serviio library and play then - it would then invoke transcoding of the vorbis track to ac3.

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 5:26 pm
by GuSec
Okay, thanks for your help!
I tried playing a file with vorbis as first track and the transcoding failed (because of the old version maybe?), anyway here below I post some debugging information:
  Code:
DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /home/gusec/Hämtningar/Samurai20.mkv
DEBUG [ProcessExecutor] Starting ffmpeg -i /home/gusec/Hämtningar/Samurai20.mkv -y -vcodec copy -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-3964-MPEG2TS.stf
WARN  [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
DEBUG [TranscodingJobListener] Transcoding finished; successful: false

And here I try the command myself to figure out what error code 1 might mean:
  Code:
ffmpeg -i /home/gusec/Hämtningar/Samurai20.mkv -y -vcodec copy -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-3964-MPEG2TS.stf
ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers
  built on Oct  2 2011 15:12:32 with gcc 4.6.1
  configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  avutil      configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avcodec     configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avformat    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avdevice    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avfilter    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  swscale     configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  postproc    configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[matroska,webm @ 0x946ba40] max_analyze_duration reached
[matroska,webm @ 0x946ba40] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from '/home/gusec/Hämtningar/Samurai20.mkv':
  Metadata:
    title           : Samurai Champloo Episode 20: Elegy of Entrapment, Verse 1
  Duration: 00:23:20.73, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 704x396 [PAR 1:1 DAR 16:9], 29.97 fps, 29.98 tbr, 1k tbn, 29.98 tbc (default)
    Metadata:
      title           : Video
    Stream #0.1(eng): Audio: vorbis, 48000 Hz, stereo, s16 (default)
    Metadata:
      title           : English Audio
    Stream #0.2(jpn): Audio: aac, 48000 Hz, 5.1, s16
    Metadata:
      title           : Japanese Audio
    Stream #0.3(eng): Subtitle: ass (default)
    Metadata:
      title           : Song and Sign Subtitles
    Stream #0.4(eng): Subtitle: ass
    Metadata:
      title           : English Subtitles
    Stream #0.5: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Chaucer.TTF
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Echelon.TTF
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 0x9631da0] channel_layout not specified
[ac3 @ 0x9631da0] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[mpegts @ 0x94deb60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/Serviio/transcoding-temp-3964-MPEG2TS.stf':
  Metadata:
    title           : Samurai Champloo Episode 20: Elegy of Entrapment, Verse 1
    encoder         : Lavf53.2.0
    Stream #0.0: Video: mpeg4, yuv420p, 704x396 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 29.98 tbc (default)
    Metadata:
      title           : Video
    Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, flt, 192 kb/s (default)
    Metadata:
      title           : English Audio
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Input stream #0.1 frame changed from rate:48000 fmt:s16 ch:2 to rate:48000 fmt:flt ch:2
[mpegts @ 0x94deb60] first pts value must set
av_interleaved_write_frame(): Operation not permitted


So, about compiling, this is a list of the packages apt-get wants to remove from my ubuntu 11.10 when I try the first step here http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux (librtmp-dev, libvpx-dev, libx264-dev, x264 are not installed):
  Code:
sudo apt-get remove ffmpeg x264 libx264-dev libvpx-dev librtmp0 librtmp-dev

/../

  apt-transport-https brasero brasero-cdrkit evolution-data-server ffmpeg
  flashplugin-downloader flashplugin-installer gir1.2-totem-1.0
  gir1.2-totem-plparser-1.0 gstreamer0.10-plugins-bad gwibber gwibber-service
  gwibber-service-facebook gwibber-service-identica gwibber-service-twitter
  jockey-common jockey-gtk kerneloops-daemon libbrasero-media3-1 libcurl3
  libcurl3-gnutls libgdata13 libgwibber-gtk2 libgwibber2 liboauth0 libquvi0
  libraptor2-0 librasqal3 librdf0 libreoffice-base-core libreoffice-calc
  libreoffice-common libreoffice-core libreoffice-draw libreoffice-emailmerge
  libreoffice-gnome libreoffice-gtk libreoffice-help-en-gb
  libreoffice-help-en-us libreoffice-help-sv libreoffice-impress
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-sv
  libreoffice-math libreoffice-style-human libreoffice-writer librtmp0
  libslv2-9 libtotem-plparser17 libtotem0 mkvtoolnix mkvtoolnix-gui
  mythes-en-au mythes-en-us openoffice.org-common python-cupshelpers
  python-pycurl python-uno system-config-printer-common
  system-config-printer-gnome system-config-printer-udev totem totem-mozilla
  totem-plugins transmission-gtk ubuntu-desktop virtualbox-4.1

It's a total of 505MB. How do I compile (and remove the old packages first if this is necessary) in a smooth way? It's a hell lot of packages that will disappear, should I just copy and paste this list to "sudo apt-get install" after I've compiled and installed the new ffmpeg-version? Will some of these packages create strange problems with the new ffmpeg? I'm not used to compiling new versions of stuff that this many packages seem to depend on!

I'm scared of breaking a lot of shit here! :o

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 5:39 pm
by zip
if you already deal with this particular file why not just transcode the audio manually and be done with it? it looks like the pts error is caused by bug in FFmpeg which would have to be patched anyway, so newer version will probably not help you. Just transcode it to mkv/mp4 with ac3 audio and you won't get the pts error.

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 5:51 pm
by Cerberus
HOWTO: Install and use the latest FFmpeg and x264 - http://ubuntuforums.org/showthread.php?t=786095

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 6:46 pm
by GuSec
zip wrote:if you already deal with this particular file why not just transcode the audio manually and be done with it? it looks like the pts error is caused by bug in FFmpeg which would have to be patched anyway, so newer version will probably not help you. Just transcode it to mkv/mp4 with ac3 audio and you won't get the pts error.

I'm sorry but I don't quite follow you! In this case I used this file to try and figure out what the problem is, but since this file doesen't work I assume transcoding from vorbis doesen't work for any file and I have a lot of files with vorbis audio content. I don't even know if transcoding works at all for me.

What do you mean with the bug? If it's a bug in this particular version of ffmpeg, won't it be fixed in the version that is used with serviio? 0.8? So vorbis transcoding doesen't work at all? :?:

How should I transcode it without a working ffmpeg? Also, for convenience I would really like real-time transcoding to work, since I have a lot of files with audio that is unsupported by my TV. It seems like a really convenient feature in serviio!
Cerberus wrote:HOWTO: Install and use the latest FFmpeg and x264 - http://ubuntuforums.org/showthread.php?t=786095

But I'm scared of removing all those packages (see my last post)! Can I just reinstall them after compiling and installing this new version of ffmpeg? Is there a risk of random packages not working with the new ffmpeg? Can I stop apt-get from removing those packages at all and only remove ffmpeg and the other packages I should compile?

Is there a repository for ubuntu with newer versions of ffmpeg I could add instead? ;)

I'm very confused!

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 7:02 pm
by Cerberus
best place to ask that is on the forum i posted as they are the experts in ubuntu.

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 7:18 pm
by zip
I'm sorry but I don't quite follow you! In this case I used this file to try and figure out what the problem is, but since this file doesen't work I assume transcoding from vorbis doesen't work for any file and I have a lot of files with vorbis audio content. I don't even know if transcoding works at all for me.

Servio will transcode the files with vorbis if it's the only track unless you hit the FFmpeg error referred below.

What do you mean with the bug? If it's a bug in this particular version of ffmpeg, won't it be fixed in the version that is used with serviio? 0.8? So vorbis transcoding doesen't work at all? :?:

It's a bug of FFmpeg with certain files, not necessarily vorbis related. More here: https://ffmpeg.org/trac/ffmpeg/ticket/177
I'll try to include this patch in next versions of Serviio but you as a Linux user would have to compile that FFmpeg from source anyway. You can try to apply this patch now if you have the knowledge.

How should I transcode it without a working ffmpeg? Also, for convenience I would really like real-time transcoding to work, since I have a lot of files with audio that is unsupported by my TV. It seems like a really convenient feature in serviio!

Your FFmpeg is ok for most files and transcoding will work for most files I assume.

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Wed Dec 07, 2011 7:55 pm
by GuSec
Oh, I see. That's just an awful bug there. So I assume it hasn't been fixed in later versions? There is no sense in going trough all that compiling hassle to even try?

I guess I will just keep my ffmpeg-version and hope that it can handle other transcoding jobs when I run into them and do as you suggested, transcode all the files with these pts-problems manually with some other tool.

Btw, what are the fundamental differences between my old ffmpeg-version (0.7.2) and 0.8 that serviio is currently written for? Are there syntax-differences for ffmpeg or are there just some added transcoding features?

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Thu Dec 08, 2011 4:18 pm
by zip
not much difference AFAIK

Re: Problem transcoding (ubuntu, vorbis, mkv, Samsung D-seri

PostPosted: Fri Dec 09, 2011 11:43 pm
by Cerberus
difference are not much but the version you have has been configured badly so by making a new build u sort all the bad configuration out.