Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Sur d’autres sites (1047)

  • fluent-ffmpeg display_aspect_ratio not changing

    26 juin 2022, par juanmac

    Hi everyone i'm trying to resize width and height of certain input with fluent ffmpeg to 768x1366 (basically to show it in vertical mode), so i have to also change its display_aspect_ratio which i happen to know is 0.562225476.
The issue here is that, according to fluent-ffmpeg doc, if i set a fix size, it wont change the aspect ratio, but it wont work either if I use ? to automatic mode. This is my code :

    


    ffmpeg({source: req.file.path}) 
            .withFps(30)
            .toFormat('mp4')
            .size("768x?")
            .aspect(0.562225476)


    


    Console command :
ffmpeg -i tmp/video.mp4 -y -r 30 -filter:v scale=w=768:h=1366 -f mp4 ./src/internal/media/video.mp4

    


    So when i check the display_aspect_ratio with ffprobe it's still 4:3 (as source file).

    


    If I do not add the .aspect() option, the command is exactly the same...so it's not considering it.

    


    I've also tried :

    


    ffmpeg({source: req.file.path}) 
            .withFps(30)
            .toFormat('mp4')
            .size('768x1366')
            .addOptions('-vf setdar=0.562225476')


    


    And command here ends up being ffmpeg -i tmp/video.mp4 -y -r 30 -filter:v scale=w=768:h=1366 -f mp4 -vf setdar=0.562225476 ./src/internal/media/video.mp4, so it seemed ok, but when I check with ffprobe it did not apply width and height changes.

    


    The command I really need is some kind of : ffmpeg -i video.mp4 -vf scale=768:1766,"setdar=0.562225476" video2.mp4 which changes both, widthXheight and display_aspect_ratio

    


  • ffmpeg - recorded video stream is not displayed in vlc media player

    2 janvier 2024, par DeThe92

    I am trying to record an RTSP video stream from a Techage IP camera on my home network. I am using ffmpeg on my Raspberry Pi to do this and want to save the recorded video and audio data. My problem is that there seems to be video data coming through, but when I try to download the recorded file, there is only an audio stream, no video is displayed.

    


    I try :

    


    > ffmpeg -y -rtsp_transport tcp -re -i "rtsp://:554/user=admin&password=&channel=0&stream=0.sdp" -c copy -t 2 "output.avi"


    


    The result output is :

    


    ffmpeg version git-2016-07-02-0c6bedc Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --extra-ldflags=-latomic --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-libx264 --enable-nonfree
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.178.60:554/user=admin&password=&channel=0&stream=0.sdp':
  Metadata:
    title           : RTSP Session
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160, 10 fps, 10 tbr, 90k tbn, 10 tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
[avi @ 0x1c4a1a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, avi, to 'a0.avi':
  Metadata:
    INAM            : RTSP Session
    ISFT            : Lavf57.41.100
    Stream #0:0: Video: hevc, yuvj420p(pc), 3840x2160, q=2-31, 10 fps, 10 tbr, 20 tbn, 20 tbc
    Stream #0:1: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, mono, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[avi @ 0x1c4a1a0] 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=    3 fps=0.0 q=-1.0 size=     220kB time=00:00:00.60 bitrate=3002.0kbits/s speed=1.1
frame=   10 fps=9.9 q=-1.0 size=     303kB time=00:00:01.12 bitrate=2214.9kbits/s speed=1.1
frame=   15 fps=9.9 q=-1.0 size=     367kB time=00:00:01.60 bitrate=1878.5kbits/s speed=1.0
frame=   20 fps=9.9 q=-1.0 size=     431kB time=00:00:02.00 bitrate=1766.1kbits/s speed=0.9
frame=   20 fps=9.1 q=-1.0 Lsize=     433kB time=00:00:02.00 bitrate=1774.5kbits/s speed=0.908x
video:406kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.827832%


    


    Does someone has any idea what could be wrong ? Thanks in advance.

    


  • aarch64/vvc : Add apply_bdof

    3 décembre 2024, par Zhao Zhili
    aarch64/vvc : Add apply_bdof
    

    Test on rpi 5 with gcc 12 :

    apply_bdof_8_8x16_c : 7315.2 ( 1.00x)
    apply_bdof_8_8x16_neon : 1876.8 ( 3.90x)
    apply_bdof_8_16x8_c : 7170.5 ( 1.00x)
    apply_bdof_8_16x8_neon : 1752.8 ( 4.09x)
    apply_bdof_8_16x16_c : 14695.2 ( 1.00x)
    apply_bdof_8_16x16_neon : 3490.5 ( 4.21x)
    apply_bdof_10_8x16_c : 7371.5 ( 1.00x)
    apply_bdof_10_8x16_neon : 1863.8 ( 3.96x)
    apply_bdof_10_16x8_c : 7172.0 ( 1.00x)
    apply_bdof_10_16x8_neon : 1766.0 ( 4.06x)
    apply_bdof_10_16x16_c : 14551.5 ( 1.00x)
    apply_bdof_10_16x16_neon : 3576.0 ( 4.07x)
    apply_bdof_12_8x16_c : 7236.5 ( 1.00x)
    apply_bdof_12_8x16_neon : 1863.8 ( 3.88x)
    apply_bdof_12_16x8_c : 7316.5 ( 1.00x)
    apply_bdof_12_16x8_neon : 1758.8 ( 4.16x)
    apply_bdof_12_16x16_c : 14691.2 ( 1.00x)
    apply_bdof_12_16x16_neon : 3480.5 ( 4.22x)

    • [DH] libavcodec/aarch64/vvc/dsp_init.c
    • [DH] libavcodec/aarch64/vvc/inter.S
    • [DH] libavcodec/aarch64/vvc/of_template.c