[HELP] Trouble reading Pointer file in MXF type file
#1
I need to transode all the streams from a folder into a single h264 with 4 split mono audio tracks.
I am using Win7 Pro 64bit

I have a pseudo MXF structure with a .mov pointer file. There is one video stream and 4 separate audio streams. 
They look like this:
[Image: Ugxtf.jpg]
Hybrid will read the .vid file and transcode it correctly, but I cannot access the audio streams. 

When I load only the .'mov pointer file' Hybrid returns a 0 byte filesize error. Or an error showing that vspipe.exe has stopped working.

With ffmpeg I can force it to read the pointer as per the instructions on stack exchange
Basically I use 
ffmpeg -enable_drefs 1 -use_absolute_path 1 -i camb_onitefire_050914.mov -map 0:v -map 0:a camb_onitefire_A.mp4
But I have to run ffmpeg from each container folder to do this. That is why I would like to use Hybrid with Job Queue.Please, read the 'Infos needed to fix&reproduce bugs,..'-sticky before you post about a problem.

I tried to run the debug process but the application crashed before it could write the file.
UPDATE: I managed to get a debug log before a crash. I am testing with a 2 audio stream clip but the issue is the same.


However I have zipped a folder that anyone can try transcoding. 
Its 433mb unfortunately, its the smallest file I have.  I have placed it on my G drive

Test folder
Reply
#2
Joining the separate audio streams into one isn't the problem 'Audio->Bast->Audio Encoding->Merge audio streams'  (+ custom) can do that.
Problem is the decoding of the video stream since Hybrid normally doesn't use '-enable_drefs 1 -use_absolute_path 1' as an option.

Busy today after work, but I can look into it over the weekend.

Main problems are probably:
1. find a way to differentiate such files from others.
Preferable using:
mediainfo --full "PATH TO FILE"
But if
ffmpeg -i "path to file"
or
mplayer -v -msglevel identify=6 -vo null -ao null -frames 0 "PATH TO FILE"
would output something unique for such a file that would be okay too.

2. figuring out how to decode such a file
with:
a. ffmpeg (that you already solved)
b. mplayer (would be nice to have)
c. Avisynth (to allow Avisynth filtering)
d. Vapoursynth (to allow Vapoursynth filtering)

3. check whether the timecode and hdr data can/should be used somehow
Timecode data for example is dropped by MediaInfo:
Time code of first frame                 : 00:16:54:23
Time code, striped                       : Yes
Time code, striped                       : Yes
MediaInfo doesn't report anything about the hdr data.

-> If you got time any can help with any of the points (especially point 1 might be easier for you to solve since you probably got more such files) any help is appreciated.

Will report back once I had some time to look at this over the weekend.

Cu Selur
Reply
#3
Small info, audio is also not that easy:
ffmpeg -y -enable_drefs 1 -use_absolute_path 1 -threads 8 -i "C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov" -map 0:1 -vn -sn -ac 4 -ar 48000 -filter_complex "[0:1][0:2][0:3][0:4] amerge=inputs=4" "H:\Temp\iId_1_aid_0_lang_en_DELAY_-43ms_05_32_16_7210_01.wav"
also fails with:
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
This might be due to the time codes:
Metadata:
    creation_time   : 2017-02-19T23:28:09.000000Z
  Duration: 00:02:16.02, start: 0.000000, bitrate: 1 kb/s
    Stream #0:0(eng): Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
      timecode        : 00:16:54:23
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:5(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Handle Data Handler
      timecode        : 00:16:54:238
-> So extracting audio as wav or flac might also be a challenge. Sad

Cu Selur

Ps.: audio layout will be guessed atm. to 4.0

PPs.: Video also has some problems,...
ffplay  -enable_drefs 1 -use_absolute_path 1 -i "C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov"
Fails with:
Could not find codec parameters for stream 0 (Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s): unspecified pixel format
MediaInfo reported:
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:1:1
Bit depth                                : 8 bits
so adding '-pixel_format yuv411p8' to ffmpeg might help with that. (ffplay doesn't seem to support pixel_format)
Reply
#4
(01.12.2017, 06:28)Selur Wrote: Joining the separate audio streams into one isn't the problem 'Audio->Bast->Audio Encoding->Merge audio streams'  (+ custom) can do that.
Problem is the decoding of the video stream since Hybrid normally doesn't use '-enable_drefs 1 -use_absolute_path 1' as an option.

Busy today after work, but I can look into it over the weekend.

Main problems are probably:
1. find a way to differentiate such files from others.
Preferable using:
mediainfo --full "PATH TO FILE"
But if
ffmpeg -i "path to file"
or
mplayer -v -msglevel identify=6 -vo null -ao null -frames 0 "PATH TO FILE"
would output something unique for such a file that would be okay too.

2. figuring out how to decode such a file
with:
a. ffmpeg (that you already solved)
b. mplayer (would be nice to have)
c. Avisynth (to allow Avisynth filtering)
d. Vapoursynth (to allow Vapoursynth filtering)

3. check whether the timecode and hdr data can/should be used somehow
Timecode data for example is dropped by MediaInfo:
Time code of first frame                 : 00:16:54:23
Time code, striped                       : Yes
Time code, striped                       : Yes
MediaInfo doesn't report anything about the hdr data.

-> If you got time any can help with any of the points (especially point 1 might be easier for you to solve since you probably got more such files) any help is appreciated.

Will report back once I had some time to look at this over the weekend.

Cu Selur
Wow, thank you for the prompt reply. I really appreciate any time you have to look into it for me. TC would be nice to retain, I don't think that there is any HDR content as it is all SD resolution DV25.
Reading the execution log at the bottom of Hybrid I see:

Quote:  Grabbing video ids for 7PMb_TownsvilleRAP_1007.mov.
  -> Video ids found: 0
 Analyzing video streams...
  Analyzing video stream (0).
Does this mean that it cannot recognize the video stream or that it has found the 'first' video stream?
Sorry I am not sure what you mean by how to "differentiate such files from others". What function should I test this with?
Reply
#5
Does this mean that it cannot recognize the video stream or that it has found the 'first' video stream?
That means it found a video stream and tries to analyse it.
Looking at the debug output, Hybrid does identify the video mainly with MediaInfo and the data seems to be correct so far.

Sorry I am not sure what you mean by how to "differentiate such files from others". What function should I test this with?
Something unique info about those files need to be identified, so that Hybrid knows that it needs to handle the file in a special way. (i.e. adding '-enable_drefs 1 -use_absolute_path 1' to the ffmpeg calls)

Cu Selur

Ps.: off to work now
Reply
#6
(01.12.2017, 07:03)Selur Wrote: Something unique info about those files need to be identified, so that Hybrid knows that it needs to handle the file in a special way. (i.e. adding '-enable_drefs 1 -use_absolute_path 1' to the ffmpeg calls)

Cu Selur

Ps.: off to work now
Oh Ok, The media container folder always has a .vmf extension. And the .mov pointer file always has the same name as the container folder (except for the extension). There are other .vmf extensions around according to google but only one is a video extension. The ones that I have were made by Grass Valley for their K2 server. Strangely their modern editing applications no longer support the format.
So the easiest thing would be to load a .vmf container folder as a source, then Hybrid would recognize the extension and look inside for the pointer clip and media streams.

Also its great that your app doesn't automatically deinterlace the output to mp4, as I need to keep the interlaced video and discreet audio tracks. Unfortunately all other apps either comb the video or mono the audio Sad

Have fun at work ;-)
Reply
#7
Does:
ffmpeg -y -enable_drefs 1 -use_absolute_path 1 -i "C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov" -map 0:1 -vn -sn -ac 4 -ar 48000 -filter_complex "[0:1][0:2][0:3][0:4] amerge=inputs=4" -f wav "H:\Temp\iId_1_aid_0_lang_en_DELAY_-43ms_10_44_56_3010_01.wav"
(with adjusted paths) work for you?
Because with the sample I got for you it does not and throws:
G:\Hybrid>ffmpeg -y -enable_drefs 1 -use_absolute_path 1 -i "C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov" -map 0:1 -vn -sn -ac 4 -ar 48000 -filter_complex "[0:1][0:2][0:3][0:4] amerge=inputs=4" -f wav "H:\Temp\iId_1_aid_0_lang_en_DELAY_-43ms_10_44_56_3010_01.wav"
ffmpeg version N-89106-gfb791d2876 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (Rev1, Built by MSYS2 project)
  configuration:  --enable-avisynth --enable-gcrypt --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-cuda --enable-cuvid --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmfx --enable-libmodplug --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp --enable-libxavs --enable-libxvid --enable-libzimg --enable-libsnappy --enable-gpl --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-libs=-lpsapi --enable-version3 --enable-filter=frei0r --disable-debug
  libavutil      56.  0.100 / 56.  0.100
  libavcodec     58.  3.102 / 58.  3.102
  libavformat    58.  2.100 / 58.  2.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  1.100 /  7.  1.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] Opening 'video.vid' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] stream 0, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/video.vid', dir='camb_730_Mackay2_2002(1).vmf', filename='video.vid', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] Opening 'audio_0.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] stream 1, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_0.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_0.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] Opening 'audio_1.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] stream 2, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_1.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_1.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] Opening 'audio_2.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] stream 3, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_2.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_2.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] Opening 'audio_3.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] stream 4, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_3.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_3.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024070bec220] Could not find codec parameters for stream 0 (Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov':
  Metadata:
    creation_time   : 2017-02-19T23:28:09.000000Z
  Duration: 00:02:16.02, start: 0.000000, bitrate: 1 kb/s
    Stream #0:0(eng): Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
      timecode        : 00:16:54:23
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:5(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Handle Data Handler
      timecode        : 00:16:54:23
Stream mapping:
  Stream #0:1 (pcm_s16le) -> amerge:in0
  Stream #0:2 (pcm_s16le) -> amerge:in1
  Stream #0:3 (pcm_s16le) -> amerge:in2
  Stream #0:4 (pcm_s16le) -> amerge:in3
  amerge -> Stream #0:0 (pcm_s16le)
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
[Parsed_amerge_0 @ 0000024070c02a40] No channel layout for input 1
[Parsed_amerge_0 @ 0000024070c02a40] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
Output #0, wav, to 'H:\Temp\iId_1_aid_0_lang_en_DELAY_-43ms_10_44_56_3010_01.wav':
  Metadata:
    ISFT            : Lavf58.2.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 4.0, s16, 3072 kb/s (default)
    Metadata:
      encoder         : Lavc58.3.102 pcm_s16le
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Problem is I don't know why the 'Finishing stream 0:0 without any data written to it.' happens.

Cu Selur
Reply
#8
Similar problem with the video:
ffmpeg -y -enable_drefs 1 -use_absolute_path 1 -i "C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov" -map 0:0 -an -sn  -vsync 0 -pix_fmt yuv420p  -f rawvideo nul
returns:
ffmpeg version N-89106-gfb791d2876 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (Rev1, Built by MSYS2 project)
  configuration:  --enable-avisynth --enable-gcrypt --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-cuda --enable-cuvid --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmfx --enable-libmodplug --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp --enable-libxavs --enable-libxvid --enable-libzimg --enable-libsnappy --enable-gpl --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-libs=-lpsapi --enable-version3 --enable-filter=frei0r --disable-debug
  libavutil      56.  0.100 / 56.  0.100
  libavcodec     58.  3.102 / 58.  3.102
  libavformat    58.  2.100 / 58.  2.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  1.100 /  7.  1.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] Opening 'video.vid' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] stream 0, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/video.vid', dir='camb_730_Mackay2_2002(1).vmf', filename='video.vid', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] Opening 'audio_0.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] stream 1, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_0.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_0.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] Opening 'audio_1.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] stream 2, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_1.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_1.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] Opening 'audio_2.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] stream 3, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_2.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_2.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] Opening 'audio_3.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] stream 4, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_3.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_3.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002058f94b7c0] Could not find codec parameters for stream 0 (Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov':
  Metadata:
    creation_time   : 2017-02-19T23:28:09.000000Z
  Duration: 00:02:16.02, start: 0.000000, bitrate: 1 kb/s
    Stream #0:0(eng): Video: dvvideo (dvpp / 0x70707664), none, 720x576, 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
      timecode        : 00:16:54:23
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:5(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Handle Data Handler
      timecode        : 00:16:54:23
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
Nothing was written into output file 0 (nul), because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
-> problem is I can't get anything out of the mov file with ffmpeg atm.Sad

Looking at the debug output:
G:\Hybrid>ffmpeg -y -enable_drefs 1 -use_absolute_path 1 -loglevel debug -i "C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov" -map 0:0 -an -sn  -vsync 0 -pix_fmt yuv420p  -f rawvideo nul
I get:
ffmpeg version N-89106-gfb791d2876 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (Rev1, Built by MSYS2 project)
  configuration:  --enable-avisynth --enable-gcrypt --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-cuda --enable-cuvid --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmfx --enable-libmodplug --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp --enable-libxavs --enable-libxvid --enable-libzimg --enable-libsnappy --enable-gpl --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-libs=-lpsapi --enable-version3 --enable-filter=frei0r --disable-debug
  libavutil      56.  0.100 / 56.  0.100
  libavcodec     58.  3.102 / 58.  3.102
  libavformat    58.  2.100 / 58.  2.100
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  1.100 /  7.  1.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-enable_drefs' ... matched as AVOption 'enable_drefs' with argument '1'.
Reading option '-use_absolute_path' ... matched as AVOption 'use_absolute_path' with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument '0'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option 'nul' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Applying option vsync (video sync method) with argument 0.
Successfully parsed a group of options.
Parsing a group of options: input url C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov.
Successfully parsed a group of options.
Opening an input file: C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov.
[NULL @ 00000241a587c040] Opening 'C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov' for reading
[file @ 00000241a587c880] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] volume default, len 7
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] filename video.vid, len 9
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] nlvl from 1, nlvl to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 0, len 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] dir camb_730_Mackay2_2002(1).vmf
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 2, len 76
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] path /VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/video.vid
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 11, len 6
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 18, len 69
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 19, len 8
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 15, len 16
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 14, len 20
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type -1, len 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Processing st: 0, edit list 0 - media time: 0, duration: 340000
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Opening 'video.vid' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] stream 0, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/video.vid', dir='camb_730_Mackay2_2002(1).vmf', filename='video.vid', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] volume default, len 7
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] filename audio_0.pcm, len 11
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] nlvl from 1, nlvl to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 0, len 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] dir camb_730_Mackay2_2002(1).vmf
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 2, len 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] path /VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_0.pcm
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 11, len 6
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 18, len 71
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 19, len 8
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 15, len 16
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 14, len 24
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type -1, len 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Processing st: 1, edit list 0 - media time: 0, duration: 6529018
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Opening 'audio_0.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] stream 1, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_0.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_0.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] volume default, len 7
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] filename audio_1.pcm, len 11
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] nlvl from 1, nlvl to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 0, len 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] dir camb_730_Mackay2_2002(1).vmf
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 2, len 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] path /VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_1.pcm
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 11, len 6
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 18, len 71
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 19, len 8
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 15, len 16
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 14, len 24
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type -1, len 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Processing st: 2, edit list 0 - media time: 0, duration: 6529018
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Opening 'audio_1.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] stream 2, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_1.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_1.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] volume default, len 7
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] filename audio_2.pcm, len 11
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] nlvl from 1, nlvl to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 0, len 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] dir camb_730_Mackay2_2002(1).vmf
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 2, len 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] path /VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_2.pcm
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 11, len 6
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 18, len 71
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 19, len 8
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 15, len 16
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 14, len 24
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type -1, len 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Processing st: 3, edit list 0 - media time: 0, duration: 6529018
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Opening 'audio_2.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] stream 3, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_2.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_2.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] volume default, len 7
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] filename audio_3.pcm, len 11
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] nlvl from 1, nlvl to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 0, len 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] dir camb_730_Mackay2_2002(1).vmf
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 2, len 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] path /VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_3.pcm
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 11, len 6
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 18, len 71
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 19, len 8
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 15, len 16
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type 14, len 24
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] type -1, len 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Processing st: 4, edit list 0 - media time: 0, duration: 6529018
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Opening 'audio_3.pcm' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] stream 4, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/audio_3.pcm', dir='camb_730_Mackay2_2002(1).vmf', filename='audio_3.pcm', volume='default', nlvl_from=1, nlvl_to=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Unknown dref type 0x6c646e68 size 29
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Processing st: 5, edit list 0 - media time: 0, duration: 340053
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Before avformat_find_stream_info() pos: 25373 bytes read:25373 seeks:0 nb_streams:6
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Could not find codec parameters for stream 0 (Video: dvvideo, 1 reference frame (dvpp / 0x70707664), none(topleft), 720x576, 1/2500, 28800 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] After avformat_find_stream_info() pos: 4 bytes read:25373 seeks:0 frames:1
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov':
  Metadata:
    creation_time   : 2017-02-19T23:28:09.000000Z
  Duration: 00:02:16.02, start: 0.000000, bitrate: 1 kb/s
    Stream #0:0(eng), 0, 1/2500: Video: dvvideo, 1 reference frame (dvpp / 0x70707664), none(topleft), 720x576, 0/1, 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
      timecode        : 00:16:54:23
    Stream #0:1(eng), 0, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng), 0, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng), 0, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:4(eng), 0, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:5(eng), 1, 1/2500: Data: none (tmcd / 0x64636D74), 0/1 (default)
    Metadata:
      creation_time   : 2017-02-19T23:28:09.000000Z
      handler_name    : Apple Handle Data Handler
      timecode        : 00:16:54:23
Successfully opened the file.
Parsing a group of options: output url nul.
Applying option map (set input stream mapping) with argument 0:0.
Applying option an (disable audio) with argument 1.
Applying option sn (disable subtitle) with argument 1.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option f (force format) with argument rawvideo.
Successfully parsed a group of options.
Opening an output file: nul.
[file @ 00000241a5864dc0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 16 logical cores
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
No more output streams to write to, finishing.
Finishing stream 0:0 without any data written to it.
Nothing was written into output file 0 (nul), because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (C:\Users\Selur\Desktop\camb_730_Mackay2_2002(1).vmf\camb_730_Mackay2_2002(1).mov):
  Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded;
  Input stream #0:1 (audio): 0 packets read (0 bytes);
  Input stream #0:2 (audio): 0 packets read (0 bytes);
  Input stream #0:3 (audio): 0 packets read (0 bytes);
  Input stream #0:4 (audio): 0 packets read (0 bytes);
  Input stream #0:5 (data): 1 packets read (4 bytes);
  Total: 1 packets (4 bytes) demuxed
Output file #0 (nul):
  Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
  Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 00000241a594e820] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 00000241a5884a20] Statistics: 25373 bytes read, 0 seeks

=> can you create these files with relative paths?

Cu Selur
Reply
#9
When I use ffmpeg to convert, I have to do it from inside the container folder, so I have to place ffmpeg in the folder. Then the media path is relative to the pointer file. This is the challenge for me to convert a large number of files. I cannot simply load a pointer file externally. I cannot use duplicates or proxies of the pointer files as they loose their relative structure.

Also I am now on a 1 week leave from work so I don't have access to the media to test. Your copy is the only one for a while. Is that ok?
Reply
#10
Problem seems to be that the mov contains pointers like:
default:VibrintAVFilesTongue2 News Ingest:camb_730_Mackay2_2002(1).vmf:video.vid
which seems like ffmpeg can't handle.
For each stream one gets, something like:
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] Opening 'video.vid' for reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000241a587c040] stream 0, error opening alias: path='/VibrintAVFiles/P2 News Ingest/camb_730_Mackay2_2002(1).vmf/video.vid',
dir='camb_730_Mackay2_2002(1).vmf', filename='video.vid', volume='default', nlvl_from=1, nlvl_to=1
so the question is whether there are some additional options in your Grass Valley tool to create these files?

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)