Hello,
j-b wrote:
I am sorry, but this doesn't make any sense.
If you made a demuxer plugin for VLC, then you can force it. If not, you cannot.
You seem to have made a FFmpeg modification, but are you sure you did link to the good version ?
If ffplay plays your file as you want, VLC will do the same.
Excuse me, but for me it is not so simple !
FFMPEG contains a set of demuxers, one of them is selected (via "probe" selection process) when a file is loaded.
I wrote and added "my_demuxer" to the ffmpeg "libavformat" library.
I can test it with the "ffplay" program. It works. "my_demuxer" is automaticaly chosen when my specific video files are loaded. In addition, I can force my demuxer with the "-f fmt" option of ffplay (ffplay -f my_demuxer my_video_file.xx).
You seem to have made a FFmpeg modification, but are you sure you did link to the good version ?
Yes, I am. I built the VLC package with the "--with-ffmpeg-tree=/my_ffmpeg_libs" options, and it gave me the libvlc.dll and other modules I needed. It works too.
I show you again a piece of the vlc log:
Code: Select all
main debug: looking for demux2 module: 1 candidate
ffmpeg debug: detected format: my_demux
main debug: selecting program id=0
ffmpeg debug: adding es: video codec = DIVX
ffmpeg debug: AVFormat supported stream
ffmpeg debug: - format = my_demux (raw MPEG4 video format)
ffmpeg debug: - start time = -1
ffmpeg debug: - duration = -1
main debug: using demux2 module "ffmpeg"
In this case (automatic selection) it works.
Now I think I understand why I can not force VLC to use my ffmpeg demuxer : at VLC level, ffmpeg is seen as one unique demuxer, even if in fact it is a set of possible demuxers (mp3, m4v, aac, ogg, ...). VLC adds the ffmpeg laureate to other candidates (if any) then makes its choice (with its own selection process).
My initial question is "Is it possible to force an ffmpeg demuxer (or "sub-demuxer" if you prefer) with VLC ?"
Chris. B.