Transcoding doesn't seem to be working

Help
Anonymous
2010-03-17
2013-04-25
  • Anonymous - 2010-03-17

    Hi,

    I've just installed fuppes on a headless ubuntu box.  I enabled transcoding at compile time, however, the system doesn't seem to want to transcode the mp4 files I have.  I'm streaming to a PS3 and for some reason, mp4 files using h264 and aac stutter on it, and thought I might be able to fix this by transcoding to something else.  Under the PS3 section, I've got this:

            <file ext="mp4">                                                                                                                         
              <type>VIDEO_ITEM</type>                                                                                                                
              <mime_type>video/mp4</mime_type>                                                                                                       
              <transcode enabled="true">                                                                                                             
                <ext>mpg</ext>                                                                                                                       
                <mime_type>video/mpeg</mime_type>                                                                                                    
                <transcoder>ffmpeg</transcoder>                                                                                                      
                <video_codec vcodec="h264">mpeg1video</video_codec>                                                                                  
                <audio_codec acodec="aac">mp2</audio_codec>                                                                                          
                <audio_samplerate>44100</audio_samplerate>                                                                                           
                <video_bitrate>1800000</video_bitrate>                                                                                               
              </transcode>                                                                                                                           
            </file>

    Can anyone see why this wouldn't result in .mp4 files using the h264 and aac codecs wouldn't transcode?

    Thanks in advance

    Matt

     
  • headrush69

    headrush69 - 2010-03-17

    Hmm. Would be a waste to have to transcode a format that the PS3 plays natively. 

    Is this over wireless or wired?
    I ask because my entire movie collection is h.264 encoded using aac audio and plays flawlessly.

     
  • headrush69

    headrush69 - 2010-03-17

    Have you tried just using:

    <video_codec>mpeg1video</video_codec>
    <audio_codec>mp2</audio_codec>
    
     
  • headrush69

    headrush69 - 2010-03-17

    forget that last comment, wasn't thinking clearly.

     
  • headrush69

    headrush69 - 2010-03-17

    Does manually trancoding using ffmpeg with those options work OK?

     
  • Anonymous - 2010-03-19

    Thanks for answering.  I've got my ps3 wired to a wireless ap, which connects wirelessly to my main ap at the other end of the house, which is wired to my server.  I don't think wireless is the issue, as I can watch those same video files on my iphone from the same ap just fine.

    ffplay can play the file, so it can decode h264 and aac.  Is there anything wrong with my syntax that anyone can see?

     
  • headrush69

    headrush69 - 2010-03-19

    It's not simply a matter of whether ffplay can play the video.

    You have to manually try the encoding from mp4 to mpeg using ffmpeg using the options you are using above.
    If this doesn't work it will usually give the error so we can see what is missing or needed as ffmpeg options.

    I'm using Linux but should be command line method to run this manually under Windows? (which I assume you're using)

    I've found many times you have to hard code a fps output as some files need that, but if you can run the your transcode manually, it will tell us for sure.

     
  • Anonymous - 2010-03-19

    Hi,

    Thanks again for your response.  Running ffmpeg (on my server - linux box btw), I get:

    matt@mailserver:~/storage/downloads/Revision3/ROFL$ ffmpeg -i rofl-0039-weiners-large.h264.mp4 -vcodec mpeg1video -b 1800k -acodec mp2 -ar 44100 test.mpg
    FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu3~ppa1, Copyright (C) 2000-2009 Fabrice Bellard, et al.
      configuration: -enable-version3 -extra-version=4:0.5+svn20090706-2ubuntu3~ppa1 -prefix=/usr -enable-avfilter -enable-avfilter-lavf -enable-vdpau -enable-bzlib -enable-libgsm -enable-libschroedinger -enable-libspeex -enable-libtheora -enable-libvorbis -enable-pthreads -enable-zlib -disable-stripping -disable-vhook -enable-libmp3lame -enable-libmp3lame -enable-libopencore-amrnb -enable-nonfree -enable-libopencore-amrwb -enable-nonfree -enable-libfaac -enable-nonfree -enable-gpl -enable-postproc -enable-swscale -enable-x11grab -enable-libfaad -enable-libxvid -enable-libx264 -enable-libdc1394 -extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include -enable-shared -disable-static
      libavutil     49.15. 0 / 49.15. 0
      libavcodec    52.20. 0 / 52.20. 0
      libavformat   52.31. 0 / 52.31. 0
      libavdevice   52. 1. 0 / 52. 1. 0
      libavfilter    0. 4. 0 /  0. 4. 0
      libswscale     0. 7. 1 /  0. 7. 1
      libpostproc   51. 2. 0 / 51. 2. 0
      built on Feb 26 2010 22:53:39, gcc: 4.4.1

    Seems stream 0 codec frame rate differs from container frame rate: 59.94 (5994/100) -> 29.97 (30000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rofl-0039-weiners-large.h264.mp4':
      Duration: 00:14:43.48, start: 0.000000, bitrate: 1319 kb/s
        Stream #0.0(eng): Video: h264, yuv420p, 640x360, 29.97 tbr, 29.97 tbn, 59.94 tbc
        Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16
        Stream #0.2(eng): Data: rtp  / 0x20707472
        Stream #0.3(eng): Data: rtp  / 0x20707472
    File 'test.mpg' already exists. Overwrite ?  y
    Output #0, mpeg, to 'test.mpg':
        Stream #0.0(eng): Video: mpeg1video, yuv420p, 640x360, q=2-31, 1800 kb/s, 90k tbn, 29.97 tbc
        Stream #0.1(eng): Audio: mp2, 44100 Hz, stereo, s16, 64 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press  to stop encoding
    frame=  615 fps=111 q=5.8 Lsize=    4832kB time=20.30 bitrate=1950.2kbits/s   
    video:4641kB audio:159kB global headers:0kB muxing overhead 0.673774%

    The resultant video plays fine through fuppes on the PS3, no issues.  So I'm a bit lost as to what the issue is.  If I look at the sqlite database through sqlitebrowser, the relevant database entries show the files I'm trying to play are definitely recognised by fuppes as h264/aac, so I'm not sure why fuppes isn't picking them up to transcode?

     

Log in to post a comment.