Converting video format issue

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Converting video format issue

mohammed bey ahmed khernache
Hello,
I am trying to convert a video format from ".bit" to ".mp4", using the
following  command:
ffmpeg -i <input_file.bit> -codec copy <output_file.mp4>
The problem is that the number of frames of the output video is not equal
to that of the input video.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Converting video format issue

Flumotion Support
Hello

can you tray using :
ffmpeg -re ......

Best regards




On Mon, Apr 15, 2019 at 12:05 PM Mohammed Bey Ahmed Khernache <
[hidden email]> wrote:

> Hello,
> I am trying to convert a video format from ".bit" to ".mp4", using the
> following  command:
> ffmpeg -i <input_file.bit> -codec copy <output_file.mp4>
> The problem is that the number of frames of the output video is not equal
> to that of the input video.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



--
Flumotion Support
Flumotion Services S.A.
Avda. Diagonal 593-595 5ยบ
08021 Barcelona - Spain
www.flumotion.com
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Converting video format issue

mohammed bey ahmed khernache
Thank you for your reply.
Unfortunately, the same issue happens again. The output video file doesn't
have the same number of frames as the input video file.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Converting video format issue

Carl Eugen Hoyos-2
In reply to this post by mohammed bey ahmed khernache
2019-04-15 12:04 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:

> I am trying to convert a video format from ".bit" to ".mp4",
> using the following  command:
> ffmpeg -i <input_file.bit> -codec copy <output_file.mp4>

Command line and complete, uncut console output missing,
the input sample may be useful.

Please remember that top-posting is considered rude
here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Converting video format issue

mohammed bey ahmed khernache
On Mon, Apr 15, 2019 at 12:39 PM Carl Eugen Hoyos <[hidden email]>
wrote:
> Command line and complete, uncut console output missing,
> the input sample may be useful.

Below are the outputs:
----------------------------------------------------- Converting to mp4
--------------------------------------
PS D:\tools\ffmpeg\windows\ffmpeg-20190128-1db30d6-win64-static\bin>
.\ffmpeg.exe -re -i .\AMP_E_Hisilicon_3.bit -c:v copy
.\AMP_E_Hisilicon_3.mp4
ffmpeg version N-93041-g1db30d6cec Copyright (c) 2000-2019 the FFmpeg
developers
  built with gcc 8.2.1 (GCC) 20181201
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 46.100 / 58. 46.100
  libavformat    58. 26.100 / 58. 26.100
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, hevc, from '.\AMP_E_Hisilicon_3.bit':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 25 fps, 25
tbr, 1200k tbn, 25 tbc
Output #0, mp4, to '.\AMP_E_Hisilicon_3.mp4':
  Metadata:
    encoder         : Lavf58.26.100
    Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv),
1920x1080, q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 00000233134b4480] 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
[mp4 @ 00000233134b4480] pts has no value
    Last message repeated 16 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:00.52 bitrate=
 0.7kbits/s speed=1.02x
    Last message repeated 12 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:01.04 bitrate=
 0.3kbits/s speed=1.03x
    Last message repeated 11 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:01.52
bitrate=1379.9kbits/s speed=   1x
    Last message repeated 12 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:02.04
bitrate=1028.2kbits/s speed=1.01x
    Last message repeated 12 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:02.56
bitrate=1638.5kbits/s speed=1.02x
    Last message repeated 11 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:03.04
bitrate=1379.8kbits/s speed=   1x
    Last message repeated 12 times
[mp4 @ 00000233134b4480] pts has no valueB time=00:00:03.56
bitrate=1178.3kbits/s speed=1.01x
    Last message repeated 6 times
frame=  100 fps= 26 q=-1.0 Lsize=     790kB time=00:00:03.84
bitrate=1684.4kbits/s speed=0.998x
video:788kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.173959%

---------------------------------- Decoding the output file with ffmpeg
-----------------------------------
PS D:\tools\ffmpeg\windows\ffmpeg-20190128-1db30d6-win64-static\bin>
.\ffmpeg.exe -i .\AMP_E_Hisilicon_3.mp4 -f null out.null
ffmpeg version N-93041-g1db30d6cec Copyright (c) 2000-2019 the FFmpeg
developers
  built with gcc 8.2.1 (GCC) 20181201
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 46.100 / 58. 46.100
  libavformat    58. 26.100 / 58. 26.100
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\AMP_E_Hisilicon_3.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf58.26.100
  Duration: 00:00:04.00, start: 0.000000, bitrate: 1616 kb/s
    Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv),
1920x1080, 1614 kb/s, 25 fps, 25 tbr, 1200k tbn, 1200k tbc (default)
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'out.null':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf58.26.100
    Stream #0:0(und): Video: wrapped_avframe, yuv420p, 1920x1080, q=2-31,
200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc58.46.100 wrapped_avframe
[null @ 00000244cd26d380] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 96 >= 95
[null @ 00000244cd26d380] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 96 >= 94
[null @ 00000244cd26d380] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 96 >= 96
frame=   97 fps=0.0 q=-0.0 Lsize=N/A time=00:00:03.88 bitrate=N/A
speed=8.74x
video:51kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Converting video format issue

Carl Eugen Hoyos-2
2019-04-15 13:00 GMT+02:00, Mohammed Bey Ahmed Khernache:

> .\ffmpeg.exe -re -i .\AMP_E_Hisilicon_3.bit -c:v copy
> .\AMP_E_Hisilicon_3.mp4

Why are you using -re?

Feel free to test the input option "-r", there is a patch on the
development mailing list that may be needed to make this
work.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".