Flux à partir d'un fichier MP4 sur RTSP avec ffserver

Je suis en train de diffuser un fichier mp4 par RTSP, à l'aide de ffserver avec pas de chance jusqu'à présent. Je veux juste stream directement depuis le fichier, sans alimentation à partir de ffmpeg (pas de transcodage). Mais je l'ai fait le travail avec la vidéo mpg.

Voici mon ffserver fichier de config

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 500000
CustomLog -
NoDaemon

RTSPPort 7654
RTSPBindAddress 0.0.0.0

<Stream test1-rtsp>
    Format rtp
    File "/home/g/video_streaming/sample3-mpeg2.mpg"
</Stream>
<Stream test2-rtsp>
    Format rtp
    File "/home/g/video.mp4"
</Stream>

Lorsque je lance ffserver, tout semble aller bien basé sur le journal de sortie:

$ ./dev/ffmpeg/ffserver -f ffserver-sample.conf
ffserver version N-45673-gd0c27e8 Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct 18 2012 10:36:52 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration:
  libavutil      51. 76.100 /51. 76.100
  libavcodec     54. 66.100 /54. 66.100
  libavformat    54. 33.100 /54. 33.100
  libavdevice    54.  3.100 /54.  3.100
  libavfilter     3. 19.103 / 3. 19.103
  libswscale      2.  1.101 / 2.  1.101
  libswresample   0. 16.100 / 0. 16.100
Thu Oct 18 11:54:22 2012 Opening file '/home/g/video.mp4'
Thu Oct 18 11:54:22 2012 Opening file '/home/g/video.mp4'
Thu Oct 18 11:54:23 2012 Opening file '/home/g/video_streaming/sample3-mpeg2.mpg'
Thu Oct 18 11:54:23 2012 [mpeg @ 0x1dae3c0]max_analyze_duration 5000000 reached at 5005000
Thu Oct 18 11:54:23 2012 Opening file '/home/g/video_streaming/sample3-mpeg2.mpg'
Thu Oct 18 11:54:23 2012 [mpeg @ 0x1dae3c0]max_analyze_duration 5000000 reached at 5005000
Thu Oct 18 11:54:23 2012 FFserver started.

Enfin, si je lance ffplay afin de tester le serveur, tout fonctionne bien pour les fichier mpg, mais pas pour le mp4:

$ ffplay rtsp://192.168.1.99:7654/test2-rtsp
ffplay version N-45656-g916352f Copyright (c) 2003-2012 the FFmpeg developers
  built on Oct 17 2012 16:14:14 with gcc 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5.1)
  configuration:
  libavutil      51. 76.100 /51. 76.100
  libavcodec     54. 66.100 /54. 66.100
  libavformat    54. 33.100 /54. 33.100
  libavdevice    54.  3.100 /54.  3.100
  libavfilter     3. 19.103 / 3. 19.103
  libswscale      2.  1.101 / 2.  1.101
  libswresample   0. 16.100 / 0. 16.100
rtsp://192.168.1.99:7654/test2-rtsp: Invalid data found when processing input

Server's output:

Thu Oct 18 11:57:51 2012 FFserver started.
Thu Oct 18 11:58:01 2012 192.168.1.101 - - [DESCRIBE] "rtsp://192.168.1.99:7654/test2-rtsp RTSP/1.0" 200 167
Segmentation fault (core dumped)

Je ne sais pas vraiment ce que j'ai peut-être manquant. Je viens de lire dans la doc officielle que le streaming à partir d'un fichier est une sorte de cassé. Depuis, je ne sais pas vraiment si c'est à jour, j'ai décidé de faire un essai ici.

De l'aide ou des suggestions? Alternatives?

Merci à l'avance,

OriginalL'auteur sirlion | 2012-10-18