[FFmpeg-user] Properly encoding files to achieve best playback streaming from Wowza media server

Rafel Coyle Rafel.Coyle at Earthlink.net
Sat Mar 2 18:40:46 CET 2013


I have several mp4 files that I need to encode for playback over the 
internet.  I will be streaming to my client windows application  I can 
test using ffplay.exe.  I am trying to find the best encode settings and 
output.  Should I encode to mp4, and what other encode settings should I 
use.

Also, I am string to implement a seek operation to reposition the play 
to a certain point in time.  At present I get errors and the video gets 
a bit jumpy and the audio play gets a bit jumpy also. This "jumpy" play 
occurs for a few seconds and then the video seems to straighten out, 
however, if I seek to 95 percent of the file and then seek back the 
jumpy play never stops.

Attached is the logfile from the video play.  Again, if you have any 
information in the encoding parameters that I should use I would really 
appreciate it.
-------------- next part --------------
ffplay version N-50025-gb8bb661 Copyright (c) 2003-2013 the FFmpeg developers
  built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.103 / 54. 91.103
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 38.100 /  3. 38.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Metadata:
trackinfo:
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            mp4a
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            avc1
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            rtp 
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            rtp 
  audiochannels         2.00
  audiosamplerate       44100.00
  videoframerate        29.97
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 640.00
  height                480.00
  frameWidth            640.00
  frameHeight           480.00
  displayWidth          640.00
  displayHeight         480.00
  framerate             29.97
  moovposition          36.00
  duration              359.86
[h264 @ 024cc7e0] AVC: nal size 21135390
[h264 @ 024cc7e0] no frame!
Input #0, flv, from 'rtmp://192.168.2.185:1935/vod/41333-82512.mp4':
  Metadata:
    audiochannels   : 2
    videoframerate  : 30
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 66
    frameWidth      : 640
    frameHeight     : 480
    displayWidth    : 640
    displayHeight   : 480
    moovposition    : 36
  Duration: 00:05:59.86, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp
[h264 @ 024cc7e0] AVC: nal size 21135390
[h264 @ 024cc7e0] no frame!
Seek to 51% ( 0:03:04) of total duration ( 0:05:59)       
Metadata:
trackinfo:
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            mp4a
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            avc1
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            rtp 
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            rtp 
  audiochannels         2.00
  audiosamplerate       44100.00
  videoframerate        29.97
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 640.00
  height                480.00
  frameWidth            640.00
  frameHeight           480.00
  displayWidth          640.00
  displayHeight         480.00
  framerate             29.97
  moovposition          36.00
  duration              359.86
[flv @ 02498a00] Stream discovered after head already parsed
[h264 @ 024cc7e0] AVC: nal size 21135390
[h264 @ 024cc7e0] no frame!
Seek to 77% ( 0:04:36) of total duration ( 0:05:59)       
Metadata:
trackinfo:
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            mp4a
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            avc1
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            rtp 
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            rtp 
  audiochannels         2.00
  audiosamplerate       44100.00
  videoframerate        29.97
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 640.00
  height                480.00
  frameWidth            640.00
  frameHeight           480.00
  displayWidth          640.00
  displayHeight         480.00
  framerate             29.97
  moovposition          36.00
  duration              359.86
[h264 @ 024cc7e0] AVC: nal size 21135390
[h264 @ 024cc7e0] no frame!
Seek to 21% ( 0:01:15) of total duration ( 0:05:59)       
Metadata:
trackinfo:
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            mp4a
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            avc1
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            rtp 
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            rtp 
  audiochannels         2.00
  audiosamplerate       44100.00
  videoframerate        29.97
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 640.00
  height                480.00
  frameWidth            640.00
  frameHeight           480.00
  displayWidth          640.00
  displayHeight         480.00
  framerate             29.97
  moovposition          36.00
  duration              359.86
[h264 @ 024cc7e0] AVC: nal size 21135390
[h264 @ 024cc7e0] no frame!
Seek to 95% ( 0:05:39) of total duration ( 0:05:59)       
Metadata:
trackinfo:
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            mp4a
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            avc1
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             600.00
  length                215917.00
  language              eng
sampledescription:
  sampletype            mp4s
  timescale             44100.00
  length                15869952.00
  language              eng
sampledescription:
  sampletype            rtp 
  timescale             90000.00
  length                32375390.00
  language              eng
sampledescription:
  sampletype            rtp 
  audiochannels         2.00
  audiosamplerate       44100.00
  videoframerate        29.97
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 640.00
  height                480.00
  frameWidth            640.00
  frameHeight           480.00
  displayWidth          640.00
  displayHeight         480.00
  framerate             29.97
  moovposition          36.00
  duration              359.86
[h264 @ 024cc7e0] AVC: nal size 21135390
[h264 @ 024cc7e0] no frame!
Seek to 11% ( 0:00:40) of total duration ( 0:05:59)       
Seek to 11% ( 0:00:40) of total duration ( 0:05:59)       
WriteN, RTMP send error 10038 (34 bytes)
WriteN, RTMP send error 10038 (34 bytes)
WriteN, RTMP send error 10038 (34 bytes)
rtmp://192.168.2.185:1935/vod/41333-82512.mp4: error while seeking
Seek to 11% ( 0:00:40) of total duration ( 0:05:59)       
WriteN, RTMP send error 10038 (34 bytes)
WriteN, RTMP send error 10038 (34 bytes)
WriteN, RTMP send error 10038 (34 bytes)
rtmp://192.168.2.185:1935/vod/41333-82512.mp4: error while seeking


More information about the ffmpeg-user mailing list