Page 1 of 1

Can't fast forward, skip etc when transcoding movies.

PostPosted: Sun Dec 15, 2013 11:57 am
by mightymouse2045
Hi there,

I can't fast forward with any movie that's being transcoded...

This is the command being run:

ffmpeg -threads auto -i "/data1/Movies/1.Animation/Wall-E/Wall-e 2008 720p dts.mkv" -y -threads auto -c:v wmv2 -b:v 5000k -maxrate:v 5000k -bufsize:v 5000k -r 24000/1001 -g 15 -c:a wmav2 -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f asf /tmp/Serviio/transcoding-temp-test.stf

If I run that manually and open it in vlc, it's same result I can't fast forward or skip or time jump.

My version of ffmpeg is from latest git build from a week ago.

Can anyone help me out? Is it the ffmpeg version or the ffmpeg command, or something else?

Here's my profile:

  Code:
   <Profile id="MyTablet" name="Samsung Galaxy Tab 10.1" extendsProfileId="1">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
      <Detection>
         <UPnPSearch>
            <FriendlyName>GT-N7100</FriendlyName>            
            <ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>
          </UPnPSearch>
      </Detection>
      <DeviceDescription>
         <FriendlyName>meServiio</FriendlyName>
      </DeviceDescription>
      <Transcoding>
         <!-- if audio is DTS,DolbyTrueHD, audio must be transcoded -->
          <Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="2440" forceStereo="true" maxHeight="720">
             <Matches container="*" aCodec="dca" />
            < Matches container="*" aCodec="truehd" />
          </Video>
          <Audio targetContainer="mp3">
            <Matches container="flac" />
            <Matches container="ogg" />
            <Matches container="adts" />
            <Matches container="mp4" />
         </Audio>         
      </Transcoding>
      <OnlineTranscoding keepStreamOpen="false">
         <Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="2440" forceStereo="true" maxHeight="720">
            <Matches container="*"/>
         </Video>
      </OnlineTranscoding>
   </Profile>

Re: Can't fast forward, skip etc when transcoding movies.

PostPosted: Sun Dec 15, 2013 5:56 pm
by mightymouse2045
mightymouse2045 wrote:Hi there,

I can't fast forward with any movie that's being transcoded...

This is the command being run:

ffmpeg -threads auto -i "/data1/Movies/1.Animation/Wall-E/Wall-e 2008 720p dts.mkv" -y -threads auto -c:v wmv2 -b:v 5000k -maxrate:v 5000k -bufsize:v 5000k -r 24000/1001 -g 15 -c:a wmav2 -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f asf /tmp/Serviio/transcoding-temp-test.stf

If I run that manually and open it in vlc, it's same result I can't fast forward or skip or time jump.

My version of ffmpeg is from latest git build from a week ago.

Can anyone help me out? Is it the ffmpeg version or the ffmpeg command, or something else?



Ok I just did a full static build for all versions of dependencies mentioned in the readme file for Serviio, and -Dffmpeg.location=/opt/serviio/bin/ffmpeg

So I have a dedicated build of, libass, rtmp, ffmpeg, x264 etc etc just for serviio, but still same problem. I can't fast forward etc when encoding.

So yeah any ideas would be appreciated....

Re: Can't fast forward, skip etc when transcoding movies.

PostPosted: Sun Dec 15, 2013 6:53 pm
by zip
When transcoding, Serviio only supports time based seek (not byte based seek), which in DLNA is optional. So it's possible your device doesn't support it.

Re: Can't fast forward, skip etc when transcoding movies.

PostPosted: Mon Dec 16, 2013 6:42 am
by mightymouse2045
zip wrote:When transcoding, Serviio only supports time based seek (not byte based seek), which in DLNA is optional. So it's possible your device doesn't support it.


Ok so it seems that encoding in asf is what is causing it.

If I encode in mpegts, then I can seek (time based increments).

Ok so we can close this thread out and I'll wait for my other thread to be answered about encoding options http://forum.serviio.org/viewtopic.php?f=7&t=15090, specifically the thread part, because that is why I encode with asf as opposed to x264, or mp4 etc