For example, I've tried:
Code: Select all
m_pPlayer = new VLC::MediaPlayer(media);
...
m_pPlayer->setRate(0.0);
m_pPlayer->setPause(true);
m_pPlayer->play();
m_pPlayer->setPause(true);
m_pPlayer->setPosition(0);
m_pPlayer->setRate(1.0);
Code: Select all
m_pPlayer = new VLC::MediaPlayer(media);
...
m_pPlayer->setRate(0.0);
m_pPlayer->setPause(true);
m_pPlayer->play();
m_pPlayer->setPause(true);
m_pPlayer->setPosition(0);
m_pPlayer->setRate(1.0);
Code: Select all
media.addOption(":start-paused");
--start-paused, --no-start-paused
Start paused
(default disabled)
Pause each item in the playlist on the first frame.
Code: Select all
std::vector<char*> options = { {"--avcodec-skiploopfilter=4"}, {"--avcodec-fast"} }; // Skip deblocking filter for speed on older devices.
m_LibVLC = VLC::Instance(options.size(), options.data());
VLC::Media media(m_LibVLC, videoFile, VLC::Media::FromPath);
media.addOption(":start-paused");
m_pPlayer = new VLC::MediaPlayer(media);
m_pPlayer->play();
https://trac.videolan.org/vlc/@mfkl, can I file a bug somewhere for this issue?
Code: Select all
$ vlc -q --fullscreen file:///home/pi/Desktop/blank_1080p.mp4 vlc://pause:300 file:///home/pi/Desktop/video.mp4 --no-audio -I oldrc --rc-unix /home/pi/vlcsocket
Code: Select all
echo "next" | nc -U -q 1 /home/pi/vlcsocket
Unfortunately, no. I moved on to other priorities and simply didn't switch to libvlc for therapy animation playback.Hi GreaterDane, did you get it fixed?
When I see "start paused", I think "render the first video frame only". At least that's what I was hoping it would do, and I think other people would expect the same. The issues I ran into were with static WMV and MPEG-1 PS files on disk, nothing particularly dynamic.While it would be possible to start paused, it would result in no picture. In fact, depending on the input media format, it would potentially result in no tracks at all, since tracks can be dynamic.
Return to “Development around libVLC”
Users browsing this forum: No registered users and 23 guests