RudoRoemer / PDB2MovieWeb

Web-based front- and backend for PDB2Movie scripts
GNU General Public License v3.0
1 stars 1 forks source link

Combining movies #2

Closed RudoRoemer closed 6 years ago

RudoRoemer commented 6 years ago

Positive and negative directions should be combined into a single video file. This is implemented, but at present the combined movie does not seem to contain both directions, it seems to be the positive direction only.

SamMoffat commented 6 years ago

Did we find that the problem was a codec issue? I will look into using ffmpeg with a different codec to see if that remedies the problem.

RudoRoemer commented 6 years ago

Yes, it seemed to dis/appear on various video players. Please see if codecs can solve the issue.

SamMoffat commented 6 years ago

I don't seem to be able to recreate the issue on a Windows or Linux machine. When you have the time, could you run this command:

ffmpeg -i "Run-X-modeY-pos.mpg" -i "Run-X-modeY-neg.mpg" -c copy output.mpg

On two files .mpg files, where X is your cutoff and Y is your mode value. If that doesn't produce the error on your machine, I will change pull my changes from pdb2movie onto the test and production servers.

RudoRoemer commented 6 years ago

Output.mpg is still broken! -Rudo

Rudos-iMac e4b4e5d92e484be8c165193594955f963976276e>ffmpeg -i "Run-2.0-mode07-pos.mpg" -i "Run-2.0-mode07-neg.mpg" -c copy output.mpg ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers built with Apple LLVM version 8.1.0 (clang-802.0.42) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --enable-audiotoolbox --enable-sdl2 --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda --enable-videotoolbox --arch=x86_64 --enable-yasm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libavresample 3. 1. 0 / 3. 1. 0 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 Input #0, mpeg, from 'Run-2.0-mode07-pos.mpg': Duration: 00:00:05.70, start: 0.533333, bitrate: 5513 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc Input #1, mpeg, from 'Run-2.0-mode07-neg.mpg': Duration: 00:00:05.70, start: 0.533333, bitrate: 5346 kb/s Stream #1:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc [mpeg @ 0x7f9c5180ba00] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to 'output.mpg': Metadata: encoder : Lavf57.56.101 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mpeg @ 0x7f9c5180ba00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly frame= 171 fps=0.0 q=-1.0 Lsize= 3836kB time=00:00:05.63 bitrate=5578.3kbits/s speed= 152x video:3819kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.434870% Rudos-iMac e4b4e5d92e484be8c165193594955f963976276e>

RudoRoemer commented 6 years ago

I just send you the video files as direct email.

SamMoffat commented 6 years ago

I've just looked at your files. This may not be a codec issue as the time stamps on these files aren't correct. They all say they are 5 seconds long.

Is this hash "e4b4e5d92e484be8c165193594955f963976276e" the name of the download compressed file? I want to look at the files before they are sent over to you.

RudoRoemer commented 6 years ago

ffmpeg -i "concat:001.mpg|002.mpg" out.mpg

just produced a video file that has correct pos and neg modes on ubuntu and MAC. What is different to before is the deleted "-c copy" command. The video is however much reduced in quality.

RudoRoemer commented 6 years ago

ffmpeg -i "concat:001.mpg|002.mpg" -b:v 5840K out.mpg produces better quality, i.e. larger bitrate.

SamMoffat commented 6 years ago

This is an issue that seems to be caused by the parameters set describing the mpeg video file. This isn't always an issue on systems, but I have managed to replicated.

In the new version of PDB2Movie that sues VMD as the renderer, I have changed the output file to an mp4. Whilst this makes additional files for demuxing (concatenating awkward video files), I have found that the output file works confortably on all operating systems I have tried it on and even works in the default player.

I believe upon updating to PDB2Movie-VMD (WIP), this issue should be resolved. Because this isn't directly being addressed, I will leave it up to you to decide if this issue is closed or not.

RudoRoemer commented 6 years ago

Yes, no new version of the problem has appeared. So let's assume this closed.